NodeBB wont start, Windows
-
@PitaJ MongoDB server version: 4.0.5
-
I did a test auth with Studio 3D, and worked.. only doenst work with nodebb start.
-
I still with the problem
-
You have no mongo username/password setup!
This means your config doesn't have the username/password, I am guessing there is a problem with reading your config.json since the config.json you showed does have those fields.
NodeBB/src/database/mongo.js at master 路 NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/src/database/mongo.js at master 路 NodeBB/NodeBB
GitHub (github.com)
-
Hey @baris thanks for the answer, but idk how i can fix it.
-
@Reinaldo-Borin said in NodeBB wont start, Windows:
Hey @baris thanks for the answer, but idk how i can fix it.
Give us an ls -lah on that directory if you can.
-
@scottalanmiller said in NodeBB wont start, Windows:
ls -lah
Does has a similar command for windows?
EDIT:
dir -
@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.
-
-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
-
2019-05-19T20:55:39.244Z [4567/11464] - [32minfo[39m: Initializing NodeBB v1.11.2 http://localhost:4567 2019-05-19T20:55:39.508Z [4567/11464] - [33mwarn[39m: You have no mongo username/password setup! 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 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] - [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 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] - [32minfo[39m: [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-2016That 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.