portainer icon indicating copy to clipboard operation
portainer copied to clipboard

Why does it still show a container update is available after freshly updating it?

Open STaRDoGG opened this issue 2 years ago • 6 comments

Before you start please confirm the following.

Problem Description

In the list of services/containers/stacks if a newer image is available the icon shows this (orange icon) ...

After selecting 1 or more services that show an update, clicking Update -> Repull Image, everything appears to do so, but after it's all done, the list still shows an update is available for the same service(s). (still shows orange icon)

Expected Behavior

After update, icon turns green to show no new update (since image just freshly been pulled container restarted).

Actual Behavior

As described above. Here's a screencast as well.

In it, I update Gitea. Just to make sure the service is updated and running, after the Update -> Repull I also manually delete the previously running container and image. Then I go back to the list to see if the icon went from orange to green, but it doesn't.

https://app.screencast.com/eNGPTLUMlcpPU

Steps to Reproduce

  1. Service shows new image available (orange)
  2. Click it's checkbox -> click Update -> Repull Image
  3. Wait the expected average amount of time it should take to repull and restart the service
  4. Refresh the list and see no orange icon anymore (now green, indicating no new image available)

Portainer logs or screenshots

No response

Portainer version

2.19.4

Portainer Edition

Business Edition (BE/EE) with 5NF / 3NF license

Platform and Version

portainer/portainer-ee:latest 2.19.4 + agent + swarm (all fully updated)

OS and Architecture

Docker (WSL)

Browser

No response

What command did you use to deploy Portainer?

No response

Additional Information

No response

STaRDoGG avatar Dec 21 '23 20:12 STaRDoGG

crickets

STaRDoGG avatar Jan 05 '24 15:01 STaRDoGG

The image status icons are cached so may not update their status immediately. We're looking at improvements we can make to this in the future, but caching was implemented as initially the checks were causing resource issues on low spec environments.

jamescarppe avatar Jan 15 '24 02:01 jamescarppe

@jamescarppe , how often does Portainer do a new check? Once per day?

STaRDoGG avatar Jan 16 '24 16:01 STaRDoGG

At present this is every 24 hours. We have a change coming soon that will allow you to manually refresh the cache.

jamescarppe avatar Jan 24 '24 23:01 jamescarppe

At present this is every 24 hours. We have a change coming soon that will allow you to manually refresh the cache.

Sounds good. Hitting the refresh button at the top of the portainer page might be good enough to refresh them all.

Also after doing a manual update w/pull of individual services, just refreshing those.

STaRDoGG avatar Jan 26 '24 01:01 STaRDoGG

At present this is every 24 hours. We have a change coming soon that will allow you to manually refresh the cache.

Is there any update on this?

thegabriele97 avatar Apr 02 '25 13:04 thegabriele97