"authentication required" on push after successful login
12 hours ago
treed commented Nov 6, 2015 commented I'm having an issue with authentication (using basic auth) where I can successfully "docker login", but then "docker push" fails with "unauthorized: authentication required".
The message from the logs is not particularly helpful, because the error message is being printed as a pointer rather than the string behind it:
"error authorizing context: basic authentication challenge: htpasswd.challenge{realm:"basic-realm", err:(*errors.errorString)(0xc20802ac80)}"
At the very least, this should be corrected to print the actual error, but even better would be having push work.
I attempted this with 2.1 just now, and with 2.1, there is no authentication error, but one of the layers of the image I'm attempting to push just hangs:
9ccba5c388b3: Pushing [==================================================>] 4.096 kB
So the authentication issue, at least, seems like a regression. I'm still unable to use the registry even on 2.1, however.
Let me know if you need any further information. The text was updated successfully, but these errors were encountered: Copy link Contributor Author
stevvooe commented Nov 7, 2015 commented "error authorizing context: basic authentication challenge: htpasswd.challenge{realm:"basic-realm", err:(*errors.errorString)(0xc20802ac80)}" This is a bug in the errcode library when decoding/encoding the error message. will not fix this since this is happening on the server side. The encoder should detect error on the interface and call Error() before sending as json. Sorry, something went wrong. Copy link Contributor Author
stevvooe commented Nov 9, 2015 commented I think I may not have been clear. If we want to see this error land on the client side, the errcode package must make it a string.
That said, it seems like we're letting a minor encoding issue cloud the real issue that you're reporting. Let's focus on the bug in the client and get that worked out. If I understand, we are seeing the pull hang when an authentication request is failing.
To troubleshoot, we'll need the configuration and any information about the setup. Client, docker daemon logs and registry logs will be helpful, as well. We will attempt to reproduce and take it from there. Sorry, something went wrong. Copy link Contributor Author
treed commented Nov 10, 2015 commented It already was removed. The output after that was the hang on "pushing", which went away when I switched away from Rados.
Given that I can no longer reproduce the original problem, and the current problem seems to have to do with Rados, should we close this issue and open a new one? (And re-open if necessary if it comes back, since I have no idea what changed to cause it to hang instead of error.) Sorry, something went wrong. Copy link Collaborator
erulabs commented Nov 16, 2015 commented Hello! I had these exact symptoms and 's suggestion worked like gangbusters:
Changing:
host: "https://registry.example.com:5000"
to
host: "https://registry.example.com"
Resolved the issue! Sorry, something went wrong. mentioned this issue Closed Copy link
augnustin commented Apr 18, 2016 commented Same issue here. I don't understand, what's the fix?
Using:
▶ docker --version
Docker version 1.11.0, build 4dc5990 Sorry, something went wrong. Copy link
zhiwu88 commented Apr 20, 2016 • edited commented • edited hi,have you fix it now ?
I did docker login,but the same issue I got .
[root@Docker ~]# docker version
Client:
Version: 1.9.1
API version: 1.21
Package version: docker-1.9.1-25.el7.centos.x86_64
Go version: go1.4.2
Git commit: 78ee77d/1.9.1
Built:
OS/Arch: linux/amd64
Server:
Version: 1.9.1
API version: 1.21
Package version: docker-1.9.1-25.el7.centos.x86_64
Go version: go1.4.2
Git commit: 78ee77d/1.9.1
Built:
OS/Arch: linux/amd64
[root@Docker ~]#
[root@Docker ~]#
[root@Docker ~]# docker push zhiwu/webtest:v1
Do you really want to push to public registry? [y/n]: y
The push refers to a repository [docker.io/zhiwu/webtest](len: 1)
9aee2b7c2da1: Preparing
unauthorized: authentication required
[root@Docker ~]# Sorry, something went wrong. Copy link Collaborator
asheshambasta commented May 13, 2016 • edited commented • edited Seeing this issue;
-> % docker --version
Docker version 1.11.1, build 5604cbe The push is to a private repo but after successful login.
I tried
-> % docker logout Remove login credentials for https://index.docker.io/v1/ Then I checked if the params are actually removed;
-> % vim ~/.docker/config.json and it was empty.
Logged in again:
-> % docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: [removed]
Password: Login Succeeded -> % docker build -t [repo:tag] . && docker push [repo:tag] ...
unauthorized: authentication required What am I supposed to do to fix this? Sorry, something went wrong. Copy link
rrnewton commented May 15, 2016 commented Having this problem on dockerhub as well. Sorry, something went wrong. Copy link
wrfly commented May 21, 2016 commented docker info:
Username: wrfly
Registry: https://index.docker.io/v1/
➜ ~ docker push dao_api:latest The push refers to a repository [docker.io/library/dao_api]
e89cc27b9b92: Preparing c27eefc1663f: Preparing d6138eddb0fd: Preparing 5f70bf18a086: Preparing 4592214fdfc9: Preparing 3f9e224fca30: Image push failed e12b76467769: Waiting unauthorized: authentication required
➜ ~ sudo apt upgrade docker.io
Reading package lists... Done
Building dependency tree Reading state information... Done
docker.io is already the newest version (1.10.3-0ubuntu6).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
➜ ~ Same error... How to play? Sorry, something went wrong. Copy link
rickmed commented May 23, 2016 commented +1!! Sorry, something went wrong. Copy link
stevvooe commented May 24, 2016 commented Locking conversation. Sorry.
If you're seeing issues related to this, please open another issue referencing this one. Sorry, something went wrong. locked and limited conversation to collaborators Copy link Contributor
Show more
See More
Protesters push against logging in popular area south of
4 hours ago
Gallatin County Commission OKs 78-acre development near Four Corners 6 hrs ago
City opens naming of handful of new Bozeman parks up to the public Posted: 5:15 p.m. Posted: 5:15 p.m.
Schools worry about mental health program as deadline looms Posted: Feb. 1, 2022 Posted: Feb. 1, 2022
Show more
See More
Two-Factor Authentication Explained: Push
2 hours ago To enable push authentication, a user downloads the push authentication app, such as RapidIdentity PingMe, to his or her smartphone and enrolls his or her user account. This associates the user’s smartphone to the server. Then, on the web page login, the user enters his or her username and clicks the login prompt to send a push notification in addition to or in plac…
Show more
See More
GitHub - docker/login-action: GitHub Action to login
1 hours ago To push into OCIR in specific tenancy the username must be placed in format <tenancy>/<username> (in case of federated tenancy use the format <tenancy-namespace>/oracleidentitycloudservice/<username> ). For password create an auth token . Save username and token as a secrets in your GitHub repo.
Show more
See More
US, Japan resolve to push back against China's bid to
4 hours ago 1 day ago . US President Joe Biden and Japanese PM Fumio Kishida on Friday jointly expressed concern over targetted crackdown and human rights violations in several regions in China. During an hour and 20 minutes long virtual meeting, both the leaders resolved to "push back" against Beijing's attempts to change the status quo in the East China Sea and the ... login
Show more
See More
salesforcedx - SFDX: Is it possible to push to a sandbox
10 hours ago The SFDX: Authorize an Org command in VS Code prompts for the login URL, allowing you to specify test.salesforce.org for a Sandbox. The context menu item SFDX: Deploy Source to Org works for the defaultusername for the project. The SFDX: Authorize an Org command sets the authorized org to be the default for the project.
Show more
See More
Companies Are Pushing Back Against the Woke Crowd, and Our
10 hours ago We need to applaud and encourage the companies who are risking their reputations to do the right thing. Send them an email thanking them for standing up against leftist pressure. We can’t be afraid to push back against the woke narrative, and the more we encourage the companies that stand with us, the more that America will change for the better.
Show more
See More
Push against - Idioms by The Free Dictionary
4 hours agopush against 1. To put constant forceful pressure on someone or something. People kept pushing against me from behind while I was trying to watch the show. I can't open the door because something on the other side is pushing against it. 2. To press, shove, or thrust someone or something in forcible contact with someone or something else. In this usage ... login
Show more
See More
What is another word for "push against"?
4 hours ago Synonyms for push against include nudge, bump, thrust, barge, jostle, plow, plough, shove, bulldoze and push. Find more similar words at wordhippo.com! login
Show more
See More
Rage Against the Machine Push Start of Reunion Tour to
10 hours ago Jan 20, 2022 . Rage Against the Machine’s perpetually postponed reunion tour has been delayed yet again, with the group now set to kick off their Public Service Announcement Tour in July 2022.. The North ... login
Show more
See More
push against - English-Spanish Dictionary - WordReference.com
7 hours ago Principal Translations: Inglés: Español: push against vtr phrasal insep phrasal verb, transitive, inseparable: Verb with adverb(s) or preposition(s), having special meaning, not divisible--for example,"go with" [=combine nicely]: "Those red shoes don't go with my dress." NOT [S]"Those red shoes don't go my dress with."[/S] (put up resistance to) resistir⇒ vtr verbo transitivo: … login
Show more
See More
Push it against - Idioms by The Free Dictionary
11 hours ago Definition of push it against in the Idioms Dictionary. push it against phrase. What does push it against expression mean? Definitions by the largest Idiom Dictionary. login
Show more
See More
Facebook - Log In or Sign Up
9 hours ago Connect with friends and the world around you on Facebook. Log In. Forgot password?
Show more
See More
Ambassador Qin Gang continues push to enlist US business
9 hours ago 2 days ago . Ambassador Qin Gang continues push to enlist US business allies against Washington’s China trade policy For the second time in two weeks, a senior Chinese diplomat in the US speaks with members ... login
12 hours ago Bill Maher pushes back on Fauci: 'Don't sit there in your white coat and tell me "just do what we say"' Bill Maher is pushing back against blindly following the advice of Anthony Fauci and other doctors amid the coronavirus pandemic, saying, "Don't sit there in your white coat and tell me 'just do what we say.'""That's not a criticism of them like they're being corrupt, although there ... login
Show more
See More
to push against definition English definition dictionary
10 hours ago Search to push against and thousands of other words in English definition and synonym dictionary from Reverso. You can complete the definition of to push against given by the English Definition dictionary with other English dictionaries: Wikipedia, Lexilogos, Oxford, Cambridge, Chambers Harrap, Wordreference, Collins Lexibase dictionaries, Merriam Webster...
Show more
See More
Companies Push To Get Employees Vaccinated Against COVID
8 hours ago As new COVID-19 infections continue to skyrocket, major corporations such as Delta Airlines, bolstered by the full approval of Pfizer's shot, are applying ne...
Show more
See More
Israel Is Trying to Push War With Iran — and the US Press
3 hours ago Israel Is Trying to Push War With Iran — and the US Press Barely Cares. Top Israeli officials, now on an official visit to Washington, are pushing for US military action against Iran. It’s a dangerous provocation that should be mainstream news. US secretary of defense Lloyd Austin (R) welcomes Israeli minister of defense Benjamin Benny ...
Show more
See More
Frequently Asked Questions
What is push against?
push against 1. To put constant forceful pressure on someone or something. People kept pushing against me from behind while I was trying to watch the show.
How do push notifications work?
Then, on the web page login, the user enters his or her username and clicks the login prompt to send a push notification in addition to or in place of entering a password. Next, the server sends a push notification to the user’s registered smartphone.
How does push authentication work?
With push authentication, access requests are sent via out-of-band notifications to an associated mobile device that a user then approves or denies. Although only 10 percent of enterprises with mobile authentication in place use push notifications today, Gartner predictsthat number will jump to 50 percent by 2020.
What is another word for push?
Synonyms for push against include nudge, bump, thrust, barge, jostle, plow, plough, shove, bulldoze and push. Find more similar words at wordhippo.com!