conan-io / conan

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

conan inspect with conan-center is failing on windows platform #8841

Open cpenugon opened 3 years ago

cpenugon commented 3 years ago

Environment Details (include every applicable attribute)

Steps to reproduce (Include if Applicable)

conan inspect poco/1.9.4 -r conan-center

its asking for password and not able to authenticate it.

Logs (Executed commands with output) (Include/Attach if Applicable)

Please log in to "conan-center" to perform this action. Execute "conan user" command. If you don't have an account sign up here: https://bintray.com/signup/oss Remote 'conan-center' username: penugondac Please enter a password for "penugondac" account: ERROR: Wrong user or password Remote 'conan-center' username:

I am not sure why it needs to ask for username and password for conan-center.

When i tried to login using browser with the same credentials its working.

memsharded commented 3 years ago

Hi @cpenugon

ConanCenter does not require user or password at all.

This seems to work fine here now. It could be a temporary glitch in conan-center. Can you please retry now? Also, it might be good to try a conan user --clean, just in case you had tried to login or something because of some previous command.

Please let me know how it goes.

cpenugon commented 3 years ago

i have tried with conan user --clean .. Still the issue is same. Still asking for password. Here is the output from my windows shell

c:\Users\cpenugon>conan user --clean

c:\Users\cpenugon>conan inspect poco/1.9.4 -r conan-center Please log in to "conan-center" to perform this action. Execute "conan user" command. If you don't have an account sign up here: https://bintray.com/signup/oss Remote 'conan-center' username:

cpenugon commented 3 years ago

I have created an account in https://bintray.com/signup/oss

the account i created is https://bintray.com/penugondac

From portal through chrome i am able to login.. if i am providing the same credentials its not taking.

c:\Users\cpenugon>conan inspect poco/1.9.4 -r conan-center Please log in to "conan-center" to perform this action. Execute "conan user" command. If you don't have an account sign up here: https://bintray.com/signup/oss Remote 'conan-center' username: penugondac Please enter a password for "penugondac" account: ERROR: Wrong user or password Remote 'conan-center' username:

memsharded commented 3 years ago

Hi @cpenugon

No need to create an account in Bintray. Bintray is closing in 1 week, and accounts will be removed. You really shouldn't need an account to access ConanCenter

I have no idea why this is happening. Some things that could be checked or good to know:

You can, just in case try completely wiping your local cache (in your <userhome>/.conan folder).

BTW, today there will be some maintenance window: https://blog.conan.io/2021/03/31/Bintray-sunset-timeline.html, and we will try to switch infrastructure. This might affect users, so please take it into account.

cpenugon commented 3 years ago

Thanks James

If Bintray is closing in one week. What will be the URL for the conan-center for the generic conan packages such as poco, zlib etc..

Regading your question :

I have connected to open network from home without VPN I tried—same issue . With VPN I tried – same issue. I have connected from office network directly – there also same issue.

We are located in India, Bangalore.

I just want to check – why its asking for user id and passwd.. If its asking for user id and password – that means something else could be the issue.

Is there a way I can point bintray(conan-center) as a remote repository to my local artifactory server and fetch it from my local artifactory..

Regards PCReddy

