504 Gateway Timeout with Nginx
-
Hi Olly, I have successfully installed five wordpress blog on my vps with your guide. It is fantastic and I am very pleased with the step by step instructions, specially helpful for non linux users to setup sites on vps. Keep going and wish you more and more success.
At Present I am facing few problems. Please help me out to kill these issues.
1. I have setup total five sites (wordpress blog), out of five when I check my IP address in browser, my IP in browser get redirected to one of them. Do't know where the mistake.
2. Frequently I am getting error message "504 Gateway Timeout" with Nginx version no. at the bottom of it.
3. Out of five sites two are old wordpress blog with apache and three are new with nginx with your guidelines.
Awaiting your reply and guidelines
Posted 2 years ago # -
hmmn .. sounds like you need to retrace your dns/domain zone steps carefully for problem 1.
for 2, maybe something like a fastCGI timeout issue .. more likely an upstream timeout that could be beyond your control, say with your VPS provider (so definitely ask them to check)
you mention apache and nginx .. how do you mean, you reverse proxying or something?
Posted 2 years ago # -
Hi Olly I am using Linode 360 plan and using very less resources, still getting that 504 Gateway time out error sometimes. When ever I give a reboot to my linode then that error goes away. I have checked with linode support and they say that it not the upstream problem. So please can you guide?
Posted 2 years ago # -
Today I got a reply to this issue from linode support. Here is the part of support reply:
"Hi,
The issues you are experiencing are not upstream, it is internal to your Linode. Your web server is accepting the initial connection to port 80, however it fails to serve any pages. While the connection between your web site and database is being established correctly, it is possible that MySQL is accepting the initial connection but is failing to respond to any further database queries (which would result in the timeout error). Your web server and MySQL logs would be a good place to get an indication of what is preventing your web site to load."
Can you guide me please on this issue how to rectify?
Posted 2 years ago # -
hi getreal .. if you're getting this problem with all sites then you've got a syntax error, likely in the nginx.conf, else in all virtual host files (perhaps you were copy/pasting a little hastily)
if it's just in one or two of the sites then you can probably point to the individual virtual host files
the Nginx Bible will work with multiple sites, no problem, so probably the quickest thing to do is to start over ..
.. I know that's not what you want to hear but pinpointing is difficult without someone sifting through your server.
Posted 2 years ago # -
Hi Olly My Problem is similar with the problem one of linode user faced earlier and explained his fault in this linode forum post:
http://www.linode.com/forums/viewtopic.php?p=26452
You can please check the errom and guide me to solve the issue. I am using what exactly you have specifed in the tutorial. And I am facing this problme in all my site. I have checked the nginx conf file. That is perfectly OK.
Posted 2 years ago # -
I got the temporarily solution of my 504 gateway time out on all my wordpress blog. It was happening after adding a co.cc domain to my account and launching wordpress on that. The visual problem what I was getting is that my IP was pointing to that co.cc url. Where as my reverse dns with another domain. I have just deleted that co.cc domain from my Linode Domain Manager and everything is working fine. Superfast. Thanks Olly. If you have time you can through further light on this issue, otherwise I am fine now.
Posted 2 years ago # -
I have just added another .co.uk site to our 360 plan and got a 504 error.
Lookng at the logs for this domain I see the following:
2010/06/03 14:44:31 [error] 26678#0: *78 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 82.39.139.164, server: ourdomain.co.uk, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "ourdomain.co.uk", referrer: "http://ourdomain.co.uk/wp-admin/"Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
