<?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=ObsoleteInstructions2</id>
	<title>ObsoleteInstructions2 - 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=ObsoleteInstructions2"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=ObsoleteInstructions2&amp;action=history"/>
	<updated>2026-04-21T02:39:23Z</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=ObsoleteInstructions2&amp;diff=197&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot;  &lt;pre&gt; AGENT_VERSION=&quot;0.7.8a&quot; SERVER_VERSION=&quot;3.0.1&quot; &lt;/pre&gt;  *login to vocms104 and go to the working directory &lt;pre&gt; ssh -X jmmaes@lxplus.cern.ch ssh crab@vocms104...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=ObsoleteInstructions2&amp;diff=197&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &amp;lt;pre&amp;gt; AGENT_VERSION=&amp;quot;0.7.8a&amp;quot; SERVER_VERSION=&amp;quot;3.0.1&amp;quot; &amp;lt;/pre&amp;gt;  *login to vocms104 and go to the working directory &amp;lt;pre&amp;gt; ssh -X jmmaes@lxplus.cern.ch ssh crab@vocms104...&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;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
AGENT_VERSION=&amp;quot;0.7.8a&amp;quot;&lt;br /&gt;
SERVER_VERSION=&amp;quot;3.0.1&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*login to vocms104 and go to the working directory&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ssh -X jmmaes@lxplus.cern.ch&lt;br /&gt;
ssh crab@vocms104&lt;br /&gt;
cd /data/wmagent/CRAB3_server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co svn+ssh://jmmaes@svn.cern.ch/reps/CMSDMWM/Infrastructure/trunk/Deployment&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Follow instructions under section CRABServer specifications [https://svnweb.cern.ch/trac/CMSDMWM/wiki/WMDeployment here]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vi Deployment/wmagent/deploy # set AGENT_VERSION=&amp;quot;0.7.8a&amp;quot;&lt;br /&gt;
vi Deployment/crabserver/deploy # set SERVER_VERSION=&amp;quot;3.0.1&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd Deployment/&lt;br /&gt;
./Deploy  -s prep -t v300 $PWD/.. crabserver&lt;br /&gt;
./Deploy  -s sw -t v300 $PWD/.. crabserver&lt;br /&gt;
./Deploy  -s post -t v300 $PWD/.. crabserver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ..&lt;br /&gt;
./setenv.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Temporary fix: in &amp;quot;config/crabserver/manage&amp;quot; file switch this line :cp $ROOT_DIR/apps/crab-server3/configuration/Example.py $CONFIG_CS/config-template.py with the following one: cp $ROOT_DIR/apps/wmcore/etc/CrabServerConfig.py $CONFIG_CS/config-template.py&lt;br /&gt;
*Temporary fix in this file: sw/slc5_amd64_gcc434/cms/wmcore/0.7.8a/lib/python2.6/site-packages/WMCore/BossAir/Plugins/gLitePlugin.py&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1333c1333&lt;br /&gt;
&amp;lt;             return getProxy(userdn)&lt;br /&gt;
---&lt;br /&gt;
&amp;gt;             return self.getProxy(userdn)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Fire up the server&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd current&lt;br /&gt;
./config/crabserver/manage activate-crabserver&lt;br /&gt;
./config/crabserver/manage start-services # check if file is there ls /data/wmagent/CRAB3_server/v300/install/mysql/logs/mysql.sock&lt;br /&gt;
./config/crabserver/manage init-crabserver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*According tot the trac twiki about crabservermanagement some configuration settings need to be adapted:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
in config/crabserver/config.py &lt;br /&gt;
- config.CRABInterface.configCacheCouchURL = &amp;#039;http://joriswmagent:****@vocms104.cern.ch:5984&amp;#039; ##according to gwave&lt;br /&gt;
- config.CRABInterface.views.active.crab.model.couchUrl = &amp;#039;http://joriswmagent:****@vocms104.cern.ch:5984&amp;#039;&lt;br /&gt;
- config.reqmgr.views.active.create.requestor = &amp;#039;Analysis&amp;#039;&lt;br /&gt;
- config.CRABInterface.admin = &amp;#039;Joris.Maes@cern.ch&amp;#039;&lt;br /&gt;
- config.CRABInterface.views.active.crab.jsmCacheCouchURL = &amp;#039;http://joriswmagent:****@vocms104.cern.ch:5984&amp;#039;&lt;br /&gt;
- config.CRABInterface.views.active.crab.model.workloadCouchDB = &amp;#039;reqmgrdb&amp;#039;&lt;br /&gt;
- config.CRABInterface.views.active.crab.jsmCacheCouchDB = &amp;#039;wmagent_jobdump&amp;#039;&lt;br /&gt;
- config.CRABInterface.agentDN = &amp;#039;/DC=ch/DC=cern/OU=computers/CN=vocms104.cern.ch&amp;#039;&lt;br /&gt;
&lt;br /&gt;
in config/workqueue/config.py&lt;br /&gt;
- config.Agent.teamName = &amp;#039;Analysis&amp;#039;&lt;br /&gt;
- config.Agent.contact = &amp;#039;joris.maes@cern.ch&amp;#039;&lt;br /&gt;
- config.WorkQueueManager.reqMgrConfig = {&amp;#039;endpoint&amp;#039;: &amp;#039;http://vocms104.cern.ch:8687/reqmgr/reqMgr/&amp;#039;, &amp;#039;teamName&amp;#039;: &amp;#039;Analysis&amp;#039;}&lt;br /&gt;
- config.WorkQueueService.admin = &amp;#039;Joris.Maes@cern.ch&amp;#039;&lt;br /&gt;
&lt;br /&gt;
in config/reqmgr/config.py&lt;br /&gt;
- config.Agent.teamName = &amp;#039;Analysis&amp;#039;&lt;br /&gt;
&lt;br /&gt;
in config/wmagent/config.py&lt;br /&gt;
- config.Agent.teamName = &amp;#039;team1,team2,cmsdataops,Analysis&amp;#039;&lt;br /&gt;
- config.WorkQueueManager.queueParams = {&amp;#039;QueueURL&amp;#039;: &amp;#039;http://vocms104.cern.ch:9997/workqueueservice/workqueue&amp;#039;, &amp;#039;FullReportInterval&amp;#039;: 300, &amp;#039;Teams&amp;#039;: &amp;#039;team1,team2,cmsdataops,Analysis&amp;#039;, &amp;#039;CacheDir&amp;#039;: &amp;#039;/data/wmagent/CRAB3_server/v300/install/wmagent/WorkQueueManager/wf&amp;#039;, &amp;#039;PopulateFilesets&amp;#039;: True, &amp;#039;ParentQueue&amp;#039;: &amp;#039;http://vocm104.cern.ch:9996/workqueueservice/workqueue&amp;#039;}&lt;br /&gt;
- config.WorkQueueService.views.active.workqueue.queueParams = {&amp;#039;QueueURL&amp;#039;: &amp;#039;http://vocms104.cern.ch:9997/workqueueservice/workqueue&amp;#039;, &amp;#039;FullReportInterval&amp;#039;: 300, &amp;#039;Teams&amp;#039;: &amp;#039;team1,team2,cmsdataops,Analysis&amp;#039;, &amp;#039;CacheDir&amp;#039;: &amp;#039;/data/wmagent/CRAB3_server/v300/install/wmagent/WorkQueueManager/wf&amp;#039;, &amp;#039;PopulateFilesets&amp;#039;: True, &amp;#039;ParentQueue&amp;#039;: &amp;#039;http://vocm104.cern.ch:9996/workqueueservice/workqueue&amp;#039;}&lt;br /&gt;
- config.Agent.agentName = &amp;#039;integration&amp;#039;&lt;br /&gt;
- config.BossAir.gLitePrefixEnv = &amp;quot;/lib64/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Make the changes for the BossAir plugin explained here [https://twiki.cern.ch/twiki/bin/viewauth/CMS/WMAgentRunAnalysis here].&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vi config/wmagent/config.py&lt;br /&gt;
config.BossAir.pluginNames = [&amp;#039;gLitePlugin&amp;#039;]&lt;br /&gt;
config.BossAir.gLiteProcesses = 4&lt;br /&gt;
config.BossAir.gliteConf   = &amp;#039;/data/wmagent/CRAB3_server/control/glite_wms_CERN.conf&amp;#039;&lt;br /&gt;
config.BossAir.UISetupScript = &amp;#039;/afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh&amp;#039;&lt;br /&gt;
config.BossAir.credentialDir  = &amp;#039;/data/wmagent/CRAB3_server/credentials/&amp;#039;&lt;br /&gt;
config.Agent.serverDN = &amp;#039;/DC=ch/DC=cern/OU=computers/CN=vocms104.cern.ch&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Fix a bug in the glite plugin&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/data/wmagent/CRAB3_server/v300/sw/slc5_amd64_gcc434/cms/wmcore/0.7.8a/lib/python2.6/site-packages/WMCore/BossAir/Plugins/gLitePlugin.py&lt;br /&gt;
replace all:&lt;br /&gt;
except multiprocessing.Queue.Empty&lt;br /&gt;
with:&lt;br /&gt;
except Queue.Empty&lt;br /&gt;
And add queue to the imported package also Queue, changing:&lt;br /&gt;
import multiprocessing&lt;br /&gt;
with:&lt;br /&gt;
import multiprocessing, Queue&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Start services&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./config/crabserver/manage start-services&lt;br /&gt;
./config/crabserver/manage start-crabserver&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Add resources&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --plugin=gLitePlugin --site-name=T2_IT_Legnaro --site-slots=20 --se-name=t2-srm-02.lnl.infn.it --ce-name=t2-ce-02.lnl.infn.it&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --site-name=T2_IT_Legnaro --task-type=Analysis --task-slots=20&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --plugin=gLitePlugin --site-name=T2_IT_Legnaro --site-slots=20 --se-name=t2-srm-02.lnl.infn.it --ce-name=t2-ce-06.lnl.infn.it&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --site-name=T2_IT_Legnaro --task-type=Analysis --task-slots=20&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --plugin=gLitePlugin --site-name=T2_IT_Legnaro --site-slots=20 --se-name=t2-srm-02.lnl.infn.it --ce-name=t2-ce-03.lnl.infn.it&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --site-name=T2_IT_Legnaro --task-type=Analysis --task-slots=20&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --plugin=gLitePlugin --site-name=T2_IT_Legnaro --site-slots=20 --se-name=t2-srm-02.lnl.infn.it --ce-name=t2-ce-04.lnl.infn.it&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --site-name=T2_IT_Legnaro --task-type=Analysis --task-slots=20&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --plugin=gLitePlugin --site-name=T2_IT_Legnaro --site-slots=20 --se-name=t2-srm-02.lnl.infn.it --ce-name=t2-ce-01.lnl.infn.it&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --site-name=T2_IT_Legnaro --task-type=Analysis --task-slots=20&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --plugin=gLitePlugin --site-name=T2_BE_IIHE --site-slots=20 --se-name=maite.iihe.ac.be --ce-name=cream01.iihe.ac.be&lt;br /&gt;
./config/crabserver/manage execute-agent wmagent-resource-control --site-name=T2_BE_IIHE  --task-type=Analysis --task-slots=20&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Added CMSSW releases&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./config/crabserver/manage execute-reqmgr requestDbAdmin add -v all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Check the status of the server&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
couch admin url: http://vocms104.cern.ch:5984/_utils/&lt;br /&gt;
wmagent url: http://vocms104.cern.ch:8687/reqmgr/&lt;br /&gt;
check resources: ./config/crabserver/manage execute-agent wmagent-resource-control -p&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Stop a current server completely&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./config/crabserver/manage stop-crabserver&lt;br /&gt;
./config/crabserver/manage stop-services&lt;br /&gt;
ps aux | grep -i mysql&lt;br /&gt;
ps aux | grep -i beam&lt;br /&gt;
ps aux | grep -i wmagent #for i in $(ps aux | grep -i wmagent | awk &amp;#039;{print $2}&amp;#039;); do echo &amp;quot;kill -9 $i&amp;quot;; kill -9 $i; done&lt;br /&gt;
&amp;lt;/pre&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>