Nextcloud failed after update to 29.0.4 from 28.0.2

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, 29.0.5): 29.0.4
Operating system and version (eg, Ubuntu 24.04): Ubuntu 22.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 8.3): 8.1

The issue you are facing:

Php cron temporary disable

After launching web updater to get 29.0.4 from 28.0 , all seems ok but web page always returning with this message :

https://imgur.com/a/NnSbYQE

Then i try to make update in cli

sudo -u www-data php /var/www/nextcloud/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
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level

After that i disable and remove all possible app .

sudo -u www-data php /var/www/nextcloud/occ app:list
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
Enabled:
  - activity: 2.21.1
  - admin_audit: 1.19.0
  - cloud_federation_api: 1.12.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - files: 2.1.0
  - lookup_server_connector: 1.17.0
  - oauth2: 1.17.0
  - provisioning_api: 1.19.0
  - settings: 1.12.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - viewer: 2.3.0
  - workflowengine: 2.11.0
Disabled:
  - bruteforcesettings: 2.9.0 (installed 2.9.0)
  - circles: 29.0.0-dev (installed 29.0.0-dev)
  - comments: 1.19.0 (installed 1.19.0)
  - contactsinteraction: 1.10.0 (installed 1.10.0)
  - dashboard: 7.9.0 (installed 7.9.0)
  - encryption: 2.17.0
  - federation: 1.19.0 (installed 1.19.0)
  - files_downloadlimit: 2.0.0 (installed 2.0.0)
  - files_external: 1.21.0 (installed 1.21.0)
  - files_pdfviewer: 2.10.0 (installed 2.10.0)
  - files_reminders: 1.2.0 (installed 1.2.0)
  - files_sharing: 1.21.0 (installed 1.21.0)
  - files_trashbin: 1.19.0 (installed 1.19.0)
  - files_versions: 1.22.0 (installed 1.22.0)
  - firstrunwizard: 2.18.0 (installed 2.18.0)
  - logreader: 2.14.0 (installed 2.14.0)
  - nextcloud_announcements: 1.18.0 (installed 1.18.0)
  - notifications: 2.17.0 (installed 2.17.0)
  - password_policy: 1.19.0 (installed 1.19.0)
  - photos: 2.5.0 (installed 2.5.0)
  - privacy: 1.13.0 (installed 1.13.0)
  - recommendations: 2.1.0 (installed 2.1.0)
  - related_resources: 1.4.0 (installed 1.4.0)
  - serverinfo: 1.19.0 (installed 1.19.0)
  - sharebymail: 1.19.0 (installed 1.19.0)
  - support: 1.12.0 (installed 1.12.0)
  - survey_client: 1.17.0 (installed 1.17.0)
  - suspicious_login: 7.0.0
  - systemtags: 1.19.0 (installed 1.19.0)
  - text: 3.10.1 (installed 3.10.1)
  - twofactor_totp: 11.0.0-dev
  - updatenotification: 1.19.1 (installed 1.19.1)
  - user_ldap: 1.20.0
  - user_status: 1.9.0 (installed 1.9.0)
  - weather_status: 1.9.0 (installed 1.9.0)

then i try with this command :

sudo -u www-data php -f /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v29.0.0-1-g9293bcb dirty

Current version is 29.0.4.

No update available.

Nothing to do.

Any idea is welcome

update.log

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

The output of your Nextcloud log in Admin > Logging:

https://pastebin.com/embed_js/N9GWEEYs

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

<?php
$CONFIG = array (
  'instanceid' => 'oc9uaojc????',
  'passwordsalt' => 'FtLkJacVFjjxGJ9??????????M1kTVMcdfJhqLv3',
  'secret' => 'XgeZe0po????5AunW0w0Z5??',
  'trusted_domains' => 
  array (
    0 => '192.168.88.200',
    1 => 'localhost',
    2 => 'nextcloud.alphabravo.com',
    3 => '88.xx.yyy.zzz',
    4 => '192.168.1.71',
  ),
  'datadirectory' => '/media/1TB/nextcloud_db',
  'dbtype' => 'mysql',
  'version' => '29.0.4.1',
  'overwrite.cli.url' => 'http://192.168.88.200',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'machin',
  'installed' => true,
  'default_phone_region' => 'FR',
  'htaccess.RewriteBase' => '/',
  'filelocking.enabled' => 'true',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_from_address' => 'airvbxxxx',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'gmail.com',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxxxxx@gmail.com',
  'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxx',
  'mail_smtpsecure' => 'ssl',
  'trashbin_retention_obligation' => 'auto, 120',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\Movie',
    1 => 'OC\\Preview\\PNG',
    2 => 'OC\\Preview\\JPEG',
    3 => 'OC\\Preview\\GIF',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\MP4',
    8 => 'OC\\Preview\\TXT',
    9 => 'OC\\Preview\\MarkDown',
    10 => 'OC\\Preview\\PDF',
    11 => 'OC\\Preview\\HEIC',
  ),
  'updater.secret' => '$2y$10$pTiApNcrhM3zr0KNXIBMm.tzWTaMCw.',
  'logfile' => '/var/www/nextcloud/logs/nextcloud.log',
);

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

nil

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Use

sudo -u www-data php /var/www/nextcloud/updater/updater.phar

As far as I know it is always recommended to update from the latest minor version. For you that means that you should have updated to 28.0.8 before updating to current version 29.0.4.

This part looks really weird:

