Skip to content

[Bug]: occ app:remove cannot remove a disabled app #49689

Open
@ibaraki-douji

Description

⚠️ This issue respects the following points: ⚠️

Bug description

Running the OCC app:remove command fail if the app is already disabled (will fail saying the app is not installed)

Steps to reproduce

  1. Choose or install a new app
  2. Disable it (from UI or OCC)
  3. Remove it using OCC app:remove command

Expected behavior

The app should be removed, even if it's disabled.

Nextcloud Server version

30 (30.0.3)

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

After an update, but didn't check it the bug was present on older versions

Additional info

root@0d607f688314:/var/www/html# sudo -u www-data ./occ app:list
Enabled:
  - admin_audit: 1.20.0
  - app_api: 4.0.3
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dav: 1.31.1
  - drawio: 3.0.3
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_accesscontrol: 1.20.1
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_retention: 1.19.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - impersonate: 1.17.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notes: 4.11.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - passwords: 2024.11.20
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.0
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - theming_customcss: 1.17.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_ldap: 1.21.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - activity: 3.0.0 (installed 3.0.0)
  - calendar: 5.0.1 (installed 5.0.1)
  - dashboard: 7.10.0 (installed 7.8.0)
  - deck: 1.14.1 (installed 1.14.1)
  - encryption: 2.18.0 (installed 2.16.0)
  - external: 5.5.2 (installed 5.5.2)
  - files_mindmap: 0.0.30 (installed 0.0.30)
  - firstrunwizard: 3.0.0 (installed 2.17.0)
  - google_synchronization: 3.0.0 (installed 3.0.0)
  - money: 0.29.0 (installed 0.29.0)
  - photos: 3.0.2 (installed 3.0.2)
  - polls: 7.2.4 (installed 7.2.4)
  - side_menu: 4.0.1 (installed 4.0.1)
  - support: 2.0.0 (installed 1.11.1)
  - survey_client: 2.0.0 (installed 2.0.0)
  - twofactor_nextcloud_notification: 4.0.0
  - weather_status: 1.10.0 (installed 1.10.0)

root@0d607f688314:/var/www/html# sudo -u www-data ./occ app:remove deck
deck is not installed

root@0d607f688314:/var/www/html# sudo -u www-data ./occ app:enable deck
deck 1.14.1 enabled

root@0d607f688314:/var/www/html# sudo -u www-data ./occ app:remove deck
deck disabled
deck 1.14.1 removed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions