Can not update from NC 25 .04 to anything

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud version (eg, 20.0.5): 25.0.4.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.03
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 7.4): 8.1.2-1ubuntu2.14

The issue you are facing:

I am unable to update to the latest Nextcloud version for 25 which would be 25.0.13

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

Steps to replicate it:

  1. Backup Nextcloud directory and Database
  2. Disable all apps
  3. Click “Open Updater” under administration settings or use sudo -u www-data php occ upgrade

The output of your Nextcloud log in Admin > Logging:

Info	updater	\OC\Updater::resetLogLevel: Reset log level to Error(3)		2023-12-30T18:21:17-0700
Info	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode		2023-12-30T18:21:17-0700
Info	updater	\OC\Updater::updateEnd: Update successful		2023-12-30T18:21:17-0700
Info	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check		2023-12-30T18:21:17-0700
Info	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add possibly missing system config		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clean up abandoned apps		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add token cleanup job		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add background job to set the lookup server share state for users		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair DAV shares		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Queue a one-time job to check for user uploaded certificates		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add job to cleanup the bruteforce entries		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Remove old dashboard app config data		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Check encryption key format		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Keep legacy encryption enabled		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Reset generated avatar flag		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear access cache of projects		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: No need to remove link shares.		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Remove potentially over exposing share links		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add background job to cleanup login flow v2 tokens		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Cleanup invalid photocache files for carddav		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Queue a one-time job to cleanup old backups of the updater		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add preview background cleanup job		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear every generated avatar on major updates		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: JS cache cleared		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Image cache cleared		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clear frontend caches		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add log rotate job		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair language codes		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: No mounts updated		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Fix potential broken mount points		2023-12-30T18:21:13-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Update the oauth2_clients table schema.		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Update the oauth2_access_tokens table schema.		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Migrate oauth2_clients table to nextcloud schema		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add preview cleanup background jobs		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: Repair step already executed		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Add move avatar background job		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Move .step file of updater to backup location		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair invalid shares		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tags with no entries have been removed.		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tag entries for deleted tags have been removed.		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tags for delete files have been removed.		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: 0 tags of deleted users have been removed.		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Clean tags and favorites		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair mime types		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: All tables already have the correct collation -> nothing to do		2023-12-30T18:21:12-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair MySQL collation		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "workflowengine" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "workflowengine" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "viewer" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "viewer" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "updatenotification" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "updatenotification" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "twofactor_backupcodes" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "twofactor_backupcodes" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "theming" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "theming" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "settings" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "settings" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "provisioning_api" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "provisioning_api" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "oauth2" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "oauth2" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "lookup_server_connector" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "lookup_server_connector" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "files" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "files" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "federatedfilesharing" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "federatedfilesharing" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "dav" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "dav" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreApp: Checked for update of app "cloud_federation_api" in appstore		2023-12-30T18:21:12-0700
Debug	updater	\OC\Updater::checkAppStoreAppBefore: Checking for update of app "cloud_federation_api" in appstore		2023-12-30T18:21:10-0700
Info	updater	\OC\Updater::appUpgrade: Updated <oauth2> to 1.13.0		2023-12-30T18:21:10-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Update OAuth token expiration times		2023-12-30T18:21:10-0700
Info	updater	\OC\Updater::appUpgradeStarted: Updating <oauth2> ...		2023-12-30T18:21:10-0700
Info	updater	\OC\Updater::dbUpgrade: Updated database		2023-12-30T18:21:10-0700
Info	updater	\OC\Updater::dbUpgradeBefore: Updating database schema		2023-12-30T18:21:10-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Drop account terms table when migrating from ownCloud		2023-12-30T18:21:10-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Copy data from accounts table when migrating from ownCloud		2023-12-30T18:21:10-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair SQLite autoincrement		2023-12-30T18:21:10-0700
Info	updater	OC\Repair\Events\RepairInfoEvent: Repair info: All tables already have the correct collation -> nothing to do		2023-12-30T18:21:10-0700
Info	updater	OC\Repair\Events\RepairStepEvent: Repair step: Repair MySQL collation		2023-12-30T18:21:10-0700
Debug	core	starting upgrade from 25.0.4.1 to 25.0.4.1		2023-12-30T18:21:10-0700
Info	updater	\OC\Updater::maintenanceEnabled: Turned on maintenance mode		2023-12-30T18:21:10-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-30T06:37:09-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-30T05:48:00-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-30T03:21:21-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-30T02:47:10-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-30T00:45:05-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-29T23:24:45-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-29T22:56:35-0700
Error	PHP	Missing boundary in multipart/form-data POST data at Unknown#0		2023-12-29T20:50:18-0700

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '*****************',
  'objectstore' => 
  array (
    'class' => '\\OC\\Files\\ObjectStore\\S3',
    'arguments' => 
    array (
      'bucket' => '********************',
      'key' => '****************',
      'secret' => '***********************',
      'use_ssl' => true,
      'hostname' => '***********************',
    ),
  ),
  'passwordsalt' => '*************************',
  'secret' => '****************************',
  'trusted_domains' => 
  array (
    0 => '****************************',
  ),
  'datadirectory' => '/var/www/*****************/data',
  'dbtype' => 'mysql',
  'version' => '25.0.4.1',
  'overwrite.cli.url' => 'https://****************',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '***************',
  'installed' => true,
  'default_phone_region' => 'US',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '*******',
  'mail_domain' => '******',
  'mail_smtphost' => '*******',
  'mail_smtpport' => '***',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '******',
  'mail_smtppassword' => '*****',
  'app_install_overwrite' => 
  array (
    0 => 'files_mindmap',
    1 => 'printer',
    2 => 'drawio',
    3 => 'impersonate',
  ),
  'theme' => '',
  'loglevel' => 3,
);

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

