Error upgrading to Nextcloud 14.03

Nextcloud version: 14.03
Operating system and version: Unknown Linux
Apache or nginx version (eg, Apache 2.4.25): Unknown Apache
PHP version (eg, 7.1): 7.2

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Start from “production” branch and update to latest 13.0X
  2. Change to stable branch to upgrade to 14.03
  3. After upgrade return to finish update.

updater.log: https://pastebin.com/41UitQVN

nextcloud.log: https://gist.github.com/tanghus/77296771852a5c1acf8384baf2070720

config.php:

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'www.example.com',
    1 => 'cloud.example.com',
  ),
  'datadirectory' => '/home/sites/site34/clouddata',
  'overwrite.cli.url' => 'https://www.example.com/cloud',
  'dbtype' => 'mysql',
  'version' => '13.0.7.2',
  'dbname' => 'db15674',
  'dbhost' => 'mysql.example.com',
  'dbport' => '',
  'dbtableprefix' => 'nc_',
  'dbuser' => 'u15674',
  'dbpassword' => '',
  'installed' => true,
  'knowledgebaseenabled' => true,
  'allow_user_to_change_display_name' => true,
  'mail_domain' => 'example.com',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'updater.secret' => '',
);

The output of your Apache/nginx/system log in /var/log/____:

[Sat Oct 20 19:08:38 2018] [error] [client 87.50.31.42] 
[Sat Oct 20 19:11:32 2018] [error] [client 87.50.31.42] File does not exist: /home/sites/site34/web/cloud/ocs
[Sat Oct 20 19:13:06 2018] [error] [client 87.50.31.42] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in /home/sites/site34/web/cloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 48

The installation is on a shared hosting space, so I have no shell access, and I don’t know the exact Linux and MySQL versions.
/home/sites/site34/web/cloud/ocs exists, but it is a directory.

Your php script wants to run longer than 60s but it can’t. Check if you can raise the execution time of your php scripts (via php.ini or customer interface), in case it is a hard limit, it’s more complicated:
So there is a limit and the script needs to do more than it can. You could try to reduce the tasks of the script, e.g. disable apps before the ugprade so it only upgrade the core. Activate the apps afterwards, they will then be upgraded individually. However, if you are on a growing setup, you might come to a point where this isn’t possible any more.

Other idea: You could migrate the setup to a local computer, run the upgrade and migrate back. Most changes concern the database, so perhaps you don’t have to move all data.

Sadly I’m not able to raise the execution time. Disabling apps seems to be the best option, but the problem is, that I cannot access the admin interface to do so. Can I do that directly in the database?

Probably, but I can’t tell you exactly where. You can also delete the app from the app-folder manually.

I found the proper place (I think) to disable the apps (nc_appconfig), and disabled almost all the apps. Now I get another error:

[Wed Oct 24 08:30:51 2018] [error] [client 192.38.142.198] (104)Connection reset by peer: Error reading request entity data
[Wed Oct 24 08:35:51 2018] [error] [client 192.38.142.198] (70007)The timeout specified has expired: Error reading request entity data

Now I - again - have no idea what to do…

If you disable some core apps, this can create errors. I’d disable apps one by one. I don’t know enough to guess what could be the issue. I’d only disable apps that are additional and were not enabled by default, where you are sure they are not very deep in the system (disable: calendar, bookmarks etc, rather not: sharing stuff, …).

Sorry, I haven’t been able to look at this before now.

Now there are no errors in the the server log, but a worrying one in nextcloud.log: "Exception":"Error","Message":"Class 'OCP\\Config' not found". And this is repeated many times.

I have installation and data separated, so I could manually upload a new installation. I’m not that comfortable down/uploading the database :frowning:

