Nextcloud install with Curl - MariaDB down after some pictures ulpoad

Hi,

Hope you can help me, I m a beginner and have just freshly installed nextcloudpi with curl. Mariadb is down after some pictures uploaded (about 5 GB).

Here ncp-report :

NextCloudPi diagnostics

cat: /usr/local/etc/ncp-version: No such file or directory
NextCloudPi version
distribution         Raspbian GNU/Linux 10 \n \l
automount            yes
USB devices          sda
datadir              /media/mySSD/ncdata
data in SD           no
data filesystem      btrfs
data disk usage      2.6G/932G
rootfs usage         2.1G/23G
swapfile             /var/swap
dbdir                /media/mySSD/ncdatabase
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            wlan0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               4min

Nextcloud configuration

An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(448): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(410): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(354): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(710): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(181): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/nextcloud/lib/private/DB/ConnectionFactory.php(156): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/nextcloud/lib/private/Server.php(641): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#9 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OCP\\IDBConnecti...')
#10 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OCP\\IDBConnecti...')
#11 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#12 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('DatabaseConnect...')
#13 /var/www/nextcloud/lib/private/Server.php(1560): OC\ServerContainer->query('DatabaseConnect...')
#14 /var/www/nextcloud/lib/private/Server.php(362): OC\Server->getDatabaseConnection()
#15 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#16 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#17 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(68): OC\ServerContainer->query('OC\\Authenticati...')
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#19 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#20 /var/www/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#21 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(68): OC\ServerContainer->query('OC\\Authenticati...')
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#23 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#24 /var/www/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#25 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OC\\Authenticati...')
#26 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#27 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#28 /var/www/nextcloud/lib/private/Server.php(374): OC\ServerContainer->query('OC\\Authenticati...')
#29 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#30 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\User\\Session')
#31 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OC\\User\\Session')
#32 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#33 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('UserSession')
#34 /var/www/nextcloud/lib/private/Server.php(1436): OC\ServerContainer->query('UserSession')
#35 /var/www/nextcloud/lib/private/Server.php(694): OC\Server->getUserSession()
#36 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#37 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#38 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(165): OC\ServerContainer->query('OC\\App\\AppManag...')
#39 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#40 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('AppManager')
#41 /var/www/nextcloud/lib/private/Server.php(1731): OC\ServerContainer->query('AppManager')
#42 /var/www/nextcloud/lib/private/legacy/app.php(341): OC\Server->getAppManager()
#43 /var/www/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#44 /var/www/nextcloud/lib/base.php(640): OC_App::loadApps(Array)
#45 /var/www/nextcloud/lib/base.php(1056): OC::init()
#46 /var/www/nextcloud/console.php(46): require_once('/var/www/nextcl...')
#47 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#48 {main}
HTTPd logs

[Mon Nov 04 14:25:19.277766 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.277766 2019] [authz_host:error] [pid 1015:tid 2772562976] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.277960 2019] [authz_host:error] [pid 1015:tid 2780963872] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.279280 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.280703 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.282056 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.283228 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/css/ncp.css
[Mon Nov 04 14:25:19.435401 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:25:19.470276 2019] [authz_host:error] [pid 1015:tid 2780963872] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:25:23.359747 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:25:23.382621 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:26.288143 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:26.433471 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:26.433782 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:26.514115 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:28.049298 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /css/ncp.css failed, reason: unable to get the remote host name, referer: https://10.0.0.16:4443/?app=dashboard
[Mon Nov 04 14:26:28.252580 2019] [authz_host:error] [pid 1015:tid 2780963872] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:28.295103 2019] [authz_host:error] [pid 1015:tid 2755761184] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:31.958412 2019] [authz_host:error] [pid 1015:tid 2780963872] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Nov 04 14:26:31.974837 2019] [authz_host:error] [pid 1015:tid 2780963872] [client 10.0.0.3:54823] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name

Database logs

2019-11-04 14:08:31 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-04 14:08:31 0 [Note] InnoDB: Uses event mutexes
2019-11-04 14:08:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-04 14:08:31 0 [Note] InnoDB: Number of pools: 1
2019-11-04 14:08:31 0 [Note] InnoDB: Using generic crc32 instructions
2019-11-04 14:08:31 0 [Note] InnoDB: Initializing buffer pool, total size = 1.625G, instances = 1, chunk size = 128M
2019-11-04 14:08:32 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-04 14:08:32 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-04 14:20:55 0 [Note] InnoDB: Read redo log up to LSN=19209728
2019-11-04 14:20:55 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=19209313
2019-11-04 14:25:30 0 [Warning] The parameter innodb_file_format is deprecated and has no effect. It may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/
2019-11-04 14:25:30 0 [Note] InnoDB: Using Linux native AIO
2019-11-04 14:25:30 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-04 14:25:30 0 [Note] InnoDB: Uses event mutexes
2019-11-04 14:25:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-11-04 14:25:30 0 [Note] InnoDB: Number of pools: 1
2019-11-04 14:25:30 0 [Note] InnoDB: Using generic crc32 instructions
2019-11-04 14:25:30 0 [Note] InnoDB: Initializing buffer pool, total size = 1.625G, instances = 1, chunk size = 128M
2019-11-04 14:25:30 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-04 14:25:30 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().