[Sun Dec 31 00:13:54.535147 2023] [access_compat:error] [pid 6106] [client 2605:a601:a9ea:2e00::1c83:58540] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:14:55.568864 2023] [access_compat:error] [pid 6121] [client 2605:a601:a9ea:2e00::1c83:47396] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:15:10.757392 2023] [access_compat:error] [pid 6130] [client 2605:a601:a9ea:2e00::1c83:60298] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:16:51.628108 2023] [access_compat:error] [pid 6166] [client 2605:a601:a9ea:2e00::1c83:38706] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:17:19.221027 2023] [access_compat:error] [pid 6106] [client 2605:a601:a9ea:2e00::1c83:37774] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:17:35.100217 2023] [access_compat:error] [pid 6108] [client 2605:a601:a9ea:2e00::1c83:55922] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:17:45.987394 2023] [access_compat:error] [pid 6121] [client 2605:a601:a9ea:2e00::1c83:59222] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:19:00.554984 2023] [access_compat:error] [pid 6166] [client 2605:a601:a9ea:2e00::1c83:46342] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 00:51:40.025696 2023] [core:crit] [pid 6316] (13)Permission denied: [client 2605:a601:a9ea:2e00::1c83:52024] AH00529: /var/www/**********************************/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable>
[Sun Dec 31 00:59:02.660232 2023] [access_compat:error] [pid 6185] [client 2605:a601:a9ea:2e00::1c83:34236] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:01:39.803886 2023] [access_compat:error] [pid 7020] [client 2605:a601:a9ea:2e00::1c83:51796] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:17:32.925243 2023] [core:crit] [pid 6184] (13)Permission denied: [client 136.38.33.103:57132] AH00529: /var/www/**********************************/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/>
[Sun Dec 31 01:17:35.766672 2023] [core:crit] [pid 6184] (13)Permission denied: [client 136.38.33.103:57132] AH00529: /var/www/**********************************/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/>
[Sun Dec 31 01:21:35.816517 2023] [access_compat:error] [pid 7774] [client 2605:a601:a9ea:2e00::1c83:34888] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:27:50.706539 2023] [access_compat:error] [pid 7774] [client 2605:a601:a9ea:2e00::1c83:45976] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:30:24.297073 2023] [access_compat:error] [pid 8656] [client 2605:a601:a9ea:2e00::1c83:49500] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:30:38.800615 2023] [access_compat:error] [pid 8656] [client 2605:a601:a9ea:2e00::1c83:37022] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:32:13.759210 2023] [access_compat:error] [pid 6254] [client 2605:a601:a9ea:2e00::1c83:48428] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:33:42.395490 2023] [access_compat:error] [pid 7774] [client 2605:a601:a9ea:2e00::1c83:45548] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sun Dec 31 01:33:51.021022 2023] [access_compat:error] [pid 8435] [client 2605:a601:a9ea:2e00::1c83:60278] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata


  GNU nano 6.2                                                                                           **********************************_error.log.1                                                                                                     
[Sat Dec 30 03:50:18.065863 2023] [php:warn] [pid 321093] [client 83.149.19.141:8130] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 05:56:35.878920 2023] [php:warn] [pid 321380] [client 202.165.81.82:65529] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 06:24:45.126028 2023] [php:warn] [pid 325818] [client 136.228.175.5:8850] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 07:45:05.841226 2023] [php:warn] [pid 326269] [client 31.40.167.140:61759] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 09:47:10.558899 2023] [php:warn] [pid 321095] [client 103.83.188.156:27849] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 10:21:21.900626 2023] [php:warn] [pid 326269] [client 197.241.43.66:60628] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 11:09:19.870761 2023] [php:error] [pid 321093] [client 134.122.27.24:35696] script '/var/www/**********************************/wp-login.php' not found or unable to stat, referer: http://**********************************/wp-login.php
[Sat Dec 30 12:48:00.132589 2023] [php:warn] [pid 321101] [client 37.111.9.78:55953] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 13:37:09.044309 2023] [php:warn] [pid 331693] [client 37.111.46.121:51773] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Sat Dec 30 14:04:54.416241 2023] [php:error] [pid 332154] [client 43.129.97.125:40306] script '/var/www/**********************************/nation.php' not found or unable to stat
[Sat Dec 30 14:04:58.711772 2023] [php:error] [pid 321095] [client 43.129.97.125:45136] script '/var/www/**********************************/news.php' not found or unable to stat
[Sat Dec 30 14:05:12.579277 2023] [php:error] [pid 325818] [client 43.129.97.125:60510] script '/var/www/**********************************/nvidia_license_upd.php' not found or unable to stat
[Sat Dec 30 21:56:55.028204 2023] [access_compat:error] [pid 344592] [client 2605:a601:a9ea:2e00::1c83:34608] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata
[Sat Dec 30 22:37:54.411956 2023] [access_compat:error] [pid 348541] [client 2605:a601:a9ea:2e00::1c83:48948] AH01797: client denied by server configuration: /var/www/**********************************/data/.ocdata

I am trying to update Nextcloud from 25.04 to the latest version of 25 so I can move on up the latest stable build. I’m having difficulty getting any update at all just to the latest 25 version.

When I run the update, I get an Internal server error.

I realize that NC 25 is no longer supported and I’m trying to get that updated. I have spent hours trying to figure out what’s going on but I’m stuck. Thankfully I can restore the last working version, but when ever I try to update, I get stuck on an internal server error. Any help would be greatly appreciated. If there’s missing logs that would be helpful I’d be happy to provide them. Thank you for any help

Jason

Hey,

I hope I can help you :slight_smile:

I had a similar problem where a file didn’t have a chmod. In addition, the owner of the .ocdata file was root and not www-data.

So try the following (I assume your cloud and data are under /var/www/)

  1. set chown to www-data for all files: sudo chown -R www-data:www-data /var/www
  2. set the correct chmod for all data:
find /var/www/ -type d -exec chmod 755 {} ;
find /var/www/ -type f -exec chmod 644 {} ;
  1. Start the upgrade on your console and not the web interface: sudo -u www-data php /var/www/nextcloud/updater/updater.phar

Now you can test it again and I hope your update is successful :slight_smile:

Please also note your PHP version. With the newest version you can upgrade to 8.2 (8.3 is possible to but not recommended because the plugin have problems maybe when you use many (old)) :smiley:

Hi @saltymedic - What installation method did you use?

Can you also try running the update from the command-line?[1] That is the more reliable approach.

