Move from mybb to nodebb

Solved Technical Support
  • Hey,
    I have bean looking for a way to migrate all postes and users from my old mybb forum to a new nodebb forum.
    I have tryed it with this plugin: https://github.com/akhoury/nodebb-plugin-import but it just dosent work, i get this error every time:
    25/10 20:06 [25265] - error: Error: Cannot find module 'internal/errors'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at evalmachine.<anonymous>:36:16
    at Object.<anonymous> (/root/nodebb/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/nodebb/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    Error: Cannot find module 'internal/errors'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at evalmachine.<anonymous>:36:16
    at Object.<anonymous> (/root/nodebb/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/nodebb/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)

    So are there any other ways to migrate or are there any fixes for this plugin?

  • Little update:
    I have done
    npm install internal
    and
    npm install errors

    and now I get this Error instead of the other one:
    *26/10 16:22 [8286] - error: Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (/root/nodebb/node_modules/nodebb-plugin-import/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/node_modules/nodebb-plugin-import/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (/root/nodebb/node_modules/nodebb-plugin-import/node_modules/npm/node_modules/graceful-fs/fs.js:11:8)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/node_modules/nodebb-plugin-import/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:3:27)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    *
    So is there anything I can do to make it work?

  • What version of node? node -v

  • @pitaj said in Move from mybb to nodebb:

    node -v

    Its current the version: v8.8.1

    Update:
    I have installed some new things and now it loads a bit but I get this error now:
    26/10 17:14 [16229] - error: AssertionError [ERR_ASSERTION]: must pass params to get
    at RegClient.get (/root/nodebb/node_modules/npm/node_modules/npm-registry-client/lib/get.js:12:3)
    at addNameRange (/root/nodebb/node_modules/npm/lib/cache/add-named.js:201:12)
    at /root/nodebb/node_modules/npm/lib/cache/add-named.js:47:5
    at /root/nodebb/node_modules/npm/lib/utils/locker.js:30:7
    at cb (/root/nodebb/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)
    at /root/nodebb/node_modules/npm/node_modules/lockfile/lockfile.js:171:16
    at /root/nodebb/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:43:10
    at /root/nodebb/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:137:15)
    AssertionError [ERR_ASSERTION]: must pass params to get
    at RegClient.get (/root/nodebb/node_modules/npm/node_modules/npm-registry-client/lib/get.js:12:3)
    at addNameRange (/root/nodebb/node_modules/npm/lib/cache/add-named.js:201:12)
    at /root/nodebb/node_modules/npm/lib/cache/add-named.js:47:5
    at /root/nodebb/node_modules/npm/lib/utils/locker.js:30:7
    at cb (/root/nodebb/node_modules/npm/node_modules/lockfile/lockfile.js:149:38)
    at /root/nodebb/node_modules/npm/node_modules/lockfile/lockfile.js:171:16
    at /root/nodebb/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:43:10
    at /root/nodebb/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:137:15)

  • @akhoury any thoughts?

  • @mrkavatch said in Move from mybb to nodebb:

    (/root/nodebb/node_modules/npm/node_modules/graceful-fs/

    the original error has nothing to do with the import plugin, i mean look at the stacktrace.

    When do you see this error?
    also, what's the NodeBB version you have installed?

  • @bentael It was the 1.03. Beacue it its the only version where the importer works.
    And as I sayed somehow this both commands fixed it:
    npm install internal
    and
    npm install errors

  • Just a other info if anyone has the same problem.

    nvm install 4
    nvm use 4

    then

    npm install internal
    npm install errors

    oh and after you have imported it dont forget to execute this command:

    nvm use 8

    This worked for me.

  • Seems like there was something wrong with your node install

  • @pitaj
    Could be possible. At least it works now ^^


Suggested Topics