Docker Desktop - NC 31.0.7.1->31.0.2.1 "Pre-upgrade" folder is empty

I am self-hosting Nextcloud on MacOS using Docker Desktop and I was adding a bind mount in portainer then I re-pulled both nextcloud-app-1 and nextcloud-db-1 in Portainer.

The nextcloud-db-1 container started good
The nextcloud-app-1 container is now not starting well with the following error:

Stack trace:

#0 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(458): OC\DB\Connection->connect()

#1 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(416): Doctrine\DBAL\Connection->getDatabasePlatformVersion()

#2 /var/www/html/3rdparty/doctrine/dbal/src/Connection.php(323): Doctrine\DBAL\Connection->detectDatabasePlatform()

#3 /var/www/html/lib/private/DB/Connection.php(903): Doctrine\DBAL\Connection->getDatabasePlatform()

#4 /var/www/html/lib/private/DB/ConnectionAdapter.php(235): OC\DB\Connection->getDatabaseProvider()

#5 /var/www/html/lib/private/DB/QueryBuilder/QueryBuilder.php(96): OC\DB\ConnectionAdapter->getDatabaseProvider()

#6 /var/www/html/lib/private/AppConfig.php(1226): OC\DB\QueryBuilder\QueryBuilder->expr()

#7 /var/www/html/lib/private/AppConfig.php(243): OC\AppConfig->loadConfig(NULL, false)

#8 /var/www/html/lib/private/AppConfig.php(1366): OC\AppConfig->searchValues('enabled', false, 2)

#9 /var/www/html/lib/private/App/AppManager.php(136): OC\AppConfig->getValues(false, 'enabled')

#10 /var/www/html/lib/private/App/AppManager.php(157): OC\App\AppManager->getInstalledAppsValues()

#11 /var/www/html/lib/private/legacy/OC_App.php(188): OC\App\AppManager->getInstalledApps()

#12 /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php(48): OC_App::getEnabledApps()

#13 /var/www/html/lib/base.php(675): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()

#14 /var/www/html/lib/base.php(1171): OC::init()

#15 /var/www/html/console.php(28): require_once('/var/www/html/l...')

#16 /var/www/html/occ(33): require_once('/var/www/html/c...')

#17 {main}2025-07-12T18:04:53.199638886Z => Searching for hook scripts (*.sh) to run, located in the folder "/docker-entrypoint-hooks.d/before-starting"

==> Skipped: the "before-starting" folder is empty (or does not exist)

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message

[Sat Jul 12 18:04:53.272752 2025] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.62 (Debian) PHP/8.3.23 configured -- resuming normal operations

[Sat Jul 12 18:04:53.272775 2025] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

172.18.0.1 - - [12/Jul/2025:18:04:56 +0000] "GET /apps/mail/box/1 HTTP/1.1" 404 698 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"

Please post your Compose file or equivalent.

The below reference to the hook scripts is not an error. The stack trace above it however is an error.

What happens when you run occ within the container as described here (such as to view your active config - i.e. occ config:list system?

The stack trace itself looks incomplete, but is occurring at the database connect.

Also, please check your Nextcloud log as described in the support template.

EDIT: Wait, are you really trying to downgrade? Your post subject says 31.0.7.1->31.0.2.1.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.