Contact update problem -> Infinity loop

Hi. I face currently problems with my nextcloud installation.
Installed version is => ‘21.0.4.1’. I have started an update process for the contacts app.
When I now go to my nextcloud page then it says: “App-Aktualisierung notwendig” / “App-update necessary”. Then I click on “start update” and receive follwing:

Update vorbereiten
Log-Level auf “debug” gesetzt
Wartungsmodus eingeschaltet
Reparaturschritt: Repair MySQL collation
Reparaturinformation: All tables already have the correct collation → nothing to do
Reparaturschritt: Repair SQLite autoincrement
Reparaturschritt: Copy data from accounts table when migrating from ownCloud
Reparaturschritt: Drop account terms table when migrating from ownCloud
Das Datenbankschema wird aktualisiert
Datenbank aktualisiert
Es ist ein Fehler aufgetreten.

Only option I have is to reload the page and then, nextcloud is in maintenance mode.
I can head over to /config/config.php and set 'maintenance' => false. Afterward it repeats from first step.

I don’t know which files could be helpfull to provide. If you can advise me what to post I can do this.
Unfortunately I have no ssh access as I’m on managed hosting (I believe it’s called this way). However I have only ftp access and sql access to my hosted site.

Can anyone help me how to resolve this problem?

Best regards

Simon

Short update.

I had the idea to rename the folder /apps/contacts to /apps/contacts_backup and now I’m able to login again. I do now an update to v21.0.5 and see then If the contacts app still have to be updated and if so, then I check if the error re-occures.

Best regards
simon

Okay now the same error. Just with one version higher.

Aktualisierung auf 21.0.5

Es ist ein Fehler aufgetreten.
Detaillierte Protokollmeldungen
Update vorbereiten
Log-Level auf “debug” gesetzt
Wartungsmodus eingeschaltet
Reparaturschritt: Repair MySQL collation
Reparaturinformation: All tables already have the correct collation → nothing to do
Reparaturschritt: Repair SQLite autoincrement
Reparaturschritt: Copy data from accounts table when migrating from ownCloud
Reparaturschritt: Drop account terms table when migrating from ownCloud
Das Datenbankschema wird aktualisiert
Datenbank aktualisiert
Es ist ein Fehler aufgetreten.

and then

Then the same as before.
Change to 'maintenance' => false, and it repeats from begin.

p.s. now I’m completely locked out from the nextcloud webpage.

I have now found the logfile and here is the data from current update attempt.
Please note that I have the sensitive data like reqId to xxx… and the IP address.

A can’t say why the errors mean in detail and how to solve it.
But I have the information, that several updates before have worked without problems.
I think I have updated since v17.? or something.

Details Logfile

{“reqId”:“xxxxxxxxxxxxx”,“level”:3,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/nextcloud/",“message”:{“Exception”:“Error”,“Message”:“file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/var/www/vhosts/boonstra.ch/:/tmp/) at /var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php#68”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php",“line”:68,“function”:“file_exists”},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:147,“function”:“getAppTemplateDirs”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:89,“function”:“findTemplate”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/TemplateLayout.php",“line”:152,“function”:"__construct",“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:397,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:949,“function”:“printUpgradePage”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}

{“reqId”:“xxxxxxxxxxxxx”,“level”:1,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/",“message”:{“Exception”:“Symfony\Component\Routing\Exception\RouteNotFoundException”,“Message”:“Unable to generate a URL for the named route “ocs.files.DirectEditing.info” as such route does not exist.”,“Code”:0,“Trace”:[{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/Router.php",“line”:365,“function”:“generate”,“class”:“Symfony\Component\Routing\Generator\UrlGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/CachingRouter.php",“line”:60,“function”:“generate”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/URLGenerator.php",“line”:101,“function”:“generate”,“class”:“OC\Route\CachingRouter”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/apps/files/lib/Capabilities.php",“line”:72,“function”:“linkToOCSRouteAbsolute”,“class”:“OC\URLGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/CapabilitiesManager.php",“line”:72,“function”:“getCapabilities”,“class”:“OCA\Files\Capabilities”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/JSConfigHelper.php",“line”:183,“function”:“getCapabilities”,“class”:“OC\CapabilitiesManager”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/TemplateLayout.php",“line”:211,“function”:“getConfig”,“class”:“OC\Template\JSConfigHelper”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:397,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:949,“function”:“printUpgradePage”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php",“Line”:143,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}

{“reqId”:“xxxxxxxxxxxxx”,“level”:1,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/",“message”:{“Exception”:“Symfony\Component\Routing\Exception\RouteNotFoundException”,“Message”:“Unable to generate a URL for the named route “cloud_federation_api.RequestHandler.addShare” as such route does not exist.”,“Code”:0,“Trace”:[{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/Router.php",“line”:365,“function”:“generate”,“class”:“Symfony\Component\Routing\Generator\UrlGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/CachingRouter.php",“line”:60,“function”:“generate”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/URLGenerator.php",“line”:85,“function”:“generate”,“class”:“OC\Route\CachingRouter”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/URLGenerator.php",“line”:97,“function”:“linkToRoute”,“class”:“OC\URLGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/apps/cloud_federation_api/lib/Capabilities.php",“line”:45,“function”:“linkToRouteAbsolute”,“class”:“OC\URLGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/CapabilitiesManager.php",“line”:72,“function”:“getCapabilities”,“class”:“OCA\CloudFederationAPI\Capabilities”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/JSConfigHelper.php",“line”:183,“function”:“getCapabilities”,“class”:“OC\CapabilitiesManager”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/TemplateLayout.php",“line”:211,“function”:“getConfig”,“class”:“OC\Template\JSConfigHelper”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:397,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:949,“function”:“printUpgradePage”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php",“Line”:143,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}

{“reqId”:“xxxxxxxxxxxxx”,“level”:1,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/",“message”:{“Exception”:“Symfony\Component\Routing\Exception\RouteNotFoundException”,“Message”:“Unable to generate a URL for the named route “ocs.password_policy.API.generate” as such route does not exist.”,“Code”:0,“Trace”:[{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/Router.php",“line”:365,“function”:“generate”,“class”:“Symfony\Component\Routing\Generator\UrlGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/CachingRouter.php",“line”:60,“function”:“generate”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/URLGenerator.php",“line”:101,“function”:“generate”,“class”:“OC\Route\CachingRouter”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/apps/password_policy/lib/Capabilities.php",“line”:57,“function”:“linkToOCSRouteAbsolute”,“class”:“OC\URLGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/CapabilitiesManager.php",“line”:72,“function”:“getCapabilities”,“class”:“OCA\Password_Policy\Capabilities”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/JSConfigHelper.php",“line”:183,“function”:“getCapabilities”,“class”:“OC\CapabilitiesManager”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/TemplateLayout.php",“line”:211,“function”:“getConfig”,“class”:“OC\Template\JSConfigHelper”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:397,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:949,“function”:“printUpgradePage”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php",“Line”:143,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}

{“reqId”:“xxxxxxxxxxxxx”,“level”:1,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/",“message”:{“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/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/Router.php",“line”:365,“function”:“generate”,“class”:“Symfony\Component\Routing\Generator\UrlGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Route/CachingRouter.php",“line”:60,“function”:“generate”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/URLGenerator.php",“line”:101,“function”:“generate”,“class”:“OC\Route\CachingRouter”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/apps/password_policy/lib/Capabilities.php",“line”:58,“function”:“linkToOCSRouteAbsolute”,“class”:“OC\URLGenerator”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/CapabilitiesManager.php",“line”:72,“function”:“getCapabilities”,“class”:“OCA\Password_Policy\Capabilities”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/JSConfigHelper.php",“line”:183,“function”:“getCapabilities”,“class”:“OC\CapabilitiesManager”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/TemplateLayout.php",“line”:211,“function”:“getConfig”,“class”:“OC\Template\JSConfigHelper”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/private/Template/Base.php",“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:397,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/lib/base.php",“line”:949,“function”:“printUpgradePage”,“class”:“OC”,“type”:"::"},{“file”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/vhosts/boonstra.ch/httpdocs/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php",“Line”:143,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}

{“reqId”:“xxxxxxxxxxxxx”,“level”:0,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“files_external”,“method”:“GET”,“url”:"/nextcloud/",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}

{“reqId”:“xxxxxxxxxxxxx”,“level”:0,“time”:“2021-10-06T04:12:03+00:00”,“remoteAddr”:“333.333.333.333”,“user”:"–",“app”:“files_sharing”,“method”:“GET”,“url”:"/nextcloud/",“message”:"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.",“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36”,“version”:“21.0.4.1”}