Error after update to 0.9.3
-
@pichalite said:
@djcyry I was only referring to this issue.... "EADDRINUSE"
Yes , and i get the same error , i dont know why .
21/12 21:40 [742] - info: Enabling 'trust proxy'
21/12 21:40 [742] - error: Error: listen EADDRINUSE
at errnoException (net.js:905:11)
at Server._listen2 (net.js:1043:14)
at listen (net.js:1065:10)
at Server.listen (net.js:1139:5)
at listen (/root/nodebb_es/src/webserver.js:180:17)
at /root/nodebb_es/src/webserver.js:57:3
at EventEmitter.<anonymous> (/root/nodebb_es/src/emitter.js:17:5)
at EventEmitter.emit (events.js:92:17)
at /root/nodebb_es/src/meta/css.js14
at /root/nodebb_es/node_modules/async/lib/async.js:721:13
21/12 21:40 [742] - error: NodeBB address in use, exiting...
[cluster] Child Process (742) has exited (code: 0, signal: null) -
@pichalite said:
@djcyry what do you get when you run this?
netstat -tulpn
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 420/sshd
tcp 0 0 0.0.0.0:4567 0.0.0.0:* LISTEN 690/nodejs
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 556/master
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 576/redis-server 12
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 456/nginx
tcp6 0 0 :::80 :::* LISTEN 456/nginx -
@pichalite said:
@djcyry can you paste the contents of your config.json?
{
"url": "http://www.nodebb.es",
"secret": "86df865a-c4a2-4060-be42-be1cdbfddddddddd",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "pass",
"database": "1"
}
} -
@djcyry well that's the problem... you don't have a port specified in your config.json
You already have hercio.net running on port 4567. Running NodeBB without a port setting in config.json will try to run it on 4567 and it's already being used in your case.
Add this to your config.json
"port": "4568"
-
@pichalite said:
@djcyry well that's the problem... you don't have a port specified in your config.json
You already have hercio.net running on port 4567. Running NodeBB without a port setting in config.json will try to run it on 4567 and it's already being used in your case.
Add this to your config.json
"port": "4568"
/root/nodebb_es/node_modules/nconf/lib/nconf/stores/file.js:153
throw new Error("Error parsing your configuration file: [" + this.file + '
^
Error: Error parsing your configuration file: [/root/nodebb_es/config.json]: Unexpected string
at File.loadSync (/root/nodebb_es/node_modules/nconf/lib/nconf/stores/file.js:153:11)
at Provider.add (/root/nodebb_es/node_modules/nconf/lib/nconf/provider.js:137:23)
at Provider.file (/root/nodebb_es/node_modules/nconf/lib/nconf/provider.js:63:15)
at Object.<anonymous> (/root/nodebb_es/loader.js:14:20)
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) -
@pichalite said:
@djcyry what does your new config.json look like?
{
"url": "http://www.nodebb.es",
"port": "4568"
"secret": "86df865a-c4a2-4060-be42-be1cdbf1b3cd",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "pass",
"database": "1"
}}
-
-
@pichalite said:
@djcyry not sure what steps you took to upgrade..... I had two installations of NodeBB running on the same machine with different ports and never had this issue with upgrades (had other issues but not this one).
In this case , i need to upgrade the second forum .
What is the best way - commands to update it ? from 0.9.2 to 0.9.3 ? thanks