Skip to content
New issue

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

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

Already on GitHub? # to your account

OCI index found, but accept header does not support OCI indexes #201

Closed
adorobis opened this issue Jan 16, 2023 · 12 comments
Closed

OCI index found, but accept header does not support OCI indexes #201

adorobis opened this issue Jan 16, 2023 · 12 comments

Comments

@adorobis
Copy link

adorobis commented Jan 16, 2023

For two images I'm receiving the following error message and they appear "unknown" in MQTT/HA:
404 - {"errors":[{"code":"MANIFEST_UNKNOWN","message":"OCI index found, but accept header does not support OCI indexes"}]}

Full content of the MQTT message:

{
   "id":"3bb0496a7dd842862ef101902ddf497cab110eb91428b25193ee40185715288b",
   "name":"zigbee",
   "status":"running",
   "watcher":"local",
   "display_name":"zigbee",
   "display_icon":"mdi:docker",
   "image_id":"sha256:e762b6caefc7e2130d46ba1f58b9e8742e5f9f521fc946981b672ad9f62a250e",
   "image_registry_url":"https://registry-1.docker.io/v2",
   "image_registry_name":"hub",
   "image_name":"koenkk/zigbee2mqtt",
   "image_tag_value":"latest-dev",
   "image_tag_semver":false,
   "image_digest_watch":true,
   "image_digest_repo":"sha256:2758cbe7358f1d4450769f4fc64970f8c1e580292d86e174353880e6213efe65",
   "image_architecture":"amd64",
   "image_os":"linux",
   "image_created":"2023-01-15T13:29:42.642Z",
   "update_available":false,
   "update_kind_kind":"unknown",
   "error_message":"404 - {\"errors\":[{\"code\":\"MANIFEST_UNKNOWN\",\"message\":\"OCI index found, but accept header does not support OCI indexes\"}]}"
}

I'm getting similar result for the following docker hub images:

koenkk/zigbee2mqtt:latest-dev
nicolargo/glances:latest-full

@derekoharrow
Copy link

Same here - also for cadvisor/cadvisor

@samcro1967
Copy link

Seeing this as well on a few containers.

@Caros2017
Copy link

Same issue here

@samcro1967
Copy link

@fmartinou I am seeing this across multiple registries (Docker Hub and ghcr.io). I tried rolling back to 6.0.0 and 5.22.1 and see the same issue. Currently have this happening on about 20 out of 100 containers.

@deluxestyle
Copy link

same issue with deconz container

@sjtuross
Copy link

I think the same issue mentioned by containrrr/watchtower#1533

@zimmra
Copy link
Contributor

zimmra commented Jan 27, 2023

I think the same issue mentioned by containrrr/watchtower#1533

Made a PR #208

Resolved the OCI issues in my setup

@samcro1967
Copy link

@zimmra I tested your PR and it has cleared up the OCI errors and I am seeing all containers with updates available. The docker compose automation though is not working and updating the containers. Here is what I am seeing in the logs related to docker compose.

22:53:35.363 DEBUG whats-up-docker/trigger.dockercompose.wud: Cannot read properties of undefined (reading 'indexOf')
        at Dockercompose.getNewImageFullName (/home/node/app/triggers/providers/docker/Docker.js:233:25)
        at Dockercompose.mapCurrentVersionToUpdateVersion (/home/node/app/triggers/providers/dockercompose/Dockercompos
.js:154:26)
        at /home/node/app/triggers/providers/dockercompose/Dockercompose.js:79:38
        at Dockercompose.triggerBatch (/home/node/app/triggers/providers/dockercompose/Dockercompose.js:79:14)
        at async Dockercompose.handleContainerReports (/home/node/app/triggers/providers/Trigger.js:75:17)
22:53:57.885 DEBUG whats-up-docker/trigger.dockercompose.wud: Run trigger batch
22:53:58.006 DEBUG whats-up-docker/trigger.dockercompose.wud: Get ghcr registry manager
22:53:58.006 DEBUG whats-up-docker/trigger.dockercompose.wud: Get hub registry manager
22:53:58.006 DEBUG whats-up-docker/trigger.dockercompose.wud: Get hub registry manager
22:53:58.006 DEBUG whats-up-docker/trigger.dockercompose.wud: Get hub registry manager
22:53:58.006 DEBUG whats-up-docker/trigger.dockercompose.wud: Get hub registry manager

@fmartinou
Copy link
Collaborator

Hi,

Thank for reporting this issue, the analysis and the fix 👍 .

I merge the PR from @zimmra on a branch to have the integration tests running on it.
And if there are no regressions, then I release it very quickly to get you fixed!

@samcro1967
Copy link

samcro1967 commented Jan 28, 2023

Realized this morning I was still running 5.22.1 as I was testing older versions. Not seeing the same issues with latest.

@fmartinou
Copy link
Collaborator

It's fixed.

The release 6.0.2 is on the way.

@adorobis
Copy link
Author

Many thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants