After upgrading via occ or manual still old version

Hi there,

after upgrading from 29.0.4 to 29.0.5 and now 29.0.6 NC shows still 29.0.4 as current version. I’ve tried upgrading via web, CLI occ and manual, and it’s still showing 29.0.4. as version no. :frowning:

Sonntag, 08.Sep - 01:06 - [ xc913@xc9:~/www/oc.x2t.eu/nextcloud ]
$ php --define apc.enable_cli=1 occ support:report
Cannot load Zend OPcache - it was already loaded

Server configuration detail

Operating system: Linux 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64

Webserver: Unknown (cli)

Database: mysql 10.11.9

PHP version: 8.2.22

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, amqp, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, gnupg, iconv, igbinary, imagick, imap, intl, ldap, exif, mcrypt, msgpack, mysqli, OAuth, PDO_Firebird, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, redis, shmop, SimpleXML, snmp, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, mailparse, memcached, ionCube Loader, Zend OPcache

Nextcloud version: 29.0.4 - 29.0.4.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

List of activated apps
Enabled:
 - activity: 2.21.1
 - circles: 29.0.0-dev
 - cloud_federation_api: 1.12.0
 - comments: 1.19.0
 - contactsinteraction: 1.10.0
 - dashboard: 7.9.0
 - dav: 1.30.1
 - federatedfilesharing: 1.19.0
 - federation: 1.19.0
 - files: 2.1.1
 - files_downloadlimit: 2.0.0
 - files_pdfviewer: 2.10.0
 - files_reminders: 1.2.0
 - files_sharing: 1.21.0
 - files_trashbin: 1.19.0
 - files_versions: 1.22.0
 - firstrunwizard: 2.18.0
 - logreader: 2.14.0
 - lookup_server_connector: 1.17.0
 - nextcloud_announcements: 1.18.0
 - notifications: 2.17.0
 - oauth2: 1.17.0
 - password_policy: 1.19.0
 - photos: 2.5.0
 - privacy: 1.13.0
 - provisioning_api: 1.19.0
 - recommendations: 2.1.0
 - related_resources: 1.4.0
 - serverinfo: 1.19.0
 - settings: 1.12.0
 - sharebymail: 1.19.0
 - support: 1.12.0
 - survey_client: 1.17.0
 - systemtags: 1.19.0
 - text: 3.10.1
 - theming: 2.4.0
 - twofactor_backupcodes: 1.18.0
 - twofactor_totp: 11.0.0-dev
 - updatenotification: 1.19.1
 - user_status: 1.9.0
 - viewer: 2.3.0
 - weather_status: 1.9.0
 - workflowengine: 2.11.0
Disabled:
 - admin_audit
 - bruteforcesettings: 2.4.0
 - encryption
 - files_external
 - suspicious_login
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "oc.x2t.eu"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "https:\/\/oc.x2t.eu\/nextcloud",
    "dbtype": "mysql",
    "version": "29.0.4.1",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "theme": "",
    "loglevel": 0,
    "updater.release.channel": "stable",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpsecure": "tls",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "twofactor_enforced": "true",
    "twofactor_enforced_groups": [
        "admin"
    ],
    "twofactor_enforced_excluded_groups": [],
    "default_phone_region": "DE",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "maintenance_window_start": 1,
    "data-fingerprint": "***REMOVED SENSITIVE VALUE***"
}
**Cron Configuration:** Array
(
    [backgroundjobs_mode] => cron
    [lastcron] => 1725760503
)


**External storages:** files_external is disabled

**Encryption:** no

**User-backends:**
 * OC\User\Database


**Browser:** unknown

Some Idea what I can do to solve this problem?

Tried to set the version no in config.php to 29.0.6 manually but this ended up with an error of downgrading not allowed.

THX Sleepy

Couple things:

  • The Updater (in both web or cli modes) logs to data/updater.log. That should have some clues.
  • You mention occ. I can only assume you’re referring to occ upgrade. This isn’t how you update from the command-line. You first have to upgrade the application code itself. From the command line that is done using updater.phar. Running occ upgrade is only useful after running updater.phar. Docs: How to upgrade — Nextcloud latest Administration Manual latest documentation
2 Likes

Hi jtr,

thx for your reply, I meant with occ the updater.phar like it is described in your mentioned link.

In the update.log I couldn’t find any useful hint, only “info” entries, no warning or error.

Regards Sleepy

Please post the updater.log (at least the portion from recent runs).

tried to, but the forum doesn’t let me post it cause it has more than 4 links :frowning:

You should post it in a fenced codeblock:

```
Post the logentry here
```

Or simply hit

Ctrl + E

and then enter your Logfile Code between the opening and closing three backticks.


ernolf

2 Likes

