azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
2.96k stars 105 forks source link

[BUG]: When deleting a service, the homepage is not up do date #223

Closed null-except closed 3 months ago

null-except commented 3 months ago

What happened?

When I deleted the Code-Server container via the Cosmos UI, in the homepage the logo for Code-Server is still visible.

Same when in the CLI I prune some old images and some stopped container.

What should have happened?

It should have been deleted. It worked for some other apps (Immich for instance).

How to reproduce the bug?

  1. Go to market, install Code Server.
  2. Go to ServerApps.
  3. Kill and delete the Code Server container.
  4. Go to homepage, Code Server is still there.

Relevant log output

No response

Other details

No response

System details

null-except commented 3 months ago

Deleting the URL in the Url scetion will solve the problem.

Also, when deleting an application, some urls are not deleted. For example, for Nextcloud, only one out of three was successfully automatically deleted.

azukaar commented 3 months ago

As you found out, the homepage is using the URLs and not the containers to populate itself did you install the code server via the market? If the URL was not marked for deletion when you deleted the container it might be because you were not using the SERVAPP mode in the URL itself (in case you built it yourself)

null-except commented 3 months ago

Yes I used the market for Immich and code server (default source). The url was marked as deleted with a checkmark when I deleted the container.

azukaar commented 3 months ago

Hmm that is weird I cannot reproduce it, could it be you had multiple tabs opened and you re-saved the config file with the URLs in them for example ?

null-except commented 3 months ago

Maybe something was wrong with my config, I'm now on 0.15.3 and everything seems fine! Sorry for the bother