Nodebb on openshift giving 503 server not availiable
-
Hi, I was hosting my app with no errors on openshift with cloudflare. But since cloudflare doesn't support websocket, I tried to change the nameserver back to my godaddy default without stopping the openshift application. Now its giving me 503 no server is availiable to handle the request.
I look into the logs and i got this:
==> app-root/logs/haproxy.log <==[ALERT] 058/101725 (13990) : proxy 'express' has no server available!
[WARNING] 058/101726 (13990) : Server express/local-gear is DOWN for maintenance.
[WARNING] 058/101750 (13990) : Server express/local-gear is UP (leaving maintenance).
[WARNING] 058/101751 (13990) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 503, info: "Service
Unavailable", check duration: 41ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in q
ueue.
[ALERT] 058/101751 (13990) : proxy 'express' has no server available!
[WARNING] 058/104103 (13990) : Server express/local-gear is DOWN for maintenance.
[WARNING] 058/104103 (58525) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 058/104103 (58525) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 058/104103 (58525) : Server express/local-gear is DOWN, reason: Layer4 connection problem, info: "Connection r
efused", check duration: 0ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 058/104103 (58525) : proxy 'express' has no server available!==> app-root/logs/nodejs.log <==
npm info prestart [email protected]
npm info start [email protected]
[email protected] start /var/lib/openshift/56cf01907628e1b5050000e7/app-root/runtime/repo
./nodebb start
Starting NodeBB
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
"./nodebb restart" to restart NodeBB
npm info poststart [email protected]
npm info okMy nodebb log:
28/2 12:31 [330551] - error: Error: Cannot find module './properties/azimuth'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at module.exports (/var/lib/openshift/56cf01907628e1b5050000e7/app-root/runtime/repo/node_modules/nodebb-plugin-rss/node_modules/to-markdown/node_modules/jsdom/node_modules/cssstyle/lib/properties.js:14:19)
at Object.<anonymous> (/var/lib/openshift/56cf01907628e1b5050000e7/app-root/runtime/repo/node_modules/nodebb-plugin-rss/node_modules/to-markdown/node_modules/jsdom/node_modules/cssstyle/lib/CSSStyleDeclaration.js:230:24)
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)
28/2 12:31 [330551] - warn: [plugins] Unable to parse library for: nodebb-plugin-rss
video starten
28/2 12:31 [330551] - error: [plugins/emoji] nodebb-plugin-emoji-extended is not installed. nodebb-plugin-emoji-apple depends on it.
28/2 12:31 [330551] - error: Error: Cannot find module 'nodebb-plugin-emoji-extended/lib/sets/controller'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/lib/openshift/56cf01907628e1b5050000e7/app-root/runtime/repo/node_modules/nodebb-plugin-emoji-static/lib/sets/controller.js:6:16)
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 Module.require (module.js:364:17)
28/2 12:31 [330551] - warn: [plugins] Unable to parse library for: nodebb-plugin-emoji-static
28/2 12:31 [330551] - warn: [plugins/nodebb-plugin-sso-github] Hookfilter:user.delete
is deprecated, please use an alternative
28/2 12:31 [330551] - warn: [plugins/nodebb-plugin-sso-google] Hookfilter:user.delete
is deprecated, please use an alternative
28/2 12:31 [330551] - warn: [plugins/nodebb-plugin-sso-twitter] Hookfilter:user.delete
is deprecated, please use an alternative
28/2 12:31 [330551] - info: [Newsletter] Initializing Newsletter...
28/2 12:31 [330551] - info: [User-Invitations] Initializing User-Invitations...
28/2 12:31 [330551] - info: [plugins/spam-be-gone] Settings loaded
28/2 12:31 [330551] - info: [User-Invitations] Synced settings: defaultInvitatio ns=100, restrictRegistration=0, inviteGroup=registered-users, invitedUsers=[]
28/2 12:31 [330551] - info: NodeBB Ready
28/2 12:31 [330551] - info: Enabling 'trust proxy'
28/2 12:31 [330551] - info: NodeBB is now listening on: 127.7.102.1:8080When i did rhc port-forward -a nodebb. I got this:
Service Local OpenShift
haproxy 127.0.0.1:8080 => 127.7.102.2:8080
haproxy 127.0.0.1:8081 => 127.7.102.3:8080
mongodb 127.0.0.1:37986 => 56cf022d0c1e6642dd000142-hackthroneht.rhcloud.com:37986
node 127.0.0.1:8082 => 127.7.102.1:8080Anyone got any solution for this? I think i switched on maintenance mode before this error occurred.
-
You can change your domain settings without touching cloud GUI or CLI. CloudFlare is still taking care of traffic. You should disable it before testing.
As I said on GitHub please wait for a fix to the NodeBB on OpenShift guide.
In the meantime look here:
http://nodebb-hackthrone.rhcloud.com/haproxy-status -
@nhl.pl Thanks for the reply. Yes, http://nodebb-hackthrone.rhcloud.com/haproxy-status is working. But it was my test and my real app is hosted at http://nodebb-hackthroneht.rhcloud.com/haproxy-status