Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Apps not updating after migrating from NC 27 to 30 #50043

Closed
5 of 8 tasks
flozz opened this issue Jan 5, 2025 · 1 comment
Closed
5 of 8 tasks

[Bug]: Apps not updating after migrating from NC 27 to 30 #50043

flozz opened this issue Jan 5, 2025 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug

Comments

@flozz
Copy link

flozz commented Jan 5, 2025

⚠️ This issue respects the following points: ⚠️

Bug description

Since I migrated from Nextcloud 27 to 30 (passing by 28 and 29 of course), I am not able to update installed apps : the appstore keep saying that everything is up to date.

For example a new release of the Music app was released few days ago : v2.1.1 but I am stuck with the 2.0.1 installed when my Nextcloud was in v27.x.

Steps to reproduce

I do not know how to reproduce

Expected behavior

Having an app index compatible with my Nextcloud version.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

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***",  
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.example.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.4.1",
        "overwrite.cli.url": "https:\/\/nextcloud.example.org",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI"
        ],
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "app_install_overwrite": [
            "apporder",
            "news"
        ],
        "updater.release.channel": "stable",
        "maintenance_window_start": 1,
        "default_phone_region": "FR"
    }
}

List of activated Apps

- activity: 3.0.0
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.8
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.2
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - deck: 1.14.2
  - external: 5.5.2
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - keeweb: 0.6.20
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - music: 2.0.1
  - news: 25.1.2
  - nextcloud_announcements: 2.0.0
  - notes: 4.11.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.3
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - admin_audit: 1.20.0
  - encryption: 2.18.0
  - files_external: 1.22.0
  - recommendations: 3.0.0 (installed 1.2.0)
  - richdocumentscode: 24.4.1002 (installed 24.4.1002)
  - support: 2.0.0 (installed 1.6.0)
  - survey_client: 2.0.0 (installed 1.11.0)
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

The only log entry that my be related is a warning:

{"reqId":"mcaDVvjK6kgwJleEGapl","level":2,"time":"2025-01-05T17:39:19 00:00","remoteAddr":"90.9.212.4","user":"fabien","app":"no app in context","method":"GET","url":"/settings/apps/discover","message":"Invalid defaultDaemonConfig data provided to provideInitialState by settings","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36","version":"30.0.4.1","data":[],"id":"677ac3da6efaa"}

Additional info

I looked at the ncdata/appstore/apps.json file and here is what I found:

...
{
  "id": "music",
  "categories": ["multimedia"],
  "userDocs": "",
  "adminDocs": "",
  "developerDocs": "",
  "issueTracker": "https:\/\/github.com\/owncloud\/music\/issues",
  "website": "https:\/\/github.com\/owncloud\/music",
  "created": "2017-07-27T20:44:13.379611Z",
  "lastModified": "2025-01-03T21:37:06.311435Z",
  "releases": [{
    "version": "0.8.0",
    "phpExtensions": [],
    "databases": [],
    "shellCommands": [],
    "phpVersionSpec": "*",
    "platformVersionSpec": ">=9.0.0 <15.0.0",
    "minIntSize": 32,
    "download": "https:\/\/github.com\/paulijar\/music\/files\/2216257\/music_0.8.0_nc-signed.tar.gz",
    "created": "2018-07-21T14:43:15.291438Z",
    "licenses": ["agpl"],
    "lastModified": "2018-07-21T15:03:26.162443Z",
    "isNightly": false,
    "rawPhpVersionSpec": "*",
    "rawPlatformVersionSpec": ">=9 <=14",
    "signature": "...",
    "translations": {
      "en": {
        "changelog": ""
      }
    },
    "signatureDigest": "sha512"
  }],
  ...
},
...

Only the very old v0.8.0 version of the app is listed (but we can see that the record was modified on 2025-01-03T21:37:06.311435Z).

It seems the appstore is querying for apps compatible with Nextcloud 9.X. This let me thinking it is mixing the Nextcloud Hub version (9) and the Nextcloud version (30.0.4).

@flozz flozz added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 5, 2025
@flozz
Copy link
Author

flozz commented Jan 6, 2025

I found that my Nginx vhost was pointing on the php-fpm 8.4 socket instead of the 8.3. I fixed this config and this morning the update was available...

I think we may close this issue, sorry for the wrong report ^^'

@flozz flozz closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 30-feedback bug
Projects
None yet
Development

No branches or pull requests

2 participants