conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.12k stars 967 forks source link

[bug] Unable to enter user or password with out error #6020

Closed rsamefor closed 4 years ago

rsamefor commented 4 years ago
Trying to download from artifacts from Artifactory. When giving the credentials it says "Wrong user or password". Tried several times, including restarting the computer and using other credentials. ### Environment Details (include every applicable attribute) * Operating System+version: windows * Compiler+version: tasking-tricore v6.2r2p2 * Conan version: 1.20.0 * Python version: 3.8 ### Steps to reproduce (Include if Applicable) "run conan install ." after configuring according to our processes. ### Logs (Executed commands with output) (Include/Attach if Applicable)
GordonJess commented 4 years ago

Same issue after updating to conan 1.20.0.

Remote 'my-remote' username: gjess
Please enter a password for "gjess" account:
ERROR: Wrong user or password
ERROR: Too many failed login attempts, bye!. [Remote: my-remote]

Downgrading seems to fix the problem.

lasote commented 4 years ago

I need more information. Could you export CONAN_TRACE_FILE=/tmp/file.txt, run the commands and paste here the traces? (the password should be masked)

lasote commented 4 years ago

Also, what are you using on the server side? Artifactory? Which flavor/version? conan-server?

GordonJess commented 4 years ago

Hi @lasote,

Thanks for the quick reply. As requested:

Artifactory Version: 6.12.1 Trace file contents:

{"_action": "COMMAND", "name": "upload", "parameters": {"all_packages": true, "confirm": false, "integrity_check": false, "package": null, "pattern": "MCAL_PKG", "policy": null, "query": null, "remote_name": "my-remote", "retry": null, "retry_wait": null}, "time": 1572880809.1610262}
{"_action": "REST_API_CALL", "duration": 0.07700967788696289, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.20.0 (Python 3.7.3) python-requests/2.21.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1572880811.0282955, "url": "https://my_server.artifactory.cm.company.biz/artifactory/api/conan/conan_repo/v1/ping"}
{"_action": "REST_API_CALL", "duration": 0.07100892066955566, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.20.0 (Python 3.7.3) python-requests/2.21.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1572880816.8271549, "url": "https://my_server.artifactory.cm.company.biz/artifactory/api/conan/conan_repo/v1/ping"}
{"_action": "REST_API_CALL", "duration": 0.04600071907043457, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.20.0 (Python 3.7.3) python-requests/2.21.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1572881151.4089744, "url": "https://my_server.artifactory.cm.company.biz/artifactory/api/conan/conan_repo/v1/ping"}
{"_action": "REST_API_CALL", "duration": 0.0559992790222168, "headers": {"Authorization": "**********", "User-Agent": "Conan/1.20.0 (Python 3.7.3) python-requests/2.21.0", "X-Client-Anonymous-Id": "**********", "X-Client-Id": ""}, "method": "GET", "time": 1572881157.3404176, "url": "https://my_server.artifactory.cm.company.biz/artifactory/api/conan/conan_repo/v1/ping"}
{"_action": "EXCEPTION", "class": "AuthenticationException", "message": "Too many failed login attempts, bye!. [Remote: my-remote]", "time": 1572881157.3464181}
lasote commented 4 years ago

Thanks, reproduced. Still, don't know why it happen but for sure it has to be fixed asap.

lasote commented 4 years ago

To confirm. You have the "anonymous" access disabled, right?

GordonJess commented 4 years ago

Yes, it's disabled.

lasote commented 4 years ago

Open PR for the 1.20.1. in the meantime, if this is blocking you, try to authenticate with conan user xxx -p yyy -r remote_artifactory before the install. It should work.

lasote commented 4 years ago

1.20.1 has been released