Docker push from CI/DI and local machine to onedev registry leads to '406 Not Acceptable' (OD-2147)
Friedemann Schmidt opened 1 year ago

Hey there, i got stuck pushing docker images to onedev registry. After successfully building my docker image via Docker Image/ Build Image step the CI builds quits and gives me the following error:

build-log.txt

Got the same issue when trying to push from my local machine:

docker push www.kquala.de/foodhub/foodhub-server:latest      
The push refers to repository [www.kquala.de/foodhub/foodhub-server]
4f4fb700ef54: Waiting 
da690eee226e: Waiting 
cded342070c7: Waiting 
f0b2bbebad14: Waiting 
b37ddb3d2f5d: Waiting 
4c4548182b55: Waiting 
d3a36e6bc494: Waiting 
83d624c4be2d: Waiting 
ab20d40c3fc0: Waiting 
aaeeb3d9fc0a: Waiting 
unexpected status from HEAD request to https://www.kquala.de/v2/foodhub/foodhub-server/blobs/sha256:58f2d3d72c260248d0dc86c297f1c29067e5acf637721de54795d64d04a152d1: 406 Not Acceptable

Followed the tutorial and also setup Built-in Registry Access Token Secret with a Job Secret.

OneDev Version: 11.3.3

Pipeline: onedev-buildspec.yml

I think it's probably something simple but I'm still new to the subject. Thanks for the help.

  • Robin Shen commented 1 year ago

    The repository url www.kquala.de/foodhub/foodhub-server will push to docker repository foodhub-server under project foodhub, instead of project foodhub/foodhub-server.

    If you want to push to project foodhub/foodhub-server, specify the url as www.kquala.de/foodhub/foodhub-server/some_repo_name

    Also make sure that package management is enabled for the project, and your access token has package write permission over the project.

  • Friedemann Schmidt commented 1 year ago

    Thank you Robin, it works now. I was confused with project name and repo name.

    Thanks for the fast reply!

  • Friedemann Schmidt changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2147
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover