Page 1 of 1
502 Bad Gateway
Posted: Tue Oct 11, 2022 5:47 am
by joticakr
Hello all,
I have two Flatpress webpages each behind an nginx reverse proxy with completely identical settings.
One webpage started giving me "502 Bad Gateway" if I try to edit or create a blog entry. After I empty the theme and template cahce, it works one time, then again the 502 appears. Did someone have an idea what moght be wrong and where I can look for failure?
Best regards and many thanks in advance,
Johannes
Re: 502 Bad Gateway
Posted: Tue Oct 11, 2022 1:35 pm
by Arvid
Johannes,
this is odd indeed. Do you have the PrettyURLs plugin enabled? Maybe it creates an .htaccess related glitch - does it help to deactivate it?
All the best,
Arvid
Re: 502 Bad Gateway
Posted: Wed Oct 12, 2022 6:01 am
by joticakr
Hi Arvid,
I disabled the plugin, but the behaviour stayed the same.
BR, Johannes
Re: 502 Bad Gateway
Posted: Sat Oct 22, 2022 10:28 am
by Arvid
joticakr wrote: ↑Tue Oct 11, 2022 5:47 amAfter I empty the theme and template cahce, it works one time, then again the 502 appears.
This is what irritates me completely
Can you reproduce this behaviour with a fresh FlatPress install on that server?
Re: 502 Bad Gateway
Posted: Tue Dec 13, 2022 12:58 pm
by joticakr
Hi Arvid,
sorry for my late response. I setup a fresh install and it works like a charm. After I copied the fp-content folder into it (I finished the first setup with the same user and password as the old one), the same error occured again. Now I have to delete the cache folder in fp-content every time I want to go to the maintanance, plugin or uploader page.
BR, Johannes
Re: 502 Bad Gateway
Posted: Tue Dec 13, 2022 7:36 pm
by Arvid
So something inside the
fp-content folder causes the error. Might be data of a plugin, e.g. the Comment Center plugin stores its data there (
fp-content/plugin_commentcenter/).
Please have a look for plugin related folders in there, maybe deactivating such a plugin or deleting/resetting its data solves the problem permanently.
Alternative idea: What about the themes? Maybe your theme has some kind of template error that causes broken cache data. Does the problem occur with the default theme Leggero?
Let us know
All the best
Arvid
Re: 502 Bad Gateway
Posted: Mon Jan 09, 2023 6:09 am
by joticakr
Hey Arvid,
I wish you a happy new year!
I don't know why and I don't know how, but the problem solved itself. No change made from my side and now it's working again.
BR, Johannes
Re: 502 Bad Gateway
Posted: Sat Jan 21, 2023 1:33 pm
by Arvid
Well then ... \_(o_O)_/
Glad it works now
Thanks for letting us know!
All the best,
Arvid