{"reqId":"5VOpZH8c1QORBjnmnAPV","level":1,"time":"2024-07-20T14:36:04+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"28.0.1.1","data":{"app":"updater"}}
{"reqId":"5VOpZH8c1QORBjnmnAPV","level":1,"time":"2024-07-20T14:36:04+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"29.0.4.1","data":{"app":"updater"}}
{"reqId":"5VOpZH8c1QORBjnmnAPV","level":1,"time":"2024-07-20T14:36:04+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"29.0.4.1","data":{"app":"updater"}}
{"reqId":"5VOpZH8c1QORBjnmnAPV","level":1,"time":"2024-07-20T14:36:04+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"29.0.4.1","data":{"app":"updater"}}
{"reqId":"rZ5GLk2aHwDR4Jl1AU9U","level":1,"time":"2024-07-20T14:39:37+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceEnabled: Turned on maintenance mode","userAgent":"--","version":"28.0.1.1","data":{"app":"updater"}}
{"reqId":"rZ5GLk2aHwDR4Jl1AU9U","level":0,"time":"2024-07-20T14:39:37+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"starting upgrade from 28.0.1.1 to 29.0.4.1","userAgent":"--","version":"28.0.1.1","data":{"app":"core"}}

See how the version changes from 28.0.1 → 29.0.4 → 28.0.1?

What are your PHP OPcache settings? Any chance you’ve disabled validation/re-validation?[1] That might explain this behavior.

All other indications are that you’re fully upgraded to 29.0.4.

[1] Server tuning — Nextcloud latest Administration Manual latest documentation

As long as someone is using the built-in Updater (like in this case), it takes care of that automatically. Per their updater.log the Updater did 28.0.1 → 28.0.8 → 29.0.4.

Thanks…
weird phar propose me an earlier version

sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v29.0.0-1-g9293bcb dirty

Current version is 29.0.4.

Update to Nextcloud 28.0.8 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-28.0.8.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] 


Hello ,

No, no change in /etc/php/8.1/apache2/php.ini


; When disabled, you must reset the OPcache manually or restart the
; webserver for changes to the filesystem to take effect.
;opcache.validate_timestamps=1

; How often (in seconds) to check file timestamps for changes to the shared
; memory storage allocation. ("1" means validate once per second, but only
; once per request. "0" means always validate)
;opcache.revalidate_freq=2

I try again this morning ,
the answer has changed, its coming back to 29.0.4 !

 sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v29.0.0-1-g9293bcb dirty

Current version is 29.0.4.

No update available.

Nothing to do.

Does anyone have any suggestions?
Thanks

cpy update log from yesterday to today

2024-07-20T17:25:20+0000 xcDnCha1XX [info] updater cli is executed
2024-07-20T17:25:20+0000 xcDnCha1XX [info] currentStep()
2024-07-20T17:25:20+0000 xcDnCha1XX [info] current version: 29.0.4 build time: 2024-07-18T11:39:28+00:00 f5ac1aa4451b22c468cc2e4eaa431ceae240a51a
2024-07-20T17:25:20+0000 xcDnCha1XX [info] getUpdateServerResponse()
2024-07-20T17:25:20+0000 xcDnCha1XX [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-07-20T17:25:20+0000 xcDnCha1XX [info] releaseChannel: stable
2024-07-20T17:25:20+0000 xcDnCha1XX [info] internal version: 28.0.1.1
2024-07-20T17:25:20+0000 xcDnCha1XX [info] updateURL: https://updates.nextcloud.com/updater_server/?version=28x0x1x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x1x2
2024-07-20T17:25:23+0000 xcDnCha1XX [info] getUpdateServerResponse response: Array
(
    [version] => 28.0.8.1
    [versionstring] => Nextcloud 28.0.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => Y5TskcAoWIcMjc/8fYxS3h4CnT50iTXFBQGiPFGYWlRfBSUPp40Jqu7tx95hPdnE
6NfPAiVkfKvPTnCUJxdc01EtMQu3uUW664/MpfHsdrgsfb6eEZu+bTN2h5OplWuc
sP3QrFeGGTQRNW0eV5xKz/reLyGjZmzTGl8eQG7i82rSyk3ARbTgf9e2LleKV1mZ
iTDsMA+l/7K+yaAc7LEOtiHL7m9aoTbDMLGinU2k1HkFhQPJsZzA+n1cWzvn0VzU
cNFXl7yhrzKlqWe/26O3caT/2ytEK40yz5aclMBRrxqOBdUZ3O9SdHtjcOEyE9O6
rDkaObRNXjHFz0Vg7emRuQ==
)

2024-07-20T17:25:23+0000 xcDnCha1XX [info] checkForUpdate() Array
(
    [version] => 28.0.8.1
    [versionstring] => Nextcloud 28.0.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => Y5TskcAoWIcMjc/8fYxS3h4CnT50iTXFBQGiPFGYWlRfBSUPp40Jqu7tx95hPdnE
6NfPAiVkfKvPTnCUJxdc01EtMQu3uUW664/MpfHsdrgsfb6eEZu+bTN2h5OplWuc
sP3QrFeGGTQRNW0eV5xKz/reLyGjZmzTGl8eQG7i82rSyk3ARbTgf9e2LleKV1mZ
iTDsMA+l/7K+yaAc7LEOtiHL7m9aoTbDMLGinU2k1HkFhQPJsZzA+n1cWzvn0VzU
cNFXl7yhrzKlqWe/26O3caT/2ytEK40yz5aclMBRrxqOBdUZ3O9SdHtjcOEyE9O6
rDkaObRNXjHFz0Vg7emRuQ==
)

2024-07-20T17:25:23+0000 xcDnCha1XX [info] getChangelogURL()
2024-07-20T17:25:23+0000 xcDnCha1XX [info] end of checkForUpdate() Update to Nextcloud 28.0.8 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#28-0-8" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-07-20T17:25:28+0000 xcDnCha1XX [info] updater started
2024-07-20T17:25:28+0000 xcDnCha1XX [info] executeStep request for step "1"
2024-07-20T17:25:28+0000 xcDnCha1XX [info] startStep("1")
2024-07-20T17:25:28+0000 xcDnCha1XX [info] checkForExpectedFilesAndFolders()
2024-07-20T17:25:28+0000 xcDnCha1XX [info] end of checkForExpectedFilesAndFolders()
2024-07-20T17:25:28+0000 xcDnCha1XX [info] endStep("1")
2024-07-20T17:25:28+0000 xcDnCha1XX [info] executeStep request for step "2"
2024-07-20T17:25:28+0000 xcDnCha1XX [info] startStep("2")
2024-07-20T17:25:28+0000 xcDnCha1XX [info] checkWritePermissions()
2024-07-20T17:25:28+0000 xcDnCha1XX [info] end of checkWritePermissions()
2024-07-20T17:25:28+0000 xcDnCha1XX [info] endStep("2")
2024-07-20T17:25:28+0000 xcDnCha1XX [info] executeStep request for step "3"
2024-07-20T17:25:28+0000 xcDnCha1XX [info] startStep("3")
2024-07-20T17:25:28+0000 xcDnCha1XX [info] createBackup()
2024-07-20T17:25:28+0000 xcDnCha1XX [info] backup folder location: /media/1TB/nextcloud_db/updater-oc9uaojc0hxo/backups/nextcloud-28.0.1.1-1721496328/
2024-07-20T17:25:30+0000 xcDnCha1XX [info] end of createBackup()
2024-07-20T17:25:30+0000 xcDnCha1XX [info] endStep("3")
2024-07-20T17:25:30+0000 xcDnCha1XX [info] executeStep request for step "4"
2024-07-20T17:25:30+0000 xcDnCha1XX [info] startStep("4")
2024-07-20T17:25:30+0000 xcDnCha1XX [info] downloadUpdate()
2024-07-20T17:25:30+0000 xcDnCha1XX [info] getUpdateServerResponse()
2024-07-20T17:25:30+0000 xcDnCha1XX [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-07-20T17:25:30+0000 xcDnCha1XX [info] releaseChannel: stable
2024-07-20T17:25:30+0000 xcDnCha1XX [info] internal version: 28.0.1.1
2024-07-20T17:25:30+0000 xcDnCha1XX [info] updateURL: https://updates.nextcloud.com/updater_server/?version=28x0x1x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x1x2
2024-07-20T17:25:34+0000 xcDnCha1XX [info] getUpdateServerResponse response: Array
(
    [version] => 28.0.8.1
    [versionstring] => Nextcloud 28.0.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => Y5TskcAoWIcMjc/8fYxS3h4CnT50iTXFBQGiPFGYWlRfBSUPp40Jqu7tx95hPdnE
6NfPAiVkfKvPTnCUJxdc01EtMQu3uUW664/MpfHsdrgsfb6eEZu+bTN2h5OplWuc
sP3QrFeGGTQRNW0eV5xKz/reLyGjZmzTGl8eQG7i82rSyk3ARbTgf9e2LleKV1mZ
iTDsMA+l/7K+yaAc7LEOtiHL7m9aoTbDMLGinU2k1HkFhQPJsZzA+n1cWzvn0VzU
cNFXl7yhrzKlqWe/26O3caT/2ytEK40yz5aclMBRrxqOBdUZ3O9SdHtjcOEyE9O6
rDkaObRNXjHFz0Vg7emRuQ==
)

2024-07-20T17:25:34+0000 xcDnCha1XX [info] storage location exists
2024-07-20T17:25:43+0000 xcDnCha1XX [info] end of downloadUpdate()
2024-07-20T17:25:43+0000 xcDnCha1XX [info] endStep("4")
2024-07-20T17:25:43+0000 xcDnCha1XX [info] executeStep request for step "5"
2024-07-20T17:25:43+0000 xcDnCha1XX [info] startStep("5")
2024-07-20T17:25:43+0000 xcDnCha1XX [info] verifyIntegrity()
2024-07-20T17:25:43+0000 xcDnCha1XX [info] getUpdateServerResponse()
2024-07-20T17:25:43+0000 xcDnCha1XX [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-07-20T17:25:43+0000 xcDnCha1XX [info] releaseChannel: stable
2024-07-20T17:25:43+0000 xcDnCha1XX [info] internal version: 28.0.1.1
2024-07-20T17:25:43+0000 xcDnCha1XX [info] updateURL: https://updates.nextcloud.com/updater_server/?version=28x0x1x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x1x2
2024-07-20T17:25:46+0000 xcDnCha1XX [info] getUpdateServerResponse response: Array
(
    [version] => 28.0.8.1
    [versionstring] => Nextcloud 28.0.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => Y5TskcAoWIcMjc/8fYxS3h4CnT50iTXFBQGiPFGYWlRfBSUPp40Jqu7tx95hPdnE
6NfPAiVkfKvPTnCUJxdc01EtMQu3uUW664/MpfHsdrgsfb6eEZu+bTN2h5OplWuc
sP3QrFeGGTQRNW0eV5xKz/reLyGjZmzTGl8eQG7i82rSyk3ARbTgf9e2LleKV1mZ
iTDsMA+l/7K+yaAc7LEOtiHL7m9aoTbDMLGinU2k1HkFhQPJsZzA+n1cWzvn0VzU
cNFXl7yhrzKlqWe/26O3caT/2ytEK40yz5aclMBRrxqOBdUZ3O9SdHtjcOEyE9O6
rDkaObRNXjHFz0Vg7emRuQ==
)

2024-07-20T17:25:46+0000 xcDnCha1XX [info] storage location: /media/1TB/nextcloud_db/updater-oc9uaojc0hxo/downloads/
2024-07-20T17:25:46+0000 xcDnCha1XX [info] end of verifyIntegrity()
2024-07-20T17:25:46+0000 xcDnCha1XX [info] endStep("5")
2024-07-20T17:25:46+0000 xcDnCha1XX [info] executeStep request for step "6"
2024-07-20T17:25:46+0000 xcDnCha1XX [info] startStep("6")
2024-07-20T17:25:46+0000 xcDnCha1XX [info] extractDownload()
2024-07-20T17:25:46+0000 xcDnCha1XX [info] storage location: /media/1TB/nextcloud_db/updater-oc9uaojc0hxo/downloads/
2024-07-20T17:25:50+0000 xcDnCha1XX [error] executeStep request failed with other exception
2024-07-20T17:25:50+0000 xcDnCha1XX [error] Exception: Exception
Message: Downloaded version is lower than installed version
Code:0
Trace:
#0 phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(384): NC\Updater\Updater->extractDownload()
#1 phar:///var/www/nextcloud/updater/updater.phar/lib/UpdateCommand.php(237): NC\Updater\UpdateCommand->executeStep()
#2 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Command/Command.php(298): NC\Updater\UpdateCommand->execute()
#3 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(1040): Symfony\Component\Console\Command\Command->run()
#4 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#5 phar:///var/www/nextcloud/updater/updater.phar/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#6 phar:///var/www/nextcloud/updater/updater.phar/updater.php(10): Symfony\Component\Console\Application->run()
#7 /var/www/nextcloud/updater/updater.phar(14): require('...')
#8 {main}
File:phar:///var/www/nextcloud/updater/updater.phar/lib/Updater.php
Line:734

2024-07-20T17:25:50+0000 xcDnCha1XX [info] rollbackChanges("6")
2024-07-20T17:25:50+0000 xcDnCha1XX [info] unlink .step
2024-07-20T17:25:50+0000 xcDnCha1XX [info] end of  rollbackChanges()
2024-07-20T17:28:45+0000 tFZumkhTfS [info] updater cli is executed
2024-07-20T17:28:45+0000 tFZumkhTfS [info] currentStep()
2024-07-20T17:28:45+0000 tFZumkhTfS [info] current version: 29.0.4 build time: 2024-07-18T11:39:28+00:00 f5ac1aa4451b22c468cc2e4eaa431ceae240a51a
2024-07-20T17:28:45+0000 tFZumkhTfS [info] getUpdateServerResponse()
2024-07-20T17:28:45+0000 tFZumkhTfS [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-07-20T17:28:45+0000 tFZumkhTfS [info] releaseChannel: stable
2024-07-20T17:28:45+0000 tFZumkhTfS [info] internal version: 28.0.1.1
2024-07-20T17:28:45+0000 tFZumkhTfS [info] updateURL: https://updates.nextcloud.com/updater_server/?version=28x0x1x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x1x2
2024-07-20T17:28:48+0000 tFZumkhTfS [info] getUpdateServerResponse response: Array
(
    [version] => 28.0.8.1
    [versionstring] => Nextcloud 28.0.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => Y5TskcAoWIcMjc/8fYxS3h4CnT50iTXFBQGiPFGYWlRfBSUPp40Jqu7tx95hPdnE
6NfPAiVkfKvPTnCUJxdc01EtMQu3uUW664/MpfHsdrgsfb6eEZu+bTN2h5OplWuc
sP3QrFeGGTQRNW0eV5xKz/reLyGjZmzTGl8eQG7i82rSyk3ARbTgf9e2LleKV1mZ
iTDsMA+l/7K+yaAc7LEOtiHL7m9aoTbDMLGinU2k1HkFhQPJsZzA+n1cWzvn0VzU
cNFXl7yhrzKlqWe/26O3caT/2ytEK40yz5aclMBRrxqOBdUZ3O9SdHtjcOEyE9O6
rDkaObRNXjHFz0Vg7emRuQ==
)

2024-07-20T17:28:48+0000 tFZumkhTfS [info] checkForUpdate() Array
(
    [version] => 28.0.8.1
    [versionstring] => Nextcloud 28.0.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip
    [web] => https://docs.nextcloud.com/server/28/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=28.0.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => Y5TskcAoWIcMjc/8fYxS3h4CnT50iTXFBQGiPFGYWlRfBSUPp40Jqu7tx95hPdnE
6NfPAiVkfKvPTnCUJxdc01EtMQu3uUW664/MpfHsdrgsfb6eEZu+bTN2h5OplWuc
sP3QrFeGGTQRNW0eV5xKz/reLyGjZmzTGl8eQG7i82rSyk3ARbTgf9e2LleKV1mZ
iTDsMA+l/7K+yaAc7LEOtiHL7m9aoTbDMLGinU2k1HkFhQPJsZzA+n1cWzvn0VzU
cNFXl7yhrzKlqWe/26O3caT/2ytEK40yz5aclMBRrxqOBdUZ3O9SdHtjcOEyE9O6
rDkaObRNXjHFz0Vg7emRuQ==
)

2024-07-20T17:28:48+0000 tFZumkhTfS [info] getChangelogURL()
2024-07-20T17:28:48+0000 tFZumkhTfS [info] end of checkForUpdate() Update to Nextcloud 28.0.8 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-28.0.8.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#28-0-8" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] updater cli is executed
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] currentStep()
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] current version: 29.0.4 build time: 2024-07-18T11:39:28+00:00 f5ac1aa4451b22c468cc2e4eaa431ceae240a51a
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] getUpdateServerResponse()
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] releaseChannel: stable
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] internal version: 29.0.4.1
2024-07-21T05:40:03+0000 8D2WpCYvaC [info] updateURL: https://updates.nextcloud.com/updater_server/?version=29x0x4x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x1x2
2024-07-21T05:40:04+0000 8D2WpCYvaC [info] checkForUpdate() Array
(
)

2024-07-21T05:40:04+0000 8D2WpCYvaC [info] end of checkForUpdate() No update available.
2024-07-21T05:50:21+0000 c6kQae58pJ [info] updater cli is executed
2024-07-21T05:50:21+0000 c6kQae58pJ [info] currentStep()
2024-07-21T05:50:21+0000 c6kQae58pJ [info] current version: 29.0.4 build time: 2024-07-18T11:39:28+00:00 f5ac1aa4451b22c468cc2e4eaa431ceae240a51a
2024-07-21T05:50:21+0000 c6kQae58pJ [info] getUpdateServerResponse()
2024-07-21T05:50:21+0000 c6kQae58pJ [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-07-21T05:50:21+0000 c6kQae58pJ [info] releaseChannel: stable
2024-07-21T05:50:21+0000 c6kQae58pJ [info] internal version: 29.0.4.1
2024-07-21T05:50:21+0000 c6kQae58pJ [info] updateURL: https://updates.nextcloud.com/updater_server/?version=29x0x4x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x1x2
2024-07-21T05:50:25+0000 c6kQae58pJ [info] checkForUpdate() Array
(
)

2024-07-21T05:50:25+0000 c6kQae58pJ [info] end of checkForUpdate() No update available.

Your versions keeps swapping around. Something very strange is going on.

The internal version: line in the Updater log is derived from the version line in your config.php.

The current version: line is derived from the version.php file in your installation folder. If that file is missing, it does fallback to the config.php one.

Anything unusual about your environment that you can think of? And has this environment been updated successfully previously?

Do you have any automated jobs that pull in your config file from elsewhere that may be overwriting things in between/after the update?

Can you post the output of occ config:list system?

Thanks for yr help.

Here sudo -u www-data php /var/www/nextcloud/occ config:list system*

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
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.88.200",
            "localhost",
            "nextcloud.xxxx.com",
            "XX.YYY.ZZZ.AAA",
            "192.168.1.71"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.1.1",
        "overwrite.cli.url": "http:\/\/192.168.88.200",
        "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": "FR",
        "htaccess.RewriteBase": "\/",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "trashbin_retention_obligation": "auto, 120",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Movie",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\MP4",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\PDF",
            "OC\\Preview\\HEIC"
        ],
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "logfile": "\/var\/www\/nextcloud\/logs\/nextcloud.log"
    }
}

Check the config.php:
The fixed ip is the old one, so I change the fixed ip address to the new one.
I restart php/apache2 with the following command.

sudo systemctl restart php8.1-fpm.service phpsessionclean.service apache2.service

Then the update:

sudo -u www-data php /var/www/nextcloud/updater/updater.phar -v
Nextcloud Updater - version: v29.0.0-1-g9293bcb sale

Current version is 29.0.4.

No update available.

Nothing to do.

Then this one

sudo -u www-data php /var/www/nextcloud/occ upgrade
Nextcloud or one of its applications requires an upgrade - only a limited number of commands are available.
You can use your browser or the occ upgrade command to perform the upgrade.
Set logging level to debug
Activate maintenance mode
Update database schema
Update database
Start code integrity check...
Code integrity check completed
Update successful
Maintenance mode deactivated
Reset log level

I check again the config.php and strangely enough it’s the old fixed address in config.php that’s present and version’s number change too !!!

sudo -u www-data php /var/www/nextcloud/occ config:list system
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
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.88.200",
            "localhost",
            "xxxxnextcloud.com",
            "CCC.DDD.DDD.DDDD",     <<<<<< RETURN TO OLD IP >>>>>>>>>>>>>>>>
            "192.168.1.71"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.1.1",
        "overwrite.cli.url": "http:\/\/192.168.88.200",
        "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": "FR",
        "htaccess.RewriteBase": "\/",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "trashbin_retention_obligation": "auto, 120",
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\Movie",
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\MP4",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\PDF",
            "OC\\Preview\\HEIC"
        ],
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "logfile": "\/var\/www\/nextcloud\/logs\/nextcloud.log"
    }
}

