Can't start using ./node start but working with node app.js
-
Hello Everyone,
I have a weird issue, i can't start my nodebb with the command ./nodebb start but its working just fine with node app.js
It seems that when i use the ./nodebb start command there is an issue with my config.json, like it can't access the file.
Because in my output.log i have this :
url.js:107
throw new TypeError("Parameter 'url' must be a string, not " + typeof url)Its also working with ./nodebb dev
But i noticed something weird : info: NodeBB is now listening on: 0.0.0.0:4567
However my conf seems ok. (i tried running ./nodebb setup)
What am i missing?
-
Done,
Nothing has changed
i don't understand, i tried editing the config.json to remove the port.
No change, i rerun the setup > it confirm that the port is correctly removed because the defaut option is http://mydomain.fr for the url
but when i start nodebb with ./nodebb dev i still see :
0.0.0.0:4567 (is this normal?)
-
Yep 0.0.0.0 is a normal thing.
-
Ok..
I dont get it then..
Here my output.log
16/8 03:55 [32624] - info: NodeBB Ready
16/8 03:55 [32624] - info: NodeBB is now listening on: 0.0.0.0:4567
Clustering enabled: Spinning up 1 process(es).16/8 04:01 [32624] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
16/8 04:01 [32624] - info: [app] Database connection closed.
16/8 04:01 [32624] - info: [app] Web server closed to connections.
16/8 04:01 [32624] - info: [app] Shutdown complete.
[cluster] Child Process (32624) has exited (code: 0, signal: null)url.js:107
throw new TypeError("Parameter 'url' must be a string, not " + typeof url)
^
TypeError: Parameter 'url' must be a string, not undefined
at Url.parse (url.js:107:11)
at Object.urlParse [as parse] (url.js:101:5)
at start (/home/web/nodebb/nodebb/app.js:118:22)
at Object.<anonymous> (/home/web/nodebb/nodebb/app.js:67:2)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
[cluster] Child Process (724) has exited (code: 8, signal: null)
[cluster] Spinning up another process... -
Nope i deleted the corrupted install, the only thing i have is the content of my output.log which i posted earlier.
There was this error :
TypeError: Parameter 'url' must be a string, not undefined
this error was repeating itself 3 or 4 times then the server crashed.