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 -
@djcyry follow this docs
Under this section... run the second option
-
@pichalite said:
@djcyry follow this docs
Under this section... run the second option
Now , another problem , after upgrade and fix this , i have upgrate booth forums , but nodebb.es :
When i enter to a topic my database goes offline i think , beacause i have this in ssh terminal :Look at this : https://i.imgur.com/AVlOT8t.png , also after reboot/reload/restart its starting slowly ,
later than other forum ...
21/12 22:38 [768] - error: TypeError: Converting circular structure to JSON
at Object.stringify (native)
at ServerResponse.json (/root/nodebb_es/node_modules/express/lib/response.js:242:19)
at ServerResponse.res.render (/root/nodebb_es/src/middleware/render.js:42:16)
at /root/nodebb_es/src/controllers/topics.js:287:8
at fireFilterHook (/root/nodebb_es/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/root/nodebb_es/src/plugins/hooks.js:70:5)
at /root/nodebb_es/src/controllers/topics.js:283:11
at /root/nodebb_es/node_modules/async/lib/async.js:52:16
at Object._onImmediate (/root/nodebb_es/node_modules/async/lib/async.js:1201:34)
at processImmediate [as _immediateCallback] (timers.js:354:15)
TypeError: Converting circular structure to JSON
at Object.stringify (native)
at ServerResponse.json (/root/nodebb_es/node_modules/express/lib/response.js:242:19)
at ServerResponse.res.render (/root/nodebb_es/src/middleware/render.js:42:16)
at /root/nodebb_es/src/controllers/topics.js:287:8
at fireFilterHook (/root/nodebb_es/src/plugins/hooks.js:86:11)
at Object.Plugins.fireHook (/root/nodebb_es/src/plugins/hooks.js:70:5)
at /root/nodebb_es/src/controllers/topics.js:283:11
at /root/nodebb_es/node_modules/async/lib/async.js:52:16
at Object._onImmediate (/root/nodebb_es/node_modules/async/lib/async.js:1201:34)
at processImmediate [as _immediateCallback] (timers.js:354:15)
21/12 22:38 [768] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
21/12 22:38 [768] - info: [app] Database connection closed.
21/12 22:38 [768] - info: [app] Web server closed to connections.
21/12 22:38 [768] - info: [app] Shutdown complete.
[cluster] Child Process (768) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
21/12 22:38 [782] - info: Time: Mon Dec 21 2015 22:38:13 GMT+0000 (UTC)
21/12 22:38 [782] - info: Initializing NodeBB v0.9.3
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
Warning: Redis server does not require a password, but a password was supplied.
21/12 22:38 [782] - warn: [plugins/nodebb-plugin-sso-twitter] Hookfilter:user.delete
is deprecated, please use an alternative
21/12 22:38 [782] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
21/12 22:38 [782] - warn: [plugins/nodebb-plugin-ns-awards] Hookfilter:user.delete
is deprecated, please use an alternative21/12 22:38 [782] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run
./nodebb reset -p PLUGINNAME
to disable it.- nodebb-plugin-recent-cards
- nodebb-plugin-sso-twitter
- nodebb-plugin-sso-google
- nodebb-plugin-sso-facebook
- nodebb-plugin-custom-pages
21/12 22:38 [782] - info: [plugins/spam-be-gone] Settings loaded
21/12 22:38 [782] - info: NodeBB Ready
21/12 22:38 [782] - info: Enabling 'trust proxy'
21/12 22:38 [782] - info: NodeBB is now listening on: 0.0.0.0:4568
And in the dev mode , same errors :
22/12 08:13 [3358] - 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
22/12 08:13 [3358] - error: NodeBB address in use, exiting...
[cluster] Child Process (3358) has exited (code: 0, signal: null)
root@euve102658:~/nodebb_es#
-