I am having a really difficult time upgrading my Nextcloud version, running into the error in the title. Can someone please help?
Nextcloud Version: 13.0.0.14
Operating System: Alpine 3.10
Nginx Version: 1.14.2
PHP Version: 7.2.18
The issue you are facing:
Remove potentially over exposing share links
Done
0/0 [>---------------------------] 0%
An unhandled exception has been thrown:
Error: Call to a member function getUsers() on null in /config/www/nextcloud/lib/private/Repair/RemoveLinkShares.php:218
Stack trace:
#0 /config/www/nextcloud/lib/private/Repair/RemoveLinkShares.php(230): OC\Repair\RemoveLinkShares->repair(Object(OC\Repair))
#1 /config/www/nextcloud/lib/private/Repair.php(91): OC\Repair\RemoveLinkShares->run(Object(OC\Repair))
#2 /config/www/nextcloud/lib/private/Updater.php(265): OC\Repair->run()
#3 /config/www/nextcloud/lib/private/Updater.php(121): OC\Updater->doUpgrade('14.0.12.0', '13.0.0.14')
#4 /config/www/nextcloud/core/Command/Upgrade.php(258): OC\Updater->upgrade()
#5 /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php(251): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /config/www/nextcloud/3rdparty/symfony/console/Application.php(946): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /config/www/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /config/www/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /config/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /config/www/nextcloud/console.php(96): OC\Console\Application->run()
#11 /config/www/nextcloud/occ(11): require_once('/config/www/nex...')
Is this the first time you’ve seen this error? Yes
Steps to replicate it:
sudo -u abc php occ upgrade
The output of your Nextcloud log in Admin > Logging:
The file nextcloud.log is empty.
config.php:
?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => 'INSTANCE_ID',
'passwordsalt' => 'PASSWORD_SALT',
'secret' => 'SECRET',
'trusted_domains' =>
array (
0 => '192.168.44.8:4400',
1 => 'XXX.YYY.ZZZ',
),
'trusted_proxies' =>
array (
0 => '192.168.44.8',
),
'overwrite.cli.url' => 'https://192.168.44.8:4400',
'dbtype' => 'pgsql',
'version' => '13.0.0.14',
'dbname' => 'Nextcloud',
'dbhost' => '192.168.44.8:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'PASSWORD'',
'installed' => true,
'maintenance' => true,
'updater.secret' => 'UPDATER_SECRET',
'theme' => '',
'loglevel' => 0,
);
The output of your Apache/nginx/system log in /var/log/____
:
2019/07/01 07:07:09 [error] 328#328: *15 open() "/config/www/nextcloud/favicon.ico" failed (2: No such file or directory), client: 172.17.0.1, server: _, request: "GET /favicon.ico HTTP/1.1", host: "XXX.YYY.ZZZ:443"
2019/07/01 09:42:00 [error] 327#327: *1 open() "/config/www/nextcloud/favicon.ico" failed (2: No such file or directory), client: 172.17.0.1, server: _, request: "GET /favicon.ico HTTP/1.1", host: "XXX.YYY.ZZZ:443"
2019/07/01 10:15:58 [error] 327#327: *3 open() "/config/www/nextcloud/favicon.ico" failed (2: No such file or directory), client: 192.168.44.220, server: _, request: "GET /favicon.ico HTTP/1.1", host: "192.168.44.8:4400"