Unable to upgrade from 27.0.2 - Resolved

Nextcloud version (eg, 20.0.5): 27.0.2
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): 2.4.59
PHP version (eg, 7.4): 8.2.18

The issue you are facing:
Unable to upgrade nextcloud to a newer version

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

Steps to replicate it:

  1. run updater/updater.phar - this indicates there is an update to 27.1.9 available (channel: “stable”)
  2. It reports update of code successful but then when I run occ upgrade it says “nextcloud is already latest version”

There is nothing related to the upgrade process or any other system errors in the apache, database or application log

Output of occ support:report

## Server configuration detail

**Operating system:** Linux 6.1.0-16-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.67-1 (2023-12-12) x86_64

**Webserver:** Unknown (cli)

**Database:** mysql 10.11.6

**PHP version:** 8.2.18

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

**Nextcloud version:** 27.0.2 - 27.0.2.1

**Updated from an older Nextcloud/ownCloud or fresh install: Upgraded**

**Where did you install Nextcloud from: web install several years ago**

<details><summary>Signing status</summary>

[]
</details>

<details><summary>List of activated apps</summary>

Enabled:

  • activity: 2.19.0
  • admin_audit: 1.17.0
  • announcementcenter: 6.6.2
  • bruteforcesettings: 2.7.0
  • cadviewer: 8.88.5
  • circles: 27.0.1
  • cloud_federation_api: 1.10.0
  • comments: 1.17.0
  • contactsinteraction: 1.8.0
  • dashboard: 7.7.0
  • dav: 1.27.0
  • drawio: 2.1.2
  • federatedfilesharing: 1.17.0
  • federation: 1.17.0
  • files: 1.22.0
  • files_accesscontrol: 1.17.0
  • files_automatedtagging: 1.17.0
  • files_pdfviewer: 2.8.0
  • files_retention: 1.16.0
  • files_rightclick: 1.6.0
  • files_sharing: 1.19.0
  • files_trashbin: 1.17.0
  • files_versions: 1.20.0
  • firstrunwizard: 2.16.0
  • groupfolders: 15.2.0
  • logreader: 2.12.0
  • lookup_server_connector: 1.15.0
  • nextcloud_announcements: 1.16.0
  • notifications: 2.15.0
  • oauth2: 1.15.1
  • password_policy: 1.17.0
  • photos: 2.3.0
  • privacy: 1.11.0
  • provisioning_api: 1.17.0
  • quota_warning: 1.17.0
  • recommendations: 1.6.0
  • related_resources: 1.2.0
  • richdocuments: 8.1.1
  • serverinfo: 1.17.0
  • settings: 1.9.0
  • sharebymail: 1.17.0
  • support: 1.10.0
  • survey_client: 1.15.0
  • suspicious_login: 5.0.0
  • systemtags: 1.17.0
  • terms_of_service: 2.3.1
  • text: 3.8.0
  • theming: 2.2.0
  • twofactor_backupcodes: 1.16.0
  • updatenotification: 1.17.0
  • user_ldap: 1.17.0
  • user_status: 1.7.0
  • viewer: 2.1.0
  • weather_status: 1.7.0
  • workflow_pdf_converter: 1.12.0
  • workflowengine: 2.9.0
    Disabled:
  • encryption
  • files_external
  • richdocumentscode: 23.5.301
  • twofactor_totp
</details>

<details><summary>Configuration (config/config.php)</summary>

{
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“goat-lovers.xxx”
],
“trusted_proxies”: “REMOVED SENSITIVE VALUE”,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “27.0.2.1”,
“overwrite.cli.url”: “https://goat-lovers.xxx”,
“htaccess.RewriteBase”: “/”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“ldapProviderFactory”: “OCA\User_LDAP\LDAPProviderFactory”,
“memcache.locking”: “\OC\Memcache\Redis”,
“memcache.distributed”: “\OC\Memcache\Redis”,
“memcache.local”: “\OC\Memcache\APCu”,
“default_phone_region”: “QA”,
“mail_smtpdebug”: true,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_smtpstreamoptions”: {
“ssl”: {
“allow_self_signed”: true,
“verify_peer”: false,
“verify_peer_name”: false
}
},
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “587”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“maintenance”: false,
“enable_previews”: true,
“loglevel”: 2,
“updater.secret”: “REMOVED SENSITIVE VALUE
}

