Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cern-get-sso-cookie fails to get cern-get-sso-cookie from Run Registry #38

Open
abrinke1 opened this issue Jun 17, 2022 · 3 comments
Open

Comments

@abrinke1
Copy link

abrinke1 commented Jun 17, 2022

Hi @jfernan2 , @arossi83, @ahmad3213 , @ErnestaP ,

I'm trying to follow the instructions in the README, and I get an error on the cern-get-sso-cookie step:

cern-get-sso-cookie --cert ~/private/usercert.pem --key ~/private/userkey.pem -u https://cmsrunregistry.web.cern.ch/api/runs_filtered_ordered -o backend/api/etc/rr_sso_cookie.txt
Error: Cannot authenticate to: https://cmsrunregistry.web.cern.ch/api/runs_filtered_ordered

Do you know what the issue could be? Has the runs_filtered_ordered page perhaps moved?

Thanks much,
Andrew

@pmandrik
Copy link
Contributor

Hi, @abrinke1 , I can't reproduce the error. Could you please cross check the path to your certificates as ~/private is not a common path. The cookies are recived and no error when path is correct, thanks

@abrinke1
Copy link
Author

Hi @pmandrik ,

Thanks for getting back to me. Apologies for the slow follow-up: the gitHub notification landed in my spam folder, which is rather infuriating.

I've copied my .pem files into a public location on lxplus, and tried running the command again:

cern-get-sso-cookie --cert /afs/cern.ch/work/a/abrinke1/public/L1T/CentralHDQM/pem/usercert.pem --key /afs/cern.ch/work/a/abrinke1/public/L1T/CentralHDQM/pem/userkey.pem -u https://cmsrunregistry.web.cern.ch/api/runs_filtered_ordered -o backend/api/etc/rr_sso_cookie.txt

The output I get is:

Error: Cannot authenticate to: https://cmsrunregistry.web.cern.ch/api/runs_filtered_ordered

I'm happy to run with other commands or other options if you have any, to help debug further.

@abrinke1
Copy link
Author

Also, while I'm at it, I guess I need this:
# Need to add client secret backend/.env file - ask DQM conveners to provide it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants