docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
233 stars 48 forks source link

Can't delete tag from private repo, either thru browser or API #2251

Open keanR1 opened 2 years ago

keanR1 commented 2 years ago

Problem description

Yesterday I could delete tags; today I can't.

In browser:

Page refreshes, but tags remain; Chrome shows 500s (see screenshot below):

On Linux command line:

CRED=$(printf '{"username": "%s", "password": "%s"}' ${USER} ${AUTH})
TOKEN=$(curl -s -H 'Content-Type: application/json' -X POST -d "${CRED}"  https://hub.docker.com/v2/users/login | jq -r .token)

With the token, listing tags works:

curl -H "Authorization: Bearer ${TOKEN}" -fsSL https://hub.docker.com/v2/repositories/${ORG}/${REPO}/tags

But deleting a tag doesn't:

curl -H "Authorization: Bearer ${TOKEN}" -X DELETE "https://hub.docker.com/v2/repositories/${ORG}/${REPO}/tags/${TAG}/"

If I authenticate with a PAT, I get the result below (as in #2127?)

 {"detail": "access is forbidden with a JWT issued from a personal access token"}

If I use my password, I get:

 {"detail": "Failed to remove tag."}

Debug Information

Browser name and version: Chrome Version 103.0.5060.53 (Official Build) (64-bit)

https://hub.docker.com/repository/docker/MY_ORG/MY_REPO/tags?page=1&ordering=last_updated

Timestamp or time range: 2022-06-29T22:05:32-04:00 It's been going on all day today.

Hub Username: keanr1

Screenshots of the issue (if applicable)

image

milosgajdos commented 2 years ago

Hi, @keanR1 thanks for letting us know. We've now identified the issue and working on the fix.

milosgajdos commented 2 years ago

@keanR1 we believe we've now fixed the issue. Could you please verify everything works for you again?

keanR1 commented 2 years ago

Hi Milos -- Working fine now, thanks!

On Thu, Jun 30, 2022 at 4:09 AM Milos Gajdos @.***> wrote:

@keanR1 https://github.com/keanR1 we believe we've now fixed the issue. Could you please verify everything works for you again?

— Reply to this email directly, view it on GitHub https://github.com/docker/hub-feedback/issues/2251#issuecomment-1170904198, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYVMD4FGPGT5AIMU3L7KHV3VRVI3PANCNFSM52HWWZQQ . You are receiving this because you were mentioned.Message ID: @.***>

milosgajdos commented 2 years ago

Apologies for the inconvenience. I'll close this ticket now. Please feel free to reopen.

cromero251290 commented 1 year ago

Hey this is happening to me too

milosgajdos commented 1 year ago

@cromero251290 can you give us the namespace/repo this is failing for you on?

cromero251290 commented 1 year ago

wreckedromero/wreckingball-aem-repository

cromero251290 commented 1 year ago

image

milosgajdos commented 1 year ago

Hey @cromero251290 we've rolled out a change. Can you please if this works for you now?