http-status-code-503

How to Detect cause of 503 Service Temporarily Unavailable error and handle it?

梦想与她 提交于 2019-12-29 18:18:34
问题 i am getting the error 503 Service Temporarily Unavailable many times in my application and i want to detect why this error occurs, how ? if there's a log file or something like that, since i am not familiar with apache. second thing is that, is it possible to handle this error, that when it occurs apache is restarted ? 回答1: There is of course some apache log files. Search in your apache configuration files for 'Log' keyword, you'll certainly find plenty of them. Depending on your OS and

Show a custom 503 page if upstream is down

﹥>﹥吖頭↗ 提交于 2019-12-28 12:08:12
问题 I am using nginx as a frontend to an apache server. The config file looks like: upstream apache { server localhost:8000; } server { listen 80; error_page 503 /www/static/503.html; # need some magic here # location /static/ { root /www/static/; } location / { proxy_path http://apache/; } } For now, when apache is down, I receive a plain 502 page generated by nginx. How to make it serve my custom error page and return status code 503 which is more relevant in this situation? 回答1: Something like

Show a custom 503 page if upstream is down

一个人想着一个人 提交于 2019-12-28 12:07:32
问题 I am using nginx as a frontend to an apache server. The config file looks like: upstream apache { server localhost:8000; } server { listen 80; error_page 503 /www/static/503.html; # need some magic here # location /static/ { root /www/static/; } location / { proxy_path http://apache/; } } For now, when apache is down, I receive a plain 502 page generated by nginx. How to make it serve my custom error page and return status code 503 which is more relevant in this situation? 回答1: Something like

Apigee API end point gives 503 on the browser, but a 200 on Apigee trace and curl

亡梦爱人 提交于 2019-12-25 12:20:29
问题 We use Apigee proxy to invoke our API. All works well when we test it out within Apigee trace. Also works fine with curl. But on a browser, it gives a 503. This is not consistent though, sometimes it gives a 200 on the browser too. Tried Chrome and Firefox, same behavior. Our API still executes well though. We do not return any response, merely set the status. Any ideas on what we could try out to get a 200 on the browser? 回答1: Couple of things to check: Check if your Browser has a DNS entry

Apache, FastCGI - Error 503

删除回忆录丶 提交于 2019-12-25 05:21:45
问题 It was pointed out to me that my server is insecure, because anyone could read any file through PHP, even if it was out of his DocumentRoot. I decided to reconfigure whole apache and all configuration files for virtual hosts and installed Mod FastCGI and I managed to get it running quite nicely, I don't have problems with rights anymore. But there seems to be another problem. When I try to load more than 3 sites (on different VirtualHosts => different users on different threads) page loads

IIS 7 Service Unavailable 503 ERROR

青春壹個敷衍的年華 提交于 2019-12-23 12:02:49
问题 I am encountering a 503 - Service Unavailable error. I checked the event log and found this: The Module name FastCgiModule path C:\WINDOWS\System32\inetsrv\iisfcgi.dll returned an error from registration. The data is the error. Note: Every time I try to visit my website, I found that the DefaultAppPool will auto-stop. And also found this in event log: Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.

I'm getting a Service Unavailable on wamp, but everything is running

↘锁芯ラ 提交于 2019-12-23 05:16:02
问题 I have installed wamp on a virtual server, and everything seems fine (i.e. the server is running and I'm seeing the color green). What seems to be going on is that when I try to run a web site (for example /localhost/sitename), I'm getting a 503 Service Unavailable, Service temporarily unavailable. Please try again soon. Despite that everything is running, no apache errors and so on. What would cause the 503 error to show? 来源: https://stackoverflow.com/questions/21125047/im-getting-a-service

How to set Apache HTTP 503 error code instead of HTTP 500 on PHP error

吃可爱长大的小学妹 提交于 2019-12-23 03:08:13
问题 any ideas how to replace Apache HTTP 500 (Internal Server Error) error by HTTP 503 (Service Unavailable) on PHP error once PHP error displaying is off? This is much better option to inform spiders to back to the site soon... P.S. would be great to be able to append Retry-After to the 50x error codes if possible... cheers, /Marcin 回答1: I assume you are referring to PHP's new (since 5.2.4) default behaviour of throwing a 500 if an error occurs, and no other output is being made. AFAIK, that

Cannot download file in R - status 503

纵饮孤独 提交于 2019-12-20 02:56:17
问题 I'm trying to download file: > URL <- "https://www.bitmarket.pl/graphs/BTCPLN/90m.json" > download.file(URL, destfile = "res.json", method = "curl") % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4676 0 4676 0 0 56930 0 --:--:-- --:--:-- --:--:-- 57024 but it returns 503 status. Whole output: <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta

Why does Azure give me an intermittent Error 503. The service is unavailable?

北战南征 提交于 2019-12-19 17:42:24
问题 I have an Azure service that has been running for a long period of time. It builds a word or powerpoint document based on arguments in the request and returns a uri to the build document. This is access via a visualforce page, when you click a button, it calls the service and displays a link to the document that has just been built. Simple. All of a sudden, I get an apparently random 503 Service Unavailable error. Sometimes I click the button, no problem. Other times a 503 error. Each time