<?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=ObsoleteInstructions1</id>
	<title>ObsoleteInstructions1 - 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=ObsoleteInstructions1"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=ObsoleteInstructions1&amp;action=history"/>
	<updated>2026-05-16T13:54:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=ObsoleteInstructions1&amp;diff=196&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === Obsolete instructions for crabserver deployment ===  *login to vocms104 and go to the working directory &lt;pre&gt; ssh -X jmmaes@lxplus.cern.ch ssh crab@vocms104 # cd /h...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=ObsoleteInstructions1&amp;diff=196&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === Obsolete instructions for crabserver deployment ===  *login to vocms104 and go to the working directory &amp;lt;pre&amp;gt; ssh -X jmmaes@lxplus.cern.ch ssh crab@vocms104 # cd /h...&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;
=== Obsolete instructions for crabserver deployment ===&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 /home/crab/WMAgent/WMAgent_CRAB3_server/ # obsolete&lt;br /&gt;
cd /data/wmagent/WMAgent_CRAB3_server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Follow instructions under section CRABServer specifications [https://svnweb.cern.ch/trac/CMSDMWM/wiki/WMDeployment here]&lt;br /&gt;
*Check out the WMcore code from svn&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;
*Start the deployment, but check the wmagent/deploy and crabserver/deploy that you are using the correct version. I&amp;#039;m using 0.7.9a and 3.0.0&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;
*Set the environment after making a WMAgent.secrets file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export WMAGENT_SECRETS_LOCATION=/home/crab/WMAgent.secrets&lt;br /&gt;
export X509_HOST_CERT=/home/crab/WMAgent/WMAgent_client_CRAB3_test/usercert.pem&lt;br /&gt;
export X509_HOST_KEY=/home/crab/WMAgent/WMAgent_client_CRAB3_test/userkey.pem&lt;br /&gt;
source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh&lt;br /&gt;
&lt;br /&gt;
# Claudio settings&lt;br /&gt;
#export WMAGENT_SECRETS_LOCATION=/data/wmagent/admin/WMAgent.secrets&lt;br /&gt;
#export X509_HOST_CERT=/data/wmagent/admin/certs/usercert.pem&lt;br /&gt;
#export X509_HOST_KEY=/data/wmagent/admin/certs/userkey-unencrypted.pem&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Instructions ===&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 /home/crab/WMAgent/WMAgent_client_CRAB3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Check out the WMcore code from svn&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
### not this one #svn co svn+ssh://jmmaes@svn.cern.ch/reps/CMSDMWM/Infrastructure -r HEAD&lt;br /&gt;
svn co svn+ssh://jmmaes@svn.cern.ch/reps/CMSDMWM/Infrastructure/branches/deployment-reorg/Deployment&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Start the deployment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd Deployment/&lt;br /&gt;
./Deploy -t 0.7.5 -s prep /home/crab/WMAgent/WMAgent_client_CRAB3 wmagent&lt;br /&gt;
./Deploy -t 0.7.5 -s sw /home/crab/WMAgent/WMAgent_client_CRAB3 wmagent&lt;br /&gt;
./Deploy -t 0.7.5 -s post /home/crab/WMAgent/WMAgent_client_CRAB3 wmagent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Next step is making a secrets file and copy the usercert and userkey&lt;br /&gt;
*Set the environment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export WMAGENT_SECRETS_LOCATION=/home/crab/WMAgent.secrets&lt;br /&gt;
export X509_HOST_CERT=/home/crab/WMAgent/WMAgent_client_CRAB3_test/usercert.pem&lt;br /&gt;
export X509_HOST_KEY=/home/crab/WMAgent/WMAgent_client_CRAB3_test/userkey.pem&lt;br /&gt;
source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*go to the current project and start the components&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd ../current/&lt;br /&gt;
./config/wmagent/manage activate-agent&lt;br /&gt;
./config/wmagent/manage activate-reqmgr&lt;br /&gt;
./config/wmagent/manage activate-workqueue&lt;br /&gt;
./config/wmagent/manage start-services    # Creates empty databases for all three activated components&lt;br /&gt;
./config/wmagent/manage init-agent        # Creates the tables for all three activated components&lt;br /&gt;
&lt;br /&gt;
./config/wmagent/manage start-agent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Make the needed modifications in the BossAir plugin&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vi config/wmagent/config.py&lt;br /&gt;
https://twiki.cern.ch/twiki/bin/viewauth/CMS/WMAgentRunAnalysis&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Some modifications are made according to [https://twiki.cern.ch/twiki/bin/viewauth/CMS/WMAgentRunAnalysis this] page&lt;br /&gt;
*Additional configuration instructions [https://twiki.cern.ch/twiki/bin/viewauth/CMS/WMAgentIntegrationInstallation#WMAgent_configuration here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Obsolete setup ===&lt;br /&gt;
&lt;br /&gt;
*In this section I&amp;#039;ll keep some pointers and some bits and pieces of code.&lt;br /&gt;
*The WMAgent is installed on vocms104 &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 /home/crab/WMAgent/WMAgent_client_CRAB3_test&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*CRAB3 documentation can be found [https://twiki.cern.ch/twiki/bin/viewauth/CMS/WMAgentRunAnalysis here]. This page was not so usefull. Since vocms104 is serving as a crab server already some things are in place like the gridFTP&lt;br /&gt;
*Since the link on the previous page was faulty I downloaded the whole infrastructure from [https://svnweb.cern.ch/trac/CMSDMWM/wiki/WMDeployment here].&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co svn+ssh://jmmaes@svn.cern.ch/reps/CMSDMWM/Infrastructure -r HEAD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*The procedure to install the WMAgent I took from [https://svnweb.cern.ch/trac/CMSDMWM/wiki/WMDeployment here], but it seems to be not working&lt;br /&gt;
*An alternative page to find instructions is [https://twiki.cern.ch/twiki/bin/viewauth/CMS/WMAgentDeployment here]&lt;br /&gt;
*After checking out I deploy the WMAgent:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /home/crab/WMAgent/WMAgent_client_CRAB3_test/Infrastructure/trunk/Deployment&lt;br /&gt;
./Deploy  -s prep /home/crab/WMAgent/WMAgent_client_CRAB3_test WMAgent&lt;br /&gt;
./Deploy  -s sw /home/crab/WMAgent/WMAgent_client_CRAB3_test WMAgent&lt;br /&gt;
./Deploy  -s post /home/crab/WMAgent/WMAgent_client_CRAB3_test WMAgent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*This seems to fail. Alternative try:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /home/crab/WMAgent/WMAgent_client_CRAB3_test/Infrastructure/branches/deployment-reorg/Deployment&lt;br /&gt;
./Deploy -t 0.7.4 -s prep /home/crab/WMAgent/WMAgent_client_CRAB3_test wmagent&lt;br /&gt;
./Deploy -t 0.7.4 -s sw /home/crab/WMAgent/WMAgent_client_CRAB3_test wmagent&lt;br /&gt;
./Deploy -t 0.7.4 -s post /home/crab/WMAgent/WMAgent_client_CRAB3_test wmagent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Next step is making a secrets file and copy the usercert and userkey&lt;br /&gt;
*Set the environment&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export WMAGENT_SECRETS_LOCATION=/home/crab/WMAgent/WMAgent_client_CRAB3_test/WMAgent.secrets&lt;br /&gt;
export X509_HOST_CERT=/home/crab/WMAgent/WMAgent_client_CRAB3_test/usercert.pem&lt;br /&gt;
export export X509_HOST_KEY=/home/crab/WMAgent/WMAgent_client_CRAB3_test/userkey.pem&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*There is a problem in the &amp;#039;&amp;#039;start-agent&amp;#039;&amp;#039; phase due to a missing library. Fix:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co svn+ssh://svn.cern.ch/reps/CMSDMWM/WMCore/tags/0.7.3 WMCORE&lt;br /&gt;
cp -r WMCORE/src/python/IMProv current/apps/wmcore/lib/python2.6/site-packages/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*In the following file a change needs to be made:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0.7.4/sw/slc5_amd64_gcc434/cms/wmcore/0.7.4/lib/python2.6/site-packages/PSetTweaks/WMTweak.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*change the line&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;lfnGroup = lambda j : str(j.get(&amp;quot;counter&amp;quot;, 0) / 1000).zfill(4) &amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;lfnGroup = lambda j : str(j.get(&amp;quot;counter&amp;quot;, 0) / 500).zfill(4) &amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*There are also some known issues with the stopping of the agent. It happens that some of the components are not stopped properly and need to be killed by hand.&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;
ps aux | grep python&lt;br /&gt;
kill -9 &amp;#039;&amp;#039;pid&amp;#039;&amp;#039;&lt;br /&gt;
rm &amp;lt;tt&amp;gt;find . -name Daemon.xml&amp;lt;/tt&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Now I need to adapt the code so that I use the BossAir plugins and GridFTP. There seems to be an issue in restarting the agents/services. The reason is probably due to a bug in 0.7.4, therefore I need to check out 0.7.5&lt;br /&gt;
*This was done by easily repeating the &amp;#039;&amp;#039;Deploy&amp;#039;&amp;#039; step with a different version. I&amp;#039;ve made the same fixes as I did in 0.7.4. To properly start all services I&amp;#039;ve ran:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./config/wmagent/manage activate-agent&lt;br /&gt;
./config/wmagent/manage activate-reqmgr&lt;br /&gt;
./config/wmagent/manage activate-workqueue&lt;br /&gt;
./config/wmagent/manage start-services    # Creates empty databases for all three activated components&lt;br /&gt;
./config/wmagent/manage init-agent        # Creates the tables for all three activated components&lt;br /&gt;
&lt;br /&gt;
./config/wmagent/manage start-agent&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*Before running this I&amp;#039;ve set up the environment by doing&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export SCRAM_ARCH=slc5_amd64_gcc434&lt;br /&gt;
source /afs/cern.ch/project/gd/apps/cms/cmsset_default.sh&lt;br /&gt;
scram list CMSSW (to see the releases available)&lt;br /&gt;
cmsrel CMSSW_4_1_5 (to create the project for this particular release)&lt;br /&gt;
cd CMSSW_4_1_5/src&lt;br /&gt;
cmsenv&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>