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


  • 0 Votes
    2 Posts
    83 Views

    Your config.json should look like this for multiple ports

    { "url": "http://example.org", "secret": "your-secret-goes-here", "database": "mongo", "port": [4567, 4568, 4569], "mongo": { "host": "127.0.0.1", "port": "27017", "database": "0" }, "redis": { "host":"127.0.0.1", "port":"6379", "database": 0 } }

    After ./nodebb setup modify config.json remove port from url and add the port array. Then use ./nodebb start to start nodebb. It should start up 3 nodejs processes, you can check if it worked with top

  • 0 Votes
    15 Posts
    4k Views

    @PitaJ said in Weird nodebb 502 bad gateway:

    at version of NodeBB do you have?

    currently running 1.0.3
    After making backups, I ran the ./nodebb upgrade which did some stuff but the problem was still there and I rollebacked and decided to run it via forever.
    just wondering why it would not work the way that it did for 2 years 😮

  • 0 Votes
    1 Posts
    745 Views

    Hihi, i'm going to migrate the Ghost-Blog's topics to my new Nodebb site, there are dozens of topics, and i use the nodebb-plugin-blog-comments to move the topic to the Nodebb site, and my question is : How to map the old Ghost-Blog topic's url to the new Nodebb topic's route ?

    For example:

    There is a topic in Old Ghost-Blog: http://mysite.com/2016/06/23/guipin-jia/ And i migrated above topic to the new Nodebb: http://mysite.com/topic/12/guipin-jia/

    I wish that the nodebb can redirect the old Ghost-Blog's topics url to the new nodebb's topics url, when the users browser the old Ghost-Blog's urls~

    Please help, many many thanks~ @julian @psychobunny @baris @pichalite

  • How To Unbind NodeBB?

    Technical Support
    0 Votes
    2 Posts
    1k Views

    You'll want to find the pid (process id) of the running NodeBB process. Use ps aux | grep node to see all process that are node based.

    Then kill it by pid.

    e.g.

    julian@laptop ~/nothingtoseehere (master) $ ps aux | grep node julian 11381 5.5 1.3 959772 53680 ? Ssl 18:25 0:00 /home/julian/.nvm/versions/node/v4.4.0/bin/node /home/julian/nothingtoseehere/loader.js julian 11396 3.7 0.9 910404 37308 pts/5 Sl+ 18:25 0:00 node ./nodebb log julian 11405 44.0 3.8 1303708 153892 ? Rl 18:25 0:05 /home/julian/.nvm/versions/node/v4.4.0/bin/node app.js julian 11483 0.0 0.0 15192 2260 pts/6 S+ 18:25 0:00 grep --color=auto node

    Looks like the NodeBB app is on pid 11405, and the loader is 11381. kill 11381 will kill both (as the app is a child of the loader)

  • Nodebb Theme quickstart

    Moved Technical Support
    0 Votes
    12 Posts
    6k Views

    @mkarmocha that special route is to be set within the "ACP -> General -> Home Page"; It's categories by default.