CasaOS: [Bug] I cannot update Nexcloud, "Update not avaliable"

Describe the bug

There is something wrong, some time ago in CasaOS version 0.4.4.4, there was a problem with the application update issue due to the order of the services, this is the issue, #1259.

But now it happens again, but the order of services is correct and this has started to happen since I upgraded to CasaOS version 0.4.4.1.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Nextcloud App
  2. Click on Update
  3. No update avaliable.

Expected behavior

Nextcloud should have been updated to the new version.

Screenshots

image

image

image

image

Desktop (please complete the following information):

 - OS: Ubuntu 22.04 LTS
 - Browser Chrome
 - Version 115.0.5790.110 (Build oficial) (64 bits)
 - Docker version 24.0.5, build ced0996

Logs

Run following command to collect corresponding logs:

sudo journalctl -xef -u casaos-app-management
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.624+0200        info        App does not have x-casaos extension - skipping        {"app": "jellyfin", "func": "service.(*ComposeApp).StoreInfo", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go", "line": 71}
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.627+0200        info        App does not have x-casaos extension - skipping        {"app": "nextcloud-db", "func": "service.(*ComposeApp).StoreInfo", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go", "line": 71}
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.627+0200        info        App does not have x-casaos extension - skipping        {"app": "nextcloud", "func": "service.(*ComposeApp).StoreInfo", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go", "line": 71}
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.627+0200        info        App does not have x-casaos extension - skipping        {"app": "nextcloud-cron", "func": "service.(*ComposeApp).StoreInfo", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go", "line": 71}
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.627+0200        info        app not found in any appstore        {"id": "Nextcloud", "func": "service.(*AppStoreManagement).ComposeApp", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore_management.go", "line": 390}
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.627+0200        info        Using default appstore        {"func": "service.(*AppStoreManagement).ComposeApp", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/appstore_management.go", "line": 397}
ago 07 15:01:13 graves-vault casaos-app-management[6483]: 2023-08-07T15:01:13.627+0200        error        store compose app not found, thus no update available        {"storeAppID": "Nextcloud", "func": "service.(*ComposeApp).IsUpdateAvailable", "file": "/home/runner/work/CasaOS-AppManagement/CasaOS-AppManagement/service/compose_app.go", "line": 181}

Additional context

Yaml exported from Nexcloud CasaOS App

name: nextcloud
services:
  nextcloud:
    cpu_shares: 90
    command:
      - apache2-foreground
    container_name: nextcloud
    depends_on:
      nextcloud-db:
        condition: service_started
    deploy:
      resources:
        limits:
          memory: 15859M
    environment:
      - PHP_MEMORY_LIMIT=2048M
      - PHP_UPLOAD_LIMIT=512M
    image: nextcloud:latest
    labels:
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Nextcloud/icon.png
    ports:
      - target: 80
        published: "43920"
        protocol: tcp
      - target: 443
        published: "43923"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /mnt/vault2/BigAppData/NextCloud
        target: /var/www/html
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
  nextcloud-cron:
    cpu_shares: 10
    container_name: nextcloud-cron
    depends_on:
      nextcloud:
        condition: service_started
    deploy:
      resources:
        limits:
          memory: 15859M
    environment:
      - NEXTCLOUD_CONTAINER_NAME=nextcloud
      - NEXTCLOUD_CRON_MINUTE_INTERVAL=10
    image: rcdailey/nextcloud-cronjob:latest
    labels:
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Nextcloud/icon.png
    restart: unless-stopped
    volumes:
      - type: bind
        source: /var/run/docker.sock
        target: /var/run/docker.sock
      - type: bind
        source: /etc/localtime
        target: /etc/localtime
    ports: []
    devices: []
    cap_add: []
    command: []
    network_mode: bridge
    privileged: false
  nextcloud-db:
    cpu_shares: 90
    command:
      - postgres
    container_name: nextcloud-db
    deploy:
      resources:
        limits:
          memory: 15859M
    environment:
      - POSTGRES_DB=nextcloud
      - POSTGRES_PASSWORD=nextokcsdl
      - POSTGRES_USER=nextcloud
    hostname: nextcloud-db
    image: postgres:14.5
    labels:
      icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Nextcloud/icon.png
    ports:
      - target: 5432
        published: "5435"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/PostgreSQL-nextcloud
        target: /var/lib/postgresql/data
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
x-casaos:
  author: self
  category: self
  hostname: ""
  icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/Nextcloud/icon.png
  index: /
  port_map: "43920"
  scheme: http
  store_app_id: Nextcloud
  title:
    custom: Nextcloud

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 20 (1 by maintainers)

Most upvoted comments

Finally I must comment and this is a personal opinion. The ‘custom installation’ and ‘check then update’ functions, I think they are the pillar of CasaOS, you can not always rely on application catalogues, that is optional, as they are templates that will not always work and will not always be complete as for example Nextcloud, because it has thousands of combinations, you can use different databases, you can add a server ‘collaborate online’, etc… as you said @WisdomSky

That’s why the ‘custom installation’ is the one that makes the most sense and, with its ‘check then update’ functionality, to have the containers at the latest version or at least allow editing of the image afterward.

If you focus CasaOS to the application catalogs, then there will be no difference with TrueNAS SCALE.

I repeat, this is only a personal opinion. I don’t want my opinion to be misunderstood, I’m just commenting that the direction being taken is more restrictive when it comes to installing applications and may not be the right direction.

In fact, @WisdomSky, I hope you can communicate this, I think you are part of the CasaOS team, right?

Because there are already apps that have this same design like Umbrel and I don’t think it’s the right way to go.

I agree with your idea of keeping it as simple as possible, if it’s ok to do so as follows @WisdomSky 版本升级

@ETWang1991 @tigerinus , So this could be simplified with only two options, custom and store, the custom always download the image without check and the store will do as always.

I think this could be more simple and easy to develop.