Cracked it! I had all this nonsense in my nginx from googling around. here is what worked.
location /forum { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-AUTHENTICATION, X-IP, Accept'; add_header 'Access-Control-Max-Age' 1728000; add_header 'Content-Type' 'text/plain charset=UTF-8'; add_header 'Content-Length' 0; return 204; } if ($request_method = 'POST') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-AUTHENTICATION, X-IP, Accept'; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-AUTHENTICATION, X-IP, Accept'; } add_header 'Access-Control-Allow-Credentials' 'true'; add_header X-Frame-Options "SAMEORIGIN"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; # proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; proxy_pass http://127.0.0.1:4567; # no subfolder defined here proxy_set_header Host $host; # MAGIC proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }Site won't load for some reason...
-
(Didn't know where to post there, could be moved to
Bugs
)
Okay, so out of no where my site went dead.
I checked to see what was going on and tried usingforever restart app.js
... well that didn't work.
I checked to see if it was forever, so I stopped it using forever and used./nodebb dev
and it hangs here;[email protected]:/home/xxxx# node app
info: NodeBB v0.3.2 Copyright (C) 2013 DesignCreatePlay Inc.
info: This program comes with ABSOLUTELY NO WARRANTY.
info: This is free software, and you are welcome to redistribute it under certain conditions.
info:
info: Time: Sun Mar 09 2014 00:09:36 GMT-0500 (EST)
info: Initializing NodeBB v0.3.2
info: * using configuration stored in: /home/xxxx/config.json
info: * using redis store at 127.0.0.1:6379
info: * using themes stored in: /home/xxxx/node_modules
info: Enabling 'trust proxy'
And it stops there. It won't let me stop it, it won't let me close it. It doesn't even run at that point either.
Not sure what to do now.
(It can't be the database because I just setup a new one to check.) -
-
Yep, related issue. Hmm WTF @ 99% CPU ...
It still won't load because the CPU is too high. It works though nonetheless.
System information disabled due to load higher than 1.0
UPDATE: Okay now it's down to 70%. Still a bit high when before it was at a low 12%.
-
@trevor
kill -9
the process, update to latest, and run it again. I've just temporarily commented it out. -
-
I hope it doesn't happen every Sunday
Possibly only at daylight time switches, though even twice a year is pretty bad.