jayturley Posted June 11, 2018 Share Posted June 11, 2018 I just started with ProcessWire. I love the CMS so far, but I have encountered an issue. After spinning up a small DigitalOcean droplet and installing PW, the default site was working over https with redirects in place. I made some changes, added some fields, messed with the template files, etc. Site was still working. Showed it off, went to sleep. Woke up, and the droplet was responding to every request with a 502 Bad Gateway. The only thing I found possibly regarding this issue is that ServerPilot sets up a swap space of 500 MB, but 2GB is recommended. As I am using ServerPilot to manage my DO droplets, I am looking into this. However, I don't even think I had a swap file enabled through server pilot. As I'm new to PW, I am wondering if there is anything else I should be looking at to troubleshoot this issue. Any help very appreciated. Link to comment Share on other sites More sharing options...
louisstephens Posted June 11, 2018 Share Posted June 11, 2018 Just did a bit of digging and someone with a similar issue found that apache was down. They resolved the issue by restarting Apache and everything worked well for them after that. (https://www.digitalocean.com/community/questions/502-gateway-errors-who-can-help) service apache-sp start 1 Link to comment Share on other sites More sharing options...
jayturley Posted June 12, 2018 Author Share Posted June 12, 2018 Thanks! I appreciate the tip. Link to comment Share on other sites More sharing options...
adrian Posted June 12, 2018 Share Posted June 12, 2018 Sorry to go a little OT here, but I have had two recent experiences with PW on servers with nginx as reverse proxy for apache and have come across lots of nginx errors including 502 and 504 and various slowdowns. I have always run PW on pure apache servers, so wondering if I am just being unlucky with these hosts. Are others out there having similar issues? Link to comment Share on other sites More sharing options...
dragan Posted June 12, 2018 Share Posted June 12, 2018 @adrian If you use the custom Google search in my sig, you'll find a lot of nginx forum threads. One of the oldest is this one, with Ryan chiming in with tips... https://processwire.com/talk/topic/275-processwire-on-nginx/ @jturley Likewise, searching for "bad gateway" or DigitalOcean, you'll find a few other forum posts - some of them mention some special, problematic mySQL versions, others point to some special DB configs... 1 Link to comment Share on other sites More sharing options...
adrian Posted June 12, 2018 Share Posted June 12, 2018 Thanks @dragan - I might be off base here, but the servers I have seen this on are still running apache, just with the nginx reverse proxy. I think this makes it different to an nginx-only server. I have seen similar issues with these bad gateway errors on the same server running Laravel so I don't think it's a specific PW issue, but not really sure at this point and hoping to change servers soon anyways. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now