</details>

**Cron Configuration:** Array
(
    [backgroundjobs_mode] => cron
    [lastcron] => 1716542702
)

**External storages:** files_external is disabled
**Encryption:** no
**User-backends:**
 * OC\User\Database
 * OCA\User_LDAP\User_Proxy


Can anyone advise where else to look on the system to fix this?

Today or yesterday there was a new version Nextcloud 27.0.10, 28.0.6, 29.0.1 (here and here). Maybe a problem with that. Wait perhaps a day or two.

ok @devnull, I will wait until Sunday and see if my crazy server decides to behave when I retry!

Yes. And note: Nextcloud 27 is 2024-06 End of life. Maintenance and Release Schedule

This is why I’m trying to upgrade and get it onto at least 29 now that I have some spare time!

1 Like

Sometimes you can get Nextcloud to upgrade if you switch the channel to “beta” in the meantime.

Ah, didn’t know that. That’s plan B for Sunday then

You can do anything and try anything. The only important thing is that you have a Backup and you have tested a Restore successfully.

1 Like

Please post your updater.log (at least the portion dated for the time period you did this upgrade; no need to provide portions from past already successful upgrades).

Took a little search but here it is

2024-05-24T09:23:26+0000 MYIzefQlt1 [info] request to updater
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] currentStep()
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] Step 12 is in state "end".
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] show HTML page
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] current version: 27.0.2 build time: 2023-08-08T08:23:54+00:00 9234ae4a0a98ee924cd63974e88c22c3bb3f6b21
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] getUpdateServerResponse()
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] releaseChannel: stable
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] internal version: 27.0.2.1
2024-05-24T09:23:26+0000 MYIzefQlt1 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x2x1xxxstablexx2023-08-08T08%3A23%3A54%2B00%3A00+9234ae4a0a98ee924cd63974e88c22c3bb3f6b21x8x2x18
2024-05-24T09:23:27+0000 MYIzefQlt1 [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.9.1
    [versionstring] => Nextcloud 27.1.9
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => MofbMy9BK9Tib2LaSkg31dKRjRK6B+k8CTMh9xhUyQoC+yBdCKmchvw0ApohBc9h
4R0Ejxi57AEpMWrXwotSpQ5R41puIn6pSulN5DDhdj/AFvUUeoyI0nVKXCBCmqcO
zo7UPX07GqKIqQ8uTEuy3Q7ayREkVrFvbWUCDHgjGFV2xVwR4nqppmzlZKmC0SYu
KIFKVB0s5pFLvC2J/TcpqKGS86iQIUAaNkER3hiAf4iO+GxatM4rEtveD/Bv9Gdy
is8mB1xOT+wd3WCdwHoIu14IlWcy1CNgWKe+sjoz4VvR579TG3I4mk9VxSxLu8rO
3No9jhWhcURoGeKTWQJ5pw==
)

2024-05-24T09:23:27+0000 MYIzefQlt1 [info] checkForUpdate() Array
(
    [version] => 27.1.9.1
    [versionstring] => Nextcloud 27.1.9
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => MofbMy9BK9Tib2LaSkg31dKRjRK6B+k8CTMh9xhUyQoC+yBdCKmchvw0ApohBc9h
4R0Ejxi57AEpMWrXwotSpQ5R41puIn6pSulN5DDhdj/AFvUUeoyI0nVKXCBCmqcO
zo7UPX07GqKIqQ8uTEuy3Q7ayREkVrFvbWUCDHgjGFV2xVwR4nqppmzlZKmC0SYu
KIFKVB0s5pFLvC2J/TcpqKGS86iQIUAaNkER3hiAf4iO+GxatM4rEtveD/Bv9Gdy
is8mB1xOT+wd3WCdwHoIu14IlWcy1CNgWKe+sjoz4VvR579TG3I4mk9VxSxLu8rO
3No9jhWhcURoGeKTWQJ5pw==
)

