Project

General

Profile

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

Anchi Cheng, 06/03/2010 01:08 PM

1 1 Anchi Cheng
h1. How to Update from v16 (Linux)
2 2 Anchi Cheng
3 19 Anchi Cheng
The changes from v1.6 requires update of all in-house components of Leginon, dbemtools (called myamiweb in the new version) and database
4 1 Anchi Cheng
but not the mrctools. 
5 19 Anchi Cheng
6
*Your processing package upgrade will also install Appion's processing scripts and executables.  They have more supporting package requirement.  Therefore, if you do not plan to use Appion on this computer, you may skip it.*
7
8 2 Anchi Cheng
Don't forget that you need to also update the packages on the microscope-controlling computer
9
since the pyScope update need to be synchronized.
10
11
See [[Installation Troubleshooting]] and  "Leginon Bulletin Board":http://emg.nysbc.org/bb/viewforum.php?f=2  searching
12
for "install" if you run into problems.
13
14 1 Anchi Cheng
h2. Packages required from NRAMM
15 2 Anchi Cheng
16 19 Anchi Cheng
All Leginon (and Appion) packages distributed from NRAMM are now under one svn control called myami.
17 2 Anchi Cheng
18
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.
19
Here are the packages you need to install with python installer
20
21
|_.SVN subPackage Name|_.Reason for update:|
22
|numextension|package import method change|
23
|libcv|package import method change|
24
|leginon|new features|
25
|pyami|new features|
26
|sinedon|required for updating database|
27
|pyscope|new method for creating pythoncom modules|
28
|imageviewer|debug|
29
30 14 Anchi Cheng
{{include(appion:Download_Appion_Files_Shared)}}
31 13 Anchi Cheng
32 1 Anchi Cheng
h2. Perform system check if you can't remember where you have installed your Leginon before.
33
34 15 Anchi Cheng
<pre>cd /your_download_area/myami/leginon
35 11 Anchi Cheng
python syscheck.py</pre>
36
37 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".
38
39 18 Anchi Cheng
h2. Move your existing python processing packages to a backup directory:
40 11 Anchi Cheng
41 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.
42
43
For example, your Leginon folder is at /usr/lib/python/site-packages/Leginon
44
45 10 Anchi Cheng
<pre>cd /usr/lib/python/site-packages
46 2 Anchi Cheng
mkdir Leginon1_6_backup
47
mv Leginon Leginon1_6_backup</pre>
48 10 Anchi Cheng
49
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
50 1 Anchi Cheng
51 10 Anchi Cheng
52 17 Anchi Cheng
{{include(appion:Install Appion Packages Shared)}}
53 2 Anchi Cheng
54
h2. Copy your Leginon1.6 sinedon.cfg to the new installation
55
56
* Find your sinedon.cfg. Depending on your previous setting, look in the directories listed here in order:
57
*your home directory as described in syscheck.py
58
*The sinedon directory where it is called from. If unsure, start python command line and type these to find out:
59
<pre>python> import sinedon
60
python> sinedon</pre>
61
62
*  If sinedon.cfg reside in the installed sinedon subpackage, you should copy it from your Leginon1,6 backup to the new installation.
63
<pre>cd /your_default_python_installation_path
64
cp Leginon_1_6_backup/sinedon/sinedon.cfg sinedon
65
</pre>
66
67
h2. Back up all your databases
68
69
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
70
71
* mysqldump -u usr_object your_leginon_database > leginondb_1_6_backup_today's_date
72
* mysqldump -u usr_object your_project_database > projectdb_1_2_backup_today's_date
73
* .... do the same to any of your processing databases if you have installed and used Appion 1.0
74
75
h2. Install updated Web viewers and tools
76
77 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.
78 2 Anchi Cheng
79
h2. Run database update scripts
80
81 15 Anchi Cheng
<pre>cd /your_download_area/myami/dbschema
82 3 Anchi Cheng
python schema-r12857.py
83 1 Anchi Cheng
python schema-r13713.py
84 8 Anchi Cheng
python schema-r14077.py
85 3 Anchi Cheng
</pre>
86
87
The first one update UserData and GroupData so that new data viewing and processing privileges can be enforced
88 4 Anchi Cheng
The second is a wide-scale change on database schema many on appion processing databases, and some on projectdata and leginondata.
89 5 Anchi Cheng
90
______
91
92 6 Anchi Cheng
[[How_to_Update_from_v16_(Microscope_Windows_Computer)|How to Update from v1.6 (Microscope Windows Computer) >]]
93 5 Anchi Cheng
94
95
______