home-assistant / supervisor

:house_with_garden: Home Assistant Supervisor
https://home-assistant.io/hassio/
Apache License 2.0
1.75k stars 639 forks source link

Beta & Stable Addons using the same image, uninstalling one results in the image for the other being removed #5244

Closed Morphy99 closed 2 months ago

Morphy99 commented 2 months ago

Describe the issue you are experiencing

After swapping from Frigate Beta Addon to Stable, and then deleting the Beta Addon, the image gets deleted for the stable too and this message appears when trying to run it: Image ghcr.io/blakeblackshear/frigate:0.14.0 does not exist for addon_ccab4aaf_frigate-fa

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Steps to reproduce the issue

  1. Update both Frigate Full Access and Frigate Full Access Beta addons to latest version (0.14)
  2. Uninstall Frigate Beta
  3. Frigate Full Access fails to run with image missing ...

Anything in the Supervisor logs that might be useful for us?

2024-08-13 18:47:25.596 INFO (SyncWorker_5) [supervisor.docker.manager] Removing image ghcr.io/blakeblackshear/frigate with latest
2024-08-13 18:47:25.600 INFO (SyncWorker_5) [supervisor.docker.manager] Removing image ghcr.io/blakeblackshear/frigate with 0.14.0
2024-08-13 18:47:25.620 INFO (MainThread) [supervisor.addons.addon] Removing add-on data folder /data/addons/data/ccab4aaf_frigate-fa-beta
2024-08-13 18:47:25.645 INFO (MainThread) [supervisor.addons.manager] Add-on 'ccab4aaf_frigate-fa-beta' successfully removed
2024-08-13 18:47:28.383 INFO (SyncWorker_4) [supervisor.docker.manager] Stopping addon_ccab4aaf_frigate-fa application
2024-08-13 18:47:38.982 INFO (SyncWorker_4) [supervisor.docker.manager] Cleaning addon_ccab4aaf_frigate-fa application
2024-08-13 18:47:39.051 WARNING (MainThread) [supervisor.docker.addon] Frigate (Full Access) running with disabled protected mode!
2024-08-13 18:47:39.064 ERROR (SyncWorker_5) [supervisor.docker.manager] Image ghcr.io/blakeblackshear/frigate:0.14.0 does not exist for addon_ccab4aaf_frigate-fa

System Health information

NA

Supervisor diagnostics

No response

Additional information

No response

mdegat01 commented 2 months ago

Huh. I don't think the possibility that two addons are using the exact same image was really considered to be honest. I guess this use case makes sense though, I'll see what I can do.

Morphy99 commented 2 months ago

Thanks for the quick fix 🚀😊