I am running Ghost in development mode on FastComet hosting company. I dont know why but suddenly when i try to access my website I recieve the error
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
If I do ghost restart it says that ghost is turned off, so it’ll turn on and everything comes back to normal. But after some minutes the 503 error comes back.
Does anyone now how can I find out the cause?
Related
I have my WordPress project running in the AWS EC2 instance. I have my DNS managed in Cloudflare and it is proxied. When I did the setup of the project in AWS instance, for some days git pull and push and all the APIs were working fine. But suddenly after some time, I was not able to take the pull on the server due to a timeout issue.
Also from the WordPress form when I submit the form it should call the API but it gives me the 504 gateway timeout error.
So every time when I need to take a pull I have to reboot the server and then for 5 mins. everything works fine and then again it gives me the same error.
What should I do with Cloudflare? As per my knowledge, there must be something from Cloudflare as on the server-side I have tried everything for this kind of problem.
I am following https://github.com/bigchaindb/bigchaindb/blob/v2.0.0b9/docs/server/source/simple-deployment-template/set-up-nginx.md
I have Added SSL certificate to bleocean.com
and it was redirecting to my NGINX server page when i was reaching https://bleocean.com.
When I updated NGINX.config file to contents of https://github.com/bigchaindb/bigchaindb/blob/master/nginx/nginx.conf and did chenges as directed
It is now showing 502 Bad Gateway when i go to https://bleocean.com
I tried on local machine as well as on google cloud each time when I update config file it shows 502 bad gateway. Please suggest if I am making any mistake?
You are getting this error because there is no application running on the port 9984. Check if MongoDB, BigchainDB and Tendermint are running. Please add the logs of your /var/log/nginx/error.log.
I have a Linux server running Nginx and from time to time it starts throwing a 502 error when trying to access it throw HTTP, and after a while gets back to normal.
I've checked the different logs (Nginx, PHP and MySQL) and didn't find anything that could help me find what's causing this.
Any idea where I should look or if it's possible to set any logging/monitorinh tool to help me out?
Thanks,
502 is a Bad Gateway error. You may want to use a log monitoring tool to see these types of errors. You may also want to send the PHP errors to see if they are generating fatal errors at the same time. I personally use Loggly for this purpose, but you can use other tools available in the market.
Also, I would recommend logging Nginx as JSON, and adding to the normal metrics, the uptime for the upstream servers, so that you can see if the 502 errors are also correlated with deteriorating performance.
If you haven't read this already, I recommend starting here:
https://www.nginx.com/resources/admin-guide/logging-and-monitoring/
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin#example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
As you can see, i can't get into my admin CP. localhost works fine, the trouble comes when i visit localhost/wp-admin. I was trying out this guide, but when it didn't work, i just deleted what i copy pasted. I'm on space bound, and hope here would be a good soul to help me out.
Regards.
Uploading files via the wordpress uploader (flash or html) mysteriously fails now. It worked up to yesterday, now it throws. Error_log doesn't show anything related to that.
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster#domain.com and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.
More information about this error may be available in the server error
log.
Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.
Can someone help me trace back the problem? I'm on a brand new dedicated server running on CentOS 5.7 2G RAM.
php memory_limit = 128M
Let me know if you need any other information, i'll do my best to answer them... So you can help me answer mine °-)
UPDATE
I found this in the global server error log:
mod_fcgid: HTTP request length 132480 (so far) exceeds MaxRequestLen (131072)
Your fcgi settings use the default value of MaxRequestLen (131072)
Open apache vhost file and set the value for example to 4MB, aka FcgidMaxRequestLen 4000000.