Tag Info

Hot answers tagged

14

Add retry=0 to your ProxyPass lines: ProxyPass / http://127.0.0.1:4711/ retry=0 From the mod_proxy documentation: Connection pool worker retry timeout in seconds. If the connection pool worker to the backend server is in the error state, Apache will not forward any requests to that server until the timeout expires. This enables to shut down the ...


11

You've mentioned "IIS Log File" (singular), but there are always two logs you need to evaluate: W3SVCnn logs (C:\Inetpub\Logs) from the website worker process, and HTTPERR logs (C:\Windows\System32\Logfiles\HTTPERR) from HTTP.SYS, which routes requests to worker processes and provides a kernel-mode queue designed to buffer clients from worker process ...


7

The error message means (line number references refer to varnish 2.1.3): While fetching a header [bin/varnishd/cache_fetch.c:399], either: a) an overflow occurred [bin/varnishd/cache_httpconn.c:170] or b) a error occurred when calling read() [bin/varnishd/cache_httpconn.c:175] The number at the end is the value of errno, so since it's 0 (no error) I ...


6

You need to restart the vmware management services. Luckily, this is easy (since you have SSH access) and non-impactful to the virtual machines. In a nutshell, SSH to the esx frame as root and then run one of the two following commands (depending on if it is esx/i): For ESX: service mgmt-vmware restart For ESXi: /sbin/services.sh restart See this ...


3

"if" and "return" directives are the part of ngx_rewrite_module. Since you declare such condition at server level you don't live a chance to nginx to handle error_page. Make your config clear: root /home/igel/www/stage.example.com/current/public; error_page 503 /system/maintenance.html; location / { if ( -e /system/maintenance.html ) { ...


3

Turns out that somehow my 'Connection Limit' setting had been set to 1. Fixed this by opening IIS Manager, selecting the website, clicking 'Advanced Settings' (in the sidebar), expanding 'Connection Limits' and changing 'Maximum Concurrent Connections' to 10.


3

You can do so by setting an error page. error_page 502 =503 /maintenance.html


3

Are you aware Varnish does NOT deal with HTTPS ? I'm not sure what you're trying to do, but your backend listen on 443 which is a bit weird. If your traffic is SSL, you probably need something like nginx(ssl)-varnish(nossl)-nginx(nossl)-passenger. This setup is not that uncommon, and you can use the same nginx.


3

To answer your question in the same general way it's presented; your problem most likely lies between your apache daemon and the area defined as "external". I assume you are using private range IP Addresses internally, since you talk of port-forwarding (The next time, don't redact those. There is no point to it, which you should realize if you remember your ...


3

How many requests/s and total connections does your varnish handle when the 503 errors occur? I've run into a similar situation where it would return 503 errors to the users while the backends were running just fine. varnishlog would show that the backends were sick when in fact were healthy. So after some digging I found out that the problem was with ...


2

Sounds like you're on a shared web-hosting server and it's unable to cope with the incoming http requests (not just for your site(s) but for everyones). One way to ensure this doesn't happen is to have a degree of dedicated resources and control over their allocation by using a VPS or Dedicated Server to host your site. Otherwise, there's not much you can do ...


2

From this page: https://calomel.org/nginx.html ## System Maintenance (Service Unavailable) if (-f $document_root/system_maintenance.html ) { error_page 503 /system_maintenance.html; return 503; } The important part being the '-f', I believe - it tests to see if the file exists.


2

You can see clearly that Drupal generated the 503 Service Unavailable error. When you put Drupal in maintenance mode, it serves this error to anyone who is not already logged in with sufficient rights. That includes Googlebot. To resolve the issue, take Drupal out of maintenance mode.


2

The redirect from the root to the Citrix site is performed on Web Interface server, rather than through the Secure Gateway. You should check the Web Interface directly, bypassing CSG.


2

