Trying to update 29.0.12 to 29.0.16 says "already latest version"

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 29.0.12
  • Operating system and version (e.g., Ubuntu 24.04):
    • Some Debian - don't know the version (webhoster)
  • Web server and version (e.g, Apache 2.4.25):
    • apache - don't know the version (webhoster)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx - don't know the version (webhoster)
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Today (I didn't notice that newer versions are available and also didn't get informed as usual)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Web Hoster
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Updates does nothing and thinks it’s already on latest Nextcloud version

Steps to replicate it (hint: details matter!):

Web-Frontend says “A new version is available: Nextcloud 29.0.16”
When clicking on “Open Updater” it says:
“Current version is 29.0.12”
"Update to Nextcloud 29.0.16 available. (channel: “stable”)
(there are already all ticks green, e.g. “Check for expected files”…)
Then I click on “Continue update” and it shows
“Go back to your nextcloud instance…” for a short time and then directly
returns to the instance and nothing was updated.

When I try to do an upgrade on command line with
“php --define apc.enable_cli=1 ~/www/nextcloud/updater/updater.phar”
it shows me the steps that will be executed and asks me to continue update;
I then press “y” and it directly says “Update of code successful.” and
asks me if “occ upgrade” should be executed.
I say “y” and it says “Nextcloud is already latest version”

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

There are none of that time and none related to upgrade…

{"reqId":"lcpne5fwTeARTr1KOehB","level":2,"time":"2025-05-27 15:32:58","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"failed to create instance of background job: OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","userAgent":"--","version":"29.0.12.2","exception":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner! Class \"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner\" does not exist","Code":0,"Trace":[{"file":"/home/www/nextcloud-29/lib/private/AppFramework/Utility/SimpleContainer.php","line":146,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner"]},{"file":"/home/www/nextcloud-29/lib/private/ServerContainer.php","line":173,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner",true]},{"file":"/home/www/nextcloud-29/lib/private/AppFramework/Utility/SimpleContainer.php","line":64,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner"]},{"file":"/home/www/nextcloud-29/lib/public/Server.php","line":55,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner"]},{"file":"/home/www/nextcloud-29/lib/private/BackgroundJob/JobList.php","line":304,"function":"get","class":"OCP\\Server","type":"::","args":["OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner"]},{"file":"/home/www/nextcloud-29/lib/private/BackgroundJob/JobList.php","line":213,"function":"buildJob","class":"OC\\BackgroundJob\\JobList","type":"->","args":[{"id":451364,"class":"OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","argument":"null","last_run":0,"last_checked":1748352575,"0":"And 4 more entries, set log level to debug to see all entries"}]},{"file":"/home/www/nextcloud-29/cron.php","line":163,"function":"getNext","class":"OC\\BackgroundJob\\JobList","type":"->","args":[true]}],"File":"/home/www/nextcloud-29/lib/private/AppFramework/Utility/SimpleContainer.php","Line":135,"message":"failed to create instance of background job: OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner","exception":{},"CustomMessage":"failed to create instance of background job: OCA\\Files_Antivirus\\BackgroundJob\\BackgroundScanner"}}

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "activity_expire_days": "120",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "filelocking.debug": false,
        "filelocking.enabled": true,
        "filelocking.ttl": 300,
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
        "version": "29.0.12.2",
        "installed": true,
        "dbtype": "mysql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "defaultapp": "side_menu",
        "default_language": "de",
        "default_phone_region": "DE",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": true,
        "enable_avatars": true,
        "allow_user_to_change_display_name": true,
        "theme": "",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "log_type": "file",
        "loglevel": "2",
        "logdateformat": "Y-m-d H:i:s",
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 20971520,
        "skeletondirectory": "\/home\/www\/nextcloud_data\/skeleton",
        "updatechecker": true,
        "trashbin_retention_obligation": "auto",
        "versions_retention_obligation": "disabled",
        "appstoreenabled": true,
        "appstore.experimental.enabled": true,
        "singleuser": false,
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "htaccess.RewriteBase": "\/",
        "mail_smtpmode": "smtp",
        "updater.release.channel": "stable",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "jpeg_quality": 75,
        "share_folder": "\/",
        "simpleSignUpLink.shown": false,
        "data-fingerprint": "6bf8a60072d9bbd45d450752a6c22ccd",
        "mail_sendmailmode": "smtp",
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\Krita",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PNG",
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Image",
            "OC\\Preview\\Movie",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF"
        ],
        "enable_previews": true,
        "preview_concurrency_all": 2,
        "preview_concurrency_new": 1,
        "preview_max_memory": 256,
        "preview_max_filesize_image": 10,
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
        "maintenance_window_start": 2,
        "memories.exiftool": "\/home\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.ffmpeg_path": "\/usr\/bin\/ffmpeg",
        "memories.ffprobe_path": "\/usr\/bin\/ffprobe",
        "memories.transcoder": "\/home\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.no_transcode": false,
        "memories.qsv": false,
        "memories.vod.path": "\/home\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "session_lifetime": 21600,
        "max_filesize_animated_gifs_public_sharing": 5,
        "memories.db.triggers.fcu": true,
        "app_install_overwrite": [
            "files_downloadactivity"
        ],
        "memories.gis_type": 1,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 2.21.1
  - admin_audit: 1.19.0
  - announcementcenter: 7.0.1
  - bruteforcesettings: 2.9.0
  - calendar: 4.7.17
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.4
  - contactsinteraction: 1.10.0
  - dav: 1.30.1
  - external: 5.4.1
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.1
  - files_accesscontrol: 1.19.1
  - files_automatedtagging: 1.19.0
  - files_downloadactivity: 1.17.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.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
  - gpxpod: 5.0.18
  - group_everyone: 0.1.16
  - groupfolders: 17.0.10
  - impersonate: 1.16.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - maps: 1.4.0
  - memories: 7.5.2
  - metadata: 0.22.0
  - music: 2.1.4
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.1
  - photos: 2.5.0
  - previewgenerator: 5.8.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recognize: 7.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - side_menu: 3.13.1
  - systemtags: 1.19.0
  - tasks: 0.16.1
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - user_usage_report: 1.13.1
  - viewer: 2.3.0
  - workflowengine: 2.11.0
Disabled:
  - camerarawpreviews: 0.8.7 (installed 0.8.7)
  - circles: 29.0.0-dev (installed 28.0.0)
  - dashboard: 7.9.0 (installed 7.9.0)
  - dicomviewer: 2.3.1 (installed 2.3.1)
  - encryption: 2.17.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_antivirus: 5.6.3 (installed 5.6.3)
  - firstrunwizard: 2.18.0 (installed 2.18.0)
  - gallery: 18.5.0 (installed 18.5.0)
  - mail: 3.7.24 (installed 3.7.24)
  - password_policy: 1.19.0 (installed 1.19.0)
  - polls: 7.4.3 (installed 7.4.3)
  - recommendations: 2.1.0 (installed 2.1.0)
  - support: 1.12.0 (installed 1.12.0)
  - survey_client: 1.17.0 (installed 1.17.0)
  - suspicious_login: 7.0.0
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0
  - weather_status: 1.9.0 (installed 1.9.0)

It sounds like for whatever reason there is a stale Updater .step tracking file from a prior Updater run. The easiest way to clean it up is to run occ maintenance:repair. Then you can run the Updater as normal.

Thanks a lot - that solved it…
…now it updates to 29.0.16 :slight_smile:

1 Like

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