Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Running two nextclouds on Unraid - > occasional 502 error

Featured Replies

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')    

 

  • Community Expert

Just curious, why 2 DB servers?

  • Community Expert

Best bet is to post in the existing docker support thread:

 

169187425_dockersupport.PNG.0ab62cc429e1eae47be4053e13eb8320.PNG

  • Author
33 minutes ago, Michael_P said:

Just curious, why 2 DB servers?

Different branding and different users. 

  • Community Expert
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

 

 

  • Community Expert

Please continue discussion here:

 

  • JorgeB locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.