<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=CrabNewIIHE</id>
	<title>CrabNewIIHE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=CrabNewIIHE"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=CrabNewIIHE&amp;action=history"/>
	<updated>2026-04-20T14:05:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=CrabNewIIHE&amp;diff=69&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === CMSSW/Crab Usage at IIHE === The aim of this page is to give you the information you need to use CMSSW and Crab at IIHE. For general information on how to use Crab, we ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=CrabNewIIHE&amp;diff=69&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === CMSSW/Crab Usage at IIHE === The aim of this page is to give you the information you need to use CMSSW and Crab at IIHE. For general information on how to use Crab, we ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== CMSSW/Crab Usage at IIHE ===&lt;br /&gt;
The aim of this page is to give you the information you need to use CMSSW and Crab at IIHE.&lt;br /&gt;
For general information on how to use Crab, we strongly advise you to go to the following link :&lt;br /&gt;
&lt;br /&gt;
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrab&lt;br /&gt;
&lt;br /&gt;
In case of troubles with CRAB, before sending a mail to the T2 admins or to the &amp;quot;Crab Feedback&amp;quot; Hypernews mailing list, please read this :&lt;br /&gt;
&lt;br /&gt;
https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabFaq&lt;br /&gt;
&lt;br /&gt;
==== KNOWN ISSUES ====&lt;br /&gt;
*autocompletion with csh doesn&amp;#039;t seem to work&lt;br /&gt;
**actually, is seems to work as intended&lt;br /&gt;
**TAB only completes unambigous prefixes&lt;br /&gt;
**use CTRL-D to list all possible matches&lt;br /&gt;
*as the old /user is not mounted, you will need to recreate the $HOME/.globus directory and copy your usercert.pem and userkey.pem files.&lt;br /&gt;
**don&amp;#039;t forget to check the permissions of the files.&lt;br /&gt;
&lt;br /&gt;
==== CMSSW environment ====&lt;br /&gt;
*CMSSW enviroment is under variable VO_CMS_SW_DIR is the correct release. (This also means that this variable will not have to be set manually anymore)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $VO_CMS_SW_DIR/cmsset_default.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source $VO_CMS_SW_DIR/cmsset_default.csh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== Crab environment ====&lt;br /&gt;
*CRAB is available under &amp;lt;tt&amp;gt;/user/cmssoft/crab/latest&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /user/cmssoft/crab/latest/crab.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
source /user/cmssoft/crab/latest/crab.csh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== New becms group ====&lt;br /&gt;
*becms is no longer a VO, but from now on a group in VO CMS.&lt;br /&gt;
*you now have a unique account name in CMS. This is your SiteDB account.&lt;br /&gt;
**you also should have an account with that login under the new UIs&lt;br /&gt;
**try &amp;lt;tt&amp;gt;m1.iihe.ac.be&amp;lt;/tt&amp;gt;&lt;br /&gt;
**login is based on rsa keys. Talk to the admins if you can not login.&lt;br /&gt;
*Requirements:&lt;br /&gt;
**Have an account in /cms/becms group and be registered in SiteDB&lt;br /&gt;
**[http://mon.iihe.ac.be/trac/t2b/wiki/Certificates_and_VOs#CMS Instructions]&lt;br /&gt;
*This group gives you write access to your personal &amp;lt;tt&amp;gt;/store/user&amp;lt;/tt&amp;gt; path on the storage&lt;br /&gt;
**at least for IIHE&lt;br /&gt;
**everyone else has read access&lt;br /&gt;
**you are not able to write to &amp;lt;tt&amp;gt;/pnfs/iihe/becms&amp;lt;/tt&amp;gt;&lt;br /&gt;
*add to &amp;lt;tt&amp;gt;crab.cfg&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[GRID]&lt;br /&gt;
virtual_organization    = cms&lt;br /&gt;
group                   = becms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Data Publication ====&lt;br /&gt;
You&amp;#039;ll find updated general information here : https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideCrabForPublication&lt;br /&gt;
&lt;br /&gt;
However - and this is specific to IIHE&amp;#039;s T2, you won&amp;#039;t find this information in CERN&amp;#039;s CMS Wiki - you must have the following in the [GRID] section :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[GRID]&lt;br /&gt;
virtual_organization    = cms&lt;br /&gt;
group                   = becms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Having this in your [GRID] section, you will avoid jobs ending with the 60307 error code.&lt;br /&gt;
&lt;br /&gt;
Here is a typical example of a crab.cfg for publication valid for IIHE&amp;#039;s T2 :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[CRAB]&lt;br /&gt;
jobtype                 = cmssw&lt;br /&gt;
scheduler               = glite&lt;br /&gt;
use_server              = 1&lt;br /&gt;
&lt;br /&gt;
[CMSSW]&lt;br /&gt;
datasetpath             = None&lt;br /&gt;
pset                    = pub_example.py&lt;br /&gt;
total_number_of_events  = 1000&lt;br /&gt;
#events_per_job          =&lt;br /&gt;
number_of_jobs          = 10&lt;br /&gt;
output_file             = pub_example.root&lt;br /&gt;
&lt;br /&gt;
[USER]&lt;br /&gt;
return_data             = 0&lt;br /&gt;
check_user_remote_dir   = 0&lt;br /&gt;
&lt;br /&gt;
copy_data               = 1&lt;br /&gt;
storage_element         = T2_BE_IIHE&lt;br /&gt;
&lt;br /&gt;
publish_data            = 1&lt;br /&gt;
publish_data_name       = pub_example&lt;br /&gt;
dbs_url_for_publication = https://cmsdbsprod.cern.ch:8443/cms_dbs_ph_analysis_02_writer/servlet/DBSServlet&lt;br /&gt;
&lt;br /&gt;
ui_working_dir          = pub_example&lt;br /&gt;
&lt;br /&gt;
[GRID]&lt;br /&gt;
proxy_server            = myproxy.cern.ch&lt;br /&gt;
virtual_organization    = cms&lt;br /&gt;
group                   = becms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We heavily insist on the fact that (excerpt from CERN&amp;#039;s CMS Wiki) :&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;quot;all the parameters related publication have to be added in the configuration file before creation of jobs, even if the publication step is executed after retrieving of job output. &amp;quot;&lt;br /&gt;
&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The crab configuration file MUST NOT be modify between &amp;quot;crab -create&amp;quot; and &amp;quot;crab -publish&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Direct PBS submission ====&lt;br /&gt;
&lt;br /&gt;
==== CRAB_2_2_1_pre2 (obsolete) ====&lt;br /&gt;
*This feature is now fully tested, but not yet available in official CRAB release&lt;br /&gt;
*available on &amp;lt;tt&amp;gt;/user/cmssoft/crab/CRAB_2_2_1_pre2_IIHE&amp;lt;/tt&amp;gt; (use only CRAB_2_2_1_pre2_IIHE)&lt;br /&gt;
*works: create,submit,kill,getoutput,publish&lt;br /&gt;
**does not work: postMortem &lt;br /&gt;
*add to crab.cfg&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[CRAB]&lt;br /&gt;
scheduler = pbs&lt;br /&gt;
&lt;br /&gt;
[USER]&lt;br /&gt;
copycommand = cmscp&lt;br /&gt;
&lt;br /&gt;
[PBS]&lt;br /&gt;
server = gridce.wn.iihe.ac.be&lt;br /&gt;
queue = localgrid&lt;br /&gt;
&lt;br /&gt;
cp_command = cp&lt;br /&gt;
rfio_server = /localgrid/&amp;lt;your_login&amp;gt;&lt;br /&gt;
&lt;br /&gt;
use_proxy = 1&lt;br /&gt;
&lt;br /&gt;
middleware = LCG&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NB: the direct PBS submission doesn&amp;#039;t work if in the crab.cfg you set your user interface working directory variable: ui_working_dir.&lt;br /&gt;
&lt;br /&gt;
==== CRAB_2_7_7 ====&lt;br /&gt;
The release 2_7_7 has been modified to allow direct PBS submission at IIHE. You will find this customized release in /user/cmssoft/crab/CRAB_2_7_7_IIHE. Here is the right way to use it :&lt;br /&gt;
*You project must be located in /localgrid/&amp;lt;your_user_name&amp;gt;/.&lt;br /&gt;
*You must create a proxy (it will be needed in case of stage out to the SE maite) :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
voms-proxy-init --voms cms:/cms/becms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Set your environment as usual, sourcing the customized CRAB release :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /localgrid/&amp;lt;your_user_name&amp;gt;/...blablabla.../CMSSW_X_Y_Z/src/&lt;br /&gt;
source $VO_CMS_SW_DIR/cmsset_default.(c)sh&lt;br /&gt;
cmsenv&lt;br /&gt;
source /user/cmssoft/crab/CRAB_2_7_7_IIHE/crab.(c)sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Modify your crab.cfg. It should look like this :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[CRAB]&lt;br /&gt;
jobtype                 = cmssw&lt;br /&gt;
scheduler               = pbs&lt;br /&gt;
use_server              = 0&lt;br /&gt;
&lt;br /&gt;
[CMSSW]&lt;br /&gt;
datasetpath = /RelValProdTTbar/JobRobot-MC_3XY_V24_JobRobot-v1/GEN-SIM-DIGI-RECO&lt;br /&gt;
pset                    = tutorial.py&lt;br /&gt;
events_per_job          = 2&lt;br /&gt;
number_of_jobs          = 1&lt;br /&gt;
output_file             = outfile.root&lt;br /&gt;
ignore_edm_output       = 1&lt;br /&gt;
&lt;br /&gt;
[USER]&lt;br /&gt;
copy_data             = 1&lt;br /&gt;
storage_element       = T2_BE_IIHE&lt;br /&gt;
user_remote_dir       = crabpbstest&lt;br /&gt;
publish_data            = 1&lt;br /&gt;
publish_data_name       = crabpbstest&lt;br /&gt;
dbs_url_for_publication = https://cmsdbsprod.cern.ch:8443/cms_dbs_ph_analysis_02_writer/servlet/DBSServlet&lt;br /&gt;
&lt;br /&gt;
thresholdLevel          = 0&lt;br /&gt;
xml_report              = Report.xml&lt;br /&gt;
&lt;br /&gt;
[GRID]&lt;br /&gt;
virtual_organization    = cms&lt;br /&gt;
group                   = becms&lt;br /&gt;
&lt;br /&gt;
[PBS]&lt;br /&gt;
server = cream02.iihe.ac.be&lt;br /&gt;
queue = localgrid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*You may now type the usual CRAB commands.&lt;br /&gt;
&lt;br /&gt;
==== Copy project to /user on UIs ====&lt;br /&gt;
&lt;br /&gt;
*To copy a working project from msa/beo on the master.iihe.ac.be UIs to the /user disk of the UIs you should do the following steps&lt;br /&gt;
**login on master.iihe.ac.be and go to your working CMSSW project&lt;br /&gt;
**Make a tarbal of the &amp;#039;src&amp;#039; directory of your project on msa/beo disk. Don&amp;#039;t copy other things than the src directory. You might also want to skip the crab working directories (crab_0_xxx_yyy) since they are useless to copy. You have to finish the running crabjobs on the msa/beo disks&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd CMSSW_x_y_z &lt;br /&gt;
tar --exclude &amp;#039;/crab_0&amp;#039; -cvf projectxyz.tar src&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**login on m1.iihe.ac.be&lt;br /&gt;
**make a new project and go to src direcory&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
scramv1 p CMSSW CMSSW_x_y_z&lt;br /&gt;
cd CMSSW_x_y_z&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**untar the tarbal&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar -xvf /msax/location/of/projectxyz.tar &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**compile!&lt;br /&gt;
*If you have your code synchroinised with a CVS repository you should do the following&lt;br /&gt;
**login to master&lt;br /&gt;
**Look for the file ~/.cvspass and copy it to a location accessible from the UI, e.g. /msa1/username (*Disclaimer*: this file contains your password, remove it after you did the following steps)&lt;br /&gt;
**modify the permissions of the file so you can copy them onto /user on the UI&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chmod +r /msa1/username/.cvspass &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**login to the UI&lt;br /&gt;
**copy the file .cvspass&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /msa1/username/.cvspass .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**modify the permissions&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
chmod 600 .cvspass&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**when you now ask &amp;lt;tt&amp;gt;ls -l .cvspass&amp;lt;/tt&amp;gt; you should see that the permission are &amp;lt;tt&amp;gt;-rw-------&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>