@ernolf THX

$ cat data/updater.log
2024-09-08T01:45:29+0000 ffSski4480 [info] updater cli is executed
2024-09-08T01:45:29+0000 ffSski4480 [info] currentStep()
2024-09-08T01:45:29+0000 ffSski4480 [info] current version: 29.0.4 build time: 2024-07-18T11:39:28+00:00 f5ac1aa4451b22c468cc2e4eaa431ceae240a51a
2024-09-08T01:45:29+0000 ffSski4480 [info] getUpdateServerResponse()
2024-09-08T01:45:29+0000 ffSski4480 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-09-08T01:45:29+0000 ffSski4480 [info] releaseChannel: stable
2024-09-08T01:45:29+0000 ffSski4480 [info] internal version: 29.0.4.1
2024-09-08T01:45:29+0000 ffSski4480 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=29x0x4x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x2x22
2024-09-08T01:45:29+0000 ffSski4480 [info] getUpdateServerResponse response: Array
(
    [version] => 29.0.6.1
    [versionstring] => Nextcloud 29.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-29.0.6.zip
    [web] => https://docs.nextcloud.com/server/29/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=29.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => dpGb7KrKfgVFQGkLT53R6eeJZzmP24W45MknMQtZxJspSrr9eFwO2b6DrNnFbp+O
ZlxxEJ7Gx43IZN0KGCiAJQLig3BMPBnJH/kIM4gmju37sH4H6P4Dkbip+LFmmXuZ
UXddf/vUlvD5uP7XWKyiZM1rDw+Zahk3P6iVAiaYsAHkgE+eqhjBRwGdJX5YoKm9
613zgb5qy/HUljWt2LhenTnlNY/2hKiVOm8WxlxbDA7h6vKt1DVJEtqUgsuAda12
dpGvrlPFMYGAout8Rj9g4McnNioxV9G8Xj7NIT8eM2t3I/h2yLL9qVnsIcaMO4Z9
dVPC49uU0x69dX1jP042xg==
)

2024-09-08T01:45:29+0000 ffSski4480 [info] checkForUpdate() Array
(
    [version] => 29.0.6.1
    [versionstring] => Nextcloud 29.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-29.0.6.zip
    [web] => https://docs.nextcloud.com/server/29/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=29.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => dpGb7KrKfgVFQGkLT53R6eeJZzmP24W45MknMQtZxJspSrr9eFwO2b6DrNnFbp+O
ZlxxEJ7Gx43IZN0KGCiAJQLig3BMPBnJH/kIM4gmju37sH4H6P4Dkbip+LFmmXuZ
UXddf/vUlvD5uP7XWKyiZM1rDw+Zahk3P6iVAiaYsAHkgE+eqhjBRwGdJX5YoKm9
613zgb5qy/HUljWt2LhenTnlNY/2hKiVOm8WxlxbDA7h6vKt1DVJEtqUgsuAda12
dpGvrlPFMYGAout8Rj9g4McnNioxV9G8Xj7NIT8eM2t3I/h2yLL9qVnsIcaMO4Z9
dVPC49uU0x69dX1jP042xg==
)