[EDIT after understanding the question better] Not having any experience of the ELB, I still think this sounds suspiciously like the 503 error which may be thrown when Apache fronts a Tomcat and floods the connection. The effect is that if Apache delivers more connection requests than can be processed by the backend, the backend input queues fill up until ...


2

you can up the values of the elb health checker, so as a single slow response wont pull a server from elb. better to have a few users get service unavailable, than the site being down for everyone. EDIT: We are able to get away without pre-warming cache by upping health check timeout to 25 seconds......after 1-2 minutes... site is responsive as hell ...


2

You will get a "Back-end server is at capacity" when the ELB load balancer performs its health checks and receives a "page not found" (or other simple error) due to a mis-configuration (typically with the NameVirtual host). Try grepping the log files folder using the "ELB-HealthChecker" user agent. e.g. grep ELB-HealthChecker /var/log/httpd/* This will ...


2

I just ran into this issue myself. The Amazon ELB will return this error if there are no healthy instances. Our sites were misconfigured, so the ELB healthcheck was failing, which caused the ELB to take the two servers out of rotation. With zero healthy sites, the ELB returned 503 Service Unavailable: Back-end server is at capacity.


2

Badly Badly misread the title of the question - Long day. The command directive you are looking for is this: JkMountFile You would put this directive in your httpd.conf (or a seperate mod_jk.conf depending on how you are setup) From the documentation for apache File containing multiple mappings from a context to a Tomcat worker. It is usually called ...


2

Does a standard html page also fail? I would double check that the cert is correct and that the binding in another site isn't taking precedence. Also, if you check the IIS logs, it will confirm that the correct site is receiving the request, and if you check the sub-status code, it will give further details on the specifics of the 503.


2

503 errors are normally related to errors on an application being served or a configuration error. It should be on apache's error log (if you don't have an error log, enable it on the configuration with the ErrorLog directive and control what level of error logging you want with LogLevel). You can use monit to check a page and see if the HTTP code from a ...


2

I don't think you can, or should. You're much better leaving the server as-is and trying to find the root of the problem. IMHO, restarting on error is a bad policy in general. If you still insist, try looking at something like SWATCH to monitor your apache logs and act on a 503 error.


2

you should really fix the problem, but you could run something like this for a temp solution: #!/bin/sh HTTP_STATUS=`lynx -head -source http://mysite.com |head -1 |awk '{print $2}'` if [ "$HTTP_STATUS" = "503" ] ...


2

The proxy configuration is trying to pass the request to localhost:8080. Whatever destination server is not accepting requests on port 8080


2

Check whether the Application Pool serving the web site/web application is Stopped. If it is, start it, browse to the ASP.NET page again. If it fails again, still with "HTTP Error 503. The service is unavailable", open the Event Viewer (eventvwr), open the application log, and see if there are any errors indicating worker process or application pool ...


2

This doesn't work? location / { return 503; } There might be some tricks you have to use to get assets to show up on your custom error page (i.e., say your 503.html has an image in it. You have to do some logic to make the image show up with a 200 code, otherwise it'll be missing with a 503).


2

I Solved the issue by uninstalling widecap ServiceInstance.RetrieveContent Error


2

Our cloud provider came up with the answer - I wish I could name them here. The Windows server had a dot in the name like this: my.server which is not allowed on non-domain machines. Windows never complained about the invalid machine name, nor did IIS, but it caused the listeners and thus the application pool to fail. Changed the machine name and all is ...


2

To get a better understanding of why some requests fail with HTTP 503, you could set up Failed Request Tracing. Add a rule matching status code: 503, and add all available providers. If you don't use the Default Website for anything, just go ahead and remove it.


2

There isn't any exact equivalent for Nginx because it's not really needed. Nginx itself will not be your bottleneck, that much is almost guaranteed. That's not to say you won't have issues, though. Most likely your backend will peak the CPU or you'll run out of bandwidth to serve the files. Nginx is a HTTP reverse proxy, though, it doesn't want to monitor ...



Only top voted, non community-wiki answers of a minimum length are eligible