{"reqId":"W9fnVNkLMLcAADei1-sAAAAG","level":3,"time":"2018-10-30T05:08:36+00:00","remoteAddr":"87.50.31.42","user":"--","app":"index","method":"GET","url":"\/index.php\/csrftoken","message":
{"Exception":"Error","Message":"Class 'OCP\\Config' not found","Code":0,
"Trace":[
{"file":"\/home\/sites\/site34\/web\/cloud\/apps\/files_reader\/lib\/Hooks.php","line":41,"function":"get","class":"OCA\\Files_Reader\\Config","type":"::","args":["epub_enable","true"]},
{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/private\/legacy\/hook.php","line":106,"function":"announce_settings","class":"OCA\\Files_Reader\\Hooks","type":"::","args":[{"array":{"oc_debug":"false","oc_isadmin":"false","backendAllowsPasswordConfirmation":"true","oc_dataURL":"false","oc_webroot":"\"\"","oc_appswebroots":"{\"caniupdate\":\"\/apps\/caniupdate\",\"cloud_federation_api\":\"\/apps\/cloud_federation_api\",\"cms_pico\":\"\/apps\/cms_pico\",\"dav\":\"\/apps\/dav\",\"federatedfilesharing\":\"\/apps\/federatedfilesharing\",\"files\":\"\/apps\/files\",\"files_external\":\"\/apps\/files_external\",\"files_reader\":\"\/apps\/files_reader\",\"files_sharing\":\"\/apps\/files_sharing\",\"files_texteditor\":\"\/apps\/files_texteditor\",\"files_trashbin\":\"\/apps\/files_trashbin\",\"files_versions\":\"\/apps\/files_versions\",\"firstrunwizard\":\"\/apps\/firstrunwizard\",\"logreader\":\"\/apps\/logreader\",\"lookup_server_connector\":\"\/apps\/lookup_server_connector\",\"nextcloud_announcements\":\"\/apps\/nextcloud_announcements\",\"notifications\":\"\/apps\/notifications\",\"oauth2\":\"\/apps\/oauth2\",\"password_policy\":\"\/apps\/password_policy\",\"provisioning_api\":\"\/apps\/provisioning_api\",\"quota_warning\":\"\/apps\/quota_warning\",\"serverinfo\":\"\/apps\/serverinfo\",\"sharebymail\":\"\/apps\/sharebymail\",\"survey_client\":\"\/apps\/survey_client\",\"twofactor_backupcodes\":\"\/apps\/twofactor_backupcodes\",\"updatenotification\":\"\/apps\/updatenotification\",\"workflowengine\":\"\/apps\/workflowengine\"}","datepickerFormatDate":"\"dd\\\/MM\\\/y\"","nc_lastLogin":0,"nc_pageLoad":1540876116,"dayNames":"[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]","dayNamesShort":"[\"Sun.\",\"Mon.\",\"Tue.\",\"Wed.\",\"Thu.\",\"Fri.\",\"Sat.\"]","dayNamesMin":"[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]","monthNames":"[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]","monthNamesShort":"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"May.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Oct.\",\"Nov.\",\"Dec.\"]","firstDay":"1","oc_config":"{\"session_lifetime\":1440,\"session_keepalive\":true,\"version\":\"14.0.3.0\",\"versionstring\":\"14.0.3\",\"enable_avatars\":true,\"lost_password_link\":null,\"modRewriteWorking\":false,\"sharing.maxAutocompleteResults\":0,\"sharing.minSearchStringLength\":0,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\"}","oc_appconfig":"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/14\\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true},\"files\":{\"max_chunk_size\":10485760}}","oc_defaults":"{\"entity\":\"Nextcloud\",\"name\":\"Nextcloud\",\"title\":\"Nextcloud\",\"baseUrl\":\"https:\\\/\\\/nextcloud.com\",\"syncClientUrl\":\"https:\\\/\\\/nextcloud.com\\\/install\\\/#install-clients\",\"docBaseUrl\":\"https:\\\/\\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/14\\\/go.php?to=PLACEHOLDER\",\"slogan\":\"a safe home for all your data\",\"logoClaim\":\"\",\"shortFooter\":\"<a href=\\\"https:\\\/\\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">Nextcloud<\\\/a> \\u2013 a safe home for all your data\",\"longFooter\":\"<a href=\\\"https:\\\/\\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">Nextcloud<\\\/a> \\u2013 a safe home for all your data\",\"folder\":\"\"}","oc_capabilities":"{\"core\":{\"pollinterval\":60,\"webdav-root\":\"remote.php\\\/webdav\"},\"bruteforce\":{\"delay\":0},\"dav\":{\"chunking\":\"1.0\"},\"files_sharing\":{\"api_enabled\":true,\"public\":{\"enabled\":true,\"password\":{\"enforced\":false},\"expire_date\":{\"enabled\":false},\"send_mail\":false,\"upload\":true,\"upload_files_drop\":true},\"resharing\":true,\"user\":{\"send_mail\":false,\"expire_date\":{\"enabled\":true}},\"group_sharing\":true,\"group\":{\"enabled\":true,\"expire_date\":{\"enabled\":true}},\"default_permissions\":31,\"federation\":{\"outgoing\":true,\"incoming\":true,\"expire_date\":{\"enabled\":true}},\"sharebymail\":{\"enabled\":true,\"upload_files_drop\":{\"enabled\":true},\"password\":{\"enabled\":true},\"expire_date\":{\"enabled\":true}}},\"files\":{\"bigfilechunking\":true,\"blacklisted_files\":[\".htaccess\"],\"undelete\":true,\"versioning\":true}}"}}]},
{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/private\/Template\/JSConfigHelper.php","line":277,"function":"emit","class":"OC_Hook","type":"::","args":["\\OCP\\Config","js",{"array":{"oc_debug":"false","oc_isadmin":"false","backendAllowsPasswordConfirmation":"true","oc_dataURL":"false","oc_webroot":"\"\"","oc_appswebroots":"{\"caniupdate\":\"\/apps\/caniupdate\",\"cloud_federation_api\":\"\/apps\/cloud_federation_api\",\"cms_pico\":\"\/apps\/cms_pico\",\"dav\":\"\/apps\/dav\",\"federatedfilesharing\":\"\/apps\/federatedfilesharing\",\"files\":\"\/apps\/files\",\"files_external\":\"\/apps\/files_external\",\"files_reader\":\"\/apps\/files_reader\",\"files_sharing\":\"\/apps\/files_sharing\",\"files_texteditor\":\"\/apps\/files_texteditor\",\"files_trashbin\":\"\/apps\/files_trashbin\",\"files_versions\":\"\/apps\/files_versions\",\"firstrunwizard\":\"\/apps\/firstrunwizard\",\"logreader\":\"\/apps\/logreader\",\"lookup_server_connector\":\"\/apps\/lookup_server_connector\",\"nextcloud_announcements\":\"\/apps\/nextcloud_announcements\",\"notifications\":\"\/apps\/notifications\",\"oauth2\":\"\/apps\/oauth2\",\"password_policy\":\"\/apps\/password_policy\",\"provisioning_api\":\"\/apps\/provisioning_api\",\"quota_warning\":\"\/apps\/quota_warning\",\"serverinfo\":\"\/apps\/serverinfo\",\"sharebymail\":\"\/apps\/sharebymail\",\"survey_client\":\"\/apps\/survey_client\",\"twofactor_backupcodes\":\"\/apps\/twofactor_backupcodes\",\"updatenotification\":\"\/apps\/updatenotification\",\"workflowengine\":\"\/apps\/workflowengine\"}","datepickerFormatDate":"\"dd\\\/MM\\\/y\"","nc_lastLogin":0,"nc_pageLoad":1540876116,"dayNames":"[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]","dayNamesShort":"[\"Sun.\",\"Mon.\",\"Tue.\",\"Wed.\",\"Thu.\",\"Fri.\",\"Sat.\"]","dayNamesMin":"[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]","monthNames":"[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]","monthNamesShort":"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"May.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Oct.\",\"Nov.\",\"Dec.\"]","firstDay":"1","oc_config":"{\"session_lifetime\":1440,\"session_keepalive\":true,\"version\":\"14.0.3.0\",\"versionstring\":\"14.0.3\",\"enable_avatars\":true,\"lost_password_link\":null,\"modRewriteWorking\":false,\"sharing.maxAutocompleteResults\":0,\"sharing.minSearchStringLength\":0,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\"}","oc_appconfig":"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/14\\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true},\"files\":{\"max_chunk_size\":10485760}}","oc_defaults":"{\"entity\":\"Nextcloud\",\"name\":\"Nextcloud\",\"title\":\"Nextcloud\",\"baseUrl\":\"https:\\\/\\\/nextcloud.com\",\"syncClientUrl\":\"https:\\\/\\\/nextcloud.com\\\/install\\\/#install-clients\",\"docBaseUrl\":\"https:\\\/\\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/14\\\/go.php?to=PLACEHOLDER\",\"slogan\":\"a safe home for all your data\",\"logoClaim\":\"\",\"shortFooter\":\"<a href=\\\"https:\\\/\\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">Nextcloud<\\\/a> \\u2013 a safe home for all your data\",\"longFooter\":\"<a href=\\\"https:\\\/\\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">Nextcloud<\\\/a> \\u2013 a safe home for all your data\",\"folder\":\"\"}","oc_capabilities":"{\"core\":{\"pollinterval\":60,\"webdav-root\":\"remote.php\\\/webdav\"},\"bruteforce\":{\"delay\":0},\"dav\":{\"chunking\":\"1.0\"},\"files_sharing\":{\"api_enabled\":true,\"public\":{\"enabled\":true,\"password\":{\"enforced\":false},\"expire_date\":{\"enabled\":false},\"send_mail\":false,\"upload\":true,\"upload_files_drop\":true},\"resharing\":true,\"user\":{\"send_mail\":false,\"expire_date\":{\"enabled\":true}},\"group_sharing\":true,\"group\":{\"enabled\":true,\"expire_date\":{\"enabled\":true}},\"default_permissions\":31,\"federation\":{\"outgoing\":true,\"incoming\":true,\"expire_date\":{\"enabled\":true}},\"sharebymail\":{\"enabled\":true,\"upload_files_drop\":{\"enabled\":true},\"password\":{\"enabled\":true},\"expire_date\":{\"enabled\":true}}},\"files\":{\"bigfilechunking\":true,\"blacklisted_files\":[\".htaccess\"],\"undelete\":true,\"versioning\":true}}"}}]},{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/private\/TemplateLayout.php","line":176,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},
{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/private\/legacy\/template.php","line":210,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest",""]},
{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/private\/Template\/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},
{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/base.php","line":399,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},
{"file":"\/home\/sites\/site34\/web\/cloud\/lib\/base.php","line":942,"function":"printUpgradePage","class":"OC","type":"::","args":[{"__class__":"OC\\SystemConfig"}]},
{"file":"\/home\/sites\/site34\/web\/cloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/home\/sites\/site34\/web\/cloud\/apps\/files_reader\/lib\/config.php","Line":28,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko\/20100101 Firefox\/56.0","version":"13.0.7.2"}

Looks like it’s related to the files reader, there is already a fix but it hasn’t been merged yet:

Thank you so very much! You made my day :sunny: