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

occ app_api:app:unregister fails if container has already been deleted #511

Open
R0Wi opened this issue Feb 13, 2025 · 0 comments
Open

occ app_api:app:unregister fails if container has already been deleted #511

R0Wi opened this issue Feb 13, 2025 · 0 comments

Comments

@R0Wi
Copy link
Member

R0Wi commented Feb 13, 2025

Describe the bug

If (for some reason) a container is deleted in the background - for example via docker command - the occ app_api:unregister fails with the following message:

Client error: `DELETE http://nextcloud-appapi-dsp:2375/v1.41/containers/nc_app_test-deploy?force=true` resulted in a `404 Not Found` response:
{"message":"No such container: nc_app_test-deploy"}

Steps/Code to Reproduce

  1. Deploy a container (for example test-deploy) via Nextcloud
  2. Wait until container is up and running
  3. Delete the container via docker rm
  4. Try to delete the ExApp via mentioned command

Expected Results

If docker answers with a "not found", the container can be safely removed from Nextcloud

If this result is intended, I'm happy to create a PR for it

Actual Results

ExApp will never go

Setup configuration

app_api 32.0.0-dev.2

Nextcloud: 31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant