Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version 24.0.12.1
Operating system and version Ubuntu 20.04.4
Apache version 2.4.41
PHP version 8.1.5
The issue you are facing:
Started the upgrade to version 25 from the web interface. After clicking the button “click the button to disable maintenance…” I received a blank page.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '...',
'passwordsalt' => '...',
'secret' => '...',
'trusted_domains' => array (
0 => 'cloud.mysite.com',
),
'datadirectory' => '/var/www/cloudData',
'dbtype' => 'sqlite3',
'version' => '24.0.12.1',
'overwrite.cli.url' => 'http://cloud.mysite.com',
'overwriteprotocol' => 'https',
'installed' => true,
'loglevel' => 1,
'logfile' => 'nextcloud.log',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_domain' => 'mysite.com',
'mail_from_address' => 'notify',
'mail_smtphost' => '...',
'mail_smtpname' => '...',
'mail_smtppassword' => '...',
'mail_smtpport' => '465',
'updater.secret' => '...',
'maintenance' => false,
'theme' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Mon Oct 02 20:27:54.238618 2023] [php7:error] [pid 907] [client ::1:41646] PHP Fatal error: Declaration of OCA\\Talk\\Share\\RoomShareProvider::getSharesInFolder($userId, OCP\\Files\\Folder $node, $reshares): array must be compatible with OCP\\Share\\IShareProvider::getSharesInFolder($userId, OCP\\Files\\Folder $node, $reshares, $shallow = true) in /var/www/cloud/apps/spreed/lib/Share/RoomShareProvider.php on line 520, referer: https://cloud.mysite.com/
sudo -u www-data php occ maintenance:repair:
PHP Fatal error: Declaration of OCA\Talk\Share\RoomShareProvider::getSharesInFolder($userId, OCP\Files\Folder $node, $reshares): array must be compatible with OCP\Share\IShareProvider::getSharesInFolder($userId, OCP\Files\Folder $node, $reshares, $shallow = true) in /var/www/cloud/apps/spreed/lib/Share/RoomShareProvider.php on line 520
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{
"reqId": "YYI8VeWy68GMDZpqmgup",
"level": 1,
"time": "2023-10-02T19:51:36+00:00",
"remoteAddr": "::1",
"user": "--",
"app": "no app in context",
"method": "GET",
"url": "/index.php/204",
"message": "Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.",
"userAgent": "Mozilla/5.0 (Windows) mirall/3.10.0stable-Win64 (build 20230915) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)",
"version": "24.0.12.1",
"exception": {
"Exception": "Symfony\\Component\\Routing\\Exception\\RouteNotFoundException",
"Message": "Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.",
"Code": 0,
"Trace": [
{
"file": "/var/www/cloud/lib/private/Route/Router.php",
"line": 361,
"function": "generate",
"class": "Symfony\\Component\\Routing\\Generator\\UrlGenerator",
"type": "->"
},
{
"file": "/var/www/cloud/lib/private/URLGenerator.php",
"line": 119,
"function": "generate",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/cloud/apps/password_policy/lib/Capabilities.php",
"line": 59,
"function": "linkToOCSRouteAbsolute",
"class": "OC\\URLGenerator",
"type": "->"
},
{
"file": "/var/www/cloud/lib/private/CapabilitiesManager.php",
"line": 75,
"function": "getCapabilities",
"class": "OCA\\Password_Policy\\Capabilities",
"type": "->"
},
{
"file": "/var/www/cloud/lib/private/Template/JSConfigHelper.php",
"line": 166,
"function": "getCapabilities",
"class": "OC\\CapabilitiesManager",
"type": "->"
},
{
"file": "/var/www/cloud/lib/private/TemplateLayout.php",
"line": 235,
"function": "getConfig",
"class": "OC\\Template\\JSConfigHelper",
"type": "->"
},
{
"file": "/var/www/cloud/lib/private/legacy/OC_Template.php",
"line": 184,
"function": "__construct",
"class": "OC\\TemplateLayout",
"type": "->"
},
{
"file": "/var/www/cloud/lib/private/Template/Base.php",
"line": 132,
"function": "fetchPage",
"class": "OC_Template",
"type": "->"
},
{
"file": "/var/www/cloud/lib/base.php",
"line": 414,
"function": "printPage",
"class": "OC\\Template\\Base",
"type": "->"
},
{
"file": "/var/www/cloud/lib/base.php",
"line": 1002,
"function": "printUpgradePage",
"class": "OC",
"type": "::"
},
{
"file": "/var/www/cloud/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/cloud/3rdparty/symfony/routing/Generator/UrlGenerator.php",
"Line": 143,
"message": "Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.",
"exception": {},
"CustomMessage": "Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist."
}
}
Edit: Solved the issue. The app Talk was not compatible anymore, had to disable it with “sudo -u www-data php occ app:disable spreed”.
(Spreed is the name of the talk app).
After that I was able to continue the upgrade process via web interface.