App directory "/var/www/nextcloud/apps" not found! Please put the Nextcloud apps folder in the Nextcloud folder. You can also configure the location in the config.php file

I installed crazy maxs’ Docker compose Nextcloud and accidentally deleted the config.php contents. Restarting the container doesn’t seem to help. I copied the config.php.sample and am now editing the config again with no issues but the container has a /data directory but when I tried that it did not work. Then I tried using /var/www/nextcloud/ but that did’t work either.

The issue you are facing:
The directory exists but I can’t seem to specify it in the config.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Delete config.php contents

The output of your Nextcloud log in Admin > Logging:

Nextcloud container logs

nextcloud       | 2021/08/21 14:13:18 [error] 1142#1142: *25 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/lib/private/DB/Connection.php:85
nextcloud       | Stack trace:
nextcloud       | #0 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
nextcloud       | #1 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
nextcloud       | #2 /var/www/lib/private/DB/Connection.php(226): Doctrine\DBAL\Connection->executeQuery()
nextcloud       | #3 /var/www/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
nextcloud       | #4 /var/www/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
nextcloud       | #5 /var/www/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
nextcloud       | #6 /var/www/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
nextcloud       | #7 /var/www/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
nextcloud       | #8 /var/www/lib/private/legacy/OC_App.p" while reading response header from upstream, client: 172.28.0.5, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "domain.org", referrer: "https://domain.org/"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:13:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 500 5 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:14:17 -0400] "GET /csrftoken HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:16:14 -0400] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:16:16 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 2021/08/21 14:18:18 [error] 1142#1142: *90 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/lib/private/DB/Connection.php:85
nextcloud       | Stack trace:
nextcloud       | #0 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
nextcloud       | #1 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
nextcloud       | #2 /var/www/lib/private/DB/Connection.php(226): Doctrine\DBAL\Connection->executeQuery()
nextcloud       | #3 /var/www/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
nextcloud       | #4 /var/www/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
nextcloud       | #5 /var/www/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
nextcloud       | #6 /var/www/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
nextcloud       | #7 /var/www/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
nextcloud       | #8 /var/www/lib/private/legacy/OC_App.p" while reading response header from upstream, client: 172.28.0.5, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "domain.org", referrer: "https://domain.org/"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:18:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 500 5 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:21:16 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 2021/08/21 14:23:18 [error] 1142#1142: *154 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/lib/private/DB/Connection.php:85
nextcloud       | Stack trace:
nextcloud       | #0 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
nextcloud       | #1 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
nextcloud       | #2 /var/www/lib/private/DB/Connection.php(226): Doctrine\DBAL\Connection->executeQuery()
nextcloud       | #3 /var/www/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
nextcloud       | #4 /var/www/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
nextcloud       | #5 /var/www/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
nextcloud       | #6 /var/www/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
nextcloud       | #7 /var/www/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
nextcloud       | #8 /var/www/lib/private/legacy/OC_App.p" while reading response header from upstream, client: 172.28.0.5, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "domain.org", referrer: "https://domain.org/"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:23:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 500 5 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:26:16 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:26:17 -0400] "GET /csrftoken HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 2021/08/21 14:28:18 [error] 1142#1142: *217 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/lib/private/DB/Connection.php:85
nextcloud       | Stack trace:
nextcloud       | #0 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
nextcloud       | #1 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
nextcloud       | #2 /var/www/lib/private/DB/Connection.php(226): Doctrine\DBAL\Connection->executeQuery()
nextcloud       | #3 /var/www/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
nextcloud       | #4 /var/www/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
nextcloud       | #5 /var/www/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
nextcloud       | #6 /var/www/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
nextcloud       | #7 /var/www/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
nextcloud       | #8 /var/www/lib/private/legacy/OC_App.p" while reading response header from upstream, client: 172.28.0.5, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "domain.org", referrer: "https://domain.org/"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:28:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 500 5 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:31:14 -0400] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:31:16 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 2021/08/21 14:33:19 [error] 1142#1142: *280 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/lib/private/DB/Connection.php:85
nextcloud       | Stack trace:
nextcloud       | #0 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
nextcloud       | #1 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
nextcloud       | #2 /var/www/lib/private/DB/Connection.php(226): Doctrine\DBAL\Connection->executeQuery()
nextcloud       | #3 /var/www/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
nextcloud       | #4 /var/www/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
nextcloud       | #5 /var/www/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
nextcloud       | #6 /var/www/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
nextcloud       | #7 /var/www/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
nextcloud       | #8 /var/www/lib/private/legacy/OC_App.p" while reading response header from upstream, client: 172.28.0.5, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "domain.org", referrer: "https://domain.org/"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:33:19 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 500 5 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:36:17 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:38:17 -0400] "GET /csrftoken HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:38:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 500 5 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 2021/08/21 14:38:18 [error] 1142#1142: *344 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /var/www/lib/private/DB/Connection.php:85
nextcloud       | Stack trace:
nextcloud       | #0 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1486): OC\DB\Connection->connect()
nextcloud       | #1 /var/www/3rdparty/doctrine/dbal/src/Connection.php(1014): Doctrine\DBAL\Connection->getWrappedConnection()
nextcloud       | #2 /var/www/lib/private/DB/Connection.php(226): Doctrine\DBAL\Connection->executeQuery()
nextcloud       | #3 /var/www/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(210): OC\DB\Connection->executeQuery()
nextcloud       | #4 /var/www/lib/private/DB/QueryBuilder/QueryBuilder.php(287): Doctrine\DBAL\Query\QueryBuilder->execute()
nextcloud       | #5 /var/www/lib/private/AppConfig.php(345): OC\DB\QueryBuilder\QueryBuilder->execute()
nextcloud       | #6 /var/www/lib/private/AppConfig.php(110): OC\AppConfig->loadConfigValues()
nextcloud       | #7 /var/www/lib/private/AppConfig.php(301): OC\AppConfig->getApps()
nextcloud       | #8 /var/www/lib/private/legacy/OC_App.p" while reading response header from upstream, client: 172.28.0.5, server: , request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "domain.org", referrer: "https://domain.org/"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:41:16 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 500 301 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:43:18 -0400] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 503 183 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:43:24 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:46:16 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 503 183 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:47:40 -0400] "PUT /apps/user_status/heartbeat HTTP/1.1" 503 183 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:48:01 -0400] "GET /settings/user/sync-clients HTTP/1.1" 503 183 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:14:57:34 -0400] "GET /index.php/204 HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:00:23 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:09:45 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:10:57 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:12:59 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | [21-Aug-2021 15:13:11] NOTICE: Terminating ...
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 15 (SIGTERM) received from 1108, exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1143#1143: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1147#1147: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1144#1144: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1149#1149: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1146#1146: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1156#1156: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1145#1145: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1142#1142: exiting
nextcloud       | 2021/08/21 15:13:11 [notice] 1146#1146: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1144#1144: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1147#1147: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1143#1143: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1142#1142: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1149#1149: exit
nextcloud       | [21-Aug-2021 15:13:11] NOTICE: exiting, bye-bye!
nextcloud       | 2021/08/21 15:13:11 [notice] 1156#1156: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1145#1145: exit
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1146
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1146 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 29 (SIGIO) received
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1144
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1143 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1144 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 29 (SIGIO) received
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1142
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1142 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 29 (SIGIO) received
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1145
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1145 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 29 (SIGIO) received
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1149
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1149 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 29 (SIGIO) received
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1147
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1147 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 29 (SIGIO) received
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: signal 17 (SIGCHLD) received from 1156
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: worker process 1156 exited with code 0
nextcloud       | 2021/08/21 15:13:11 [notice] 1114#1114: exit
nextcloud       | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
nextcloud       | [s6-init] ensuring user provided files have correct perms...exited 0.
nextcloud       | [fix-attrs.d] applying ownership & permissions fixes...
nextcloud       | [fix-attrs.d] done.
nextcloud       | [cont-init.d] executing container initialization scripts...
nextcloud       | [cont-init.d] 00-fix-logs.sh: executing...
nextcloud       | [cont-init.d] 00-fix-logs.sh: exited 0.
nextcloud       | [cont-init.d] 01-fix-uidgid.sh: executing...
nextcloud       | [cont-init.d] 01-fix-uidgid.sh: exited 0.
nextcloud       | [cont-init.d] 02-fix-perms.sh: executing...
nextcloud       | Fixing perms...
nextcloud       | [cont-init.d] 02-fix-perms.sh: exited 0.
nextcloud       | [cont-init.d] 03-config.sh: executing...
nextcloud       | Setting timezone to America/Detroit...
nextcloud       | Setting PHP-FPM configuration...
nextcloud       | Setting PHP configuration...
nextcloud       | Setting Nginx configuration...
nextcloud       | Initializing Nextcloud files/folders...
nextcloud       | [cont-init.d] 03-config.sh: exited 0.
nextcloud       | [cont-init.d] 04-svc-main.sh: executing...
nextcloud       | Bootstrapping configuration...
nextcloud       | [cont-init.d] 04-svc-main.sh: exited 0.
nextcloud       | [cont-init.d] 05-svc-cron.sh: executing...
nextcloud       | [cont-init.d] 05-svc-cron.sh: exited 0.
nextcloud       | [cont-init.d] 06-svc-previewgen.sh: executing...
nextcloud       | [cont-init.d] 06-svc-previewgen.sh: exited 0.
nextcloud       | [cont-init.d] 07-svc-news-updater.sh: executing...
nextcloud       | [cont-init.d] 07-svc-news-updater.sh: exited 0.
nextcloud       | [cont-init.d] ~-socklog: executing...
nextcloud       | [cont-init.d] ~-socklog: exited 0.
nextcloud       | [cont-init.d] done.
nextcloud       | [services.d] starting services
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: using the "epoll" event method
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: nginx/1.18.0
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: OS: Linux 5.4.0-80-generic
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker processes
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1208
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1209
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1210
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1211
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1212
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1219
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1231
nextcloud       | 2021/08/21 15:13:22 [notice] 1186#1186: start worker process 1250
nextcloud       | [services.d] done.
nextcloud       | [21-Aug-2021 15:13:22] NOTICE: fpm is running, pid 1187
nextcloud       | [21-Aug-2021 15:13:22] NOTICE: ready to handle connections
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:15:19 -0400] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:17:03 -0400] "GET / HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:21:08 -0400] "GET / HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:29:32 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:33:01 -0400] "GET /index.php/204 HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:35:06 -0400] "GET / HTTP/1.1" 503 183 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:36:00 -0400] "GET /settings/user/sync-clients HTTP/1.1" 503 183 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"
nextcloud       | 192.168.0.1 - - [21/Aug/2021:15:36:01 -0400] "GET /favicon.ico HTTP/1.1" 503 183 "https://domain.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36"

