This also happens when trying to refresh a charm in a LXD cloud, like the data platform charms. In that situation, we see the unit in a failed state for some seconds, before the upgrade proceeds.
Following, there are the logs of another call to juju refresh on LXD, with the easyrsa charm, which also gets into a failed state for some seconds before being upgraded.
This also happens when trying to refresh a charm in a LXD cloud, like the data platform charms. In that situation, we see the unit in a failed state for some seconds, before the upgrade proceeds.
Following, there are the logs of another call to juju refresh on LXD, with the easyrsa charm, which also gets into a failed state for some seconds before being upgraded.
unit-easyrsa-0: 18:09:52 ERROR juju.worker.uniter resolver loop error: preparing operation "upgrade to ch:amd64/ jammy/easyrsa- 48" for easyrsa/0: failed to download charm "ch:amd64/ jammy/easyrsa- 48" from API server: Get https:/ /10.28. 44.219: 17070/model/ db3cad23- 9bc3-4762- 8939-9e774e0451 b1/charms? file=%2A& url=ch% 3Aamd64% 2Fjammy% 2Feasyrsa- 48: cannot retrieve charm: ch:amd64/ jammy/easyrsa- 48 jammy/easyrsa- 48" for easyrsa/0: failed to download charm "ch:amd64/ jammy/easyrsa- 48" from API server: Get https:/ /10.28. 44.219: 17070/model/ db3cad23- 9bc3-4762- 8939-9e774e0451 b1/charms? file=%2A& url=ch% 3Aamd64% 2Fjammy% 2Feasyrsa- 48: cannot retrieve charm: ch:amd64/ jammy/easyrsa- 48 dependency "uniter" manifold worker returned unexpected error: preparing operation "upgrade to ch:amd64/ jammy/easyrsa- 48" for easyrsa/0: failed to download charm "ch:amd64/ jammy/easyrsa- 48" from API server: Get https:/ /10.28. 44.219: 17070/model/ db3cad23- 9bc3-4762- 8939-9e774e0451 b1/charms? file=%2A& url=ch% 3Aamd64% 2Fjammy% 2Feasyrsa- 48: cannot retrieve charm: ch:amd64/ jammy/easyrsa- 48
unit-easyrsa-0: 18:09:52 INFO juju.worker.uniter unit "easyrsa/0" shutting down: preparing operation "upgrade to ch:amd64/
unit-easyrsa-0: 18:09:52 ERROR juju.worker.
It's important to not have this failed status, as it may lead to users think that something is broken in the upgrade process.