rm doesn't clean up config #577

Closed
opened 2025-06-18 22:29:16 +00:00 by ammaratef45 · 4 comments
Member

I've created an app using abra app new .. then removed it using abra app rm ... but docker config ls on the server shows the configs from this app are not cleaned up

I've created an app using `abra app new ..` then removed it using `abra app rm ...` but `docker config ls` on the server shows the configs from this app are not cleaned up
ammaratef45 added the
bug
label 2025-06-18 22:29:16 +00:00
Author
Member

One thing that could be the reason, the recipe had a config during the creation that wasn't there during the cleanup, perhaps some sort of an error silently happened during the rm process

One thing that could be the reason, the recipe had a config during the creation that wasn't there during the cleanup, perhaps some sort of an error silently happened during the rm process
Owner

I believe the compose configs are merged to discover configs/secrets/etc. and then things are deleted. So, if you change your config, yes, you can disrupt what will be deleted. We could implement a more thorough cleanup searching for configs/secrets/volumes/etc. matching the convention? I'm not sure if this would have unintended consequences.

I believe the compose configs are merged to discover configs/secrets/etc. and then things are deleted. So, if you change your config, yes, you can disrupt what will be deleted. We could implement a more thorough cleanup searching for configs/secrets/volumes/etc. matching the convention? I'm not sure if this would have unintended consequences.
decentral1se self-assigned this 2025-07-08 09:58:43 +00:00
decentral1se added the
red abya yala
label 2025-07-08 10:02:24 +00:00
decentral1se added this to the Abra v0.11.x project 2025-07-08 10:06:51 +00:00
Author
Member

Hmmm maybe we just list the names of resources that could need cleanup but we are unsure so users should decide and manually clean them up if desire? that would be a good compromise but also i don't feel like it's a high priority or urgent issue

Hmmm maybe we just list the names of resources that could need cleanup but we are unsure so users should decide and manually clean them up if desire? that would be a good compromise but also i don't feel like it's a high priority or urgent issue
Owner

OK I looked a bit deeper into it. The situation is that we do actually filter on the remote swarm using a strict set of filters which do an exact match on the app domain. We weren't handling the deletion of app configs at all because docker stack rm handles that for us. However, you can get a bunch of these old configs lurking on the system for $reasons when hacking. So, good that this was raised! #600 should clean those configs up now.

OK I looked a bit deeper into it. The situation is that we do actually filter on the remote swarm using a strict set of filters which do an exact match on the app domain. We weren't handling the deletion of app configs at all because `docker stack rm` handles that for us. However, you can get a bunch of these old configs lurking on the system for `$reasons` when hacking. So, good that this was raised! https://git.coopcloud.tech/toolshed/abra/pulls/600 should clean those configs up now.
decentral1se moved this to Done in Abra v0.11.x on 2025-08-17 13:28:04 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#577
No description provided.