2024-05-24T09:23:27+0000 MYIzefQlt1 [info] getChangelogURL()
2024-05-24T09:23:27+0000 MYIzefQlt1 [info] end of checkForUpdate() Update to Nextcloud 27.1.9 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-9" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] updater cli is executed
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] currentStep()
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] Step 12 is in state "end".
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] current version: 27.0.2 build time: 2023-08-08T08:23:54+00:00 9234ae4a0a98ee924cd63974e88c22c3bb3f6b21
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] getUpdateServerResponse()
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] releaseChannel: stable
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] internal version: 27.0.2.1
2024-05-24T09:26:23+0000 pdmIZ2B9H0 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x2x1xxxstablexx2023-08-08T08%3A23%3A54%2B00%3A00+9234ae4a0a98ee924cd63974e88c22c3bb3f6b21x8x2x18
2024-05-24T09:26:24+0000 pdmIZ2B9H0 [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.9.1
    [versionstring] => Nextcloud 27.1.9
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => MofbMy9BK9Tib2LaSkg31dKRjRK6B+k8CTMh9xhUyQoC+yBdCKmchvw0ApohBc9h
4R0Ejxi57AEpMWrXwotSpQ5R41puIn6pSulN5DDhdj/AFvUUeoyI0nVKXCBCmqcO
zo7UPX07GqKIqQ8uTEuy3Q7ayREkVrFvbWUCDHgjGFV2xVwR4nqppmzlZKmC0SYu
KIFKVB0s5pFLvC2J/TcpqKGS86iQIUAaNkER3hiAf4iO+GxatM4rEtveD/Bv9Gdy
is8mB1xOT+wd3WCdwHoIu14IlWcy1CNgWKe+sjoz4VvR579TG3I4mk9VxSxLu8rO
3No9jhWhcURoGeKTWQJ5pw==
)

2024-05-24T09:26:24+0000 pdmIZ2B9H0 [info] checkForUpdate() Array
(
    [version] => 27.1.9.1
    [versionstring] => Nextcloud 27.1.9
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => MofbMy9BK9Tib2LaSkg31dKRjRK6B+k8CTMh9xhUyQoC+yBdCKmchvw0ApohBc9h
4R0Ejxi57AEpMWrXwotSpQ5R41puIn6pSulN5DDhdj/AFvUUeoyI0nVKXCBCmqcO
zo7UPX07GqKIqQ8uTEuy3Q7ayREkVrFvbWUCDHgjGFV2xVwR4nqppmzlZKmC0SYu
KIFKVB0s5pFLvC2J/TcpqKGS86iQIUAaNkER3hiAf4iO+GxatM4rEtveD/Bv9Gdy
is8mB1xOT+wd3WCdwHoIu14IlWcy1CNgWKe+sjoz4VvR579TG3I4mk9VxSxLu8rO
3No9jhWhcURoGeKTWQJ5pw==
)

2024-05-24T09:26:24+0000 pdmIZ2B9H0 [info] getChangelogURL()
2024-05-24T09:26:24+0000 pdmIZ2B9H0 [info] end of checkForUpdate() Update to Nextcloud 27.1.9 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-9" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-05-24T09:26:30+0000 pdmIZ2B9H0 [info] updater started
2024-05-24T09:26:30+0000 pdmIZ2B9H0 [info] update of code successful.
2024-05-24T09:29:09+0000 pdmIZ2B9H0 [info] maintenance mode is disabled - return code: 0
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] updater cli is executed
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] currentStep()
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] Step 12 is in state "end".
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] current version: 27.0.2 build time: 2023-08-08T08:23:54+00:00 9234ae4a0a98ee924cd63974e88c22c3bb3f6b21
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] getUpdateServerResponse()
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] releaseChannel: stable
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] internal version: 27.0.2.1
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] updateURL: https://updates.nextcloud.com/updater_server/?version=27x0x2x1xxxstablexx2023-08-08T08%3A23%3A54%2B00%3A00+9234ae4a0a98ee924cd63974e88c22c3bb3f6b21x8x2x18
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.9.1
    [versionstring] => Nextcloud 27.1.9
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => MofbMy9BK9Tib2LaSkg31dKRjRK6B+k8CTMh9xhUyQoC+yBdCKmchvw0ApohBc9h
4R0Ejxi57AEpMWrXwotSpQ5R41puIn6pSulN5DDhdj/AFvUUeoyI0nVKXCBCmqcO
zo7UPX07GqKIqQ8uTEuy3Q7ayREkVrFvbWUCDHgjGFV2xVwR4nqppmzlZKmC0SYu
KIFKVB0s5pFLvC2J/TcpqKGS86iQIUAaNkER3hiAf4iO+GxatM4rEtveD/Bv9Gdy
is8mB1xOT+wd3WCdwHoIu14IlWcy1CNgWKe+sjoz4VvR579TG3I4mk9VxSxLu8rO
3No9jhWhcURoGeKTWQJ5pw==
)