If it fails again, please provide at least the last page or two of output from your updater.log file.

When I run the update, I get an Internal server error.

The cause of this - or at least some clues - are likely in our nextcloud.log file.

[1] Upgrade via built-in updater — Nextcloud latest Administration Manual latest documentation

@Dennis1993

Thank you for responding. I’m afraid that didn’t fix it. After running the command line updater, I still get an internal server error. That was a good idea though, thanks for pointing it out.

I don’t know if it makes a difference, but my .ocdata file is completely empty. Also all of my data storage is being done in object storage.

For anyone else following along at home, I had to alter some of the commands to get them to work

find /var/www/nextcloud/ -type d -exec chmod 755 {} \;

find /var/www/nextcloud/ -type f -exec chmod 644 {} \;

@jtr

Thank you for your reply

Installation is running on a Linode/Akamai VPS. i either followed NC documentation or a tutorial, I can’t remember which. Its running on a Ubuntu linux server with apache. Its not a docker or anything like that.

I just tried doing the update via command line again.

Here is the contents of my updater.log file:

2023-12-31T14:55:36+0000 Ft959ilGhr [info] updater cli is executed
2023-12-31T14:55:36+0000 Ft959ilGhr [info] currentStep()
2023-12-31T14:55:36+0000 Ft959ilGhr [info] current version: 25.0.4 build time: 2023-02-23T10:32:31+00:00 0c86714144f50a66e845e9ef80d4cd7e6918a4f5
2023-12-31T14:55:36+0000 Ft959ilGhr [info] getUpdateServerResponse()
2023-12-31T14:55:36+0000 Ft959ilGhr [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-12-31T14:55:36+0000 Ft959ilGhr [info] releaseChannel: stable
2023-12-31T14:55:36+0000 Ft959ilGhr [info] internal version: 25.0.4.1
2023-12-31T14:55:36+0000 Ft959ilGhr [info] updateURL: https://updates.nextcloud.com/updater_server/?version=25x0x4x1xxxstablexx2023-02-23T10%3A32%3A31%2B00%3A00+0c86714144f50a66e845e9ef80d4cd7e6918a4f5x8x1x2
2023-12-31T14:55:36+0000 Ft959ilGhr [info] getUpdateServerResponse response: Array
(
    [version] => 25.0.13.2
    [versionstring] => Nextcloud 25.0.13
    [url] => https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip
    [web] => https://docs.nextcloud.com/server/25/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=25.0.13
    [autoupdater] => 1
    [eol] => 1
    [signature] => FVPFITm49G4y0pv7xo9XWeLw4zKopsAwrj2iVSW2je9Nq2U25RpudHkrSwHZY2JD
Fsjx8xFncgjHT1iiuZJHBOkInfmJYvsBe3RVuS87uLhmeVevLKwBC+ZkgbRiMwX8
j6TaNthAVOlYaowAQAjyRgJ8AAg3L5liYmqhobBUgtwd86wRlzk5Fy9MTAM3BSwn
J5CqVqcGxVBCJdTp73oryXSctu1lHS4zS4eMWaqSPrCDb4uSMyjE4DESH60dwVyR
X6IrjOfLlNvurihALJuhJzqWG+Xdi3xurMOI65ad8im2+7tiB/yu5Bb5NdSl8KvL
c2rOEZwqzv2p7fWh4Ovl6g==
)

2023-12-31T14:55:36+0000 Ft959ilGhr [info] checkForUpdate() Array
(
    [version] => 25.0.13.2
    [versionstring] => Nextcloud 25.0.13
    [url] => https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip
    [web] => https://docs.nextcloud.com/server/25/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=25.0.13
    [autoupdater] => 1
    [eol] => 1
    [signature] => FVPFITm49G4y0pv7xo9XWeLw4zKopsAwrj2iVSW2je9Nq2U25RpudHkrSwHZY2JD
Fsjx8xFncgjHT1iiuZJHBOkInfmJYvsBe3RVuS87uLhmeVevLKwBC+ZkgbRiMwX8
j6TaNthAVOlYaowAQAjyRgJ8AAg3L5liYmqhobBUgtwd86wRlzk5Fy9MTAM3BSwn
J5CqVqcGxVBCJdTp73oryXSctu1lHS4zS4eMWaqSPrCDb4uSMyjE4DESH60dwVyR
X6IrjOfLlNvurihALJuhJzqWG+Xdi3xurMOI65ad8im2+7tiB/yu5Bb5NdSl8KvL
c2rOEZwqzv2p7fWh4Ovl6g==
)

2023-12-31T14:55:36+0000 Ft959ilGhr [info] getChangelogURL()
2023-12-31T14:55:36+0000 Ft959ilGhr [info] end of checkForUpdate() Update to Nextcloud 25.0.13 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#25-0-13" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2023-12-31T14:55:39+0000 Ft959ilGhr [info] updater started
2023-12-31T14:55:39+0000 Ft959ilGhr [info] executeStep request for step "1"
2023-12-31T14:55:39+0000 Ft959ilGhr [info] startStep("1")
2023-12-31T14:55:39+0000 Ft959ilGhr [info] checkForExpectedFilesAndFolders()
2023-12-31T14:55:39+0000 Ft959ilGhr [info] end of checkForExpectedFilesAndFolders()
2023-12-31T14:55:39+0000 Ft959ilGhr [info] endStep("1")
2023-12-31T14:55:39+0000 Ft959ilGhr [info] executeStep request for step "2"
2023-12-31T14:55:39+0000 Ft959ilGhr [info] startStep("2")
2023-12-31T14:55:39+0000 Ft959ilGhr [info] checkWritePermissions()
2023-12-31T14:55:39+0000 Ft959ilGhr [info] end of checkWritePermissions()
2023-12-31T14:55:39+0000 Ft959ilGhr [info] endStep("2")
2023-12-31T14:55:39+0000 Ft959ilGhr [info] executeStep request for step "3"
2023-12-31T14:55:39+0000 Ft959ilGhr [info] startStep("3")
2023-12-31T14:55:39+0000 Ft959ilGhr [info] createBackup()
2023-12-31T14:55:39+0000 Ft959ilGhr [info] backup folder location: /var/www/************************************/data/updater-oc8sy86czzim/backups/nextcloud-25.0.4.1-1704034539/
2023-12-31T14:55:44+0000 Ft959ilGhr [info] end of createBackup()
2023-12-31T14:55:44+0000 Ft959ilGhr [info] endStep("3")
2023-12-31T14:55:44+0000 Ft959ilGhr [info] executeStep request for step "4"
2023-12-31T14:55:44+0000 Ft959ilGhr [info] startStep("4")
2023-12-31T14:55:44+0000 Ft959ilGhr [info] downloadUpdate()
2023-12-31T14:55:44+0000 Ft959ilGhr [info] getUpdateServerResponse()
2023-12-31T14:55:44+0000 Ft959ilGhr [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-12-31T14:55:44+0000 Ft959ilGhr [info] releaseChannel: stable
2023-12-31T14:55:44+0000 Ft959ilGhr [info] internal version: 25.0.4.1
2023-12-31T14:55:44+0000 Ft959ilGhr [info] updateURL: https://updates.nextcloud.com/updater_server/?version=25x0x4x1xxxstablexx2023-02-23T10%3A32%3A31%2B00%3A00+0c86714144f50a66e845e9ef80d4cd7e6918a4f5x8x1x2
2023-12-31T14:55:44+0000 Ft959ilGhr [info] getUpdateServerResponse response: Array
(
    [version] => 25.0.13.2
    [versionstring] => Nextcloud 25.0.13
    [url] => https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip
    [web] => https://docs.nextcloud.com/server/25/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=25.0.13
    [autoupdater] => 1
    [eol] => 1
    [signature] => FVPFITm49G4y0pv7xo9XWeLw4zKopsAwrj2iVSW2je9Nq2U25RpudHkrSwHZY2JD
Fsjx8xFncgjHT1iiuZJHBOkInfmJYvsBe3RVuS87uLhmeVevLKwBC+ZkgbRiMwX8
j6TaNthAVOlYaowAQAjyRgJ8AAg3L5liYmqhobBUgtwd86wRlzk5Fy9MTAM3BSwn
J5CqVqcGxVBCJdTp73oryXSctu1lHS4zS4eMWaqSPrCDb4uSMyjE4DESH60dwVyR
X6IrjOfLlNvurihALJuhJzqWG+Xdi3xurMOI65ad8im2+7tiB/yu5Bb5NdSl8KvL
c2rOEZwqzv2p7fWh4Ovl6g==
)

2023-12-31T14:55:52+0000 Ft959ilGhr [info] end of downloadUpdate()
2023-12-31T14:55:52+0000 Ft959ilGhr [info] endStep("4")
2023-12-31T14:55:52+0000 Ft959ilGhr [info] executeStep request for step "5"
2023-12-31T14:55:52+0000 Ft959ilGhr [info] startStep("5")
2023-12-31T14:55:52+0000 Ft959ilGhr [info] verifyIntegrity()
2023-12-31T14:55:52+0000 Ft959ilGhr [info] getUpdateServerResponse()
2023-12-31T14:55:52+0000 Ft959ilGhr [info] updaterServer: https://updates.nextcloud.com/updater_server/
2023-12-31T14:55:52+0000 Ft959ilGhr [info] releaseChannel: stable
2023-12-31T14:55:52+0000 Ft959ilGhr [info] internal version: 25.0.4.1
2023-12-31T14:55:52+0000 Ft959ilGhr [info] updateURL: https://updates.nextcloud.com/updater_server/?version=25x0x4x1xxxstablexx2023-02-23T10%3A32%3A31%2B00%3A00+0c86714144f50a66e845e9ef80d4cd7e6918a4f5x8x1x2
2023-12-31T14:55:53+0000 Ft959ilGhr [info] getUpdateServerResponse response: Array
(
    [version] => 25.0.13.2
    [versionstring] => Nextcloud 25.0.13
    [url] => https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip
    [web] => https://docs.nextcloud.com/server/25/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=25.0.13
    [autoupdater] => 1
    [eol] => 1
    [signature] => FVPFITm49G4y0pv7xo9XWeLw4zKopsAwrj2iVSW2je9Nq2U25RpudHkrSwHZY2JD
Fsjx8xFncgjHT1iiuZJHBOkInfmJYvsBe3RVuS87uLhmeVevLKwBC+ZkgbRiMwX8
j6TaNthAVOlYaowAQAjyRgJ8AAg3L5liYmqhobBUgtwd86wRlzk5Fy9MTAM3BSwn
J5CqVqcGxVBCJdTp73oryXSctu1lHS4zS4eMWaqSPrCDb4uSMyjE4DESH60dwVyR
X6IrjOfLlNvurihALJuhJzqWG+Xdi3xurMOI65ad8im2+7tiB/yu5Bb5NdSl8KvL
c2rOEZwqzv2p7fWh4Ovl6g==
)

2023-12-31T14:55:53+0000 Ft959ilGhr [info] storage location: /var/www/************************************/data/updater-oc8sy86czzim/downloads/
2023-12-31T14:55:53+0000 Ft959ilGhr [info] end of verifyIntegrity()
2023-12-31T14:55:53+0000 Ft959ilGhr [info] endStep("5")
2023-12-31T14:55:53+0000 Ft959ilGhr [info] executeStep request for step "6"
2023-12-31T14:55:53+0000 Ft959ilGhr [info] startStep("6")
2023-12-31T14:55:53+0000 Ft959ilGhr [info] extractDownload()
2023-12-31T14:55:53+0000 Ft959ilGhr [info] storage location: /var/www/************************************/data/updater-oc8sy86czzim/downloads/
2023-12-31T14:55:57+0000 Ft959ilGhr [info] end of extractDownload()
2023-12-31T14:55:57+0000 Ft959ilGhr [info] endStep("6")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] executeStep request for step "7"
2023-12-31T14:55:57+0000 Ft959ilGhr [info] startStep("7")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] setMaintenanceMode("true")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] configFileName /var/www/************************************/updater/../config/config.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] end of setMaintenanceMode()
2023-12-31T14:55:57+0000 Ft959ilGhr [info] endStep("7")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] executeStep request for step "8"
2023-12-31T14:55:57+0000 Ft959ilGhr [info] startStep("8")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replaceEntryPoints()
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replace index.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replace status.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replace remote.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replace public.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replace ocs/v1.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] replace ocs/v2.php
2023-12-31T14:55:57+0000 Ft959ilGhr [info] end of replaceEntryPoints()
2023-12-31T14:55:57+0000 Ft959ilGhr [info] endStep("8")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] executeStep request for step "9"
2023-12-31T14:55:57+0000 Ft959ilGhr [info] startStep("9")
2023-12-31T14:55:57+0000 Ft959ilGhr [info] deleteOldFiles()
2023-12-31T14:55:57+0000 Ft959ilGhr [info] config sample exists
2023-12-31T14:55:57+0000 Ft959ilGhr [info] themes README exists
2023-12-31T14:55:58+0000 Ft959ilGhr [info] end of deleteOldFiles()
2023-12-31T14:55:58+0000 Ft959ilGhr [info] endStep("9")
2023-12-31T14:55:58+0000 Ft959ilGhr [info] executeStep request for step "10"
2023-12-31T14:55:58+0000 Ft959ilGhr [info] startStep("10")
2023-12-31T14:55:58+0000 Ft959ilGhr [info] moveNewVersionInPlace()
2023-12-31T14:55:58+0000 Ft959ilGhr [info] storage location: /var/www/************************************/data/updater-oc8sy86czzim/downloads/nextcloud/
2023-12-31T14:55:59+0000 Ft959ilGhr [info] end of moveNewVersionInPlace()
2023-12-31T14:55:59+0000 Ft959ilGhr [info] endStep("10")
2023-12-31T14:55:59+0000 Ft959ilGhr [info] executeStep request for step "12"
2023-12-31T14:55:59+0000 Ft959ilGhr [info] startStep("12")
2023-12-31T14:55:59+0000 Ft959ilGhr [info] finalize()
2023-12-31T14:55:59+0000 Ft959ilGhr [info] storage location: /var/www/************************************/data/updater-oc8sy86czzim/downloads/nextcloud/
2023-12-31T14:55:59+0000 Ft959ilGhr [info] call opcache_reset()
2023-12-31T14:55:59+0000 Ft959ilGhr [info] end of finalize()
2023-12-31T14:55:59+0000 Ft959ilGhr [info] endStep("12")
2023-12-31T14:55:59+0000 Ft959ilGhr [info] update of code successful.
2023-12-31T14:58:06+0000 Ft959ilGhr [info] maintenance mode is disabled - return code: 0

conents of nextcloud.log file:

Pastebin link

After doing these things, I am restoring a previous working version.

If it makes any difference, earlier this year I had another failed update experience. During then my disk storage wound up being full. i was able to delete some huge log files and get it back to a working state but without any upgrades. There’s now plenty of disk space, so that’s not the issue.

Thank you for any help you can provide.

Jason

If it makes a difference, there are some Security and Setup warnings from the Admin page:

There are some errors regarding your setup.
Some files have not passed the integrity check. Further information on how to resolve this issue can be found in the documentation ↗. (List of invalid files… / Rescan…)
The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds. For enhanced security, it is recommended to enable HSTS as described in the security tips ↗.

List of invalid files:

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- core
	- INVALID_HASH
		- core/js/mimetypelist.js
		- lib/private/Authentication/Token/PublicKeyToken.php
	- EXTRA_FILE
		- core/img/filetypes/drawio.svg
		- core/img/filetypes/dwb.svg

Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/js/mimetypelist.js] => Array
                        (
                            [expected] => 4b0a99fbab7bc4824176101150bd0ab2b553e128a390e0f872580db4541462b31aad13099fd41533b6695d1b185dabca26a45e9a78227cfb9479eafa439c7bff
                            [current] => 277ae695af1c4997b9bad3c8263b871c1efbccc2ff8a0e536987bcce37dddf0727a096ca11e890c143048d845315624f419f4915afa88d08e20ae89b90e24444
                        )

                    [lib/private/Authentication/Token/PublicKeyToken.php] => Array
                        (
                            [expected] => 40385b67bb8dbc4416a2763c59666e1f3bfe8f4bb47512c17d3fa3d3ae921de4308ed7923083586c9da60f3c0abd2c63c38025170983eb61e489fbc0a0c82940
                            [current] => b6b7de52efcdb2fc4619538c58352c9c27e7810b9dd0b14749e24b27cedd58b1040b8fdf85563cc4dd81a0bcdfe6c6340f2805a4ea6a75496303aff7b34c2982
                        )

                )

            [EXTRA_FILE] => Array
                (
                    [core/img/filetypes/drawio.svg] => Array
                        (
                            [expected] => 
                            [current] => 92e0974cf869bf8ab969c3442dc2b80d55fde36441d22924db74916a06b407520aa2a9dc39336f9157195ebede697ffac0e639360879255ab91932d406e1897d
                        )

                    [core/img/filetypes/dwb.svg] => Array
                        (
                            [expected] => 
                            [current] => 43731dd5f17a048112ea5109b40b02ec019b3ee2324385a0f448e3bd2264cb13dc160ab018d893f92f8e2f168fd09009b51578c8c6b97a02a1617c67ac087701
                        )

                )

        )

)

