Update from 30.0.4 to 30.0.6 fails

My server says, the installed version ist Nextcloud 30.0.4 and that there is a new Version 30.0.6 available. I startet the Updater, it went through all the steps smoothly, ending with “Done” and a green mark.

When checking the version and for updates, it still says, the installed version ist 30.0.4 and that there is a new Version 30.0.6 available. The Updater shows the last page and offers to continue the update. Click on Continue doesn’t anything. Using the occ upgrade command says “Nextcloud is already the latest version”, but it is still 30.0.4.

The Updater-Log doesn’t give any helping information.

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Apache2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.2.26
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • When updating to NC 30.0.6
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Standard
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Log entries

There are no entries in the nextcloud-logs

Updater Log

2025-01-20T21:06:59+0000 iNixj6nGiW [info] getChangelogURL()
2025-01-20T21:06:59+0000 iNixj6nGiW [info] end of checkForUpdate() Update to Nextcloud 30.0.5 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.5.zip
Open changelog :arrow_upper_right:
2025-01-21T10:17:04+0000 LyZlYTTWbp [info] request to updater
2025-01-21T10:17:04+0000 LyZlYTTWbp [info] currentStep()
2025-01-21T10:17:04+0000 LyZlYTTWbp [info] Step 12 is in state “end”.
2025-01-21T10:17:04+0000 LyZlYTTWbp [info] show HTML page
2025-01-21T10:17:04+0000 LyZlYTTWbp [info] current version: 30.0.4 build time: 2024-12-12T10:03:44+00:00 f82ff164c3029c9b5a6c095563aff3b6b06cc438
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] getUpdateServerResponse()
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] updaterServer: https://updates.nextcloud.com/updater_server/
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] releaseChannel: stable
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] internal version: 30.0.4.1
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] updateURL: https://updates.nextcloud.com/updater_server/?version=30x0x4x1xxxstablexx2024-12-12T10%3A03%3A44%2B00%3A00+f82ff164c3029c9b5a6c095563aff3b6b06cc438x8x2x26
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] getUpdateServerResponse response: Array
(
[version] => 30.0.5.1
[versionstring] => Nextcloud 30.0.5
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.5.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.5
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-01-21T10:17:05+0000 LyZlYTTWbp [info] checkForUpdate() Array
(
[version] => 30.0.5.1
[versionstring] => Nextcloud 30.0.5
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.5.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.5
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-01-21T10:17:05+0000 LyZlYTTWbp [info] getChangelogURL()
2025-01-21T10:17:05+0000 LyZlYTTWbp [info] end of checkForUpdate() Update to Nextcloud 30.0.5 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.5.zip
Open changelog :arrow_upper_right:
2025-02-14T08:01:42+0000 V2EWLcGReR [info] request to updater
2025-02-14T08:01:42+0000 V2EWLcGReR [info] currentStep()
2025-02-14T08:01:42+0000 V2EWLcGReR [info] Step 12 is in state “end”.
2025-02-14T08:01:42+0000 V2EWLcGReR [info] show HTML page
2025-02-14T08:01:42+0000 V2EWLcGReR [info] current version: 30.0.4 build time: 2024-12-12T10:03:44+00:00 f82ff164c3029c9b5a6c095563aff3b6b06cc438
2025-02-14T08:01:42+0000 V2EWLcGReR [info] getUpdateServerResponse()
2025-02-14T08:01:42+0000 V2EWLcGReR [info] updaterServer: https://updates.nextcloud.com/updater_server/
2025-02-14T08:01:42+0000 V2EWLcGReR [info] releaseChannel: stable
2025-02-14T08:01:42+0000 V2EWLcGReR [info] internal version: 30.0.4.1
2025-02-14T08:01:42+0000 V2EWLcGReR [info] updateURL: https://updates.nextcloud.com/updater_server/?version=30x0x4x1xxxstablexx2024-12-12T10%3A03%3A44%2B00%3A00+f82ff164c3029c9b5a6c095563aff3b6b06cc438x8x2x26
2025-02-14T08:01:42+0000 V2EWLcGReR [info] getUpdateServerResponse response: Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-14T08:01:42+0000 V2EWLcGReR [info] checkForUpdate() Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-14T08:01:42+0000 V2EWLcGReR [info] getChangelogURL()
2025-02-14T08:01:42+0000 V2EWLcGReR [info] end of checkForUpdate() Update to Nextcloud 30.0.6 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
Open changelog :arrow_upper_right:
2025-02-27T08:51:31+0000 peOSs4L1ng [info] request to updater
2025-02-27T08:51:31+0000 peOSs4L1ng [info] currentStep()
2025-02-27T08:51:31+0000 peOSs4L1ng [info] Step 12 is in state “end”.
2025-02-27T08:51:31+0000 peOSs4L1ng [info] show HTML page
2025-02-27T08:51:31+0000 peOSs4L1ng [info] current version: 30.0.4 build time: 2024-12-12T10:03:44+00:00 f82ff164c3029c9b5a6c095563aff3b6b06cc438
2025-02-27T08:51:31+0000 peOSs4L1ng [info] getUpdateServerResponse()
2025-02-27T08:51:31+0000 peOSs4L1ng [info] updaterServer: https://updates.nextcloud.com/updater_server/
2025-02-27T08:51:31+0000 peOSs4L1ng [info] releaseChannel: stable
2025-02-27T08:51:31+0000 peOSs4L1ng [info] internal version: 30.0.4.1
2025-02-27T08:51:31+0000 peOSs4L1ng [info] updateURL: https://updates.nextcloud.com/updater_server/?version=30x0x4x1xxxstablexx2024-12-12T10%3A03%3A44%2B00%3A00+f82ff164c3029c9b5a6c095563aff3b6b06cc438x8x2x26
2025-02-27T08:51:31+0000 peOSs4L1ng [info] getUpdateServerResponse response: Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T08:51:31+0000 peOSs4L1ng [info] checkForUpdate() Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T08:51:31+0000 peOSs4L1ng [info] getChangelogURL()
2025-02-27T08:51:31+0000 peOSs4L1ng [info] end of checkForUpdate() Update to Nextcloud 30.0.6 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
Open changelog :arrow_upper_right:
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] request to updater
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] currentStep()
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] Step 12 is in state “end”.
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] show HTML page
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] current version: 30.0.4 build time: 2024-12-12T10:03:44+00:00 f82ff164c3029c9b5a6c095563aff3b6b06cc438
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] getUpdateServerResponse()
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] updaterServer: https://updates.nextcloud.com/updater_server/
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] releaseChannel: stable
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] internal version: 30.0.4.1
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] updateURL: https://updates.nextcloud.com/updater_server/?version=30x0x4x1xxxstablexx2024-12-12T10%3A03%3A44%2B00%3A00+f82ff164c3029c9b5a6c095563aff3b6b06cc438x8x2x26
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] getUpdateServerResponse response: Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T12:57:36+0000 KcCDIX3WVg [info] checkForUpdate() Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T12:57:36+0000 KcCDIX3WVg [info] getChangelogURL()
2025-02-27T12:57:36+0000 KcCDIX3WVg [info] end of checkForUpdate() Update to Nextcloud 30.0.6 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
Open changelog :arrow_upper_right:
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] request to updater
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] currentStep()
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] Step 12 is in state “end”.
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] show HTML page
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] current version: 30.0.4 build time: 2024-12-12T10:03:44+00:00 f82ff164c3029c9b5a6c095563aff3b6b06cc438
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] getUpdateServerResponse()
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] updaterServer: https://updates.nextcloud.com/updater_server/
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] releaseChannel: stable
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] internal version: 30.0.4.1
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] updateURL: https://updates.nextcloud.com/updater_server/?version=30x0x4x1xxxstablexx2024-12-12T10%3A03%3A44%2B00%3A00+f82ff164c3029c9b5a6c095563aff3b6b06cc438x8x2x26
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] getUpdateServerResponse response: Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T13:05:00+0000 YE6yu2yp0P [info] checkForUpdate() Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T13:05:00+0000 YE6yu2yp0P [info] getChangelogURL()
2025-02-27T13:05:00+0000 YE6yu2yp0P [info] end of checkForUpdate() Update to Nextcloud 30.0.6 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
Open changelog :arrow_upper_right:
2025-02-27T13:08:19+0000 vHiVImDuFX [info] updater cli is executed
2025-02-27T13:08:19+0000 vHiVImDuFX [info] currentStep()
2025-02-27T13:08:19+0000 vHiVImDuFX [info] Step 12 is in state “end”.
2025-02-27T13:08:19+0000 vHiVImDuFX [info] current version: 30.0.4 build time: 2024-12-12T10:03:44+00:00 f82ff164c3029c9b5a6c095563aff3b6b06cc438
2025-02-27T13:08:19+0000 vHiVImDuFX [info] getUpdateServerResponse()
2025-02-27T13:08:19+0000 vHiVImDuFX [info] updaterServer: https://updates.nextcloud.com/updater_server/
2025-02-27T13:08:19+0000 vHiVImDuFX [info] releaseChannel: stable
2025-02-27T13:08:19+0000 vHiVImDuFX [info] internal version: 30.0.4.1
2025-02-27T13:08:19+0000 vHiVImDuFX [info] updateURL: https://updates.nextcloud.com/updater_server/?version=30x0x4x1xxxstablexx2024-12-12T10%3A03%3A44%2B00%3A00+f82ff164c3029c9b5a6c095563aff3b6b06cc438x8x2x26
2025-02-27T13:08:19+0000 vHiVImDuFX [info] getUpdateServerResponse response: Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T13:08:19+0000 vHiVImDuFX [info] checkForUpdate() Array
(
[version] => 30.0.6.2
[versionstring] => Nextcloud 30.0.6
[url] => https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
[web] => How to upgrade — Nextcloud latest Administration Manual latest documentation
[changes] => https://updates.nextcloud.com/changelog_server/?version=30.0.6
[autoupdater] => 1
[eol] => 0
[signature] =>
)

2025-02-27T13:08:19+0000 vHiVImDuFX [info] getChangelogURL()
2025-02-27T13:08:19+0000 vHiVImDuFX [info] end of checkForUpdate() Update to Nextcloud 30.0.6 ava ilable. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-30.0.6.zip
Open changelog :arrow_upper_right:
2025-02-27T13:08:40+0000 vHiVImDuFX [info] updater started
2025-02-27T13:08:40+0000 vHiVImDuFX [info] update of code successful.
2025-02-27T13:09:18+0000 vHiVImDuFX [info] maintenance mode is disabled - return code: 0

Configuration (config/config.php)
"instanceid": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/cloud.XXXXXXXXXXX.XX",
"htaccess.RewriteBase": "\/",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
    "cloud.xxxxxxxx.xx"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.4.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"trash bin_retention_obligation": 60,
"0": 180,
"redis": {
    "host": "***REMOVED SENSITIVE VALUE***",
    "port": 6379
},
"bulkupload.enabled": false,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"maintenance_window_start": 1,
"skeletondirectory": "\/opt\/nextcloud\/skeleton",
"loglevel": 2,
"theme": "",
"app_install_overwrite": [
    "calendar",
    "files_readmemd",
    "apporder"
],
"mysql.utf8mb4": true,
"updater.release.channel": "stable",
"default_phone_region": "CH",
"updater.secret": "***REMOVED SENSITIVE VALUE***"

}

