./nodebb commands not working for me out of the .8.x branch

Technical Support
  • I am attempting a new install, but this happened to me before as well. I am trying to run the ./nodebb setup command, but nothing happens. I am on Ubuntu 14.04.

    When I enter the command and hit enter it just brings up the next line waiting for a command in terminal.

  • @HolyPhoenix how did you upgrade to the v0.8.x branch?

  • Not upgrading, it's a new install. I had the same problem last time, so I thought I'd try a re-install to get around it. I had been using the npm commands instead of the nodebb last time in order to get it running.

    I realized I forgot npm install --production command this time around though.

    I am getting this error. This did not happen with .8.0, but is happening with .8.1.

    throw new Error( ^ Error: node-gyp requires that the user's home directory is specified in either of the environmental variables HOME or USERPROFILE at new Gyp (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:54:11) at gyp (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:43:10) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:20:12) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:935:3

    I am logged in as root. Any ideas how to correct this?

    And looking over the instruction ./nodebb setup is an alternative to the npm install command. Could the error I am seeing above be the cause of the ./nodebb commands not working?

  • Adding more to my error above.

    npm ERR! [email protected] install: node-gyp rebuild
    npm ERR! Exit status 8 npm ERR!
    npm ERR! Failed at the [email protected] install script.
    npm ERR! This is most likely a problem with the heapdump package,
    npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system:
    npm ERR! node-gyp rebuild npm ERR! You can get their info via:
    npm ERR! npm owner ls heapdump npm ERR!
    There is likely additional logging output above.
    npm ERR! System Linux 3.13.0-24-generic
    npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--production"
    npm ERR! cwd /srv/cninja/nodebb
    npm ERR! node -v v0.10.37
    npm ERR! npm -v 1.4.28
    npm ERR! code ELIFECYCLE
    npm ERR! not ok code 0

  • Last update, this issue is closed.

    It seems that there is an issue when I was trying to use the terminal built into the ajenti panel. I was using ajenti to try and make my life easier when I am not at home, but that turned out to be a bad idea. Anyway, everything works just fine when I ssh into my server using bitvise.


Suggested Topics


  • nodebb disconnect

    Technical Support
    3
    0 Votes
    3 Posts
    430 Views

    every other 5 minutes, my browser console many errors, eg:
    GET http://www.seenewyun.com/socket.io/?EIO=3&transport=polling&t=MOJNhdj 502 (Bad Gateway)
    ,but nodebb can auto connect.

  • MongoDB 4.x supported ?

    Technical Support
    3
    0 Votes
    3 Posts
    715 Views

    2018-09-09T10:11:48.922Z [9648] - info: NodeBB is now listening on: 127.0.0.1:4569
    2018-09-09T10:16:43.603Z [11388] - error: MongoError: cursor id 27285299524 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:43.603Z [11388] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:43.605Z [11388] - info: [app] Web server closed to connections.
    2018-09-09T10:16:43.606Z [11388] - info: [app] Database connection closed.
    2018-09-09T10:16:43.606Z [11388] - info: [app] Shutdown complete.
    2018-09-09T10:16:43.621Z [5504] - error: MongoError: cursor id 28811112366 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:43.625Z [5504] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:43.627Z [5504] - info: [app] Web server closed to connections.
    2018-09-09T10:16:43.632Z [5504] - info: [app] Database connection closed.
    2018-09-09T10:16:43.632Z [5504] - info: [app] Shutdown complete.
    [cluster] Child Process (11388) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    [cluster] Child Process (5504) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-09-09T10:16:43.723Z [9648] - error: MongoError: cursor id 28796318791 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:43.724Z [9648] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:43.732Z [9648] - info: [app] Web server closed to connections.
    2018-09-09T10:16:43.734Z [9648] - info: [app] Database connection closed.
    2018-09-09T10:16:43.734Z [9648] - info: [app] Shutdown complete.
    [cluster] Child Process (9648) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-09-09T10:16:44.114Z [9396] - error: MongoError: cursor id 28075153536 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:44.114Z [9396] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:44.115Z [9396] - info: [app] Web server closed to connections.
    2018-09-09T10:16:44.118Z [9396] - info: [app] Database connection closed.
    2018-09-09T10:16:44.118Z [9396] - info: [app] Shutdown complete.
    [cluster] Child Process (9396) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-09-09T10:16:45.087Z [12300] - info: Initializing NodeBB v1.10.1 https://beep.com/forum
    2

  • 0 Votes
    1 Posts
    701 Views

    All in One, Easy to understand – production ready guide for beginners and professionals.

    NodeJS, MongoDB, PM2 and NGINX installation and configuration for production server — ubuntu 16.04

    https://blog.cloudboost.io/nodejs-mongodb-pm2-and-nginx-installation-and-configuration-for-production-server-ubuntu-16-04-e2b65d82f5df

  • 0 Votes
    18 Posts
    5k Views

    @pitaj yes, I tried ./nodebb build several times, but I always used ./nodebb dev to start.

    I tried it once more as you said. ./nodebb start aborted with the message to run ./nodebb upgrade. After the upgrade and another ./nodebb start I can post and answer again! 😄

    I don't know why an how, but it works again. hopefully not only for a short time. 😉

    Thanks for you help!

  • Nodebb on OVH?

    Technical Support
    12
    0 Votes
    12 Posts
    3k Views

    I run the VPS SSD plan on OVH for my forum with Ubuntu 14.04 and everything is working very well 🙂