Project

General

Profile

MLCR Deployment » History » Version 27

Rogers, Chris, 10 June 2013 09:45

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 21 Rogers, Chris
## Do @bzr checkout lp:maus .maus_release@
25 4 Rogers, Chris
## Build the code @cd .maus_release; ./install_build_test.bash@
26 24 Rogers, Chris
## Rebuild with added online library @bash third_party/bash/70daq.bash; scons -j8@
27 23 Rogers, Chris
## Run the integration tests @bash tests/application_tests.bash >& application_tests.log@
28
*** If there is a SKIPPED, this is bad - should not skip any tests
29 26 Rogers, Chris
*** If you are working through a terminal, there is a test which fails if you don't forward X11 connections (test_help.py)
30 6 Rogers, Chris
## Check that the online libraries are running okay @python python tests/integration/test_distributed_processing/_test_online_okay.py@
31 22 Rogers, Chris
## Run @tests/integration/test_analyze_data_online/test_analyze_data_online.py@. -Bring up a browser and look at pretty plots.-
32 6 Rogers, Chris
## Check that the integration tests passed; check that analyze_data_online and test_multi_vs_single_threaded tests did not skip.
33 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
34
# Check the updated installation functions correctly by following the "shifter instructions":http://micewww.pp.rl.ac.uk/documents/32
35 9 Rogers, Chris
** A cosmics run is ideal
36 7 Rogers, Chris
# Remove the old old release @rm -rf .maus_release_old_@
37 18 Rogers, Chris
# Add a note in the ELog
38 7 Rogers, Chris
# Email MOGUL head and MOM to let them know that something changed
39 6 Rogers, Chris
40 4 Rogers, Chris
41 2 Rogers, Chris
42 5 Rogers, Chris
h2. New version of control room branch
43
44 1 Rogers, Chris
45 15 Rogers, Chris
To update the control room branch
46 1 Rogers, Chris
47 20 Rogers, Chris
# Let MOM know what you are doing and MAUS online person.
48
# cd MAUS/.maus_control_room
49
# @bzr update@
50
# @./install_build_test.bash@
51
# Run whatever tests you want
52 1 Rogers, Chris
53
54 9 Rogers, Chris
55 16 Rogers, Chris
h2. -Apache server- (Not used)
56 1 Rogers, Chris
57
If you want to use the Apache web server, then:
58
59
* Configure the web server,
60
<pre>
61
cd /home/mice/MAUS.new/maus-apps
62
./configure
63
rm -rf media/thumbs/*
64
rm -rf media/raw/*
65
</pre>
66
* As super user, restart Apache,
67
<pre>
68
/usr/local/apache2/bin/apachectl restart
69
</pre>
70
* Check the logs,
71
<pre>
72
more /usr/local/apache2/logs/error_log 
73
</pre>
74
* You should see something like,
75
<pre>
76
[Mon Mar 12 12:41:16 2012] [notice] Apache/2.2.22 (Unix) mod_wsgi/3.3 
77
 Python/2.7.2 configured -- resuming normal operations
78
</pre>
79
* If you get a warning like,
80
<pre>
81
httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: 
82
Cannot load /usr/local/apache2/modules/mod_wsgi.so into server: libpython2.7.so.1.0: 
83
cannot open shared object file: No such file or directory
84
</pre>
85
** Then unset @MAUS_ROOT_DIR@ and try again:
86
<pre>
87
unset MAUS_ROOT_DIR
88
/usr/local/apache2/bin/apachectl restart
89
</pre>
90 27 Rogers, Chris
91
h2. Install from Scratch
92
93
h3. Install MongoDB
94
95
h3. Install RabbitMQ