2024-09-08T01:45:29+0000 ffSski4480 [info] getChangelogURL()
2024-09-08T01:45:29+0000 ffSski4480 [info] end of checkForUpdate() Update to Nextcloud 29.0.6 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-29.0.6.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#29-0-6" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-09-08T01:45:32+0000 ffSski4480 [info] updater started
2024-09-08T01:45:32+0000 ffSski4480 [info] executeStep request for step "1"
2024-09-08T01:45:32+0000 ffSski4480 [info] startStep("1")
2024-09-08T01:45:32+0000 ffSski4480 [info] checkForExpectedFilesAndFolders()
2024-09-08T01:45:32+0000 ffSski4480 [info] end of checkForExpectedFilesAndFolders()
2024-09-08T01:45:32+0000 ffSski4480 [info] endStep("1")
2024-09-08T01:45:32+0000 ffSski4480 [info] executeStep request for step "2"
2024-09-08T01:45:32+0000 ffSski4480 [info] startStep("2")
2024-09-08T01:45:32+0000 ffSski4480 [info] checkWritePermissions()
2024-09-08T01:45:32+0000 ffSski4480 [info] end of checkWritePermissions()
2024-09-08T01:45:32+0000 ffSski4480 [info] endStep("2")
2024-09-08T01:45:32+0000 ffSski4480 [info] executeStep request for step "3"
2024-09-08T01:45:32+0000 ffSski4480 [info] startStep("3")
2024-09-08T01:45:32+0000 ffSski4480 [info] createBackup()
2024-09-08T01:45:32+0000 ffSski4480 [info] backup folder location: /home/www/oc.x2t.eu/nextcloud/data/updater-oc4jy4wgadir/backups/nextcloud-29.0.4.1-1725759932/
2024-09-08T01:45:47+0000 ffSski4480 [info] end of createBackup()
2024-09-08T01:45:47+0000 ffSski4480 [info] endStep("3")
2024-09-08T01:45:47+0000 ffSski4480 [info] executeStep request for step "4"
2024-09-08T01:45:47+0000 ffSski4480 [info] startStep("4")
2024-09-08T01:45:47+0000 ffSski4480 [info] downloadUpdate()
2024-09-08T01:45:47+0000 ffSski4480 [info] getUpdateServerResponse()
2024-09-08T01:45:47+0000 ffSski4480 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-09-08T01:45:47+0000 ffSski4480 [info] releaseChannel: stable
2024-09-08T01:45:47+0000 ffSski4480 [info] internal version: 29.0.4.1
2024-09-08T01:45:47+0000 ffSski4480 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=29x0x4x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x2x22
2024-09-08T01:45:48+0000 ffSski4480 [info] getUpdateServerResponse response: Array
(
    [version] => 29.0.6.1
    [versionstring] => Nextcloud 29.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-29.0.6.zip
    [web] => https://docs.nextcloud.com/server/29/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=29.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => dpGb7KrKfgVFQGkLT53R6eeJZzmP24W45MknMQtZxJspSrr9eFwO2b6DrNnFbp+O
ZlxxEJ7Gx43IZN0KGCiAJQLig3BMPBnJH/kIM4gmju37sH4H6P4Dkbip+LFmmXuZ
UXddf/vUlvD5uP7XWKyiZM1rDw+Zahk3P6iVAiaYsAHkgE+eqhjBRwGdJX5YoKm9
613zgb5qy/HUljWt2LhenTnlNY/2hKiVOm8WxlxbDA7h6vKt1DVJEtqUgsuAda12
dpGvrlPFMYGAout8Rj9g4McnNioxV9G8Xj7NIT8eM2t3I/h2yLL9qVnsIcaMO4Z9
dVPC49uU0x69dX1jP042xg==
)