I just hadn’t gotten around to tackling this yet, was hoping to just get up to an upgraded supported version before I started working on this.

Jason

The Updater appears to have worked based on the updater.log. It’s the upgrade part (the occ upgrade, which runs after the Updater is finished, that is presumably failing).

What occurs after you say yes to the Should the "occ upgrade" command be executed? [Y/n] during the Updater run? What do you see in your command line shell?

If you’re not seeing anything, try executing the occ upgrade yourself after the Updater finishes. Just say No to the above question near the end of the Update run, then Yes to keep maintenance mode on, then run occ upgrade -v yourself to see what’s going on.

Here is what I’m seeing when I do that:

root@nextcloud:/var/www/**********/updater# sudo -u www-data php updater.phar
Nextcloud Updater - version: v25.0.3-2-gd49ee0d

Current version is 25.0.4.

Update to Nextcloud 25.0.13 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-25.0.13.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Repair SQLite autoincrement
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
Updating <oauth2> ...
Repair step: Update OAuth token expiration times
Updated <oauth2> to 1.13.1
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Repair mime types
Repair step: Clean tags and favorites
Repair info: 0 tags of deleted users have been removed.
Repair info: 0 tags for delete files have been removed.
Repair info: 0 tag entries for deleted tags have been removed.
Repair info: 0 tags with no entries have been removed.
Repair step: Repair invalid shares
Repair step: Move .step file of updater to backup location
Repair info: .step file exists
Repair info: .step file moved to .step-previous-update
Repair step: Add move avatar background job
Repair info: Repair step already executed
Repair step: Add preview cleanup background jobs
Repair step: Migrate oauth2_clients table to nextcloud schema
Repair info: Update the oauth2_access_tokens table schema.
Repair info: Update the oauth2_clients table schema.
Repair info: Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
Repair step: Fix potential broken mount points
Repair info: No mounts updated
Repair step: Repair language codes
Repair step: Add log rotate job
Repair step: Clear frontend caches
Repair info: Image cache cleared
Repair info: JS cache cleared
Repair step: Clear every generated avatar
Repair info: Avatar cache clearing job added
Repair step: Add preview background cleanup job
Repair step: Queue a one-time job to cleanup old backups of the updater
Repair step: Cleanup invalid photocache files for carddav
Repair step: Add background job to cleanup login flow v2 tokens
Repair step: Remove potentially over exposing share links
Repair info: No need to remove link shares.
Repair step: Clear access cache of projects
Repair step: Reset generated avatar flag
Repair step: Keep legacy encryption enabled
Repair step: Check encryption key format
Repair step: Remove old dashboard app config data
Repair step: Add job to cleanup the bruteforce entries
Repair step: Queue a one-time job to check for user uploaded certificates
Repair step: Repair DAV shares
Repair step: Add background job to set the lookup server share state for users
Repair step: Add token cleanup job
Repair step: Clean up abandoned apps
Repair step: Add possibly missing system config
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level