</details>

Do you have more than one file in your config/ folder?

Perhaps you can share your updater.log as well.

See Updater: Troubleshooting in the Admin Manual.

Thank you for your questions. I added the Updater-Log and the config-file in the post. Thanks for any suggestions.

The automatic method in the backend of Nextcloud has never worked for me, (I guess it has something to do with the server it is hosted on) so I have adopted a derivative one from the manual method.

To update, I login to the server using SSH, then dive into the root directory of my install (which is under “nextcloud.mywebsite.com”), download the new nextcloud archive using wget, and then un pack it.


$ wget https://download.nextcloud.com/server/releases/nextcloud-30.0.6.tar.bz2

then:
tar xvfJ nextcloud-30.0.6.tar.bz2 (or unzip nextcloud-30.0.6.zip if I pick the zip archive).

Once done, still within the “nextcloud.mywebsite.com” directory:

move the data from the old into the new : mv htdoc/data nextcloud/ (beware where there is a slash at the end and where there isn’t)

copy the config file from the old to the new: cp htdoc/config/config.php nextcloud/config/
(beware where there is a slash at the end)

Then renaming the old one : mv htdoc htdoc.old and right after renaming the new one: mv nextcloud htdoc.

Once done, the original archive can be deleted: rm nextcloud-30.0.6.tar.bz2 (or rm nextcloud-30.0.6.zip, depending on what you got).

Then you need to restart the server, before heading to the login page. For me, it worked. Not the first time, because I had pushed the files using SFTP, and something went wrong, and I got the horrible message “This Nextcloud instance is currently in maintenance mode, which may take a while.”, but the second time it worked because I downloaded the archive again, but this time doing as I just explained above.

The reason why I am not using the method presented in the online documentation of Nextcloud as is, is because I can’t, having a limited shell access. I can perform some commands, but I don’t have either sudo or other “su” access, and the ownership of the files and directories makes it possible for me to act only from within the directory of the installation.
But, it works!

It looks like you have a stuck .step file from the original 30.0.4 update. That file used by the Updater to track where it left off if it gets interrupted. I’m guessing the Updater just shows all the steps completed really fast for you? Because it thinks it’s stuck at the last step and the rest (like installing the update) are already done.

You can clear it by running occ maintenance:repair then re-triggering the Updater.

Great! That was the right thing to do. The maintenance:repair retriggered the update. That was the thing, I was loocking for. Thank you!

1 Like

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