# NodeBB wont start, 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

• 2019-05-19T20:55:39.244Z [4567/11464] - [32minfo[39m: Initializing NodeBB v1.11.2 http://localhost:4567
2019-05-19T20:55:39.561Z [4567/11464] - [31merror[39m: 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 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] - [31merror[39m: 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 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] - [32minfo[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised.
3 restarts in 10 seconds, most likely an error on startup. Halting.



• 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

• @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/

3

3

33

6

4
| |