Keep maintenance mode active? [y/N] n
Maintenance mode disabled

Maintenance mode is disabled

The update seems to be okay.
Now look in the file /var/log/apache2/error.log
Is there an info?

Maybe a PHP module is not installed?

Another way: try to disable all not default apps before upgrading. Maybe a plugin is not compatible? :face_with_monocle:

Cringe

Thanks

I disabled all of the apps before I put it into maintenance mode and began the update.

If there were a missing PHP module, I would assume that it wouldn’t run before I did the upgrade. Correct? This Internal server error only happens when I tell it to do the update. I have a tarball I’m able to revert back to after I try to update so that I can get back to a working installation.

So its showing that the client is denied by server configuration in .ocdata

[Mon Jan 01 00:15:00.669055 2024] [access_compat:error] [pid 104532] [client 2605:a601:a9ea:2e00::1c83:57304] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata
[Mon Jan 01 03:36:06.287272 2024] [negotiation:error] [pid 104542] [client 83.97.73.87:48272] AH00687: Negotiation: discovered file(s) matching request: /var/www/***********************************/console (None could be ne>
[Mon Jan 01 05:06:57.788286 2024] [php:warn] [pid 106395] [client 202.165.82.141:19834] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 05:59:20.518786 2024] [php:error] [pid 104537] [client 35.216.236.162:60920] script '/var/www/***********************************/info.php' not found or unable to stat
[Mon Jan 01 05:59:22.108751 2024] [authz_core:error] [pid 107092] [client 35.216.236.162:60932] AH01630: client denied by server configuration: /var/www/***********************************/server-status
[Mon Jan 01 07:48:35.270748 2024] [php:warn] [pid 104535] [client 37.111.2.55:18743] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 09:31:58.733972 2024] [php:warn] [pid 107092] [client 5.245.44.124:4477] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 09:42:28.603331 2024] [php:warn] [pid 109149] [client 136.228.172.72:65260] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 10:07:43.622774 2024] [php:warn] [pid 105534] [client 37.111.15.16:51869] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 13:41:17.097349 2024] [php:warn] [pid 113011] [client 154.74.154.56:21620] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 16:53:12.939687 2024] [access_compat:error] [pid 113011] [client 2605:a601:a9ea:2e00::1c83:58472] AH[Mon Jan 01 00:15:00.669055 2024] [access_compat:error] [pid 104532] [client 2605:a601:a9ea:2e00::1c83:57304] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata
[Mon Jan 01 03:36:06.287272 2024] [negotiation:error] [pid 104542] [client 83.97.73.87:48272] AH00687: Negotiation: discovered file(s) matching request: /var/www/***********************************/console (None could be ne>
[Mon Jan 01 05:06:57.788286 2024] [php:warn] [pid 106395] [client 202.165.82.141:19834] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 05:59:20.518786 2024] [php:error] [pid 104537] [client 35.216.236.162:60920] script '/var/www/***********************************/info.php' not found or unable to stat
[Mon Jan 01 05:59:22.108751 2024] [authz_core:error] [pid 107092] [client 35.216.236.162:60932] AH01630: client denied by server configuration: /var/www/***********************************/server-status
[Mon Jan 01 07:48:35.270748 2024] [php:warn] [pid 104535] [client 37.111.2.55:18743] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 09:31:58.733972 2024] [php:warn] [pid 107092] [client 5.245.44.124:4477] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 09:42:28.603331 2024] [php:warn] [pid 109149] [client 136.228.172.72:65260] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 10:07:43.622774 2024] [php:warn] [pid 105534] [client 37.111.15.16:51869] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 13:41:17.097349 2024] [php:warn] [pid 113011] [client 154.74.154.56:21620] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 16:53:12.939687 2024] [access_compat:error] [pid 113011] [client 2605:a601:a9ea:2e00::1c83:58472] AH[Mon Jan 01 00:15:00.669055 2024] [access_compat:error] [pid 104532] [client 2605:a601:a9ea:2e00::1c83:57304] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata
[Mon Jan 01 03:36:06.287272 2024] [negotiation:error] [pid 104542] [client 83.97.73.87:48272] AH00687: Negotiation: discovered file(s) matching request: /var/www/***********************************/console (None could be ne>
[Mon Jan 01 05:06:57.788286 2024] [php:warn] [pid 106395] [client 202.165.82.141:19834] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 05:59:20.518786 2024] [php:error] [pid 104537] [client 35.216.236.162:60920] script '/var/www/***********************************/info.php' not found or unable to stat
[Mon Jan 01 05:59:22.108751 2024] [authz_core:error] [pid 107092] [client 35.216.236.162:60932] AH01630: client denied by server configuration: /var/www/***********************************/server-status
[Mon Jan 01 07:48:35.270748 2024] [php:warn] [pid 104535] [client 37.111.2.55:18743] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 09:31:58.733972 2024] [php:warn] [pid 107092] [client 5.245.44.124:4477] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 09:42:28.603331 2024] [php:warn] [pid 109149] [client 136.228.172.72:65260] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 10:07:43.622774 2024] [php:warn] [pid 105534] [client 37.111.15.16:51869] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 13:41:17.097349 2024] [php:warn] [pid 113011] [client 154.74.154.56:21620] PHP Warning:  Missing boundary in multipart/form-data POST data in Unknown on line 0
[Mon Jan 01 16:53:12.939687 2024] [access_compat:error] [pid 113011] [client 2605:a601:a9ea:2e00::1c83:58472] AH01797: client denied by server configuration: /var/www/**********************/data/.ocdata
[Mon Jan 01 20:51:10.070352 2024] [access_compat:error] [pid 117949] [client 2605:a601:a9ea:2e00::1c83:54574] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata
[Mon Jan 01 21:13:18.855390 2024] [access_compat:error] [pid 113345] [client 2605:a601:a9ea:2e00::1c83:50276] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata01797: client denied by server configuration: /var/www/**********************/data/.ocdata
[Mon Jan 01 20:51:10.070352 2024] [access_compat:error] [pid 117949] [client 2605:a601:a9ea:2e00::1c83:54574] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata
[Mon Jan 01 21:13:18.855390 2024] [access_compat:error] [pid 113345] [client 2605:a601:a9ea:2e00::1c83:50276] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata01797: client denied by server configuration: /var/www/**********************/data/.ocdata
[Mon Jan 01 20:51:10.070352 2024] [access_compat:error] [pid 117949] [client 2605:a601:a9ea:2e00::1c83:54574] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata
[Mon Jan 01 21:13:18.855390 2024] [access_compat:error] [pid 113345] [client 2605:a601:a9ea:2e00::1c83:50276] AH01797: client denied by server configuration: /var/www/***********************************/data/.ocdata

