This page contains documentation about CRAB3. The old CRAB2 page has been moved to SWGuideCrab2.
CRAB is a utility to submit CMSSW jobs to distributed computing resources.
CRAB is a utility to submit CMSSW jobs to distributed computing resources. By using CRAB you will be able to:
Access CMS data and Monte-Carlo which are distributed to CMS aligned centres worldwide.
Exploit the CPU and storage resources at CMS aligned centres.
Before starting to learn about CRAB, you may want to get an overview of the Grid model and of a typical analysis workflow. For that purpose read the following chapters of the CMS Offline WorkBook:
For those who already know about CRAB2 and have to face the transition to CRAB3, here is a list of architecture improvements (or just differences) in the new version.
Asynchronous copy of the output files to the destination storage element by an external service called Asynchronous Stage Out (ASO). This allows to have managed file transfers and releases the worker node immediately when the processing job has finished. Impact: the user will no longer have jobs that run and then fail at the end because they cannot move their data.
Automatic publication of the output dataset in DBS. No need to run the crab -publish command anymore.
Automatic job resubmission for certain failures.
Job splitting takes place in the server:
The crab -create command is therefore not available anymore and the workflow starts directly from the submission command.
The submission command does not accept anymore the range of jobs option (all jobs that are created by the server are also submitted to run).
The CRAB3 configuration file is written in python.
There are also features that are not yet implemented in CRAB3:
Storage in an arbitrary location is not supported. (CRAB3 only supports storage in /store/user/ and /store/group/.)
Local submission is not implemented.
An up-to-date roadmap to what works and what does not in CRAB3 is in CRAB3Functionalities.
The plan for migration user community from Crab2 to CRAB3 is in CRAB3Migration.
/afs/cern.ch/user/b/belforte/WORK/CRAB3/CRABClient
How is running CRAB3 is different than CRAB2
Commands do not require the - in front of them. That is, a CRAB2 command crab -<command> became crab <command> in CRAB3.
The --continue/-c option was replaced by --dir/-d.
The option used to specify the configuration file in the submission command is --config/-c.
DEPRECATED documentation about how to deploy the CRAB server frontend (i.e. CRAB REST Interface and CRAB Cache) on a private VM for development. Production/pre-prod and test istances are deployed via K8s.
pay attention to monthly mails from automatic Oracle procedure which drops old partitions and ensure that old partition are properly removed
make sure to keep documentation up to date with whatever changes have been done recently
Every year:
make sure that yearly certificate renewal for all services and hosts is done automatically and properly on all hosts which we operate well before current certificates expire to guaranteed smooth operations
A different approach on how to independently submit CRAB jobs to a local batch system.
Getting started
This section describes how to begin using CRAB to perform your analysis on the Grid.
Prerequisites
To use CRAB to submit CMSSW jobs to the Grid, you must meet some prerequisites, which you can find in the CRAB Prerequisites page.
Basic workflows
Some basic workflows are documented in the CRAB3 Tutorial page. If you have never used CRAB before, it is a good place to learn how to use the tool.
Getting support
BEFORE CONTACTING Computing Tools, PLEASE CONSULT THE CRAB TROUBLESHOOTING GUIDE AT THIS LINK: CRAB3Troubleshoot
and the CRAB3 Frequently Asked Questions page (and maybe even the CRAB2 Frequently Asked Questions page).
A common mistake is to test the code locally only on a small number of events which is not representative of the whole dataset. If the log of a failed job contains a CMSSW error (e.g. exit code 134, 139), please run your code interactively on the very same event on which the CRAB job failed.
All CRAB users must subscribe to the CERN Computing Announcements HyperNews Forum. It is very low traffic and if there is a global problem you will know about it faster in that way. *Note:* this HN forum will be deprecated soon as part of CMS migration from HyperNews to CMS-Talk, but the replacement has not been defined yet as of February 23, 2022.
To send feedback and/or get support about CRAB3, please make an entry in the Computing ToolsCMS-Talk forum. You can do it either via e-mail to cmstalk+comptools@dovecotmtaNOSPAMPLEASE.cern.ch or using the web page above. All CRAB users may find it useful to subscribe to this forum.
When contacting Computing Tools, you must:
write a brief description of the problem and copy/paste text of relevant error messages
try to be specific ("I have errors, please help me" will not get you an useful reply)
give pointers to relevant task information , e.g. by copy/pasting the first few lines form crab status output. In general make sure that you report at least:
task name (and a job number, if applicable)
the URL printed in green by the crab status command at the line: Task URL to use for HELP
if a problem on the client side is suspected, upload the crab.log file (use the crab uploadlog command) corresponding to the task for which you are reporting the problem
CRAB project directory: /afs/cern.ch/work/b/belforte/CRAB3/TC3/crab_20170616_143152
Task name: 170616_123158:belforte_crab_20170616_143152
Grid scheduler: crab3@vocms0197.cern.ch
Status on the CRAB server: SUBMITTED
Task URL to use for HELP: https://cmsweb.cern.ch/crabserver/ui/task/170616_123158%3Abelforte_crab_20170616_143152
Dashboard monitoring URL: http://dashb-cms-job.cern.ch/dashboard/templates/task-analysis/#user=belforte&refresh=0&table=Jobs&p=1&records=25&activemenu=2&status=&site=&tid=170616_123158%3Abelforte_crab_20170616_143152
Status on the scheduler: COMPLETED
Jobs status: finished 100.0% (2/2)
So you would have to paste in your mail at least this URL https://cmsweb.cern.ch/crabserver/ui/task/170616_123158%3Abelforte_crab_20170616_143152 while of course also copying/pasting the full text above would be good, and even better.
Other relevant CMS HyperNews forums
Grid Announcements: All CMS members using the Grid should subscribe to this forum.