NodeBB wont start, Windows

Technical Support
  • @scottalanmiller said in NodeBB wont start, Windows:

    ls -lah

    Does has a similar command for windows?

    EDIT:
    dir

    https://i.imgur.com/G6wmciS.jpg

  • @Reinaldo-Borin said in NodeBB wont start, Windows:

    Does has a similar command for windows?

    Oh sorry, I think that with powershell it is the same, though.

  • alt text

    -lah and -la doesnt work on powershell

  • Sorry, Windows throwing me off.

    In Windows you need CMD and the DIR command...

    dir /q
    

    For some reason, MS broke the DIR command and it doesn't keep working properly in PowerShell. (For future reference, supporting servers in Linux is so much easier than Windows.)

  • @Reinaldo-Borin Yup, that's what I suspected. The config.json file and some others have got the wrong file owners. Notice that almost everything in there is owned by ikkyy-p, but the Admin user now owns some of the others. My guess is that you installed as one user and ran an update as the admin by accident and it took ownership.

    Just set everything in the folder back to ikkyy-p and I bet you will be all set!

  • but Ikkyy-P is my account administrator, i only have this account on my windows.

    trying to get back the permission

  • @scottalanmiller alt text

    2019-05-19T20:55:39.244Z [4567/11464] - info: Initializing NodeBB v1.11.2 http://localhost:4567
    2019-05-19T20:55:39.508Z [4567/11464] - warn: You have no mongo username/password setup!
    2019-05-19T20:55:39.561Z [4567/11464] - error: uncaughtException: Cannot create property 'host' on string 'C:\Program Files\MongoDB\Server\4.0\bin'
    TypeError: Cannot create property 'host' on string 'C:\Program Files\MongoDB\Server\4.0\bin'
        at Object.mongoModule.getConnectionString (D:\Programacao\nodebb\src\database\mongo.js:77:14)
        at Object.mongoModule.connect (D:\Programacao\nodebb\src\database\mongo.js:143:31)
        at Object.mongoModule.init (D:\Programacao\nodebb\src\database\mongo.js:116:14)
        at D:\Programacao\nodebb\src\start.js:21:7
        at nextTask (D:\Programacao\nodebb\node_modules\async\dist\async.js:5324:14)
        at Object.waterfall (D:\Programacao\nodebb\node_modules\async\dist\async.js:5334:5)
        at Object.start.start (D:\Programacao\nodebb\src\start.js:19:8)
        at Object.<anonymous> (D:\Programacao\nodebb\app.js:90:25)
        at Module._compile (module.js:653:30)
        at Object.Module._extensions..js (module.js:664:10) {"error":{},"stack":"TypeError: Cannot create property 'host' on string 'C:\\Program Files\\MongoDB\\Server\\4.0\\bin'\n    at Object.mongoModule.getConnectionString (D:\\Programacao\\nodebb\\src\\database\\mongo.js:77:14)\n    at Object.mongoModule.connect (D:\\Programacao\\nodebb\\src\\database\\mongo.js:143:31)\n    at Object.mongoModule.init (D:\\Programacao\\nodebb\\src\\database\\mongo.js:116:14)\n    at D:\\Programacao\\nodebb\\src\\start.js:21:7\n    at nextTask (D:\\Programacao\\nodebb\\node_modules\\async\\dist\\async.js:5324:14)\n    at Object.waterfall (D:\\Programacao\\nodebb\\node_modules\\async\\dist\\async.js:5334:5)\n    at Object.start.start (D:\\Programacao\\nodebb\\src\\start.js:19:8)\n    at Object.<anonymous> (D:\\Programacao\\nodebb\\app.js:90:25)\n    at Module._compile (module.js:653:30)\n    at Object.Module._extensions..js (module.js:664:10)","exception":true,"date":"Sun May 19 2019 17:55:39 GMT-0300 (Hora oficial do Brasil)","process":{"pid":11464,"uid":null,"gid":null,"cwd":"D:\\Programacao\\nodebb","execPath":"C:\\Program Files\\nodejs\\node.exe","version":"v8.12.0","argv":["C:\\Program Files\\nodejs\\node.exe","D:\\Programacao\\nodebb\\app.js"],"memoryUsage":{"rss":49537024,"heapTotal":37650432,"heapUsed":20906064,"external":18370865}},"os":{"loadavg":[0,0,0],"uptime":79250.3929993},"trace":[{"column":14,"file":"D:\\Programacao\\nodebb\\src\\database\\mongo.js","function":"Object.mongoModule.getConnectionString","line":77,"method":"getConnectionString","native":false},{"column":31,"file":"D:\\Programacao\\nodebb\\src\\database\\mongo.js","function":"Object.mongoModule.connect","line":143,"method":"connect","native":false},{"column":14,"file":"D:\\Programacao\\nodebb\\src\\database\\mongo.js","function":"Object.mongoModule.init","line":116,"method":"init","native":false},{"column":7,"file":"D:\\Programacao\\nodebb\\src\\start.js","function":null,"line":21,"method":null,"native":false},{"column":14,"file":"D:\\Programacao\\nodebb\\node_modules\\async\\dist\\async.js","function":"nextTask","line":5324,"method":null,"native":false},{"column":5,"file":"D:\\Programacao\\nodebb\\node_modules\\async\\dist\\async.js","function":"Object.waterfall","line":5334,"method":"waterfall","native":false},{"column":8,"file":"D:\\Programacao\\nodebb\\src\\start.js","function":"Object.start.start","line":19,"method":"start","native":false},{"column":25,"file":"D:\\Programacao\\nodebb\\app.js","function":null,"line":90,"method":null,"native":false},{"column":30,"file":"module.js","function":"Module._compile","line":653,"method":"_compile","native":false},{"column":10,"file":"module.js","function":"Module._extensions..js","line":664,"method":".js","native":false}]}
    2019-05-19T20:55:39.562Z [4567/11464] - error: Cannot create property 'host' on string 'C:\Program Files\MongoDB\Server\4.0\bin'
    TypeError: Cannot create property 'host' on string 'C:\Program Files\MongoDB\Server\4.0\bin'
        at Object.mongoModule.getConnectionString (D:\Programacao\nodebb\src\database\mongo.js:77:14)
        at Object.mongoModule.connect (D:\Programacao\nodebb\src\database\mongo.js:143:31)
        at Object.mongoModule.init (D:\Programacao\nodebb\src\database\mongo.js:116:14)
        at D:\Programacao\nodebb\src\start.js:21:7
        at nextTask (D:\Programacao\nodebb\node_modules\async\dist\async.js:5324:14)
        at Object.waterfall (D:\Programacao\nodebb\node_modules\async\dist\async.js:5334:5)
        at Object.start.start (D:\Programacao\nodebb\src\start.js:19:8)
        at Object.<anonymous> (D:\Programacao\nodebb\app.js:90:25)
        at Module._compile (module.js:653:30)
        at Object.Module._extensions..js (module.js:664:10)
    2019-05-19T20:55:42.684Z [4567/11464] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    3 restarts in 10 seconds, most likely an error on startup. Halting.
    
    
  • @Reinaldo-Borin said in NodeBB wont start, Windows:

    but Ikkyy-P is my account administrator, i only have this account on my windows.

    Well you have two different account owners in there and the local Administrator account seems to be the one causing the problem. Maybe everything should be owned by a third account and we just don't know what that is?

  • @scottalanmiller Hahha Looks like an account created by Mongo i guess.. i really idk what is happening here, going to format my windows, maybe.

    Anyway, thanks for your help until now 😄

  • @Reinaldo-Borin said in NodeBB wont start, Windows:

    @scottalanmiller Hahha Looks like an account created by Mongo i guess.. i really idk what is happening here, going to format my windows, maybe.

    Anyway, thanks for your help until now 😄

    If you are going to start over, do this on Linux, Windows is a really bad choice for this. High cost, low performance, but most importantly, going to cause so much unneeded complexity and problems like this. It's just far less known and there is so much more to go wrong. Doing this on Linux is so easy, and so well known.

  • @Reinaldo-Borin that error is likely completely different. I've not seen that, though. That one looks like something in the code.

  • You can run NodeBB on Windows just as fine as on Linux:
    https://community.nodebb.org/topic/12335/nodebb-on-windows-10-2016

    That Windows is slower or more complex is utter nonsense. NodeBB runs great on Debian, Windows 2019 or FreeBSD. Only difference is higher RAM usage on Windows and FreeBSD handles networking better so the forum feels more responsive under load. Setup complexity is pretty much the same on each platforms if you know what you are doing.

  • @Pummelchen said in NodeBB wont start, Windows:

    Setup complexity is pretty much the same on each platforms if you know what you are doing.

    The problem is complexity is defined by how much you need to know to know what you are doing, and tasks like this on Windows generally require you to know more making it more complex. On Linux it is trivial to follow a guide or script that will do all of the work for you.

    This example shows how close we get to a one liner to install it on Linux. Can you do something similar on Windows? Maybe, but the effort to do so isn't "so easy that we write it up regularly whenever we do it because it's that easy."

    No "Linux" knowledge really even needed. Just fire it up, copy the commands, and done. Just acquiring the software on Windows is a bit more complex.

  • @Pummelchen said in NodeBB wont start, Windows:

    Only difference is higher RAM usage on Windows

    That's not a small factor. But some timing tests would be nice to see on identical setups (RAM, CPU, Node version, load) how Windows and Linux compare in performance. Windows also has the complexity of licensing. A lot of people aren't aware that Windows 10 can't host the MongoDB server as it violates the EULA (in most markets.) It's trivial to just say "always have to use Windows Server", but it's just one more step that's needed, as is often the case with Windows. Things you get to bypass elsewhere have things like "we just have to mention", or whatever. Or if you are on a VPS, there is normally a pretty significant additional charge both because you need more RAM or the Windows licensing, or both.

  • Not a NodeBB specific test, but a NodeJS one, and just an isolated example, but suggests that Node at least is far faster on Linux. Now keep in mind this is old so pretty much worthless as a test. I'm interested to do some real testing, though.

    http://josephbill.com/node-js-performance-benchmark-on-windows-vs-linux/


Suggested Topics


  • 0 Votes
    2 Posts
    514 Views

    @KarnaKoding Use mongodb. Migrating db's is a pita. You've a steep climb ahead of you. Good luck and have fun.

  • 1 Votes
    6 Posts
    2k Views

    Hi guys, sorry I can't be of any help. I don't have any experience with IIS, but you seem to be on the right track, the client's IP should be forwarded to the node backend by your webserver.

  • 0 Votes
    3 Posts
    1k Views

    Yes, you are right, thank you. My redis.conf file was broken. As usual, at the end of the day redis error finds you ! Finally setup is done.

    My nodebb setup experience = Hey nodebb ! if you want to grow you have to support MySQL. It isn't important how fast redis is because it does not give confidence any time.

    Best Regards,

  • -1 Votes
    21 Posts
    5k Views

    Oops. Didn't see this one. Try what @pitaj said and hopefully it should work. IIRC the hooks in that plugin should still be valid in the current release, I just haven't updated the nbb package manager version for 0.8.2 yet

  • 1 Votes
    1 Posts
    1k Views

    Hi guys!

    I have previous 0.5.0-2 version of forum on Heroku. It works fine. When I updated NodeBB to 0.6.1 version it crashed with error. Any ideas?

    2015-04-30T06:31:05.151177+00:00 heroku[web.1]: State changed from crashed to starting
    2015-04-30T06:31:12.946261+00:00 heroku[web.1]: Starting process with command npm start
    2015-04-30T06:31:16.159469+00:00 app[web.1]: Detected 512 MB available memory, 512 MB limit per process (WEB_MEMORY)
    2015-04-30T06:31:16.159494+00:00 app[web.1]: Recommending WEB_CONCURRENCY=1
    2015-04-30T06:31:16.817884+00:00 app[web.1]:
    2015-04-30T06:31:16.817890+00:00 app[web.1]: > [email protected] start /app
    2015-04-30T06:31:16.817892+00:00 app[web.1]: > ./nodebb start
    2015-04-30T06:31:16.817893+00:00 app[web.1]:
    2015-04-30T06:31:16.854535+00:00 app[web.1]: sh: 1: ./nodebb: Permission denied
    2015-04-30T06:31:16.873738+00:00 app[web.1]: npm ERR! Linux 3.13.0-49-generic
    2015-04-30T06:31:16.878037+00:00 app[web.1]: npm ERR! code ELIFECYCLE
    2015-04-30T06:31:16.878041+00:00 app[web.1]: npm ERR! [email protected] start: ./nodebb start
    2015-04-30T06:31:16.878043+00:00 app[web.1]: npm ERR! Exit status 126
    2015-04-30T06:31:16.878044+00:00 app[web.1]: npm ERR!
    2015-04-30T06:31:16.878046+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script './nodebb start'.
    2015-04-30T06:31:16.878048+00:00 app[web.1]: npm ERR! This is most likely a problem with the nodebb package,
    2015-04-30T06:31:16.878049+00:00 app[web.1]: npm ERR! not with npm itself.
    2015-04-30T06:31:16.878050+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
    2015-04-30T06:31:16.878052+00:00 app[web.1]: npm ERR! ./nodebb start
    2015-04-30T06:31:16.878054+00:00 app[web.1]: npm ERR! You can get their info via:
    2015-04-30T06:31:16.878693+00:00 app[web.1]: npm ERR! npm owner ls nodebb
    2015-04-30T06:31:16.878696+00:00 app[web.1]: npm ERR! There is likely additional logging output above.
    2015-04-30T06:31:16.889120+00:00 app[web.1]:
    2015-04-30T06:31:16.899848+00:00 app[web.1]: npm ERR! /app/npm-debug.log
    2015-04-30T06:31:16.866363+00:00 app[web.1]:
    2015-04-30T06:31:16.874577+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
    2015-04-30T06:31:16.875101+00:00 app[web.1]: npm ERR! node v0.12.2
    2015-04-30T06:31:16.876089+00:00 app[web.1]: npm ERR! npm v2.7.4
    2015-04-30T06:31:16.897668+00:00 app[web.1]: npm ERR! Please include the following file with any support request:
    2015-04-30T06:31:17.925842+00:00 heroku[web.1]: Process exited with status 1
    2015-04-30T06:31:17.938969+00:00 heroku[web.1]: State changed from starting to crashed