I have a weird problem on one of my LEMP droplets, while the same thing whith the same E-mail account and settings works fine on other droplets: when sending an E-mail via SMTP using PHP I get a “504 Gateway Time-out”. But the E-mail is actually sent, and I tried completely different E-mail accounts which all had the same problem.
The error.log says this (for security reasons I changed the urls and IP here obviously):
2014/11/16 09:51:12 [error] 5666#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 777.777.777.777, server: www.somedomain.de, request: “POST /ajax/shop/resend_order HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock”, host: “www.somedomain.de”, referrer: “http://www.somedomain.de/de/admin/list/orders”
The strange thing: because I could not remedy this, I started a new LEMP droplet and manually copied database and web space over there (I did not want to use an image to be sure I have a fresh installation and don’t copy whatever I did wrong on the old one over to the new one). And everything worked fine again!
Still I’d like to know what caused this problem since I don’t want to run into it again. I have the old droplet running, so I can throw any solution at it suggested here ;-) I’m not a Linux expert, but I’m willing to learn!
Thanks in advance, Sebastian
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!