There is a .ocdata file in the data directory. The file is empty. Is there supposed to be a certain ownership or permission that is denying things maybe?

root@nextcloud:/var/www/**********************/data# ll
total 132
drwxrwx---  3 www-data www-data  4096 Jan  1 21:18 ./
drwxr-xr-x 15 www-data www-data  4096 Jan  1 21:28 ../
-rw-rw-r--  1 www-data www-data     0 Dec 31 15:22 audit.log
-rw-r--r--  1 www-data www-data   542 Jan  1 21:20 .htaccess
-rw-r--r--  1 www-data www-data     0 Jan  1 21:20 index.html
-rw-r-----  1 www-data www-data 81314 Jan  1 21:55 nextcloud.log
-rw-r-----  1 www-data www-data  4656 Dec 31 15:50 nextcloud.log.1.gz
-rw-r-----  1 www-data www-data  1285 Dec 29 19:02 nextcloud.log.2.gz
-rw-r-----  1 www-data www-data  2541 Dec 28 22:21 nextcloud.log.3.gz
-rw-r--r--  1 www-data www-data     0 Jan  1 21:20 .ocdata
-rw-rw-r--  1 www-data www-data 13733 Jan  1 21:45 updater.log
drwxrwxr-x  4 www-data www-data  4096 Jan  1 21:20 updater-oc8sy86czzim/

That latest run actually updated/used the version of oauth I would have expected:

Updated <oauth2> to 1.13.1

The one you posted yesterday did not:

Info updater \OC\Updater::appUpgrade: Updated <oauth2> to 1.13.0 2023-12-30T18:21:10-0700

Really everything you posted in that last output suggests you’re upgraded.

Can you restart your web server after the upgrade finishes? Then attempt to access Nextcloud’s Web UI?

Assuming you’re still stuck after that:

  • Can you provide the output of occ config:list system rather than a manually censored config.php? It’s more accurate and multi-config.php aware. You’re still, of course, welcome to remove anything that appears in that output that you wish to not share.

  • I also want to make sure we’re not making the assumption that the internal server error implies the update+upgrade didn’t happen. The update+upgrade may have completed, but you may just have two different issues. So let’s also make sure we are looking only at the transaction in your nextcloud.log that is generating the latest internal server error.

Thank you again

Tried the reboot and I’m still getting internal server error

The output of occ config:list is below

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "objectstore": {
            "class": "\\OC\\Files\\ObjectStore\\S3",
            "arguments": {
                "bucket": "rlc-nextcloud-data",
                "key": "***REMOVED SENSITIVE VALUE***",
                "secret": "***REMOVED SENSITIVE VALUE***",
                "use_ssl": true,
                "hostname": "us-southeast-1.linodeobjects.com"
            }
        },
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "****************************"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "25.0.13.2",
        "overwrite.cli.url": "https:\/\/****************************",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_phone_region": "US",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "files_mindmap",
            "printer",
            "drawio",
            "impersonate"
        ],
        "theme": "",
        "loglevel": 3
    }
}


Here’s the contents of the line for the transaction of me trying to go to the NC site after the upgrade. Appologies that its all in one line. I can change that if there’s a better way.

