[Bug]: Apps compatible with new version misleading

未关闭
#66,647 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
php
领域
backend

调研方向

Start by tracing the update app’s compatibility check and the occ upgrade app compatibility handling; the issue does not name their files or tests. Compare how each decides whether an app is compatible, then add or run tests that verify both report the same result for the reported Nextcloud 34.0.5 to 34.0.6 upgrade.

由索引模型根据 Issue 内容生成。

描述

0. Needs triage 34-feedback bug
⚠️ This issue respects the following points: ⚠️
  • This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
  • This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
  • I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
  • I agree to follow Nextcloud's Code of Conduct.
  • I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description

When presenting the option in admin UI to update to new version the compatible apps check does not agree with the occ upgrade step, making it possible for apps to be disabled even though the ui said "All apps have a compatible version for this Nextcloud version available."

Steps to reproduce

The issue is in general more about there being a miss-match, but how it occurred for me now:

  1. Have an 34.0.5 instance with nextcloud memories
  2. Observe update to 34.0.6 has no incompatible apps
  3. Perform update, nextcloud memories gets disabled

Not that nextcloud memories is compatible with nc 34.0.6 so it becoming disabled is a bug in it self (seems to be issues with the apps repository?) - this isuue is about the missmatch- occ upgrade and the UI check must mean the same thing and report the same result.

It is/was also common for some apps to be reported as compatible only to be disabled removed by occ upgrade but then reenable a renamed/merged into core functionality which has been confusing.

Expected behavior

The update app compatibility check must report the same as occ upgrade

Nextcloud Server version

34

Operating system

Other

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 32.0.1 to 32.0.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "serverid": 1,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "10.42.3.32",
            "xn--skmolnet-8za.eterkludd.se"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "34.0.6.2",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/xn--skmolnet-8za.eterkludd.se\/",
        "overwriteprotocol": "https",
        "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,
        "maintenance_window_start": 2,
        "default_phone_region": "SE",
        "default_locale": "sv_SE",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "loglevel": 2,
        "defaultapp": "files,memories,notes,calendar,contacts,cospend,activity,phonetrack,secrets",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "\/srv\/www\/skelett\/",
        "templatedirectory": "",
        "enabledPreviewProviders": [
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "tempdirectory": "\/mnt\/ncdata\/php_tmpfiles\/",
        "files.chunked_upload.max_parallel_count": 8,
        "maintenance": false,
        "memories.vod.disable": false,
        "memories.gis_type": 1,
        "memories.db.triggers.fcu": true,
        "simpleSignUpLink.shown": false,
        "profile.enabled": false,
        "theme": "",
        "enforce_theme": "dark",
        "memories.vips.path": "\/srv\/www\/nextcloud\/apps\/memories\/bin-ext\/vips-amd64",
        "memories.vod.path": "\/srv\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.exiftool": "\/srv\/www\/nextcloud\/apps\/memories\/bin-ext\/eperl-amd64-glibc",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}
List of activated Apps
Enabled:
  - activity: 7.0.0
  - appstore: 1.0.0
  - bruteforcesettings: 7.0.0
  - calendar: 6.6.5
  - camerarawpreviews: 1.3.0
  - cloud_federation_api: 1.18.0
  - contacts: 8.10.0
  - cospend: 4.3.0
  - dav: 1.40.0
  - deck: 1.18.6
  - end_to_end_encryption: 2.6.0
  - federatedfilesharing: 1.24.0
  - federation: 1.24.0
  - files: 2.6.0
  - files_downloadlimit: 5.2.0
  - files_external: 1.26.0
  - files_lock: 34.0.1
  - files_pdfviewer: 7.0.1
  - files_reminders: 1.7.0
  - files_sharing: 1.26.1
  - files_trashbin: 1.24.0
  - files_versions: 1.27.0
  - logreader: 7.0.0
  - lookup_server_connector: 1.22.0
  - notes: 6.1.1
  - notifications: 7.0.0-dev.1
  - notify_push: 1.4.2
  - oauth2: 1.22.0
  - office: 1.0.0
  - oidc: 2.6.3
  - password_policy: 6.0.0-dev.0
  - phonetrack: 1.6.1
  - photos: 7.0.0
  - privacy: 6.0.0-dev.1
  - profile: 1.3.0
  - provisioning_api: 1.24.0
  - recommendations: 7.0.0
  - registration: 3.1.1
  - richdocuments: 11.1.3
  - secrets: 3.0.6
  - serverinfo: 6.0.0
  - settings: 1.17.0
  - sharebymail: 1.24.0
  - survey_client: 6.0.0-dev.0
  - text: 8.0.1
  - theming: 2.9.0
  - theming_customcss: 1.22.0
  - twofactor_backupcodes: 1.23.0
  - twofactor_nextcloud_notification: 8.0.0
  - twofactor_totp: 16.0.0
  - updatenotification: 1.24.0
  - viewer: 7.0.0-dev.0
  - workflowengine: 2.16.0
