I’m running image nextcloud:30.0.6-apache
and when I upgrade to nextcloud:31.0.0-apache
I see this in my pod logs:
Configuring Redis as session handler
Initializing nextcloud 31.0.0.18 ...
Upgrading nextcloud from 30.0.6.2 ...
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-upgrade
An unhandled exception has been thrown:
Error: Typed static property OC::$server must not be accessed before initialization in /var/www/html/lib/public/Server.php:39
Stack trace:
#0 /var/www/html/lib/public/Util.php(41): OCP\Server::get('OCP\\ServerVersi...')
#1 /var/www/html/config/config.php(62): OCP\Util::getVersion()
#2 /var/www/html/lib/private/Config.php(209): include('/var/www/html/c...')
#3 /var/www/html/lib/private/Config.php(40): OC\Config->readData()
#4 /var/www/html/lib/base.php(89): OC\Config->__construct('/var/www/html/c...')
#5 /var/www/html/lib/base.php(579): OC::initPaths()
#6 /var/www/html/lib/base.php(1149): OC::init()
#7 /var/www/html/console.php(28): require_once('/var/www/html/l...')
#8 /var/www/html/occ(11): require_once('/var/www/html/c...')
#9 {main}
The nextcloud.log doesn’t show any logging during the time of upgrading.
My config file is:
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'datadirectory' => '/var/www/html/data',
'dbhost' => getenv('POSTGRES_HOST'),
'dbname' => getenv('POSTGRES_DB'),
'dbpassword' => getenv('POSTGRES_PASSWORD'),
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbtype' => 'pgsql',
'dbuser' => getenv('POSTGRES_USER'),
'default_phone_region' => 'NL',
'instanceid' => 'ocuipheunq4t',
'installed' => true,
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'REDACTED',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'REDACTED',
'mail_smtpport' => '25',
'maintenance_window_start' => 1,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'REDACTED',
'redis' =>
array (
'host' => getenv('REDIS_HOST'),
'password' => getenv('REDIS_HOST_PASSWORD'),
'port' => 6379,
),
'passwordsalt' => 'REDACTED',
'secret' => 'REDACTED',
'social_login_auto_redirect' => true,
'trusted_domains' =>
array (
0 => 'REDACTED',
),
'trusted_proxies' =>
array (
0 => 'REDACTED',
),
'upgrade.disable-web' => true,
'version' => implode('.', \OCP\Util::getVersion()),
);