weird …

I check again the config.php and strangely enough it’s the old fixed address in config.php that’s present and version’s number change too !!!

Now we’re getting somewhere. This isn’t the Updater. The IP change can’t be coming from Nextcloud. There is something in your environment messing with your files.

Some ideas:

  • Check configured system cron jobs (though it could be something off-host that logs in remotely)
  • Check your config/ folder for multiple config files of any type (and monitor their timestamps)
  • Check your various system logs in /var/log and/or via journalctl

Thank you, we are on the way.

Check www-data cron job only this 'normal one ’

/var/www/nextcloud/cron.php

There is old config.php as you can see below .

var/www/nextcloud/config$ ls -al
total 104
drwxr-xr-x  2 www-data www-data  4096 Jul 21 14:22 .
drwxr-xr-x 14 www-data www-data  4096 Jul 21 09:35 ..
-rw-r-----  1 www-data www-data  1549 Jan  7  2024 07-01-24.config.php
-rw-r-----  1 www-data www-data  1498 Dec  7  2023 10-18-config.php
-rw-r-----  1 www-data www-data  2044 Jul 21 14:16 config.php
-rw-rw-r--  1 www-data www-data 77932 Jul 20 14:06 config.sample.php
-rw-rw-r--  1 www-data www-data   495 Jul 20 14:06 .htaccess

