Hi. I got the problem, that my NodeBB forum always tries to reconnect.
I get the following message:
Looks like your connection to NodeBB was lost, please wait while we try to reconnect.
OS: ‪Ubuntu 16.04.3 LTS‬
Node version: 8.6.0
NodeJS version: 8.60
MongoDB version: v3.2.17
Apache version: 2.4.18 (Ubuntu)
My config.json for Nodebb:
{
"url": "http://localhost:4800",
"secret": "XXXXXXXXXXXXXXXXX",
"database": "mongo",
"port": 4800,
"mongo": {
"host": "127.0.0.1",
"port": "27017",
"username": "nodebb",
"password": "XXXXXXXXXXXXXXXXX",
"database": "nodebb"
}
}
My Apache2 CUSTOM.conf file (proxy to the NodeBB application), looks like this:
ProxyPass / http://localhost:4800/
The failing request:
https://mywebsite.com/socket.io/?EIO=3&transport=polling&t=LxYcD5G
I could not find out which other application may uses this port. I tried the default port 4567 as well, same error.
How can I fix this or which information is needed to figure out what the problem actually is ?
Error log (./nodebb dev):
- 3/10 16:11:32 [1757] - verbose: * using configuration stored in: /root/nodebb/config.json
3/10 16:11:32 [1757] - info: Initializing NodeBB v1.6.0 http://localhost:4800
3/10 16:11:32 [1757] - verbose: * using mongo store at 127.0.0.1:27017
3/10 16:11:32 [1757] - verbose: * using themes stored in: /root/nodebb/node_modules
3/10 16:11:32 [1757] - verbose: [minifier] utilizing a maximum of 3 additional threads
3/10 16:11:32 [1757] - verbose: Checking dependencies for outdated modules
3/10 16:11:33 [1757] - verbose: [notifications.init] Registering jobs.
3/10 16:11:33 [1757] - verbose: [user/jobs] (Re-)starting user jobs...
3/10 16:11:33 [1757] - verbose: [user/jobs] Starting job (digest.daily)
3/10 16:11:33 [1757] - verbose: [user/jobs] Starting job (digest.weekly)
3/10 16:11:33 [1757] - verbose: [user/jobs] Starting job (digest.monthly)
3/10 16:11:33 [1757] - verbose: [user/jobs] Starting job (reset.clean)
3/10 16:11:33 [1757] - verbose: [user/jobs] 4 jobs started
3/10 16:11:33 [1757] - info: [themes] Using theme nodebb-theme-persona
3/10 16:11:33 [1757] - verbose: [plugins] Initializing plugins system
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
3/10 16:11:33 [1757] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extended
3/10 16:11:33 [1757] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-one
3/10 16:11:33 [1757] - info: [plugins] Plugins OK
3/10 16:11:33 [1757] - verbose: [hotswap] Router with id plugins
replaced successfully
3/10 16:11:33 [1757] - verbose: [plugins] All plugins reloaded and rerouted
3/10 16:11:33 [1757] - verbose: [hotswap] Router with id auth
replaced successfully
3/10 16:11:33 [1757] - info: Routes added
3/10 16:11:33 [1757] - verbose: [meta/blacklist] Loading 0 blacklist rules
3/10 16:11:33 [1757] - info: NodeBB Ready
3/10 16:11:33 [1757] - info: Enabling 'trust proxy'
3/10 16:11:33 [1757] - error: Error: listen EADDRINUSE 0.0.0.0:4800
at Object._errnoException (util.js:1019:11)
at _exceptionWithHostPort (util.js:1041:20)
at Server.setupListenHandle [as _listen2] (net.js:1344:14)
at listenInCluster (net.js:1385:12)
at doListen (net.js:1494:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
3/10 16:11:33 [1757] - error: NodeBB address in use, exiting...
[cluster] Child Process (1757) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
3/10 16:11:33 [1770] - verbose: * using configuration stored in: /root/nodebb/config.json
3/10 16:11:33 [1770] - info: Initializing NodeBB v1.6.0 http://localhost:4800
3/10 16:11:33 [1770] - verbose: * using mongo store at 127.0.0.1:27017
3/10 16:11:33 [1770] - verbose: * using themes stored in: /root/nodebb/node_modules
3/10 16:11:34 [1770] - verbose: [minifier] utilizing a maximum of 3 additional threads
3/10 16:11:34 [1770] - verbose: Checking dependencies for outdated modules
3/10 16:11:34 [1770] - verbose: [notifications.init] Registering jobs.
3/10 16:11:34 [1770] - verbose: [user/jobs] (Re-)starting user jobs...
3/10 16:11:34 [1770] - verbose: [user/jobs] Starting job (digest.daily)
3/10 16:11:34 [1770] - verbose: [user/jobs] Starting job (digest.weekly)
3/10 16:11:34 [1770] - verbose: [user/jobs] Starting job (digest.monthly)
3/10 16:11:34 [1770] - verbose: [user/jobs] Starting job (reset.clean)
3/10 16:11:34 [1770] - verbose: [user/jobs] 4 jobs started
3/10 16:11:34 [1770] - info: [themes] Using theme nodebb-theme-persona
3/10 16:11:34 [1770] - verbose: [plugins] Initializing plugins system
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
3/10 16:11:34 [1770] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
3/10 16:11:34 [1770] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
3/10 16:11:35 [1770] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extended
3/10 16:11:35 [1770] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-one
3/10 16:11:35 [1770] - info: [plugins] Plugins OK
3/10 16:11:35 [1770] - verbose: [hotswap] Router with id plugins
replaced successfully
3/10 16:11:35 [1770] - verbose: [plugins] All plugins reloaded and rerouted
3/10 16:11:35 [1770] - verbose: [hotswap] Router with id auth
replaced successfully
3/10 16:11:35 [1770] - info: Routes added
3/10 16:11:35 [1770] - verbose: [meta/blacklist] Loading 0 blacklist rules
3/10 16:11:35 [1770] - info: NodeBB Ready
3/10 16:11:35 [1770] - info: Enabling 'trust proxy'
3/10 16:11:35 [1770] - error: Error: listen EADDRINUSE 0.0.0.0:4800
at Object._errnoException (util.js:1019:11)
at _exceptionWithHostPort (util.js:1041:20)
at Server.setupListenHandle [as _listen2] (net.js:1344:14)
at listenInCluster (net.js:1385:12)
at doListen (net.js:1494:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
3/10 16:11:35 [1770] - error: NodeBB address in use, exiting...
[cluster] Child Process (1770) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
3/10 16:11:35 [1783] - verbose: * using configuration stored in: /root/nodebb/config.json
3/10 16:11:35 [1783] - info: Initializing NodeBB v1.6.0 http://localhost:4800
3/10 16:11:35 [1783] - verbose: * using mongo store at 127.0.0.1:27017
3/10 16:11:35 [1783] - verbose: * using themes stored in: /root/nodebb/node_modules
3/10 16:11:36 [1783] - verbose: [minifier] utilizing a maximum of 3 additional threads
3/10 16:11:36 [1783] - verbose: Checking dependencies for outdated modules
3/10 16:11:36 [1783] - verbose: [notifications.init] Registering jobs.
3/10 16:11:36 [1783] - verbose: [user/jobs] (Re-)starting user jobs...
3/10 16:11:36 [1783] - verbose: [user/jobs] Starting job (digest.daily)
3/10 16:11:36 [1783] - verbose: [user/jobs] Starting job (digest.weekly)
3/10 16:11:36 [1783] - verbose: [user/jobs] Starting job (digest.monthly)
3/10 16:11:36 [1783] - verbose: [user/jobs] Starting job (reset.clean)
3/10 16:11:36 [1783] - verbose: [user/jobs] 4 jobs started
3/10 16:11:36 [1783] - info: [themes] Using theme nodebb-theme-persona
3/10 16:11:36 [1783] - verbose: [plugins] Initializing plugins system
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
3/10 16:11:36 [1783] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extended
3/10 16:11:36 [1783] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-one
3/10 16:11:36 [1783] - info: [plugins] Plugins OK
3/10 16:11:36 [1783] - verbose: [hotswap] Router with id plugins
replaced successfully
3/10 16:11:36 [1783] - verbose: [plugins] All plugins reloaded and rerouted
3/10 16:11:36 [1783] - verbose: [hotswap] Router with id auth
replaced successfully
3/10 16:11:36 [1783] - info: Routes added
3/10 16:11:36 [1783] - verbose: [meta/blacklist] Loading 0 blacklist rules
3/10 16:11:36 [1783] - info: NodeBB Ready
3/10 16:11:36 [1783] - info: Enabling 'trust proxy'
3/10 16:11:36 [1783] - error: Error: listen EADDRINUSE 0.0.0.0:4800
at Object._errnoException (util.js:1019:11)
at _exceptionWithHostPort (util.js:1041:20)
at Server.setupListenHandle [as _listen2] (net.js:1344:14)
at listenInCluster (net.js:1385:12)
at doListen (net.js:1494:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
3/10 16:11:36 [1783] - error: NodeBB address in use, exiting...
[cluster] Child Process (1783) has exited (code: 1, signal: null)
[cluster] Spinning up another process...
3/10 16:11:37 [1798] - verbose: * using configuration stored in: /root/nodebb/config.json
3/10 16:11:37 [1798] - info: Initializing NodeBB v1.6.0 http://localhost:4800
3/10 16:11:37 [1798] - verbose: * using mongo store at 127.0.0.1:27017
3/10 16:11:37 [1798] - verbose: * using themes stored in: /root/nodebb/node_modules
3/10 16:11:38 [1798] - verbose: [minifier] utilizing a maximum of 3 additional threads
3/10 16:11:38 [1798] - verbose: Checking dependencies for outdated modules
3/10 16:11:38 [1798] - verbose: [notifications.init] Registering jobs.
3/10 16:11:38 [1798] - verbose: [user/jobs] (Re-)starting user jobs...
3/10 16:11:38 [1798] - verbose: [user/jobs] Starting job (digest.daily)
3/10 16:11:38 [1798] - verbose: [user/jobs] Starting job (digest.weekly)
3/10 16:11:38 [1798] - verbose: [user/jobs] Starting job (digest.monthly)
3/10 16:11:38 [1798] - verbose: [user/jobs] Starting job (reset.clean)
3/10 16:11:38 [1798] - verbose: [user/jobs] 4 jobs started
3/10 16:11:38 [1798] - info: [themes] Using theme nodebb-theme-persona
3/10 16:11:38 [1798] - verbose: [plugins] Initializing plugins system
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
3/10 16:11:38 [1798] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-extended
3/10 16:11:38 [1798] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-one
3/10 16:11:38 [1798] - info: [plugins] Plugins OK
3/10 16:11:38 [1798] - verbose: [hotswap] Router with id plugins
replaced successfully
3/10 16:11:38 [1798] - verbose: [plugins] All plugins reloaded and rerouted
3/10 16:11:38 [1798] - verbose: [hotswap] Router with id auth
replaced successfully
3/10 16:11:38 [1798] - info: Routes added
3/10 16:11:38 [1798] - verbose: [meta/blacklist] Loading 0 blacklist rules
3/10 16:11:38 [1798] - info: NodeBB Ready
3/10 16:11:38 [1798] - info: Enabling 'trust proxy'
3/10 16:11:38 [1798] - error: Error: listen EADDRINUSE 0.0.0.0:4800
at Object._errnoException (util.js:1019:11)
at _exceptionWithHostPort (util.js:1041:20)
at Server.setupListenHandle [as _listen2] (net.js:1344:14)
at listenInCluster (net.js:1385:12)
at doListen (net.js:1494:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
3/10 16:11:38 [1798] - error: NodeBB address in use, exiting...
3 restarts in 10 seconds, most likely an error on startup. Halting.