Wiki source code of Update downloading and unpacking but not installing when using the automated update mechinism
Last modified by michaely on 2021/09/10 22:40
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | ====== On this page ====== | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | {{toc maxLevel="5"/}} | ||
| 6 | |||
| 7 | == Symptoms == | ||
| 8 | |||
| 9 | When using the automated update mechanism, in the Administrator, the process completes and iSymphony restarts but the version is the same as before. | ||
| 10 | |||
| 11 | == Cause == | ||
| 12 | |||
| 13 | The install script for the update does not pick up on the JAVA_HOME environment variable so it defaults to "/usr/java/latest" but the JRE does not exist in that location. | ||
| 14 | |||
| 15 | == Resolution == | ||
| 16 | |||
| 17 | 1. ((( | ||
| 18 | Shutdown the iSymphony server process. | ||
| 19 | |||
| 20 | {{code language="bash"}} | ||
| 21 | /opt/isymphony/server/shutdown.sh | ||
| 22 | {{/code}} | ||
| 23 | ))) | ||
| 24 | 1. ((( | ||
| 25 | Run the following command and take note of the JAVA_HOME path value | ||
| 26 | |||
| 27 | {{code language="bash"}} | ||
| 28 | cat /opt/isymphony/server/config-vars.sh | ||
| 29 | {{/code}} | ||
| 30 | ))) | ||
| 31 | 1. ((( | ||
| 32 | Open the following file in your favorite editor | ||
| 33 | |||
| 34 | {{code}} | ||
| 35 | /opt/isymphony/server/update/server/install.sh | ||
| 36 | {{/code}} | ||
| 37 | ))) | ||
| 38 | 1. ((( | ||
| 39 | Locate the following section in the file | ||
| 40 | |||
| 41 | {{code language="bash"}} | ||
| 42 | if [ x${JAVA_INSTALL_PATH} = "x" ]; then | ||
| 43 | JAVA_HOME="/usr/java/latest" | ||
| 44 | else | ||
| 45 | JAVA_HOME=${JAVA_INSTALL_PATH} | ||
| 46 | fi | ||
| 47 | {{/code}} | ||
| 48 | ))) | ||
| 49 | 1. ((( | ||
| 50 | Modify the section to look like the following where **<JRE PATH>** is the path found in step 2. | ||
| 51 | |||
| 52 | {{code language="bash"}} | ||
| 53 | if [ x${JAVA_INSTALL_PATH} = "x" ]; then | ||
| 54 | JAVA_HOME="<JRE PATH>" | ||
| 55 | else | ||
| 56 | JAVA_HOME=${JAVA_INSTALL_PATH} | ||
| 57 | fi | ||
| 58 | {{/code}} | ||
| 59 | ))) | ||
| 60 | 1. ((( | ||
| 61 | Save the file an run the following command | ||
| 62 | |||
| 63 | {{code language="bash"}} | ||
| 64 | chmod +x /opt/isymphony/server/update/server/install.sh | ||
| 65 | {{/code}} | ||
| 66 | ))) | ||
| 67 | 1. ((( | ||
| 68 | Next run the install | ||
| 69 | |||
| 70 | {{code language="bash"}} | ||
| 71 | /opt/isymphony/server/update/server/install.sh | ||
| 72 | {{/code}} | ||
| 73 | ))) | ||
| 74 | 1. ((( | ||
| 75 | Restart the server | ||
| 76 | |||
| 77 | {{code language="bash"}} | ||
| 78 | /opt/isymphony/server/shutdown.sh | ||
| 79 | {{/code}} | ||
| 80 | ))) | ||
| 81 | |||
| 82 | (% style="color: rgb(0,0,0);font-size: 20.0px;line-height: 1.5;" %)Related Content | ||
| 83 | |||
| 84 | {{expand title="Expand to see related content"}} | ||
| 85 | {{unmigrated-inline-wiki-markup}} | ||
| 86 | {dynamiccontentbylabel:showLabels=false|showSpace=false} | ||
| 87 | {{/unmigrated-inline-wiki-markup}} | ||
| 88 | {{/expand}} |