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.

Nextcloud Docker kann nicht mehr auf MariaDB zugreifen

Featured Replies

Das Problem was ich hab ist das ich die Nextcloud eigentlich nur hab um meine Kalender und das Adressbuch im Handy automatisch zu sichern. Das hat zur Folge das ich die Nextcloud nur sehr selten auf dem PC aufrufe. Dadurch kann ich auch nicht sagen ab wann der Fehler aufgetreten ist den in Unraid wird alles als normal am laufen angezeigt. Backups der gesammten Docker mach ich mit dem Backup script von "mgutt" und das funktioniert.

 

Folgender Fehler wird angezeigt im log:

Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /app/www/public/lib/private/DB/Connection.php:155

Die Datenbank ist in Ordnung, da kann ich mit adminer problemlos drauf zugreifen..

Es scheint ein Problem mit  dem Zugriff oder der Reihenfolge der zu startenden Container zu sein. ein Neustart der Nextcloud bringt keine veränderung. hier mal die Protokolle:

text  error  warn  system  array  login  

#3 /app/www/public/lib/private/DB/ConnectionAdapter.php(200): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /app/www/public/lib/private/DB/QueryBuilder/QueryBuilder.php(121): OC\DB\ConnectionAdapter->getDatabasePlatform()
#5 /app/www/public/lib/private/AppConfig.php(1237): OC\DB\QueryBuilder\QueryBuilder->expr()
#6 /app/www/public/lib/private/AppConfig.php(262): OC\AppConfig->loadConfig()
#7 /app/www/public/lib/private/AppConfig.php(1378): OC\AppConfig->searchValues()
#8 /app/www/public/lib/private/App/AppManager.php(131): OC\AppConfig->getValues()
#9 /app/www/public/lib/private/App/AppManager.php(152): OC\App\AppManager->getInstalledAppsValues()
#10 /app/www/public/lib/private/legacy/OC_App.php(234): OC\App\AppManager->getInstalledApps()
#11 /app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps()
#12 /app/www/public/lib/base.php(706): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#13 /app/www/public/lib/base.php(1181): OC::init()
#14 /app/www/public/cron.php(58): require_once('...')
#15 {main}
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

using keys found in /config/keys
After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

using keys found in /config/keys
After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.
Alternatively, you can apply your own configurations by editing /config/www/nextcloud/config/config.php following the documentation:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2024-01-03 │ 2024-04-02 │ /config/nginx/site-confs/default.conf                                  │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
[custom-init] No custom files found, skipping...
[ls.io-init] done.
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /app/www/public/lib/private/DB/Connection.php:155
Stack trace:
#0 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /app/www/public/lib/private/DB/ConnectionAdapter.php(200): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /app/www/public/lib/private/DB/QueryBuilder/QueryBuilder.php(121): OC\DB\ConnectionAdapter->getDatabasePlatform()
#5 /app/www/public/lib/private/AppConfig.php(1237): OC\DB\QueryBuilder\QueryBuilder->expr()
#6 /app/www/public/lib/private/AppConfig.php(262): OC\AppConfig->loadConfig()
#7 /app/www/public/lib/private/AppConfig.php(1378): OC\AppConfig->searchValues()
#8 /app/www/public/lib/private/App/AppManager.php(131): OC\AppConfig->getValues()
#9 /app/www/public/lib/private/App/AppManager.php(152): OC\App\AppManager->getInstalledAppsValues()
#10 /app/www/public/lib/private/legacy/OC_App.php(234): OC\App\AppManager->getInstalledApps()
#11 /app/www/public/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps()
#12 /app/www/public/lib/base.php(706): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#13 /app/www/public/lib/base.php(1181): OC::init()
#14 /app/www/public/cron.php(58): require_once('...')
#15 {main}

Kann mir jemand sagen wie ich das wieder ans laufen bringe?

Ich habe leider nicht die Ahnung von php denn ich vermute mal das lässt sich über die config.php der Nextcloud korregieren....

MfG Fritz

Edited by kleinfritzchen

  • Author

Kann nicht sagen warum aber nach ein paar Stunden ging es wieder!  Hab wieder Zugriff auf die Daten.

MfG Fritz

Bei mir tritt der gleiche Fehler auf, vielleicht ist ein Update vom Docker schief gegangen.

 

  • Author

Es hat wohl was mit der Reihenfolge zu tun mit der die Docker wieder gestartet wird.
Folgendes hab ich dann gemacht:
MariaDB Docker stoppen
Nextcloud neustarten und WebUI öffnen bis "Seiten Ladefehler" erscheint
dann MariaDB Docker wieder starten
und jetzt sollte die Nextcloud wieder laufen. wieder WebUI aufrufen! (tut sie jedenfalls bei mir bis zum nächsten Backup und dann das gleiche spiel wenn ich sie brauch)

Edited by kleinfritzchen

In dem Docker Tab wird die Startreihenfolge bestimmt.

Was zuerst starten muss, sprich die Datenbanken z.B. einfach nach oben ziehen.

  • Author

krieg ich irgendwie nivcht verschoben. Die MariaDB steht bei mir 2 über Nextcloud, sollte also sowieso vor Nextcloud gestartet werden. Hab den Wert Warten bei der Nextcloud mmal auf 20 gestellt , denke das heist das sie 20 sekunden wartet bis sie gestartet wird. Geht aber nicht gleiche Fehlermeldung!
 

[custom-init] No custom files found, skipping...
[ls.io-init] done.
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused in /app/www/public/lib/private/DB/Connection.php:155
Stack trace:
#0 /app/www/public/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()

Dann wie oben beschrtieben Nextcloud und  MariaDB neu gstartet und es geht wieder.

Es hat den anschein das die MariaDB nach der Nextcloud gestartet werden muss.

Hab 6.12.6 bei Unraid, sollte ich mal updaten???

Edited by kleinfritzchen

Zum verschieben musst du das kleine grüne Schlossymbol anklicken. Damit wird das freigeschalte. 

 

Aber da die DB ja eh schon über der Nextcloud steht sollte der Fehler dadurch nicht kommen. 

Ich nutze schon lange kein MariaDB mehr. Hatte da mit Nextcloud nur probleme, und das nicht nur einmal.

postgres14 läuft jetzt schon seit Jahren als DB bei mir, und hat noch nie ärger gemacht. 

20 minutes ago, speedycxd said:

Ich nutze schon lange kein MariaDB mehr. Hatte da mit Nextcloud nur probleme, und das nicht nur einmal.

 

sehr hilfreicher Kommentar ... Mann Mann ... ich nutze mariadb schon seit Jahren und hab auch keine Probleme, und jetzt ?

 

hilft das enorm weiter ...

 

21 minutes ago, speedycxd said:

postgres14 läuft jetzt schon seit Jahren als DB bei mir, und hat noch nie ärger gemacht. 

dann gib dem TE zumindest einen Link, einen Tipp, ... wie er einfach von mariadb auf postgres wechseln könnte zum testen ...

 

das wäre ggf. hilfreich ;) sofern er das wollte ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.