Problem whit nodebb on Ubuntu 16.04 LTS

Solved Technical Support
  • I have the following error at startup.

    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/src/admin/search.js:6:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    

    30/10 16:39:56 [12219] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    30/10 16:39:56 [12219] - info: [app] Database connection closed.
    30/10 16:39:56 [12219] - info: [app] Web server closed to connections.
    3 restarts in 10 seconds, most likely an error on startup. Halting.

    Can somebody help me ?

  • That is not the entire log, take a look at the file logs/output.log to see the entire error message.

  • Sorry.. here you go.

  • Try running npm install again

  • Still the same error

  • This post is deleted!
  • Ill wait. maybe someone here has a solution

  • It looks like perhaps not all of your dependencies are installed. Try npm i --production again please

  • @julian said in Problem whit nodebb on Ubuntu 16.04 LTS:

    npm i --production

    Still the same error

    NodeBB v1.6.1 Copyright (C) 2013-2014 NodeBB Inc.
    This program comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to redistribute it under certain conditions.
    For the full license, please visit: http://www.gnu.org/copyleft/gpl.html

    Clustering enabled: Spinning up 1 process(es).

    31/10 09:51:19 [14470] - info: Initializing NodeBB v1.6.1 http://localhost:4567
    31/10 09:51:21 [14470] - error: Error: Cannot find module 'lodash.escaperegexp'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/node_modules/sanitize-html/index.js:3:19)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/src/admin/search.js:6:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    31/10 09:51:21 [14470] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    31/10 09:51:21 [14470] - info: [app] Database connection closed.
    31/10 09:51:21 [14470] - info: [app] Web server closed to connections.
    31/10 09:51:21 [14470] - info: [app] Shutdown complete.
    [cluster] Child Process (14470) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    31/10 09:51:22 [14488] - info: Initializing NodeBB v1.6.1 http://localhost:4567
    31/10 09:51:23 [14488] - error: Error: Cannot find module 'lodash.escaperegexp'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/node_modules/sanitize-html/index.js:3:19)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/src/admin/search.js:6:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    31/10 09:51:23 [14488] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    31/10 09:51:23 [14488] - info: [app] Database connection closed.
    31/10 09:51:23 [14488] - info: [app] Web server closed to connections.
    31/10 09:51:23 [14488] - info: [app] Shutdown complete.
    [cluster] Child Process (14488) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    31/10 09:51:24 [14499] - info: Initializing NodeBB v1.6.1 http://localhost:4567
    31/10 09:51:25 [14499] - error: Error: Cannot find module 'lodash.escaperegexp'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/node_modules/sanitize-html/index.js:3:19)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/src/admin/search.js:6:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    31/10 09:51:25 [14499] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    31/10 09:51:25 [14499] - info: [app] Database connection closed.
    31/10 09:51:25 [14499] - info: [app] Web server closed to connections.
    31/10 09:51:25 [14499] - info: [app] Shutdown complete.
    [cluster] Child Process (14499) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    31/10 09:51:26 [14510] - info: Initializing NodeBB v1.6.1 http://localhost:4567
    31/10 09:51:28 [14510] - error: Error: Cannot find module 'lodash.escaperegexp'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/node_modules/sanitize-html/index.js:3:19)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/root/nodebb/src/admin/search.js:6:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    31/10 09:51:28 [14510] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    31/10 09:51:28 [14510] - info: [app] Database connection closed.
    31/10 09:51:28 [14510] - info: [app] Web server closed to connections.
    31/10 09:51:28 [14510] - info: [app] Shutdown complete.
    3 restarts in 10 seconds, most likely an error on startup. Halting.

  • #Push

    (I hope thats allowed)

  • @aStonedDog I'll allow it 😄 though maybe wait a day or so next time.

    Anyhow, is it possible for you to completely nuke node_modules/ and npm i --production again?

    You could also try using yarn instead of npm. No particular preference for one over the other, just a drop-in replacement.

  • i got it. just tryed it on CentOS7 and it works fine. but is there a possibility. that users can just login whit theyr steamaccount ad disable normal registration ?

  • Yes, you can install the steam SSO plugin and disable regular user registration

  • where ? i didnt find it


Suggested Topics


  • 0 Votes
    3 Posts
    1k Views

    heh but locally I have the same issue 😞

  • 0 Votes
    3 Posts
    2k Views

    Thanks @PitaJ

    I installed Node manually this way which worked perfect. Then continued with NodeBB guide & NPM install worked

    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash Reboot machine . ~/.nvm/nvm.sh Determine what version of Node to install nvm install 6.10.3 check version is installed by running
    node -e "console.log('Running Node.js ' + process.version)"

    Thank you

    Todd

  • 0 Votes
    1 Posts
    745 Views

    Hey,
    I have a problem after updating my forum to version 1.4.5 (from 1.4.2)
    The Problem is user cant login to there account.

    nodebb LOG:
    17/3 12:47:48 [21825] - warn: [deprecated] Accessing stylesheet.css from / is deprecated. Use /assets/stylesheet.css to access this file.
    17/3 12:47:48 [21825] - warn: [deprecated] Accessing nodebb.min.js from / is deprecated. Use /assets/nodebb.min.js to access this file.
    17/3 16:22:13 [21825] - warn: [deprecated] Accessing stylesheet.css from / is deprecated. Use /assets/stylesheet.css to access this file.
    17/3 16:22:13 [21825] - warn: [deprecated] Accessing nodebb.min.js from / is deprecated. Use /assets/nodebb.min.js to access this file.
    17/3 16:24:33 [21825] - warn: [deprecated] Accessing vendor/fontawesome/fonts/fontawesome-webfont.woff2 from / is deprecated. Use /assets/vendor/fontawesome/fonts/fontawesome-webfont.woff2 to access this file.
    17/3 16:24:58 [21825] - error: /login
    invalid csrf token

    Chrome DEV Log: WebSocket connection to 'wss://showgaming.de/socket.io/?EIO=3&transport=websocket&sid=theid....' failed: Error during WebSocket handshake: Unexpected response code: 404

    When you are already logged in evrything works fine, else comes a session expired invalide csrf token by login.
    I hope someone can help me with that problem,
    Have a nice day,
    Ezamik

  • 0 Votes
    12 Posts
    5k Views

    @rod haha, appreciate your help and comments.

  • NodeBB on Cloud9

    Technical Support
    0 Votes
    9 Posts
    3k Views

    @Aureney it's not removing the .lock file when it's going to hibernate.

    do this...

    $ rm data/mongod.lock

    and then run ./mongod &