Problem whit nodebb on Ubuntu 16.04 LTS


  • Gamers

    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 ?


  • Admin

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


  • Gamers

    Sorry.. here you go.


  • Global Moderator

    Try running npm install again


  • Gamers

    Still the same error


  • GNU/Linux

    This post is deleted!

  • Gamers

    Ill wait. maybe someone here has a solution


  • Admin

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


  • Gamers

    @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.


  • Gamers

    #Push

    (I hope thats allowed)


  • Admin

    @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.


  • Gamers

    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 ?


  • Admin

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


  • Gamers

    where ? i didnt find it


  • Admin

    0_1509540816675_6de78b57-97fb-47d2-9d4a-0979e32633fe-image.png

    0_1509540832841_7c972fb0-be3d-461b-b9c7-12cc63770623-image.png


Log in to reply
 


Star

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.