2024-05-24T09:36:33+0000 Obc2mbH0EP [info] checkForUpdate() Array
(
    [version] => 27.1.9.1
    [versionstring] => Nextcloud 27.1.9
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.9
    [autoupdater] => 1
    [eol] => 0
    [signature] => MofbMy9BK9Tib2LaSkg31dKRjRK6B+k8CTMh9xhUyQoC+yBdCKmchvw0ApohBc9h
4R0Ejxi57AEpMWrXwotSpQ5R41puIn6pSulN5DDhdj/AFvUUeoyI0nVKXCBCmqcO
zo7UPX07GqKIqQ8uTEuy3Q7ayREkVrFvbWUCDHgjGFV2xVwR4nqppmzlZKmC0SYu
KIFKVB0s5pFLvC2J/TcpqKGS86iQIUAaNkER3hiAf4iO+GxatM4rEtveD/Bv9Gdy
is8mB1xOT+wd3WCdwHoIu14IlWcy1CNgWKe+sjoz4VvR579TG3I4mk9VxSxLu8rO
3No9jhWhcURoGeKTWQJ5pw==
)

2024-05-24T09:36:33+0000 Obc2mbH0EP [info] getChangelogURL()
2024-05-24T09:36:33+0000 Obc2mbH0EP [info] end of checkForUpdate() Update to Nextcloud 27.1.9 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.1.9.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-9" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-05-24T09:36:52+0000 Obc2mbH0EP [info] updater started
2024-05-24T09:36:52+0000 Obc2mbH0EP [info] update of code successful.
2024-05-24T09:37:04+0000 Obc2mbH0EP [info] updater finished

I’ve just noticed in the updater-*** folder, I have a .step file and a .step-previous-update
.step

{"state":"end","step":12}

.step-previous-update

{"state":"end","step":10}

I’ve checked the other netxcloud instance I’m running and it only has the .step-previous-update and it shows step 12, not 10
I take it then the last update on my problem server didn’t complete ok?

Will I be ok to delete the .step file and try again?

Simple answer: yes

1 Like

Did the Updater fly through super quick when you ran it? (Possibly with a bunch of the steps already checked off).

If that’s your full log from your main upgrade attempt, it definitely did not go through everything (this time). And, most importantly for your current goal: it didn’t actually upgrade the application code. So that’s why you’re stuck on the old version.

That stale .step file mentioned in your follow-on comment might explain it. It indicates to the Updater that it’s already completed steps 1-11 and immediately starts at 12. The .step file also gets removed at the end of a successful Updater run so it shouldn’t even be there.

Given that you still had the .step file plus a .step-previous-update (which sounds like something maybe you manually created?), indicates maybe your last Updater run required some manual intervention perhaps?

Now I am also a little curious about the log entries for your previous upgrade attempt. :slight_smile:

As soon as the data backup completes, I will clear out the .step and try again.

Worse case scenario, I will format the thing, install the app and restore the data from the backup!

1 Like

Removing the .step file did the trick, it’s all updated ok now.

Thanks for the guidance, I’ve learned more about how this software works today!

1 Like

Glad to hear it! Just to confirm (and head off a potential future problem): Did the Updater, afte rit successfully ran through this time, remove the replacement .step file itself this time?

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