dmwm / CRABClient

runrange
14 stars 36 forks source link

make it clear when user's config has an error #5299

Open belforte opened 6 months ago

belforte commented 6 months ago

the user only got this at the console

Importing CMSSW configuration crab_configs_singleLep2016UL/runFWLJMet_shifts_XX1400H800.py
ERROR: IndexError: list index out of range

while the log is more clear, but nobody looks at it

DEBUG 2024-03-31 00:13:01.694 UTC:   self.config.JobType.psetName: crab_configs_singleLep2016UL/runFWLJMet_shifts_XX1400H200.py
INFO 2024-03-31 00:13:01.694 UTC:    Importing CMSSW configuration crab_configs_singleLep2016UL/runFWLJMet_shifts_XX1400H200.py
ERROR 2024-03-31 00:13:01.877 UTC:   Unhandled Exception!
ERROR 2024-03-31 00:13:01.877 UTC:   list index out of range
Traceback (most recent call last):
  File "/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02830/share/cms/crab-dev/v3.240216.00/bin/crab.py", line 152, in <module>
    client()
  File "/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02830/share/cms/crab-dev/v3.240216.00/bin/crab.py", line 137, in __call__
    returnDict = self.cmd()
  File "/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02830/share/cms/crab-dev/v3.240216.00/lib/CRABClient/Commands/submit.py", line 107, in __call__
    dummy_inputfiles, jobconfig = plugjobtype.run(filecacheurl)
  File "/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02830/share/cms/crab-dev/v3.240216.00/lib/CRABClient/JobType/Analysis.py", line 92, in run
    userConfig=self.config.JobType.psetName)
  File "/cvmfs/cms-ib.cern.ch/sw/x86_64/nweek-02830/share/cms/crab-dev/v3.240216.00/lib/CRABClient/JobType/CMSSWConfig.py", line 87, in __init__
    self.fullConfig = imp.load_module(cfgBaseName, configFile, pathname, description)
  File "/uscms_data/d3/fsimpson/scratch/CMSSW_10_6_29/src/FWLJMET/LJMet/CRAB3/crab_configs_singleLep2016UL/runFWLJMet_shifts_XX1400H200.py", line 172, in <module>
    process.GlobalTag = GlobalTag(process.GlobalTag, "", "106X_mcRun2_asymptotic_v17" )
  File "/cvmfs/cms.cern.ch/slc7_amd64_gcc700/cms/cmssw/CMSSW_10_6_29/python/Configuration/AlCa/GlobalTag.py", line 113, in GlobalTag
    record     = entry[1]
IndexError: list index out of range
ERROR 2024-03-31 00:13:01.878 UTC:   ERROR: IndexError: list index out of range
ERROR 2024-03-31 00:13:01.878 UTC:   
    Please email cmstalk+computing-tools@dovecotmta.cern.ch for support with the crab.log file or crab.log URL.
ERROR 2024-03-31 00:13:01.878 UTC:      Client Version: v3.240216

We should print that info to the console when an exception happens importing user's config.