2024-09-08T01:45:53+0000 ffSski4480 [info] end of downloadUpdate()
2024-09-08T01:45:53+0000 ffSski4480 [info] endStep("4")
2024-09-08T01:45:53+0000 ffSski4480 [info] executeStep request for step "5"
2024-09-08T01:45:53+0000 ffSski4480 [info] startStep("5")
2024-09-08T01:45:53+0000 ffSski4480 [info] verifyIntegrity()
2024-09-08T01:45:53+0000 ffSski4480 [info] getUpdateServerResponse()
2024-09-08T01:45:53+0000 ffSski4480 [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-09-08T01:45:53+0000 ffSski4480 [info] releaseChannel: stable
2024-09-08T01:45:53+0000 ffSski4480 [info] internal version: 29.0.4.1
2024-09-08T01:45:53+0000 ffSski4480 [info] updateURL: https://updates.nextcloud.com/updater_server/?version=29x0x4x1xxxstablexx2024-07-18T11%3A39%3A28%2B00%3A00+f5ac1aa4451b22c468cc2e4eaa431ceae240a51ax8x2x22
2024-09-08T01:45:53+0000 ffSski4480 [info] getUpdateServerResponse response: Array
(
    [version] => 29.0.6.1
    [versionstring] => Nextcloud 29.0.6
    [url] => https://download.nextcloud.com/server/releases/nextcloud-29.0.6.zip
    [web] => https://docs.nextcloud.com/server/29/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=29.0.6
    [autoupdater] => 1
    [eol] => 0
    [signature] => dpGb7KrKfgVFQGkLT53R6eeJZzmP24W45MknMQtZxJspSrr9eFwO2b6DrNnFbp+O
ZlxxEJ7Gx43IZN0KGCiAJQLig3BMPBnJH/kIM4gmju37sH4H6P4Dkbip+LFmmXuZ
UXddf/vUlvD5uP7XWKyiZM1rDw+Zahk3P6iVAiaYsAHkgE+eqhjBRwGdJX5YoKm9
613zgb5qy/HUljWt2LhenTnlNY/2hKiVOm8WxlxbDA7h6vKt1DVJEtqUgsuAda12
dpGvrlPFMYGAout8Rj9g4McnNioxV9G8Xj7NIT8eM2t3I/h2yLL9qVnsIcaMO4Z9
dVPC49uU0x69dX1jP042xg==
)

2024-09-08T01:45:53+0000 ffSski4480 [info] storage location: /home/www/oc.x2t.eu/nextcloud/data/updater-oc4jy4wgadir/downloads/
2024-09-08T01:45:54+0000 ffSski4480 [info] end of verifyIntegrity()
2024-09-08T01:45:54+0000 ffSski4480 [info] endStep("5")
2024-09-08T01:45:54+0000 ffSski4480 [info] executeStep request for step "6"
2024-09-08T01:45:54+0000 ffSski4480 [info] startStep("6")
2024-09-08T01:45:54+0000 ffSski4480 [info] extractDownload()
2024-09-08T01:45:54+0000 ffSski4480 [info] storage location: /home/www/oc.x2t.eu/nextcloud/data/updater-oc4jy4wgadir/downloads/
2024-09-08T01:46:02+0000 ffSski4480 [info] end of extractDownload()
2024-09-08T01:46:02+0000 ffSski4480 [info] endStep("6")
2024-09-08T01:46:02+0000 ffSski4480 [info] executeStep request for step "7"
2024-09-08T01:46:02+0000 ffSski4480 [info] startStep("7")
2024-09-08T01:46:02+0000 ffSski4480 [info] setMaintenanceMode("true")
2024-09-08T01:46:02+0000 ffSski4480 [info] configFileName /home/www/oc.x2t.eu/nextcloud/updater/../config/config.php
2024-09-08T01:46:02+0000 ffSski4480 [info] end of setMaintenanceMode()
2024-09-08T01:46:02+0000 ffSski4480 [info] endStep("7")
2024-09-08T01:46:02+0000 ffSski4480 [info] executeStep request for step "8"
2024-09-08T01:46:02+0000 ffSski4480 [info] startStep("8")
2024-09-08T01:46:02+0000 ffSski4480 [info] replaceEntryPoints()
2024-09-08T01:46:02+0000 ffSski4480 [info] replace index.php
2024-09-08T01:46:02+0000 ffSski4480 [info] replace status.php
2024-09-08T01:46:02+0000 ffSski4480 [info] replace remote.php
2024-09-08T01:46:02+0000 ffSski4480 [info] replace public.php
2024-09-08T01:46:02+0000 ffSski4480 [info] replace ocs/v1.php
2024-09-08T01:46:02+0000 ffSski4480 [info] replace ocs/v2.php
2024-09-08T01:46:02+0000 ffSski4480 [info] end of replaceEntryPoints()
2024-09-08T01:46:02+0000 ffSski4480 [info] endStep("8")
2024-09-08T01:46:02+0000 ffSski4480 [info] executeStep request for step "9"
2024-09-08T01:46:02+0000 ffSski4480 [info] startStep("9")
2024-09-08T01:46:02+0000 ffSski4480 [info] deleteOldFiles()
2024-09-08T01:46:04+0000 ffSski4480 [info] config sample exists
2024-09-08T01:46:04+0000 ffSski4480 [info] themes README exists
2024-09-08T01:46:07+0000 ffSski4480 [info] end of deleteOldFiles()
2024-09-08T01:46:07+0000 ffSski4480 [info] endStep("9")
2024-09-08T01:46:07+0000 ffSski4480 [info] executeStep request for step "10"
2024-09-08T01:46:07+0000 ffSski4480 [info] startStep("10")
2024-09-08T01:46:07+0000 ffSski4480 [info] moveNewVersionInPlace()
2024-09-08T01:46:07+0000 ffSski4480 [info] storage location: /home/www/oc.x2t.eu/nextcloud/data/updater-oc4jy4wgadir/downloads/nextcloud/
2024-09-08T01:46:08+0000 ffSski4480 [info] end of moveNewVersionInPlace()
2024-09-08T01:46:08+0000 ffSski4480 [info] endStep("10")
2024-09-08T01:46:08+0000 ffSski4480 [info] executeStep request for step "12"
2024-09-08T01:46:08+0000 ffSski4480 [info] startStep("12")
2024-09-08T01:46:08+0000 ffSski4480 [info] finalize()
2024-09-08T01:46:08+0000 ffSski4480 [info] storage location: /home/www/oc.x2t.eu/nextcloud/data/updater-oc4jy4wgadir/downloads/nextcloud/
2024-09-08T01:46:08+0000 ffSski4480 [info] call opcache_reset()
2024-09-08T01:46:08+0000 ffSski4480 [info] end of finalize()
2024-09-08T01:46:08+0000 ffSski4480 [info] endStep("12")
2024-09-08T01:46:08+0000 ffSski4480 [info] update of code successful.
2024-09-08T01:46:37+0000 ffSski4480 [info] maintenance mode is disabled - return code: 0

I’m just asking to be sure, because it is actually called automatically after the update:
Did you already run

php --define apc.enable_cli=1 occ upgrade

after the updater?


ernolf

1 Like

yes I did.