{"reqId":"pYe8wWz7Y4tHe3EiMdr3","level":3,"time":"2024-01-01T22:31:15+00:00","remoteAddr":"2605:a601:a9ea:2e00::1c83","user":"myusername","app":"index","method":"GET","url":"/index.php/settings/admin/overview","message":"passwordHash is not a valid attribute","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","version":"25.0.13.2","exception":{"Exception":"BadFunctionCallException","Message":"passwordHash is not a valid attribute","Code":0,"Trace":[{"file":"/var/www/******************************/lib/public/AppFramework/Db/Entity.php","line":165,"function":"setter","class":"OCP\\AppFramework\\Db\\Entity","type":"->"},{"file":"/var/www/******************************/lib/public/AppFramework/Db/Entity.php","line":73,"function":"__call","class":"OCP\\AppFramework\\Db\\Entity","type":"->"},{"file":"/var/www/******************************/lib/private/Authentication/Token/PublicKeyTokenMapper.php","line":91,"function":"fromRow","class":"OCP\\AppFramework\\Db\\Entity","type":"::"},{"file":"/var/www/******************************/lib/private/Authentication/Token/PublicKeyTokenProvider.php","line":119,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenMapper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/******************************/lib/private/Authentication/Token/Manager.php","line":133,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/******************************/lib/private/User/Session.php","line":783,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/******************************/lib/private/User/Session.php","line":258,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/******************************/lib/private/User/Session.php","line":233,"function":"validateSession","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/******************************/lib/private/legacy/OC_App.php","line":391,"function":"getUser","class":"OC\\User\\Session","type":"->"},{"file":"/var/www/******************************/lib/private/legacy/OC_App.php","line":123,"function":"getEnabledApps","class":"OC_App","type":"::"},{"file":"/var/www/******************************/lib/private/legacy/OC_User.php","line":128,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/******************************/lib/base.php","line":746,"function":"setupBackends","class":"OC_User","type":"::"},{"file":"/var/www/******************************/lib/base.php","line":1150,"function":"init","class":"OC","type":"::"},{"file":"/var/www/******************************/index.php","line":34,"args":["/var/www/******************************/lib/base.php"],"function":"require_once"}],"File":"/var/www/******************************/lib/public/AppFramework/Db/Entity.php","Line":136,"CustomMessage":"--"}}```
1 Like

The good news is you’re upgraded.

The less good news is that for some reason your browser is having a problem authenticating against your accounts database.

  • Does the behavior change if you log in from an incognito/private browser window?
  • If no, what happens if you create a new test user via occ user (see Admin Manual for syntax is need be) then try to log into the new test account?

If still stuck we may have to bit deeper to see how your environment ended up in this state. A question in the area to possibly start:

  • You mentioned doing restores - while troubleshooting the updates - in order to return to a working state. Were you also rolling back the database to match?
  • Can you confirm your secret and passwordsalt have values? Any chance you can confirm from a backup of your your last know fully functioning environment prior to even attempting the current update cycle that those parameters not only weren’t empty, but also had the exact same values as they do now?

Thank you again for your help

  • Does the behavior change if you log in from an incognito/private browser window?

No. I’ve tried logging in from my normal browser (chrome) in incognito mode as well as firefox in incognito mode. Still get internal server error. Desktop client also shows NC as offline

I also tried logging in as another already established user and it still gives same error.

However I can see that just going to the site in incognito to login, there is no error. Its just when I try to login I get the error. So I think you’re onto something. There’s a problem with it authenticating.

I can reset my password both through occ user:resetpassword and through the web interface. Trying to login through the web interface still doesn’t work. I can use occ user:info and see information about my username.

  • If no, what happens if you create a new test user via occ user (see Admin Manual for syntax is need be) then try to log into the new test account?

using occ user:add I am not able to login through the web interface. Still gives me the internal server error. In case anyone needs the documentation for using that command it can be found here:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#user-commands

You mentioned doing restores - while troubleshooting the updates - in order to return to a working state. Were you also rolling back the database to match?

No I never did roll back the database. Was that a mistake? I assumed that since it worked after restoring the files, there must not have been a change to the database.

The way I have been restoring this is to delete the whole nextcloud directory and then replace it with tar xvf ./2023-12-30-serverfiles.tar.gz ./

I would then be presented with a page saying that there was an app update required. I could either click “Start Update” or I was given the option to use occ upgrade. I would then do the occ upgrade command. This is what that looked like:

sudo -u www-data php occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Updating <oauth2> ...
Updated <oauth2> to 1.13.0
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level

At this point I would have a working Nextcloud instance.

I have now restored back to a working installation. I just checked to see if I could login after doing a restore from an incognito window and I can login with my username/pass.

  • Can you confirm your secret and passwordsalt have values? Any chance you can confirm from a backup of your your last know fully functioning environment prior to even attempting the current update cycle that those parameters not only weren’t empty, but also had the exact same values as they do now?

I can look at the tar that I made back two days ago before I started doing anything and yes, there is an entry in my config.php for both secret and for salt Both entries are a long line of numbers, letters, and symbols. The secret string is longer than the passwordsalt string.

There was an upgrade attempt that I made back in August that ended in a failure because I ran out of disk space during then. I do not have a copy of anything from back then. I was able to get it to the current working state back then and had just left it alone for a while. That was when I learned my lesson about making a backup. I have no idea if what I have in those two entries are the same as they were before the failed backup attempt back then.

I remember being confused during the process of getting a working version back up that I was confused over what point version I was supposed to be at. I can’t remember exactly what I did to restore it.

I did find a thread I wrote in during that time that I had found fix for my problem at the time which seems to be similar. It had to do with replacing a file with the current one from github.

https://help.nextcloud.com/t/badfunctioncallexception-passwordhash-is-not-a-valid-attribute-at-lib-public-appframework-db-entity-php-line-136/158906

Looking back an old update log file,

https://pastebin.com/ZG8H74Na

the last time I had a successful update was in 2/2023. At that time I went from 25.0.2 to 25.0.4. There was another attempt in 4/2023 that failed going from .4 to .5. In 8/2023 I tried going from .4 to .10

I’ve considered doing a clean install from the same version of NC that is currently running. My concern is that I’ll lose data since its all on object storage instead of just in the data folder. I don’t have a lot of experience with object storage, my fears may be unfounded.

Jason