cms-DQM / CentralHDQM

Central CMS Historic DQM application
https://cms-hdqm.web.cern.ch
0 stars 12 forks source link

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

Open abrinke1 opened 2 years ago

abrinke1 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.