Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't update some services: no such manifest #105

Closed
Abyss777 opened this issue Jul 2, 2023 · 9 comments · Fixed by #107
Closed

Can't update some services: no such manifest #105

Abyss777 opened this issue Jul 2, 2023 · 9 comments · Fixed by #107
Labels

Comments

@Abyss777
Copy link

Abyss777 commented Jul 2, 2023

Hello
shepherd does not update some services

no such manifest: docker.io/crazymax/swarm-cronjob:latest
Sun Jul  2 00:04:00 +05 2023 Error updating service portainer_swarm-cronjob! Image crazymax/swarm-cronjob:latest does not exist or it is not available
no such manifest: docker.io/openproject/community:12
Sun Jul  2 00:04:04 +05 2023 Error updating service project_project! Image openproject/community:12 does not exist or it is not available
no such manifest: docker.io/gregewing/apt-mirror:latest
Sun Jul  2 00:04:07 +05 2023 Error updating service repo_repo! Image gregewing/apt-mirror:latest does not exist or it is not available
no such manifest: docker.io/zabbix/zabbix-agent2:ubuntu-6.4-latest
Sun Jul  2 00:04:35 +05 2023 Error updating service zabbix_zabbix-agent2! Image zabbix/zabbix-agent2:ubuntu-6.4-latest does not exist or it is not available

But here they are

https://hub.docker.com/layers/crazymax/swarm-cronjob/latest/images/sha256-93b3142c7686d3ad32db7164084fa28239e336f92f557dd3a9ccb3e3b500319f?context=explore

https://hub.docker.com/layers/openproject/community/12/images/sha256-1da78ac275865b21f17d304d0dda375e99b0918d8eb6f8f343cd26793a965c50?context=explore

https://hub.docker.com/layers/gregewing/apt-mirror/latest/images/sha256-1f72138d40ad2b91fa1be1477a6c15b27f72a0b040cf4ad28518ab11a6a42bc5?context=explore

https://hub.docker.com/layers/zabbix/zabbix-agent2/ubuntu-6.4-latest/images/sha256-56fde7922d3b240fa4013c9c9d59629eeebfb9f8b8986291e6bfa94c470fb1a8?context=explore

It's not temporary. Such logs every day. Only these services, other are fine.

@djmaze
Copy link
Collaborator

djmaze commented Jul 6, 2023

Mhh.. Which Docker version is installed on your host?

@djmaze djmaze added the bug label Jul 6, 2023
@Abyss777
Copy link
Author

Abyss777 commented Jul 7, 2023

24.0.2 on every node

docker node ls
ID                            HOSTNAME   STATUS    AVAILABILITY   MANAGER STATUS   ENGINE VERSION
om2y8v8dbxp7t30dbxeqzd4g0 *   docker01   Ready     Active         Reachable        24.0.2
37vo26jcvf4u0v21kw0bxwg3u     docker02   Ready     Active         Leader           24.0.2
vnqc6bxlvapfxhev81vbyd93i     docker03   Ready     Active         Reachable        24.0.2

@CerebralXor
Copy link

Looks like this is caused by an older version of docker within the shepherd container, which is using version 20 (FROM mazzolino/docker:20 in the Dockerfile).

The problems caused by an old version was mentioned in issue #92

This can be confirmed by running the relevant line from the shepherd script inside the container that Shepherd is based off (mazzolino/docker:20), and comparing it with a later version (e.g. docker:23):

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock mazzolino/docker:20 docker manifest inspect docker.io/crazymax/swarm-cronjob:latest
no such manifest: docker.io/crazymax/swarm-cronjob:latest

$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock docker:23 docker manifest inspect docker.io/crazymax/swarm-cronjob:latest
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.index.v1+json",
   "manifests": [
      {
         "mediaType": "application/vnd.oci.image.manifest.v1+json",
         "size": 864,
         "digest": "sha256:93b3142c7686d3ad32db7164084fa28239e336f92f557dd3a9ccb3e3b500319f",
         "platform": {
            "architecture": "amd64",
            "os": "linux"
         }
      },
...

@Abyss777
Copy link
Author

Do you have any plans to migrate on docker:23 ?

@dougmaitelli
Copy link

Finally an explanation to the cause of this issue :)
Been seeing this for 6+ months

@davehope
Copy link

Same for me, where I mostly see it with GHCR.

Also docker 24.

@djmaze
Copy link
Collaborator

djmaze commented Jul 24, 2023

Do you have any plans to migrate on docker:23 ?

Yes, we should do that of course. I guess there are no downsides to that.

(Sorry for the late reply.)

@djmaze
Copy link
Collaborator

djmaze commented Jul 24, 2023

Well, I was a bit quick. Migrating to the official docker image means losing armhf support. I would be okay with that. Don't know if anyone still uses this on armhf?

Not sure if that breaking change would need a new major release (2.0) though. Currently thinking about doing a minor one only.

@shizunge
Copy link

shizunge commented Aug 4, 2023

This issue may be related.
https://github.com/orgs/community/discussions/45779

moschlar added a commit that referenced this issue Oct 30, 2023
[Full Changelog](0.7.0...1.8.0)

**Breaking changes:**

- The docker image registry location has been changed to the containrrr organisation:
  `containrrr/shepherd`

**Implemented enhancements:**

- armhf support [\#108](#108)
- Switch to official docker image v24 [\#107](#107) ([djmaze](https://github.com/djmaze))
- Restrict runtime of "docker service update" using "timeout" [\#98](#98) ([fooflington](https://github.com/fooflington))
- Add example for usage with swarm-cronjob [\#89](#89) ([djmaze](https://github.com/djmaze))

**Fixed bugs:**

- Can't update some services: no such manifest [\#105](#105)
- Service gets stuck when calling "docker service update" and won't progress [\#97](#97)
- fix: docker service update with `--detach=false` hangs on services wi… [\#104](#104) ([AliRezaBeitari](https://github.com/AliRezaBeitari))
- Fix defunc VERBOSE handling [\#91](#91) ([sebthom](https://github.com/sebthom))

**Closed issues:**

- How does it determine if there is an update or not? [\#111](#111)
- Looking for a new maintainer [\#96](#96)
- New OCI manifest issue [\#92](#92)
- Run service update at a fixed time [\#88](#88)
- docker swarm 20.10.12 | "docker service update" requires exactly 1 argument. [\#83](#83)
- Error updating service, does not exist or it is not available when using a duplicate registry [\#78](#78)

**Merged pull requests:**

- Add apprise type and additional error notification [\#118](#118) ([andyloree](https://github.com/andyloree))
- Rename image in docs [\#114](#114) ([moschlar](https://github.com/moschlar))
- Fix release workflow [\#113](#113) ([moschlar](https://github.com/moschlar))
- Update README.md [\#103](#103) ([andrew-dixon](https://github.com/andrew-dixon))
- ci: add basic github actions for build/release [\#101](#101) ([piksel](https://github.com/piksel))
- correct misleading description of WITH\_NO\_RESOLVE\_IMAGE [\#100](#100) ([alex-vg](https://github.com/alex-vg))
- Move example configs to their own folder [\#99](#99) ([djmaze](https://github.com/djmaze))
- Add documentation about `REGISTRIES_FILE` [\#94](#94) ([tito](https://github.com/tito))
- Minor refactoring [\#90](#90) ([sebthom](https://github.com/sebthom))

Closes: #117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants