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

Test dasgoclient in the cc image #384

Open
2 tasks
oshadura opened this issue Jul 11, 2023 · 4 comments
Open
2 tasks

Test dasgoclient in the cc image #384

oshadura opened this issue Jul 11, 2023 · 4 comments

Comments

@oshadura
Copy link
Member

oshadura commented Jul 11, 2023

  • Check if dasgoclient from /cvmfs/cms.cern.ch/common/dasgoclient is working
  • Make sure that dasgoclient actually works with tokens.
    The current error when you try with CMS IAM token:
dasgoclient -query="dataset=/ZMM*/*/*" -token=.token

ERROR: das exit with code: 2 , error: DBS unable to unmarshal the data into DAS record, api=datasets, data=<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
 <title>CMSWEB Error: Authorisation required</title>
...
   <div class="boxTitle"><img src="/img/title.gif" alt="CMSWEB (title)" /></div>
  </div>
  <div id="middle">
   <div class="boxLinkContainer">
    <h2>Authorisation required</h2>
    <p>The site you requested is protected and requires you to authenticate</p><p><a href='/auth/trouble'>Diagnose certificate problems</a></p>
...

The official reply was that there is no support currently, especially on cmsweb-auth side:
dmwm/dasgoclient#30 (comment)

@clundst
Copy link
Contributor

clundst commented Nov 21, 2023

On first attempt the dasgoclient isn't working out of the box, don't know if I need to source something or ...
/cvmfs/cms.cern.ch/common/dasgoclient -query "dataset=/ZMM*//" -json -host https://cmsweb-auth.cern.ch
/cvmfs/cms.cern.ch/common/scram: 14: COUNT++: not found
/cvmfs/cms.cern.ch/common/scram: 14: COUNT++: not found
ls: cannot access '/cvmfs/cms.cern.ch/linux418_amd64_/cms/dasgoclient/v/bin/dasgoclient': No such file or directory
ls: cannot access '/cvmfs/cms.cern.ch/linux418_amd64_*/cms/dasgoclient/': No such file or directory
/cvmfs/cms.cern.ch/common/dasgoclient: 12: -query: not found

@clundst
Copy link
Contributor

clundst commented Nov 21, 2023

Attempt the second says something isn't configured correctly (I think) I found a binary of dasgoclient by looking in the dasgoclient script and parsing the unrecognized cmsos response:
cd /cvmfs/cms.cern.ch/cc8_amd64_gcc9/cms/dasgoclient/v02.04.36-b4f75c8b6dba03448d1491c2d7a11bf6/bin
./dasgoclient -query="dataset=/Zee*//"
2023/11/21 17:18:48 ERROR DAS QL ERROR, query=dataset = /Zee*//, idx=0, msg=Wrong DAS key: dataset
ERROR: das parser error: DAS QL ERROR, query=dataset = /Zee*//, idx=0, msg=Wrong DAS key: dataset

when I query -daskeys I get no valid keys, so I think it's not finding a dbs intance (?).

@oshadura
Copy link
Member Author

oshadura commented Nov 21, 2023 via email

@oshadura
Copy link
Member Author

oshadura commented Nov 21, 2023 via email

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