From: James @.> Sent: Thursday, April 22, 2021 1:40 PM To: conan-io/conan @.> Cc: Penugonda, Chenna Reddy (C.) @.>; Mention @.> Subject: Re: [conan-io/conan] conan inspect with conan-center is failing on windows platform (#8841)

[This message originated from outside your organization.]


Hi @cpenugonhttps://github.com/cpenugon

No need to create an account in Bintray. Bintray is closing in 1 week, and accounts will be removed. You really shouldn't need an account to access ConanCenter

I have no idea why this is happening. Some things that could be checked or good to know:

You can, just in case try completely wiping your local cache (in your /.conan folder).

BTW, today there will be some maintenance window: https://blog.conan.io/2021/03/31/Bintray-sunset-timeline.htmlhttps://blog.conan.io/2021/03/31/Bintray-sunset-timeline.html, and we will try to switch infrastructure. This might affect users, so please take it into account.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/conan-io/conan/issues/8841#issuecomment-824635490, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKP2DYCT3ZUFDXVL6M44JXLTJ7KUBANCNFSM43KBL2BQ.

cpenugon commented 3 years ago

James,

Could you let me know how I can use https://conan.io/center/ instead of bintray..

How I can add the remote for conan.io

Regards PCReddy

From: James @.> Sent: Thursday, April 22, 2021 1:40 PM To: conan-io/conan @.> Cc: Penugonda, Chenna Reddy (C.) @.>; Mention @.> Subject: Re: [conan-io/conan] conan inspect with conan-center is failing on windows platform (#8841)

[This message originated from outside your organization.]


Hi @cpenugonhttps://github.com/cpenugon

No need to create an account in Bintray. Bintray is closing in 1 week, and accounts will be removed. You really shouldn't need an account to access ConanCenter

I have no idea why this is happening. Some things that could be checked or good to know:

You can, just in case try completely wiping your local cache (in your /.conan folder).

BTW, today there will be some maintenance window: https://blog.conan.io/2021/03/31/Bintray-sunset-timeline.htmlhttps://blog.conan.io/2021/03/31/Bintray-sunset-timeline.html, and we will try to switch infrastructure. This might affect users, so please take it into account.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/conan-io/conan/issues/8841#issuecomment-824635490, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKP2DYCT3ZUFDXVL6M44JXLTJ7KUBANCNFSM43KBL2BQ.

memsharded commented 3 years ago

What will be the URL for the conan-center for the generic conan packages such as po

The URL will be the same in the short term, more details in https://blog.conan.io/2021/03/31/Bintray-sunset-timeline.html

Is there a way I can point bintray(conan-center) as a remote repository to my local artifactory server and fetch it from my local artifactory..

Yes, of course. You can setup an Artifactory remote repository that proxies ConanCenter, and consume packages from there instead of using the client directly. This might be recommended for enterprise usage. The only issue is that this kind of repos might need to operate with revisions_enabled.

I just want to check – why its asking for user id and passwd.. If its asking for user id and password – that means something else could be the issue.

It could be a zone/timezone/area glitch in the Bintray, some server in your region might be having problems, but this is challenging to know. In a few hours we will try this switch of infrastructure, so the issue might be gone by then, lets try again in a few hours.

memsharded commented 3 years ago

No https://conan.io/center/, is only the frontend, not the client remote endpoint. It cannot be used. The endpoint is still https://conan.bintray.com, and it will continue to be even after today migration.

cpenugon commented 3 years ago

Its Highly confusing.. -- bintray sunset and conan.io/center will be sunset..

memsharded commented 3 years ago

Please read carefully the details in https://blog.conan.io/2021/03/31/Bintray-sunset-timeline.html

cpenugon commented 3 years ago

James ,

Yes, of course. You can setup an Artifactory remote repository that proxies ConanCenter, and consume packages from there instead of using the client directly. This might be recommended for enterprise usage. The only issue is that this kind of repos might need to operate with revisions_enabled. Tried the above not successful.

Could you pl. share the detailed steps –so that if we have missed we can correct ourselves.

In conan.conf we kept revisions_enabled

Regards PCReddy

From: James @.> Sent: Thursday, April 22, 2021 3:13 PM To: conan-io/conan @.> Cc: Penugonda, Chenna Reddy (C.) @.>; Mention @.> Subject: Re: [conan-io/conan] conan inspect with conan-center is failing on windows platform (#8841)

[This message originated from outside your organization.]


What will be the URL for the conan-center for the generic conan packages such as po

The URL will be the same in the short term, more details in https://blog.conan.io/2021/03/31/Bintray-sunset-timeline.htmlhttps://blog.conan.io/2021/03/31/Bintray-sunset-timeline.html

Is there a way I can point bintray(conan-center) as a remote repository to my local artifactory server and fetch it from my local artifactory..

Yes, of course. You can setup an Artifactory remote repository that proxies ConanCenter, and consume packages from there instead of using the client directly. This might be recommended for enterprise usage. The only issue is that this kind of repos might need to operate with revisions_enabled.

I just want to check – why its asking for user id and passwd.. If its asking for user id and password – that means something else could be the issue.

It could be a zone/timezone/area glitch in the Bintray, some server in your region might be having problems, but this is challenging to know. In a few hours we will try this switch of infrastructure, so the issue might be gone by then, lets try again in a few hours.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/conan-io/conan/issues/8841#issuecomment-824696389, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKP2DYHBG73TFLIQN5FLCCLTJ7VTRANCNFSM43KBL2BQ.

memsharded commented 3 years ago

Could you pl. share the detailed steps –so that if we have missed we can correct ourselves.

The documentation for it is available in the JFrog docs: https://www.jfrog.com/confluence/display/JFROG/Conan+Repositories

cpenugon commented 3 years ago

James,

Hard luck.. even after setting the remote repository and also setting up conan-virtual repo.. Its not fetching from bintray when you do “conan search”

Another interesting thing with conan-center is – conan search is working and conan install and conan inspect only asking for password.

@.***D73795.B014FFE0]

I have added conan-virtual repo to remote list.. its not fetching automatically from conan-remote

@.***D73799.A41B5E60]

Added revisions-enabled in conan.conf

@.***D73799.A41B5E60]

Nor sure what could be the issue..

Pl. guide us. If required I can be available for screen sharing session to debug.

Regards PCReddy From: James @.> Sent: Thursday, April 22, 2021 4:06 PM To: conan-io/conan @.> Cc: Penugonda, Chenna Reddy (C.) @.>; Mention @.> Subject: Re: [conan-io/conan] conan inspect with conan-center is failing on windows platform (#8841)

[This message originated from outside your organization.]


Could you pl. share the detailed steps –so that if we have missed we can correct ourselves.

The documentation for it is available in the JFrog docs: https://www.jfrog.com/confluence/display/JFROG/Conan+Repositorieshttps://www.jfrog.com/confluence/display/JFROG/Conan+Repositories

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/conan-io/conan/issues/8841#issuecomment-824728902, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKP2DYEU5DZXU2RK2TGCAWDTJ73ZVANCNFSM43KBL2BQ.

cpenugon commented 3 years ago

Even Today still asking for the usreid and passwd for the conan-center from windows. in the same machine with WSL2 its not asking. Looking very strange..

Could you let me know if i can collect some traces and see where the issue is there?

memsharded commented 3 years ago

ConanCenter has just changed infrastructure, it is in a new server. If it was something server related it should be gone now.

At this point I would try a complete removal of Conan client and fresh re-install, just in case something is corrupt in your system. Make sure everything is completely clean, remove the /.conan folder, and install it again. Please add details of how you are installing Conan in your system.

You can try capturing the traces with the env-var CONAN_TRACE_FILE (pointing to the absolute path of the trace file you want to capture), capturing both the native Windows and the WSL2, and posting here both.

wpalfi commented 1 year ago

Just had the same problem. It turned out, that our firewall blocked the request and returned a 403 Forbidden. Strangely, conan converts the 403 to a 401 Unauthorized and then asks for a password. A clear error message would help a lot. https://github.com/conan-io/conan/blob/f230bf104842c160be6ea377497151fe1ea64c38/conans/client/downloaders/file_downloader.py#L83-L86