Project

General

Profile

How to Update from v16 (Linux) » History » Version 15

Anchi Cheng, 06/03/2010 12:51 PM

1 1 Anchi Cheng
h1. How to Update from v16 (Linux)
2 2 Anchi Cheng
3
The changes from v1.6 requires update of all in-house components of Leginon, dbemtools and database
4
but not the mrctools. 
5
Don't forget that you need to also update the packages on the microscope-controlling computer
6
since the pyScope update need to be synchronized.
7
8
See [[Installation Troubleshooting]] and  "Leginon Bulletin Board":http://emg.nysbc.org/bb/viewforum.php?f=2  searching
9
for "install" if you run into problems.
10
11
h2. Packages required from NRAMM
12
13 9 Anchi Cheng
All Leginon (and Appion) packages distributed from NRAMM are not under one svn control called myami.
14 2 Anchi Cheng
15
A few updates are needed for preparation of python 3.0 compatibility where the method for importing module is changed.  They will still run under python 2.4 and up.
16
Here are the packages you need to install with python installer
17
18
|_.SVN subPackage Name|_.Reason for update:|
19
|numextension|package import method change|
20
|libcv|package import method change|
21
|leginon|new features|
22
|pyami|new features|
23
|sinedon|required for updating database|
24
|pyscope|new method for creating pythoncom modules|
25
|imageviewer|debug|
26
27 14 Anchi Cheng
{{include(appion:Download_Appion_Files_Shared)}}
28 13 Anchi Cheng
29 1 Anchi Cheng
h2. Perform system check if you can't remember where you have installed your Leginon before.
30
31 15 Anchi Cheng
<pre>cd /your_download_area/myami/leginon
32 11 Anchi Cheng
python syscheck.py</pre>
33
34 12 Anchi Cheng
You should have all the supporting packages installed for v1.6. If you see any lines like "*** Failed...", then you have something missing. Otherwise, everything should result in "OK".
35
36 11 Anchi Cheng
{{include(appion:Install Appion Packages)}}
37
38
h2. Move your existing processing python packages to a backup directory:
39
40 2 Anchi Cheng
At the beginning of the syscheck.py output, the location of the exisiting Leginon folder is shown. Although new installation overwrite the old in most cases, problem has been observed in the past. Therefore, it is best to remove the old files from the path before new installation.  Better yet, copy into a backup folder because we need some configuration files from them.
41
42
For example, your Leginon folder is at /usr/lib/python/site-packages/Leginon
43
44 10 Anchi Cheng
<pre>cd /usr/lib/python/site-packages
45 2 Anchi Cheng
mkdir Leginon1_6_backup
46
mv Leginon Leginon1_6_backup</pre>
47 10 Anchi Cheng
48
Be aware that in some cases the installed package name is different (capitalized) from your svn package name and that numextension amd libCV are not in its own subdirectory in the python library but just the compiled .so files
49
50
51
{{include(appion:Install Appion Packages)}}
52 2 Anchi Cheng
53
h2. Copy your Leginon1.6 sinedon.cfg to the new installation
54
55
* Find your sinedon.cfg. Depending on your previous setting, look in the directories listed here in order:
56
*your home directory as described in syscheck.py
57
*The sinedon directory where it is called from. If unsure, start python command line and type these to find out:
58
<pre>python> import sinedon
59
python> sinedon</pre>
60
61
*  If sinedon.cfg reside in the installed sinedon subpackage, you should copy it from your Leginon1,6 backup to the new installation.
62
<pre>cd /your_default_python_installation_path
63
cp Leginon_1_6_backup/sinedon/sinedon.cfg sinedon
64
</pre>
65
66
h2. Back up all your databases
67
68
We will be doing a database update that is not backward compatible,  Make sure you back up all your current databases before performing the update
69
70
* mysqldump -u usr_object your_leginon_database > leginondb_1_6_backup_today's_date
71
* mysqldump -u usr_object your_project_database > projectdb_1_2_backup_today's_date
72
* .... do the same to any of your processing databases if you have installed and used Appion 1.0
73
74
h2. Install updated Web viewers and tools
75
76 4 Anchi Cheng
See [[Install the Web Interface]] section in Complete Installation Chapter to put the new web tools (Now under subpackage myamiweb) to document root for the web server.  The Setup Wizard will take you through the steps to create config.php and to create and initialize values for the new tables.
77 2 Anchi Cheng
78
h2. Run database update scripts
79
80 15 Anchi Cheng
<pre>cd /your_download_area/myami/dbschema
81 3 Anchi Cheng
python schema-r12857.py
82 1 Anchi Cheng
python schema-r13713.py
83 8 Anchi Cheng
python schema-r14077.py
84 3 Anchi Cheng
</pre>
85
86
The first one update UserData and GroupData so that new data viewing and processing privileges can be enforced
87 4 Anchi Cheng
The second is a wide-scale change on database schema many on appion processing databases, and some on projectdata and leginondata.
88 5 Anchi Cheng
89
______
90
91 6 Anchi Cheng
[[How_to_Update_from_v16_(Microscope_Windows_Computer)|How to Update from v1.6 (Microscope Windows Computer) >]]
92 5 Anchi Cheng
93
94
______