ganga-devs / ganga

Ganga is an easy-to-use frontend for job definition and management
GNU General Public License v3.0
100 stars 159 forks source link

Silence a Dirac error? #1658

Closed mesmith75 closed 4 years ago

mesmith75 commented 4 years ago

So the new version of Dirac is printing errors now when uploading files:

INFO     Uploading file
'/tmp/abertoli/diracInputFiles_2080_24e1a339-6ea4-43d8-99c3-23edb38f72a7.tgz'
to 'IN2P3-USER' as
'/lhcb/user/a/abertoli/GangaFiles_15.00_Monday_27_April_2020/diracInputFiles_2080_24e1a339-6ea4-43d8-99c3-23edb38f72a7.tgz'
Error extracting GUID
Traceback (most recent call last):
   File
"/cvmfs/lhcb.cern.ch/lib/lhcb/LHCBDIRAC/pro/LHCbDIRAC/Core/Utilities/File.py",
line 38, in getRootFileGUID
     f = uproot.open(fileName)
   File
"/cvmfs/lhcb.cern.ch/lib/lhcb/LHCBDIRAC/pro/diracos/usr/lib64/python2.7/site-packages/uproot/rootio.py",
line 54, in open
     return ROOTDirectory.read(openfcn(path), **options)
   File
"/cvmfs/lhcb.cern.ch/lib/lhcb/LHCBDIRAC/pro/diracos/usr/lib64/python2.7/site-packages/uproot/rootio.py",
line 124, in read
     raise ValueError("not a ROOT file (starts with {0} instead of
'root')\n   in file: {1}".format(repr(magic), source.path))
ValueError: not a ROOT file (starts with '\x1f\x8b\x08\x08' instead of
'root')
    in file:
/tmp/abertoli/diracInputFiles_2080_24e1a339-6ea4-43d8-99c3-23edb38f72a7.tgz
Could not obtain GUID from file through Gaudi, using standard DIRAC method

Apparently this is by design and harmless (!) but ganga should be silencing them. Seems a bit odd to me but the jobs are submitting and running.

egede commented 4 years ago

I created an issue gainst LHCbDirac on this https://its.cern.ch/jira/browse/LHCBDIRAC-881

We can probably silence this, but not good practise as we might hide other problems in the future.

egede commented 4 years ago

This is fixed in the upcoming LHCbDirac release.