How to Update from v35 (Linux) » History » Version 2
Anchi Cheng, 10/26/2022 12:53 PM
1 | 1 | Anchi Cheng | h1. How to Update from v35 (Linux) |
---|---|---|---|
2 | |||
3 | h1. Upgrade processing server |
||
4 | |||
5 | 2 | Anchi Cheng | h2. Install PyMySQL that replaces the usage of mysql-python |
6 | |||
7 | PyMySQL: |
||
8 | <pre> |
||
9 | pip install PyMySQL==0.10.1 |
||
10 | </pre> |
||
11 | |||
12 | 1 | Anchi Cheng | h2. Download myami-3.6 source code |
13 | |||
14 | <pre> |
||
15 | git clone -b myami-3.6 http://emg.nysbc.org/git/myami myami-3.6 |
||
16 | </pre> |
||
17 | |||
18 | h2. Install Appion/Leginon Packages |
||
19 | |||
20 | h3. Install all the myami python packages _except appion_ using the following script: |
||
21 | |||
22 | <pre> |
||
23 | cd /your_download_area |
||
24 | cd myami-3.6 |
||
25 | sudo ./pysetup.sh install |
||
26 | </pre> |
||
27 | |||
28 | That will install each package, and report any failures. To determine the cause of failure, see the generated log file "pysetup.log". If necessary, you can enter a specific package directory and run the python setup command manually. For example, if sinedon failed to install, you can try again like this: |
||
29 | |||
30 | <pre> |
||
31 | cd sinedon |
||
32 | sudo python setup.py install |
||
33 | </pre> |
||
34 | |||
35 | h3. Move leginon.cfg/instruments.cfg/sinedon.cfg/dmsem.cfg if it was saved with the old installation. In general, the installation would have put it in /etc/myami. Therefore, you do not have to do anything. |
||
36 | |||
37 | Run this script to find out where it was: |
||
38 | <pre> |
||
39 | cd /your_download_area/myami/leginon/ |
||
40 | ./configcheck.py |
||
41 | </pre> |
||
42 | If the script can not find leginon.cfg, and you found a copy of leginon.cfg in $PYTHONSITEPKG/leginon/config from the last installation, move that leginon.cfg to $PYTHONSITEPKG/leginon. |
||
43 | |||
44 | {{include(Appion:Run Database Update Script)}} |
||
45 | * Changes should be minimal. |
||
46 | |||
47 | h1. Upgrade web server |
||
48 | |||
49 | Rename your current myamiweb at the document root of the web server to something else as a backup. |
||
50 | |||
51 | h2. (optional) install the 3.6 version of pyami as it is done on processing server and restart redux server (The changes in pyami do not affect web server) |
||
52 | |||
53 | h2. Install updated Web viewers and tools |
||
54 | |||
55 | See [[Install the Web Interface]] section in Complete Installation Chapter to put the new myamiweb tools to document root for the web server. There is no need to run WebToolSetupWizard, however. See below. |
||
56 | |||
57 | h2. Copy config.php from your older myamiweb backup to the new myamiweb. |
||
58 | |||
59 | h2. Import new versions of Leginon Applications |
||
60 | |||
61 | Old version of MSI Leginon applications will still run but without new feature. Use the Web administrator tool to import new version as shown in [[Steps_involved_in_the_installation]] Step for "Import Applications". |
||
62 | |||
63 | |||
64 | ______ |
||
65 | |||
66 | [[How_to_Update_from_v35_(Instrument_Windows_Computer)| How to Update from v3.5 (Instrument Computer) >]] |