Nextcloud version _(eg, 20.0.5)_: 21.1.0
Operating system and version _(eg, Ubuntu 20.04)_: Ubuntu 20.04
Apache or nginx version _(eg, Apache 2.4.25)_:  `replace me`
PHP version _(eg, 7.4)_: `replace me`

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php

/**
 * This configuration file is only provided to document the different
 * configuration options and their usage.
 *
 * DO NOT COMPLETELY BASE YOUR CONFIGURATION FILE ON THIS SAMPLE. THIS MAY BREAK
 * YOUR INSTANCE. Instead, manually copy configuration switches that you
 * consider important for your instance to your working ``config.php``, and
 * apply configuration options that are pertinent for your instance.
 *
 * This file is used to generate the configuration documentation.
 * Please consider following requirements of the current parser:
 *  * all comments need to start with `/**` and end with ` *\/` - each on their
 *    own line
 *  * add a `@see CONFIG_INDEX` to copy a previously described config option
 *    also to this line
 *  * everything between the ` *\/` and the next `/**` will be treated as the
 *    config option
 *  * use RST syntax
 */

$CONFIG = [


/**
 * Default Parameters
 *
 * These parameters are configured by the Nextcloud installer, and are required
 * for your Nextcloud server to operate.
 */


/**
 * This is a unique identifier for your Nextcloud installation, created
 * automatically by the installer. This example is for documentation only,
 * and you should never use it because it will not work. A valid ``instanceid``
 * is created when you install Nextcloud.
 *
 * 'instanceid' => 'd3c944a9a',
 */
'instanceid' => 'oc8gtynriacv',

 /**
  * The salt used to hash all passwords, auto-generated by the Nextcloud
  * installer. (There are also per-user salts.) If you lose this salt you lose
  * all your passwords. This example is for documentation only, and you should
  * never use it.
  *
  * @deprecated This salt is deprecated and only used for legacy-compatibility,
  * developers should *NOT* use this value for anything nowadays.
  *
  * 'passwordsalt' => 'd3c944a9af095aa08f',
 */
'passwordsalt' => '',

/**
 * Your list of trusted domains that users can log into. Specifying trusted
 * domains prevents host header poisoning. Do not remove this, as it performs
 * necessary security checks.
 * You can specify:
 *
 * - the exact hostname of your host or virtual host, e.g. demo.example.org.
 * - the exact hostname with permitted port, e.g. demo.example.org:443.
 *   This disallows all other ports on this host
 * - use * as a wildcard, e.g. ubos-raspberry-pi*.local will allow
 *   ubos-raspberry-pi.local and ubos-raspberry-pi-2.local
 * - the IP address with or without permitted port, e.g. [2001:db8::1]:8080
 *   Using TLS certificates where commonName=<IP address> is deprecated
 */
'trusted_domains' =>
   [
    'mre-nc.duckdns.org',
    '192.168.0.113',
    '[2001:db8::1]'
  ],


/**
 * Where user files are stored. The SQLite database is also stored here, when
 * you use SQLite.
 *
 * Default to ``data/`` in the Nextcloud directory.
 */
'datadirectory' => '/var/www/nextcloud/',

/**
 * The current version number of your Nextcloud installation. This is set up
 * during installation and update, so you shouldn't need to change it.
 */
'version' => '21.1.0',

/**
 * Identifies the database used with this installation. See also config option
 * ``supportedDatabases``
 *
 * Available:
 *      - sqlite3 (SQLite3)
 *      - mysql (MySQL/MariaDB)
 *      - pgsql (PostgreSQL)
 *
 * Defaults to ``sqlite3``
 */
'dbtype' => 'mysql',

/**
 * Your host server name, for example ``localhost``, ``hostname``,
 * ``hostname.example.com``, or the IP address. To specify a port use
 * ``hostname:####``; to specify a Unix socket use
 * ``localhost:/path/to/socket``.
 */
'dbhost' => 'db',
/**
* The name of the Nextcloud database, which is set during installation. You
* should not need to change this.
*/
'dbname' => 'nextcloud',

/**
* The user that Nextcloud uses to write to the database. This must be unique
* across Nextcloud instances using the same SQL database. This is set up during
* installation, so you shouldn't need to change it.
*/
'dbuser' => 'nc',

/**
* The password for the database user. This is set up during installation, so
* you shouldn't need to change it.
*/
'dbpassword' => 'removed',

/**
* Prefix for the Nextcloud tables in the database.
*
* Default to ``oc_``
*/
'dbtableprefix' => '',


/**
* Indicates whether the Nextcloud instance was installed successfully; ``true``
* indicates a successful installation, and ``false`` indicates an unsuccessful
* installation.
*
* Defaults to ``false``
*/
'installed' => 'true',


/**
* User Experience
*
* These optional parameters control some aspects of the user interface. Default
* values, where present, are shown.
*/

/**
* This sets the default language on your Nextcloud server, using ISO_639-1
* language codes such as ``en`` for English, ``de`` for German, and ``fr`` for
* French. It overrides automatic language detection on public pages like login
* or shared items. User's language preferences configured under "personal ->
* language" override this setting after they have logged in. Nextcloud has two
* distinguished language codes for German, 'de' and 'de_DE'. 'de' is used for
* informal German and 'de_DE' for formal German. By setting this value to 'de_DE'
* you can enforce the formal version of German unless the user has chosen
* something different explicitly.
*
* Defaults to ``en``
*/
'default_language' => 'en',
....

The output of your Apache/nginx/system log in /var/log/____:

Those logs are empty.