Disabled:
  - admin_audit: 1.24.0
  - app_api: 34.0.0 (installed 4.0.6)
  - checksum: 2.1.2 (installed 2.1.2)
  - circles: 34.0.0 (installed 30.0.0)
  - comments: 1.24.0 (installed 1.20.1)
  - contactsinteraction: 1.15.0 (installed 1.11.0)
  - dashboard: 7.14.0 (installed 7.10.0)
  - encryption: 2.22.0
  - firstrunwizard: 7.0.0-dev.0 (installed 3.0.0)
  - metadata: 0.24.0 (installed 0.24.0)
  - nextcloud_announcements: 6.0.0 (installed 2.0.0)
  - related_resources: 5.0.0-dev.0 (installed 1.5.0)
  - support: 6.0.0 (installed 2.0.0)
  - suspicious_login: 12.0.0-dev.0
  - systemtags: 1.24.0 (installed 1.21.1)
  - user_ldap: 1.25.0
  - user_status: 1.14.0 (installed 1.10.0)
  - weather_status: 1.14.0 (installed 1.10.0)
  - webhook_listeners: 1.6.0 (installed 1.1.0-dev)
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"dJwBFgkYWUeSRDz94F1E","level":1,"time":"2026-11-16T11:04:08+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"occ","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"34.0.5.1","occ_command":["occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"dJwBFgkYWUeSRDz94F1E","level":1,"time":"2026-11-16T11:04:08+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"occ","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"34.0.6.2","occ_command":["occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"dJwBFgkYWUeSRDz94F1E","level":1,"time":"2026-11-16T11:04:08+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"occ","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"34.0.6.2","occ_command":["occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"dJwBFgkYWUeSRDz94F1E","level":1,"time":"2026-11-16T11:04:08+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"occ","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"34.0.6.2","occ_command":["occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"6E0D6cpwUn2SmhfKociC","level":2,"time":"2026-11-16T11:08:13+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","scriptName":"/srv/www/nextcloud/cron.php","message":"unlink(/mnt/ncdata/php_tmpfiles/oc_tmp_dWYid4ubO4Z5T9o6bpBd4WbDcL059PDl/memories/exiftest.jpg): No such file or directory at /srv/www/nextcloud/lib/public/Files.php#44","userAgent":"--","version":"34.0.6.2","occ_command":["/srv/www/nextcloud/cron.php"],"data":{"app":"PHP"}}
{"reqId":"6E0D6cpwUn2SmhfKociC","level":2,"time":"2026-11-16T11:08:13+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","scriptName":"/srv/www/nextcloud/cron.php","message":"unlink(): No such file or directory at /srv/www/nextcloud/lib/public/Files.php#44","userAgent":"--","version":"34.0.6.2","occ_command":["/srv/www/nextcloud/cron.php"],"data":{"app":"PHP"}}
{"reqId":"6E0D6cpwUn2SmhfKociC","level":2,"time":"2026-11-16T11:08:13+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","scriptName":"/srv/www/nextcloud/cron.php","message":"unlink(): No such file or directory at /srv/www/nextcloud/lib/public/Files.php#44","userAgent":"--","version":"34.0.6.2","occ_command":["/srv/www/nextcloud/cron.php"],"data":{"app":"PHP"}}
{"reqId":"6E0D6cpwUn2SmhfKociC","level":2,"time":"2026-11-16T11:08:13+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","scriptName":"/srv/www/nextcloud/cron.php","message":"unlink(): No such file or directory at /srv/www/nextcloud/lib/public/Files.php#44","userAgent":"--","version":"34.0.6.2","occ_command":["/srv/www/nextcloud/cron.php"],"data":{"app":"PHP"}}
{"reqId":"6E0D6cpwUn2SmhfKociC","level":2,"time":"2026-11-16T11:08:13+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","scriptName":"/srv/www/nextcloud/cron.php","message":"Error deleting temporary file/folder: /mnt/ncdata/php_tmpfiles//oc_tmp_dWYid4ubO4Z5T9o6bpBd4WbDcL059PDl - Reason: RecursiveDirectoryIterator::__construct(/mnt/ncdata/php_tmpfiles//oc_tmp_dWYid4ubO4Z5T9o6bpBd4WbDcL059PDl/memories/img): Failed to open directory: No such file or directory","userAgent":"--","version":"34.0.6.2","occ_command":["/srv/www/nextcloud/cron.php"],"data":[]}
{"reqId":"fCxkcXPNJz5kDxXRNPQx","level":2,"time":"2026-11-16T11:08:15+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","scriptName":"/srv/www/nextcloud/cron.php","message":"failed to create instance of background job: OCA\\Memories\\Cron\\IndexJob","userAgent":"--","version":"34.0.5.1","occ_command":["/srv/www/nextcloud/cron.php"],"exception":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Memories\\Cron\\IndexJob! Class \"OCA\\Memories\\Cron\\IndexJob\" does not exist","Code":0,"Trace":[{"file":"/srv/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":158,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":379,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/www/nextcloud/lib/private/ServerContainer.php","line":139,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/srv/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":44,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/srv/www/nextcloud/lib/public/Server.php","line":37,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/srv/www/nextcloud/lib/private/BackgroundJob/JobList.php","line":320,"function":"get","class":"OCP\\Server","type":"::"},{"file":"/srv/www/nextcloud/lib/private/BackgroundJob/JobList.php","line":200,"function":"buildJob","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/srv/www/nextcloud/core/Service/CronService.php","line":185,"function":"getNext","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/srv/www/nextcloud/core/Service/CronService.php","line":107,"function":"runCli","class":"OC\\Core\\Service\\CronService","type":"->"},{"file":"/srv/www/nextcloud/cron.php","line":52,"function":"run","class":"OC\\Core\\Service\\CronService","type":"->"}],"File":"/srv/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":138,"message":"failed to create instance of background job: OCA\\Memories\\Cron\\IndexJob","CustomMessage":"failed to create instance of background job: OCA\\Memories\\Cron\\IndexJob"}}
Additional info

The server got stuck into maintenance mode after UI app update earlier, not sure which app was being updated first but second password prompt for "update all" (see password spam app install issue) just got stuck and nextcloud was left in meintenance mode, which was manually ended after 8h and some occ checks and occ app updates. Not sure if related, dont know if nextcloud was the app being updated, logs dont show.
Theres a lot more of the "nc is in maintenance mode logs".

主要语言
PHP
星标
37.5k
派生
5.4k
平均合并
1 天 13 小时
30 天内合并 PR
639

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/server 的其他 Issue

查看 nextcloud/server 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。