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

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

Open
belforte opened this issue Mar 31, 2024 · 0 comments
Open

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

belforte opened this issue Mar 31, 2024 · 0 comments

Comments

@belforte
Copy link
Member

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 [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant