Wiki source code of Updating XWiki
Last modified by Ricardo Julio Rodríguez Fernández on 2026/11/14 18:58
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{plantuml server="http://www.plantuml.com/plantuml"}} | ||
| 2 | @startuml | ||
| 3 | title XWiki Upgrade Procedure (WAR Deployment Model) | ||
| 4 | |||
| 5 | start | ||
| 6 | |||
| 7 | :Check current XWiki version; | ||
| 8 | :Verify Tomcat is healthy; | ||
| 9 | :Check disk and memory; | ||
| 10 | |||
| 11 | :Create MariaDB backup; | ||
| 12 | :Verify SQL dump exists; | ||
| 13 | |||
| 14 | :Create configuration backup; | ||
| 15 | note right | ||
| 16 | Backup: | ||
| 17 | - /etc/xwiki | ||
| 18 | - /usr/lib/xwiki/WEB-INF | ||
| 19 | end note | ||
| 20 | |||
| 21 | :Download new XWiki WAR; | ||
| 22 | |||
| 23 | :Explode WAR into\n/usr/lib/xwiki-<NEW_VERSION>; | ||
| 24 | |||
| 25 | :Save vendor templates; | ||
| 26 | note right | ||
| 27 | Copy: | ||
| 28 | - hibernate.cfg.xml | ||
| 29 | - xwiki.cfg | ||
| 30 | - xwiki.properties | ||
| 31 | to a review directory | ||
| 32 | end note | ||
| 33 | |||
| 34 | :Compare vendor templates\nwith /etc/xwiki; | ||
| 35 | |||
| 36 | if (New settings introduced?) then (yes) | ||
| 37 | |||
| 38 | :Review changes; | ||
| 39 | :Merge useful settings\ninto /etc/xwiki; | ||
| 40 | |||
| 41 | else (no) | ||
| 42 | |||
| 43 | endif | ||
| 44 | |||
| 45 | :Recreate symlink architecture; | ||
| 46 | |||
| 47 | note right | ||
| 48 | WEB-INF -> | ||
| 49 | /etc/xwiki | ||
| 50 | |||
| 51 | hibernate.cfg.xml | ||
| 52 | xwiki.cfg | ||
| 53 | xwiki.properties | ||
| 54 | |||
| 55 | cache | ||
| 56 | fonts | ||
| 57 | observation | ||
| 58 | end note | ||
| 59 | |||
| 60 | :Verify symlinks; | ||
| 61 | |||
| 62 | if (All symlinks valid?) then (yes) | ||
| 63 | |||
| 64 | else (no) | ||
| 65 | |||
| 66 | :Fix symlinks; | ||
| 67 | stop | ||
| 68 | |||
| 69 | endif | ||
| 70 | |||
| 71 | :Stop Tomcat; | ||
| 72 | |||
| 73 | :Archive previous release; | ||
| 74 | |||
| 75 | :Activate new release; | ||
| 76 | |||
| 77 | :Start Tomcat; | ||
| 78 | |||
| 79 | :Monitor catalina.out; | ||
| 80 | |||
| 81 | if (Startup completed?) then (yes) | ||
| 82 | |||
| 83 | :Open portal.igfae.usc.es; | ||
| 84 | :Perform functional tests; | ||
| 85 | |||
| 86 | else (no) | ||
| 87 | |||
| 88 | :Rollback to previous release; | ||
| 89 | stop | ||
| 90 | |||
| 91 | endif | ||
| 92 | |||
| 93 | if (Functional tests OK?) then (yes) | ||
| 94 | |||
| 95 | :Keep previous release\nfor one cycle; | ||
| 96 | :Document merged config changes; | ||
| 97 | |||
| 98 | else (no) | ||
| 99 | |||
| 100 | :Rollback to previous release; | ||
| 101 | |||
| 102 | endif | ||
| 103 | |||
| 104 | stop | ||
| 105 | |||
| 106 | @enduml | ||
| 107 | {{/plantuml}} |