http-status-code-504

HTTP Error 504: Gateway Time-out when trying to read a reddit comments post

一笑奈何 提交于 2019-12-07 16:57:52
问题 I am encountering an error when trying to get a comments' http from reddit. This has happened to various URLs (not all of them with special characters) and this is one of them. In one hour time frame, there may be 1000 or more requests to the reddit.com domain. hdr = {"User-Agent": "My Agent"} try: req = urllib2.Request("http://www.reddit.com/r/gaming/" "comments/1bjuee/when_pokΓ©mon_was_good", headers=hdr) htmlSource = urllib2.urlopen(req).read() except Exception as inst: print inst Output>

nginx 504 Gateway Time-out

时光毁灭记忆、已成空白 提交于 2019-12-06 23:12:56
问题 I'm running a rails3.0.7 project with phusion-passenger on nginx. While I was doing a ajax which took about 15 mins to process. It jump up an error with firebug which said "504 Gateway Time-out" after 10 mins from calling the ajax. Could someon give me some idea of how I could find the problem. Thanks, ben environment OS: mac osx 10.6.7 ruby: 1.9.2p180 installed with rvm gem: 1.6.2 passenger 3.0.7 rails: 3.0.7 mysql: 5.5.10 installed with brew nginx: 1.0.0 stand alone installed with passender

504 Gateway Time-out Error on PHP Script

一个人想着一个人 提交于 2019-12-06 09:17:06
I coded a script for database import, it makes a few jobs on database. When I work this script, after a few minutes I'm getting "504 Gateway Timeout Error". I increased all timeout values on php.ini, also I increased execution times but it is still same. You can increase maximum execution time in php. ini_set('max_execution_time', 300); //300 seconds = 5 minutes write a info file on server <?php phpinfo(); check max whats comes here if its return 0 then there is something different to do else make sure you changed on correct ini file You can check your ini file location also from phpinfo()

Profiling a Perl CGI script that times-out

一笑奈何 提交于 2019-12-05 05:58:15
I have a Perl CGI application that sometimes times out, causing it to be killed by Apache and 504 Gateway Time-out error to be sent to browser. I am trying to profile this application using NYTProf, however I cannot read profile data: $ nytprofhtml -f www/cgi-local/nytprof.out Reading www/cgi-local/nytprof.out Profile data incomplete, inflate error -5 ((null)) at end of input file, perhaps the process didn't exit cleanly or the file has been truncated (refer to TROUBLESHOOTING in the documentation) I am using sigexit=1 NYTProf option. Here's minimal CGI script that reproduces problem: #!/usr

504 Gateway Time-out The server didn't respond in time. How to fix it?

折月煮酒 提交于 2019-12-02 20:36:47
The client requested to download a compressed log file, using Ext.js a form submission on an embedded iframe . Request was sent to server, which has Apache and JBoss 6 . The servlet compresses log files, do some database operation and returns the compressed file. Exactly after 2 min, the 504 Gateway Time-out The server didn't respond in time message is seen at the browser net panel. How to fix this error? Ricardo The servlet was taking a long time to compress the log files, and Apache 's timeout was set to 2min. The error was fixed by increasing the TimeOut Directive on the httpd.conf file: #

Git Error: The requested URL returned error: 504 Gateway Timeout while accessing http://

做~自己de王妃 提交于 2019-11-30 00:59:07
问题 I am using a VM provisioned by my company's internal cloud (KVM) - RHEL 6.4. I am able to clone external repositories from the internet. Yet, I cannot figure out how to clone internal repositories on my company's intranet. At first I didn't set the http_proxy or https_proxy and received this error: error: The requested URL returned error: 401 Authorization Required while accessing http://.... After setting http_proxy and https_proxy , I now receive this error after waiting about 60 seconds:

504 Gateway Timeout - Two EC2 instances with load balancer

本秂侑毒 提交于 2019-11-29 11:33:45
问题 This might be the impossible issue. I've tried everything. I feel like there's a guy at a switchboard somewhere, twirling his mustache. The problem: I have Amazon EC2 running an application. It functions without issue when there is only one instance and no load balancer. But in my production environment I have two identical instances running behind one load-balancer and when performing certain tasks, like a feature that generates a PDF and attaches it to an email, nothing happens at all, and

Nginx reverse proxy causing 504 Gateway Timeout

孤街浪徒 提交于 2019-11-26 21:34:11
I am using Nginx as a reverse proxy that takes requests then does a proxy_pass to get the actual web application from the upstream server running on port 8001. If I go to mywebsite.com or do a wget, I get a 504 Gateway Timeout after 60 seconds... However, if I load mywebsite.com:8001, the application loads as expected! So something is preventing Nginx from communicating with the upstream server. All this started after my hosting company reset the machine my stuff was running on, prior to that no issues whatsoever. Here's my vhosts server block: server { listen 80; server_name mywebsite.com;

Nginx reverse proxy causing 504 Gateway Timeout

喜你入骨 提交于 2019-11-26 08:48:17
问题 I am using Nginx as a reverse proxy that takes requests then does a proxy_pass to get the actual web application from the upstream server running on port 8001. If I go to mywebsite.com or do a wget, I get a 504 Gateway Timeout after 60 seconds... However, if I load mywebsite.com:8001, the application loads as expected! So something is preventing Nginx from communicating with the upstream server. All this started after my hosting company reset the machine my stuff was running on, prior to that