Hello friends, we recently suffered a power outage and a bunch of my services on the ole home server got broken, I’ve managed to fix everything so far but I’m stuck trying to get nextcloud working again, some information below:
OS: Ubuntu server 22.04.4
Docker version: 25.0.3
Nextcloud image: linuxserver/nextcloud:26.0.2-ls246
MySQL image: linuxserver/mysql:latest
Machine is a dell power edge t420, with a hardware raid 5.
MySQL logs:
*** Running /etc/my_init.d/999_advanced_script.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 31
tail: unrecognized file system type 0x794c7630 for ‘/var/log/syslog’. please report this to bug-coreutils@gnu.org. reverting to polling
240225 20:44:30 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 20:44:30 mysqld_safe Starting mysqld daemon with databases from /config/databases
Feb 25 20:44:30 fc4240abade9 syslog-ng[37]: syslog-ng starting up; version='3.5.3'
Feb 25 21:17:01 fc4240abade9 /USR/SBIN/CRON[539]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
*** Shutting down runit daemon (PID 31)...
*** Killing all processes...
Could not open required defaults file: /etc/mysql/debian.cnf
Fatal error in defaults handling. Program aborted
240225 22:07:07 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10_add_user_abc.sh...
-------------------------------------
_ _ _
| |___| (_) ___
| / __| | |/ _ \
| \__ \ | | (_) |
|_|___/ |_|\___/
|_|
Brought to you by linuxserver.io
We do accept donations at:
https://www.linuxserver.io/donations
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
*** Running /etc/my_init.d/20_apt_update.sh...
*** Running /etc/my_init.d/30_config.sh...
*** Running /etc/my_init.d/40_set_up_dbase.sh...
*** Running /etc/my_init.d/999_advanced_script.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 31
tail: unrecognized file system type 0x794c7630 for ‘/var/log/syslog’. please report this to bug-coreutils@gnu.org. reverting to polling
240225 22:07:08 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 22:07:08 mysqld_safe Starting mysqld daemon with databases from /config/databases
Feb 25 22:07:08 fc4240abade9 syslog-ng[37]: syslog-ng starting up; version='3.5.3'
Feb 25 22:17:01 fc4240abade9 /USR/SBIN/CRON[539]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
*** Shutting down runit daemon (PID 31)...
*** Killing all processes...
Could not open required defaults file: /etc/mysql/debian.cnf
Fatal error in defaults handling. Program aborted
240225 22:20:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10_add_user_abc.sh...
-------------------------------------
_ _ _
| |___| (_) ___
| / __| | |/ _ \
| \__ \ | | (_) |
|_|___/ |_|\___/
|_|
Brought to you by linuxserver.io
We do accept donations at:
https://www.linuxserver.io/donations
-------------------------------------
GID/UID
-------------------------------------
User uid: 1000
User gid: 1000
-------------------------------------
*** Running /etc/my_init.d/20_apt_update.sh...
*** Running /etc/my_init.d/30_config.sh...
*** Running /etc/my_init.d/40_set_up_dbase.sh...
*** Running /etc/my_init.d/999_advanced_script.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 31
tail: unrecognized file system type 0x794c7630 for ‘/var/log/syslog’. please report this to bug-coreutils@gnu.org. reverting to polling
240225 22:20:37 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 22:20:37 mysqld_safe Starting mysqld daemon with databases from /config/databases
Feb 25 22:20:37 fc4240abade9 syslog-ng[37]: syslog-ng starting up; version='3.5.3'
Feb 25 23:17:01 fc4240abade9 /USR/SBIN/CRON[539]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 00:17:01 fc4240abade9 /USR/SBIN/CRON[542]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 01:17:01 fc4240abade9 /USR/SBIN/CRON[545]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 02:17:01 fc4240abade9 /USR/SBIN/CRON[548]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 03:17:01 fc4240abade9 /USR/SBIN/CRON[551]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 04:17:01 fc4240abade9 /USR/SBIN/CRON[554]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 05:17:01 fc4240abade9 /USR/SBIN/CRON[557]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 06:17:01 fc4240abade9 /USR/SBIN/CRON[560]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 06:25:01 fc4240abade9 /USR/SBIN/CRON[563]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
tail: ‘/var/log/syslog’ has been replaced; following end of new file
Feb 26 06:25:26 fc4240abade9 syslog-ng[37]: Configuration reload request received, reloading configuration;
Feb 26 06:25:26 fc4240abade9 syslog-ng[37]: Configuration reload request received, reloading configuration;
Feb 26 06:25:26 fc4240abade9 /USR/SBIN/CRON[562]: (CRON) info (No MTA installed, discarding output)
Feb 26 07:17:01 fc4240abade9 /USR/SBIN/CRON[633]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 08:17:01 fc4240abade9 /USR/SBIN/CRON[636]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 26 09:17:01 fc4240abade9 /USR/SBIN/CRON[639]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
MySQL error log from /config/log/mysql/error.log:
Version: '5.5.58-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
231007 9:59:18 [Warning] IP address '172.17.0.1' could not be resolved: Name or service not known
240225 17:59:39 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 17:59:39 mysqld_safe Starting mysqld daemon with databases from /config/databases
240225 17:59:41 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 523 ...
240225 17:59:42 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 17:59:42 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 17:59:42 [Note] Plugin 'FEDERATED' is disabled.
240225 17:59:42 InnoDB: The InnoDB memory heap is disabled
240225 17:59:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins
240225 17:59:42 InnoDB: Compressed tables use zlib 1.2.8
240225 17:59:42 InnoDB: Using Linux native AIO
240225 17:59:42 InnoDB: Initializing buffer pool, size = 128.0M
240225 17:59:42 InnoDB: Completed initialization of buffer pool
240225 17:59:42 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
240225 17:59:42 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
240225 17:59:45 InnoDB: Waiting for the background threads to start
240225 17:59:46 InnoDB: 5.5.58 started; log sequence number 9518634234
240225 17:59:46 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
240225 17:59:46 [Note] - '0.0.0.0' resolves to '0.0.0.0';
240225 17:59:46 [Note] Server socket created on IP: '0.0.0.0'.
240225 17:59:46 [Note] Event Scheduler: Loaded 0 events
240225 17:59:46 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.58-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
240225 20:44:28 [Note] /usr/sbin/mysqld: Normal shutdown
240225 20:44:28 [Note] Event Scheduler: Purging the queue. 0 events
240225 20:44:28 InnoDB: Starting shutdown...
240225 20:44:29 InnoDB: Shutdown completed; log sequence number 9518634234
240225 20:44:29 [Note] /usr/sbin/mysqld: Shutdown complete
240225 20:44:29 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
240225 20:44:30 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 20:44:30 mysqld_safe Starting mysqld daemon with databases from /config/databases
240225 20:44:30 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 520 ...
240225 20:44:30 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 20:44:30 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 20:44:30 [Note] Plugin 'FEDERATED' is disabled.
240225 20:44:30 InnoDB: The InnoDB memory heap is disabled
240225 20:44:30 InnoDB: Mutexes and rw_locks use GCC atomic builtins
240225 20:44:30 InnoDB: Compressed tables use zlib 1.2.8
240225 20:44:30 InnoDB: Using Linux native AIO
240225 20:44:30 InnoDB: Initializing buffer pool, size = 128.0M
240225 20:44:30 InnoDB: Completed initialization of buffer pool
240225 20:44:30 InnoDB: highest supported file format is Barracuda.
240225 20:44:30 InnoDB: Waiting for the background threads to start
240225 20:44:31 InnoDB: 5.5.58 started; log sequence number 9518634234
240225 20:44:31 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
240225 20:44:31 [Note] - '0.0.0.0' resolves to '0.0.0.0';
240225 20:44:31 [Note] Server socket created on IP: '0.0.0.0'.
240225 20:44:31 [Note] Event Scheduler: Loaded 0 events
240225 20:44:31 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.58-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
240225 22:07:06 [Note] /usr/sbin/mysqld: Normal shutdown
240225 22:07:06 [Note] Event Scheduler: Purging the queue. 0 events
240225 22:07:06 InnoDB: Starting shutdown...
240225 22:07:07 InnoDB: Shutdown completed; log sequence number 9518634234
240225 22:07:07 [Note] /usr/sbin/mysqld: Shutdown complete
240225 22:07:07 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
240225 22:07:08 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 22:07:08 mysqld_safe Starting mysqld daemon with databases from /config/databases
240225 22:07:08 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 520 ...
240225 22:07:08 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 22:07:08 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 22:07:08 [Note] Plugin 'FEDERATED' is disabled.
240225 22:07:08 InnoDB: The InnoDB memory heap is disabled
240225 22:07:08 InnoDB: Mutexes and rw_locks use GCC atomic builtins
240225 22:07:08 InnoDB: Compressed tables use zlib 1.2.8
240225 22:07:08 InnoDB: Using Linux native AIO
240225 22:07:08 InnoDB: Initializing buffer pool, size = 128.0M
240225 22:07:08 InnoDB: Completed initialization of buffer pool
240225 22:07:08 InnoDB: highest supported file format is Barracuda.
240225 22:07:08 InnoDB: Waiting for the background threads to start
240225 22:07:09 InnoDB: 5.5.58 started; log sequence number 9518634234
240225 22:07:09 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
240225 22:07:09 [Note] - '0.0.0.0' resolves to '0.0.0.0';
240225 22:07:09 [Note] Server socket created on IP: '0.0.0.0'.
240225 22:07:09 [Note] Event Scheduler: Loaded 0 events
240225 22:07:09 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.58-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
240225 22:20:14 [Note] /usr/sbin/mysqld: Normal shutdown
240225 22:20:14 [Note] Event Scheduler: Purging the queue. 0 events
240225 22:20:14 InnoDB: Starting shutdown...
240225 22:20:15 InnoDB: Shutdown completed; log sequence number 9518634234
240225 22:20:15 [Note] /usr/sbin/mysqld: Shutdown complete
240225 22:20:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
240225 22:20:37 mysqld_safe Logging to '/config/log/mysql/error.log'.
240225 22:20:37 mysqld_safe Starting mysqld daemon with databases from /config/databases
240225 22:20:37 [Note] /usr/sbin/mysqld (mysqld 5.5.58-0ubuntu0.14.04.1) starting as process 520 ...
240225 22:20:37 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 22:20:37 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
240225 22:20:37 [Note] Plugin 'FEDERATED' is disabled.
240225 22:20:37 InnoDB: The InnoDB memory heap is disabled
240225 22:20:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins
240225 22:20:37 InnoDB: Compressed tables use zlib 1.2.8
240225 22:20:37 InnoDB: Using Linux native AIO
240225 22:20:37 InnoDB: Initializing buffer pool, size = 128.0M
240225 22:20:37 InnoDB: Completed initialization of buffer pool
240225 22:20:37 InnoDB: highest supported file format is Barracuda.
240225 22:20:41 InnoDB: Waiting for the background threads to start
240225 22:20:42 InnoDB: 5.5.58 started; log sequence number 9518634234
240225 22:20:42 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
240225 22:20:42 [Note] - '0.0.0.0' resolves to '0.0.0.0';
240225 22:20:42 [Note] Server socket created on IP: '0.0.0.0'.
240225 22:20:42 [Note] Event Scheduler: Loaded 0 events
240225 22:20:42 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.58-0ubuntu0.14.04.1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu)
240226 10:03:21 [Warning] IP address '192.168.1.64' could not be resolved: Name or service not known
Nextcloud logs:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Host is unreachable in /config/www/nextcloud/lib/private/DB/Connection.php:140
\00\00\00\00\00\00
Stack trace:
#0 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1531): OC\DB\Connection->connect()
#1 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1029): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /config/www/nextcloud/lib/private/DB/Connection.php(262): Doctrine\DBAL\Connection->executeQuery()
#3 /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery()
#4 /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /config/www/nextcloud/lib/private/AppConfig.php(418): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /config/www/nextcloud/lib/private/AppConfig.php(184): OC\AppConfig->loadConfigValues()
#7 /config/www/nextcloud/lib/private/AppConfig.php(374): OC\AppConfig->getApps()
#8 /config/www/nextcloud/lib/private/legacy/OC_App.php(976): OC\AppConfig->getValues()
#9 /config/www/nextcloud/lib/private/Server.php(729): OC_App::getAppVersions()
#10 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#11 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#12 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#13 /config/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#14 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#15 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(193): OC\AppFramework\Utility\SimpleContainer->get()
#16 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#17 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#18 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#19 /config/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#20 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#21 /config/www/nextcloud/lib/private/Server.php(1110): OC\AppFramework\Utility\SimpleContainer->get()
#22 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#23 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#24 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#25 /config/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#26 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#27 /config/www/nextcloud/lib/private/Server.php(2065): OC\AppFramework\Utility\SimpleContainer->get()
#28 /config/www/nextcloud/lib/private/Files/View.php(119): OC\Server->getLockingProvider()
#29 /config/www/nextcloud/lib/private/Server.php(464): OC\Files\View->__construct()
#30 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#31 /config/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#32 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#33 /config/www/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#34 /config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#35 /config/www/nextcloud/lib/private/Server.php(1467): OC\AppFramework\Utility\SimpleContainer->get()
#36 /config/www/nextcloud/lib/base.php(625): OC\Server->boot()
#37 /config/www/nextcloud/lib/base.php(1167): OC::init()
#38 /config/www/nextcloud/cron.php(43): require_once('...')
#39 {main}
If i need to provide any further information please let me know.
Thank you kindly for any help