dmwm / dasgoclient

Data Aggregation System (DAS) Go client
https://cmsweb.cern.ch/das/
MIT License
9 stars 4 forks source link

Query working on DAS web interface but not with dasgoclient #18

Closed chwissing closed 6 years ago

chwissing commented 6 years ago

Hi Valentin, today I discovered a query that fails with dasgoclient, while it works using the web interface.

Thats what I do: dasgoclient -query="site block=/ZeroBias6/Commissioning2018-26Apr2018-v1/AOD#8c68e773-b5a2-4ac9-b711-dc6b18f65edc"

Find the error below[1]. Let me know, if you cannot reproduce it and I will provide more details (or we figure out some bad environment on my end).

It's not very urgent. I hacked a few lines of python that query the Phedex API directly to get me the information I needed.

Thanks & cheers, Christoph

[1] panic: reflect: call of reflect.Value.Call on zero Value

goroutine 1 [running]: reflect.flag.mustBe(0x0, 0x13) /cvmfs/sft.cern.ch/lcg/releases/go/1.9.2-5e01e/x86_64-centos7-gcc62-opt/src/reflect/value.go:201 +0xc8 reflect.Value.Call(0x0, 0x0, 0x0, 0xc42034f080, 0x1, 0x1, 0x0, 0x0, 0x7dd420) /cvmfs/sft.cern.ch/lcg/releases/go/1.9.2-5e01e/x86_64-centos7-gcc62-opt/src/reflect/value.go:300 +0x38 main.processLocalApis(0xc420016420, 0x5f, 0x7ffccf83153b, 0x5d, 0xc4201c2ca0, 0x20, 0xc420148ba0, 0xc4201dbf90, 0x1, 0x1, ...) /afs/cern.ch/work/v/valya/builds/w630/BUILD/slc6_amd64_gcc630/cms/dasgoclient-binary/v01.01.09/dasgoclient/main.go:724 +0x505 main.process(0x7ffccf83153b, 0x5d, 0x0, 0x869ed0, 0x1, 0x1, 0x0, 0x0, 0x8708d3, 0x16, ...) /afs/cern.ch/work/v/valya/builds/w630/BUILD/slc6_amd64_gcc630/cms/dasgoclient-binary/v01.01.09/dasgoclient/main.go:359 +0x31ec main.main() /afs/cern.ch/work/v/valya/builds/w630/BUILD/slc6_amd64_gcc630/cms/dasgoclient-binary/v01.01.09/dasgoclient/main.go:96 +0x766

vkuznet commented 6 years ago

Christoph, thanks for report. I confirm the issue. The fix was applied here: https://github.com/dmwm/das2go/commit/ee8b26a58f6dd51f1080790068c22caf56268c47 and I'll try to schedule it in June upgrade. I'll keep this issue open until the fix will be propagated to production. Valentin.

vkuznet commented 6 years ago

Christoph, new dasgoclient (v02.00.01) has been deployed to cvmfs and now this query works. I'm closing the ticket. Valentin