Nextcloud logs

{"reqId":"i4j4l60E1yT4CNRxWSML","level":3,"time":"2019-11-04T12:00:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Exception","Message":"Not installed","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":646,"function":"checkInstalled","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":1056,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/nextcloud\/cron.php","line":41,"args":["\/var\/www\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/www\/nextcloud\/lib\/base.php","Line":277,"CustomMessage":"--"},"userAgent":"--","version":""}
{"reqId":"XcAdJZsKIu73Mu5HD-asqQAAjAA","level":3,"time":"2019-11-04T12:44:22+00:00","remoteAddr":"10.0.0.3","user":"apapado","app":"PHP","method":"POST","url":"\/index.php\/settings\/admin\/mailtest","message":"stream_socket_enable_crypto(): Peer certificate CN=`mail.ecloud.global' did not match expected CN=`ecloud.global' at \/var\/www\/nextcloud\/3rdparty\/swiftmailer\/swiftmailer\/lib\/classes\/Swift\/Transport\/StreamBuffer.php#94","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.132 Safari\/537.36 OPR\/63.0.3368.107","version":"16.0.5.1"}

systemctl status mariadb.service


Warning: The unit file, source configuration file or drop-ins of mariadb.service
● mariadb.service - MariaDB 10.3.17 database server
   Loaded: loaded (/etc/systemd/system/mariadb.service; enabled; vendor preset:
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─ncp-delay-automount.conf
   Active: failed (Result: timeout) since Mon 2019-11-04 14:30:00 GMT; 4min 58s
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 1525 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/ru
  Process: 1526 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START
  Process: 1528 ExecStartPre=/bin/sleep 20 (code=exited, status=0/SUCCESS)
  Process: 1575 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR
  Process: 1671 ExecStartPre=/bin/sleep 20 (code=exited, status=0/SUCCESS)
 Main PID: 2759
    Tasks: 14 (limit: 4915)
   Memory: 90.8M
   CGroup: /system.slice/mariadb.service
           └─2759 /usr/sbin/mysqld

Nov 04 14:24:49 raspberrypi systemd[1]: Starting MariaDB 10.3.17 database server
Nov 04 14:25:30 raspberrypi mysqld[2759]: 2019-11-04 14:25:30 0 [Note] /usr/sbin
Nov 04 14:27:00 raspberrypi systemd[1]: mariadb.service: Start operation timed o
Nov 04 14:28:30 raspberrypi systemd[1]: mariadb.service: State 'stop-sigterm' ti
lines 1-23...skipping...
Warning: The unit file, source configuration file or drop-ins of mariadb.service changed on disk. Run
● mariadb.service - MariaDB 10.3.17 database server
   Loaded: loaded (/etc/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─ncp-delay-automount.conf
   Active: failed (Result: timeout) since Mon 2019-11-04 14:30:00 GMT; 4min 58s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 1525 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited
  Process: 1526 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exite
  Process: 1528 ExecStartPre=/bin/sleep 20 (code=exited, status=0/SUCCESS)
  Process: 1575 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/
  Process: 1671 ExecStartPre=/bin/sleep 20 (code=exited, status=0/SUCCESS)
 Main PID: 2759
    Tasks: 14 (limit: 4915)
   Memory: 90.8M
   CGroup: /system.slice/mariadb.service
           └─2759 /usr/sbin/mysqld

Nov 04 14:24:49 raspberrypi systemd[1]: Starting MariaDB 10.3.17 database server...
Nov 04 14:25:30 raspberrypi mysqld[2759]: 2019-11-04 14:25:30 0 [Note] /usr/sbin/mysqld (mysqld 10.3.
Nov 04 14:27:00 raspberrypi systemd[1]: mariadb.service: Start operation timed out. Terminating.
Nov 04 14:28:30 raspberrypi systemd[1]: mariadb.service: State 'stop-sigterm' timed out. Skipping SIG
Nov 04 14:30:00 raspberrypi systemd[1]: mariadb.service: State 'stop-final-sigterm' timed out. Skippi
Nov 04 14:30:00 raspberrypi systemd[1]: mariadb.service: Failed with result 'timeout'.
Nov 04 14:30:00 raspberrypi systemd[1]: Failed to start MariaDB 10.3.17 database server.
~
~
~
~

thank you in advance,

Is there something that could fix this state or it is better to format + reinstall nextcloudpi ?