play-with-docker icon indicating copy to clipboard operation
play-with-docker copied to clipboard

login to play-with-docker is not working properly (docker account,github account, google account not working error 500)

Open giovixo97 opened this issue 1 year ago • 20 comments

Happy evening to everyone, i'm sorry to bother you but i'm facing some issue with login. If i try the Docker Hub credentials, in the developer console of any browser throw me this error:

Failed to load resource: the server responded with a status of 401 () (index):85 ERROR Object config: headers: Accept: "application/json, text/plain, /" [[Prototype]]: Object json Callback Param: "callback"method: "GET" paramSerializer: ƒ (a) transform Request: [ƒ] transform Response: [ƒ] url: "/users/me" [[Prototype]]: Object data: "" headers: ƒ (d) status: 401 statusText: "" xhrStatus: "complete" [[Prototype]]: Object`

Can you try to take a look? If i use Google account i can login, only with docker account cannot login. Have a great day ^_^

giovixo97 avatar May 30 '24 17:05 giovixo97

hey there. Is this play-with-docker, or play-with-kubernetes?

marcosnils avatar May 30 '24 17:05 marcosnils

play with docker, sorry for not specifying

giovixo97 avatar May 30 '24 17:05 giovixo97

Can you try to take a look? If i use Google account i can login, only with docker account cannot login. Have a great day ^_^

play-with-docker doesn't allow sign in with google. Which page are you looking at?

marcosnils avatar May 30 '24 18:05 marcosnils

Cattura this is the situation: if i choose Google, i can login succesfully, if i use docker it give me 401 error as the previous message

giovixo97 avatar May 30 '24 18:05 giovixo97

this is the situation: if i choose Google, i can login succesfully, if i use docker it give me 401 error as the previous message

I see, thanks. Strange since that works for me. By any chance do you have 2fa enabled for user/pass login? Can you check if enabling that helps?

marcosnils avatar May 30 '24 19:05 marcosnils

i have 2FA but unfortunately it doesn't help

giovixo97 avatar May 30 '24 19:05 giovixo97

Happy morning, i'm here to update the information i found on the situation of play-docker. Now, i can't login with google and github account. The server page return me error 500 every time. This has never happened before, i don't know why i cannot login anymore.

giovixo97 avatar Jun 25 '24 08:06 giovixo97

@giovixo97 Despite the 500 Internal Server Error, the login is carried out, just go back to the home page and click on Play, but it would actually be good if the error was corrected.

d3cryptofc avatar Jul 02 '24 19:07 d3cryptofc

@giovixo97 Despite the 500 Internal Server Error, the login is carried out, just go back to the home page and click on Play, but it would actually be good if the error was corrected.

would you mind uploading a video about the behavior? I can't seem to be able to reproduce.

marcosnils avatar Jul 02 '24 19:07 marcosnils

https://github.com/play-with-docker/play-with-docker/assets/13524984/a544f2f8-966a-4c40-92af-f8f8b21700c0

giovixo97 avatar Jul 02 '24 20:07 giovixo97

@marcosnils

In fact the error 500 Internal Server Error only occurs to me when I generate the OAuth URL manually and open it in a tab:

curl -sD - https://labs.play-with-docker.com/oauth/providers/docker/login | grep location

d3cryptofc avatar Jul 02 '24 20:07 d3cryptofc

exaclty, if i visit the url manually i obtain error 500 image

giovixo97 avatar Jul 02 '24 20:07 giovixo97

@giovixo97 Regarding the 401 error, could you tell me if docker labs has any cookies created in your browser?

Devtools > Application > Storage > Cookies > https://labs.play-with-docker.com

If there is a cookie called id, try to delete it with the right mouse button

d3cryptofc avatar Jul 02 '24 20:07 d3cryptofc

but i'm using chrome incognito, cookies are always cleared (incognito means that i will never have cookie) an example of cookie created after login is id:MTcxOTk1Mjg4M3xfV0dsUW9ncDFPZXI5TXVvMFNCZnhxeEJrVnRBbXQwOVlFMWVsY3dTcDZoeHlMSkRZY0JGQUE3Njcwem5qWUZ4OWJXbGs4VEdNX0FPeEVudWx2dFVfRm1SUnd2VTNGQTdPNkFaeUVtcDlFS3ozZ2hTcHRrcUVnN2JVRk81dC1VODR1aGFUazF0YjhMOVAyWHYyUG05S25uR0xvaFNMZ3Vld1h4ZGVseW02ZFFVVl8wR2pPN29RX0xXQkZuWDBLZVAxRE12WFhVRTQ3T1NiLTM0MDlPRTFaNmtSUmhNbXF5bjhNNnhKaWpTLVFyclZxNFZWYndOdklSazZrTUpNMjhhRFBsN25jMnhSWl9SWlE9PXwC3sAZToe2X3GHbClVS5dxS1lVU18qMl9h1ad5q1qzng== but it is always different, the cookie changes with the incognito mode

giovixo97 avatar Jul 02 '24 20:07 giovixo97

Sorry for my lack of attention, you're right, I used the cookie you sent and it really isn't recognized as authenticated, I'm really running out of ideas what could be happening to you 🤔

d3cryptofc avatar Jul 02 '24 20:07 d3cryptofc

What i'm trying to Say from the beginning, Is that someone Who have access to the backend service have to check the status of the server. This Is not my problem in my opinion, Is a global problem i think. I think that from my end Is impossible to solve. This Is only my opinion, if you know Who host this service please contact him and let him know about this situation

giovixo97 avatar Jul 02 '24 21:07 giovixo97

I agree with you regarding the 500 error, as it must have certainly raised an exception in the server logs, something that only they can resolve, but regarding the 401 error, not even I could replicate it on my machine, perhaps it is something specific

d3cryptofc avatar Jul 02 '24 21:07 d3cryptofc

I have the same situation on Android, I've tried on multiple completely different devices and have the same problem. Even with different browsers I tried. in my opinion the 401 error is related to the 500 error. if I can't login then I have no authorization. Let me know of you want more feedback from my host

giovixo97 avatar Jul 02 '24 21:07 giovixo97

If the device is not the problem, then it is some particularity of your specific Docker account, because see, I created an account and recorded the procedure trying to replicate:

https://github.com/play-with-docker/play-with-docker/assets/47941854/cc468c9d-4320-4998-b982-f172937edf5a

d3cryptofc avatar Jul 02 '24 23:07 d3cryptofc

I'm trying to investigate my account setting but i cannot find any particular problem

giovixo97 avatar Jul 03 '24 05:07 giovixo97