Server error 504: error Message: See your webserver logs for details. Whilst upgrading

Steps to reproduce

1.I am not sure that you can nessecarily recreate this.
2.I have version 10.7.0.4 on a standard server, and everything has worked for years until this update.
3.

Expected behaviour

The application should update

Actual behaviour

The application update process gets stuck at the Creating Checkpoint stgae and throws the error message above.

Server configuration

Operating system:
Ubuntu 18:04
Web server:
Hosting Factory Cloud Server
Database:
Maria
PHP version:
7.4.26
ownCloud version: (see ownCloud admin page)
10.7.0.4
Updated from an older ownCloud or fresh install:
I’m trying to update to 10.8
Where did you install ownCloud from:
OwnCloud
Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' => 'ocmy5ayaqjer', 'passwordsalt' => '7DteeBbvO+mMmbgW2mSJg3EJxuvh7k', 'secret' => 'KCVhUlfD+nq2Y4WW6sfzVlW+l095PaGjqHHrR+/ZCXYqysSF', 'trusted_domains' => array ( 0 => 'e4p.ch', ), 'datadirectory' => '/var/www/vhosts/e4p.ch/httpdocs/owncloud/data', 'overwrite.cli.url' => 'https://e4p.ch/owncloud', 'dbtype' => 'mysql', 'version' => '10.7.0.4', 'dbname' => 'e4p-owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'raperple', 'dbpassword' => 'Ce*6ug12', 'logtimezone' => 'UTC', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/vhosts/e4p.ch/httpdocs/owncloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/vhosts/e4p.ch/httpdocs/owncloud/apps-external', 'url' => '/apps-external', 'writable' => true, ), ), 'installed' => true, 'theme' => '', 'loglevel' => 2, 'maintenance' => false, 'updater.secret' => '$2y$10$WuePxiWswcV0Y6cKASMXH.tgj7jqcPBeWKd.pPiZjClXMcV9TFlbW', ); ``` Log in to the web-UI with an administrator account and click on 'admin' -> 'Generate Config Report' -> 'Download ownCloud config report' This report includes the config.php settings, the list of activated apps and other details in a well sanitized form. or If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your ownCloud installation folder *ATTENTION:* Do not post your config.php file in public as is. Please use one of the above methods whenever possible. Both, the generated reports from the web-ui and from occ config:list consistently remove sensitive data. You still may want to review the report before sending. If done manually then it is critical for your own privacy to dilligently remove *all* host names, passwords, usernames, salts and other credentials before posting. You should assume that attackers find such information and will use them against your systems. ``` **List of activated apps:** ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your ownCloud installation folder. ``` **Are you using external storage, if yes which one:** local/smb/sftp/... **Are you using encryption:** yes/no **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... #### LDAP configuration (delete this part if not used) ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your ownCloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ``` ### Client configuration **Browser:** **Operating system:** ### Logs #### Web server error log ``` AH01071: Got error 'PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/appinfo\\/routes.php) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/lib\\/private\\/Route\\/Router.php#134"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/user.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/folder.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/shared.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/shield.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/more.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"no app in context","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"Exception: {\\"Exception\\":\\"OCP\\\\\\\\App\\\\\\\\AppNotFoundException\\",\\"Message\\":\\" does not exist\\",\\"Code\\":0,\\"Trace\\":\\"#0 \\\\\\/var\\\\\\/www\\\\\\/vhosts\\\\\\/e4p.ch\\\\\\/httpdocs\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/App\\\\\\/AppManager.php(482): OC\\\\\\\\App\\\\\\\\InfoParser->parse()\\\\n#1 \\\\\\/var\\\\\\/www\\\\\\/vhosts\\\\\\/e4p.ch\\\\\\/httpdocs\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/App\\\\\\/AppManager.php(771): OC\\\\\\\\App\\\\\\\\AppManager->getAppInfoByPath()\\\\n#2 \\\\\\/var\\\\\\/www\\\\\\/vhosts\\\\\\/e4p.ch\\\\\\/httpdocs\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/App\\\\\\/AppManager.php(712): OC\\\\\\\\App\\\\\\\\AppManager->getAppVersionByPath()\\\\n#3 \\\\\\/var\\\\\\/www\\\\\\/vhosts\\\\\\/e4p.ch\\\\\\/httpdocs\\\\\\/owncloud\\\\\\/lib\\\\\\/private\\\\\\/App\\\\\\/AppManager.php(654): OC\\\\\\\\App\\\\\\\\AppManager->findAppInDirectories()\\\\n#4 \\\\\\/var\\\\\\/www\\\\...PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/list.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/settings.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/folder.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/user.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/shared.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/info.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}PHP message: {"reqId":"YZykV9PHfHaldnxRi2S6VgAAAAQ","level":3,"time":"2021-11-23T08:20:40+00:00","remoteAddr":"83.97.87.231","user":"admin","app":"PHP","method":"GET","url":"\\/owncloud\\/index.php\\/settings\\/admin?sectionid=general","message":"file_exists(): open_basedir restriction in effect. File(\\/img\\/more.svg) is not within the allowed path(s): (\\/var\\/www\\/vhosts\\/e4p.ch\\/:\\/tmp\\/) at \\/var\\/www\\/vhosts\\/e4p.ch\\/httpdocs\\/owncloud\\/settings\\/Controller\\/SettingsPageController.php#123"}' Insert your webserver log here ``` #### ownCloud log (data/owncloud.log) ``` Insert your ownCloud log here [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 [info] Execution of upgrade:checkSystem command started [info] Execution of upgrade:checkSystem command stopped. Exit code is 0 [info] Execution of upgrade:checkpoint command started [info] Execution of upgrade:checkpoint command stopped. Exit code is 0 [info] Execution of upgrade:detect command started [info] ownCloud 10.7.0.4 found [info] Execution of upgrade:detect command stopped. Exit code is 0 ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```

I cannot analyze your entire dump, but I’m quite sure you didn’t follow the official docs for upgrading. Some more detailed info might be helpful.

Couple of things there:

  • Why ownCloud is trying to load “/img/shared.svg”? It seems that a bunch of images are trying to be loaded from the root folder, which shouldn’t happen.
  • If you really really need to load the images from “/img”, you should include that folder in the open_basedir. (Check php configuration)

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