Project

General

Profile

MLCR Deployment » History » Version 19

Rogers, Chris, 06 June 2013 09:18

1 1 Rogers, Chris
h1. MLCR Deployment
2
3
There are three installations of MAUS in the MICE Local Control Room:
4
5
* The current version @.maus_release@ (bound to lp:maus)
6
* The previous version @.maus_release_old@ (bound to lp:maus)
7
* A development copy @.maus_control-room@ (bound to lp:~maus-mlcr/maus/control-room/)
8
9 2 Rogers, Chris
The current and previous version are updated by leapfrogging; at the moment only the control-room version is used for online reconstruction, the control room stuff was never merged into the trunk. Note that versions are in hidden folders (prefixed by '.'). To see them do <pre>ls -h</pre> There is a soft link that points to the "default" version (for use by shifters). This should usually point at the current version @.maus_release@.
10 1 Rogers, Chris
11 2 Rogers, Chris
h2. New version of main MAUS release
12
13 1 Rogers, Chris
To update to a new version:
14
15 15 Rogers, Chris
# Let MOM know what you are doing
16 3 Rogers, Chris
# First move the current MAUS install onto the fall back release
17 12 Rogers, Chris
## @mv .maus_release_old .maus_release_old_@
18
## @mv .maus_release .maus_release_old@
19
## Reconfigure the old install 
20
*** @cd .maus_release_old; ./configure; source env.sh@
21 13 Rogers, Chris
## Check it is okay
22
*** @bash tests/unit_tests.bash; bash tests/application_tests.bash@
23 3 Rogers, Chris
# Next get the current MAUS release copy (or a version as specified by MAUS experts)
24 4 Rogers, Chris
## Do @bzr checkout lp:maus .maus_release@ or @bzr checkout lp:maus -rMAUS-vx.y.z .maus_release@
25
## Build the code @cd .maus_release; ./install_build_test.bash@
26 6 Rogers, Chris
## Run the integration tests @bash tests/application_tests.bash >& test.log@
27
## Check that the online libraries are running okay @python python tests/integration/test_distributed_processing/_test_online_okay.py@
28 10 Rogers, Chris
## Run @tests/integration/test_analyze_data_online/test_analyze_data_online.py@. Bring up a browser and look at pretty plots.
29 6 Rogers, Chris
## Check that the integration tests passed; check that analyze_data_online and test_multi_vs_single_threaded tests did not skip.
30 19 Rogers, Chris
# Check for changes in power cycle procedure [[Onrec_power_cycle_procedure]] or "shifter instructions":http://micewww.pp.rl.ac.uk/documents/32
31
# Check the updated installation functions correctly by following the "shifter instructions":http://micewww.pp.rl.ac.uk/documents/32
32 9 Rogers, Chris
** A cosmics run is ideal
33 7 Rogers, Chris
# Remove the old old release @rm -rf .maus_release_old_@
34 18 Rogers, Chris
# Add a note in the ELog
35 7 Rogers, Chris
# Email MOGUL head and MOM to let them know that something changed
36 6 Rogers, Chris
37 4 Rogers, Chris
38 2 Rogers, Chris
39 5 Rogers, Chris
h2. New version of control room branch
40
41 1 Rogers, Chris
42 15 Rogers, Chris
To update the control room branch
43 1 Rogers, Chris
44 15 Rogers, Chris
# Let MOM know what you are doing.
45 1 Rogers, Chris
46
47 9 Rogers, Chris
48 16 Rogers, Chris
h2. -Apache server- (Not used)
49 1 Rogers, Chris
50
If you want to use the Apache web server, then:
51
52
* Configure the web server,
53
<pre>
54
cd /home/mice/MAUS.new/maus-apps
55
./configure
56
rm -rf media/thumbs/*
57
rm -rf media/raw/*
58
</pre>
59
* As super user, restart Apache,
60
<pre>
61
/usr/local/apache2/bin/apachectl restart
62
</pre>
63
* Check the logs,
64
<pre>
65
more /usr/local/apache2/logs/error_log 
66
</pre>
67
* You should see something like,
68
<pre>
69
[Mon Mar 12 12:41:16 2012] [notice] Apache/2.2.22 (Unix) mod_wsgi/3.3 
70
 Python/2.7.2 configured -- resuming normal operations
71
</pre>
72
* If you get a warning like,
73
<pre>
74
httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: 
75
Cannot load /usr/local/apache2/modules/mod_wsgi.so into server: libpython2.7.so.1.0: 
76
cannot open shared object file: No such file or directory
77
</pre>
78
** Then unset @MAUS_ROOT_DIR@ and try again:
79
<pre>
80
unset MAUS_ROOT_DIR
81
/usr/local/apache2/bin/apachectl restart
82
</pre>