MarekNosek Posted October 10, 2021 Share Posted October 10, 2021 Hi guys, I have two nextcloud dockers setup and it all seems to run fine, but once a day the NEXTCLOUD #2 gets the 502 error. I have the following unraid docker running: - NginxProxyManager `autostart wait 0` - mariadb `autostart wait 5` on port 3306 - mariadb2 `autostart wait 20` on port 3307 - nextcloud `autostart wait 20` on port 444 - nextcloud2 `autostart wait 20` on port 448 All on bridged network. Each nextcloud is directed to via a proxy from Nginx. Each nextcloud is linked to mariaDB via separate port. Most of the time all is running fine, but from time to time I encounter the Quote 502 bad gateway when trying to reach the NEXTCLOUD #2 Maybe once a day... Steps to replicate it: 1. I assumed that it was a problem of dockers starting too fast. 2. I tried to have a wait time before they start. But problem appears again. 3. When I **stop** mariaDB2 and and NEXTCLOUD2 and restart it after few seconds, it works again. Could anyone suggest where to look for problems? ---------------- Nextcloud version: `Nextcloud 22.1.1` Operating system and version : `UNRAID Version: 6.9.2 ` Nginx version: `v2.9.9 © 2021` The output of your Nextcloud log in **Admin > Logging**: This is the only error warning I get since it has worked: Quote Warning core Login failed: '67.513466269904' (Remote IP: '184.XXX.242.192') Link to comment
Michael_P Posted October 10, 2021 Share Posted October 10, 2021 Just curious, why 2 DB servers? Link to comment
JorgeB Posted October 10, 2021 Share Posted October 10, 2021 Best bet is to post in the existing docker support thread: Link to comment
MarekNosek Posted October 10, 2021 Author Share Posted October 10, 2021 33 minutes ago, Michael_P said: Just curious, why 2 DB servers? Different branding and different users. Link to comment
Michael_P Posted October 10, 2021 Share Posted October 10, 2021 5 minutes ago, MarekNosek said: Different branding and different users. You could just create a separate DB and save come complexity. If it's all running on the same hardware, there's no performance gain to have 2 docker instances running, just my opinion Link to comment
JorgeB Posted October 10, 2021 Share Posted October 10, 2021 Please continue discussion here: Link to comment
Recommended Posts