So i rename old config.php as below :

ls -al
total 104
drwxr-xr-x  2 www-data www-data  4096 Jul 21 19:20 .
drwxr-xr-x 14 www-data www-data  4096 Jul 21 09:35 ..
-rw-r-----  1 www-data www-data  1549 Jan  7  2024 07-01-24.config.php.old
-rw-r-----  1 www-data www-data  1498 Dec  7  2023 10-18-config.php.old
-rw-rw-r--  1 www-data www-data  2042 Jul 21 19:20 config.php
-rw-rw-r--  1 www-data www-data 77932 Jul 20 14:06 config.sample.php
-rw-rw-r--  1 www-data www-data   495 Jul 20 14:06 .htaccess

Edit the config.php with the new ip address.
check with sudo -u www-data php /var/www/nextcloud/occ config:list system

Then launch
sudo -u www-data php /var/www/nextcloud/occ upgrade

Nextcloud is already latest version

Try access … GOOD it’s coming back … partially.

Now i have to re-enable the previous disabled app…
Ans check everything…

i’ll keep you informed

1 Like

Yes, that’s likely the cause.

All files named *.config.php get merged and loaded as your running configuration[1].

[1] Docs re: Multiple config files: Configuration Parameters — Nextcloud latest Administration Manual latest documentation

That’s very helpful, thank you tried this on my website.

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