|
18 | 18 | - [In-House Database Configuration](#in-house-database-configuration) |
19 | 19 | - [CSD-Theory Web Database Configuration](#csd-theory-web-database-configuration) |
20 | 20 | - [Other Customisations](#other-customisations) |
| 21 | +- [Changing license Keys](#changing-license-keys) |
21 | 22 | - [Updates](#updates) |
| 23 | + - [Installer](#installer) |
| 24 | + - [Manual Updates](#manual-updates) |
| 25 | +- [Known Issues](#known-issues) |
| 26 | + - [Restart the message queue](#restart-the-message-queue) |
22 | 27 | - [Contacting Support](#contacting-support) |
23 | 28 |
|
24 | 29 | ## Introduction |
@@ -84,7 +89,24 @@ sudo apt-get install libnss3 libxss1 libopengl0 libgfortran5 libxkbcommon-x11-0 |
84 | 89 | - A valid CCDC activation key (a 36-character key in the format ######-######-######-######-######-######) |
85 | 90 | will be required to use the software. |
86 | 91 | - Connecting to your WebCSD server via https is now required. To configure this you will need a password-protected .pfx |
87 | | - certificate. Ask your local IT staff to set this up for you. |
| 92 | + certificate. |
| 93 | + |
| 94 | +```sh |
| 95 | +# To generate a self-signed certificate |
| 96 | + |
| 97 | +# Generate private key (OpenSSL will prompt for a password) |
| 98 | +openssl genrsa -out private.key 2048 |
| 99 | + |
| 100 | +# Generate certificate signing request (CSR) |
| 101 | +openssl req -new -key private.key -out request.csr |
| 102 | + |
| 103 | +# Generate self-signed certificate (valid for 365 days) |
| 104 | +openssl x509 -req -days 365 -in request.csr -signkey private.key -out certificate.crt |
| 105 | + |
| 106 | +# Bundle into .pfx |
| 107 | +openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certificate.crt |
| 108 | +``` |
| 109 | + |
88 | 110 | - On-Site WebCSD is installed via Docker, which requires access to the CCDC docker container registry. |
89 | 111 | To obtain a username and password please contact CCDC Support. |
90 | 112 |
|
@@ -132,13 +154,12 @@ sudo groupadd docker |
132 | 154 | sudo usermod -aG docker ccdc |
133 | 155 | ``` |
134 | 156 |
|
135 | | -**The installer must be run from the `ccdc` account so that all file permissions are |
136 | | -set up correctly.** |
| 157 | +**All installation methods (manual/installer) must be run from the `ccdc` account so that all file permissions are set up correctly.** |
137 | 158 |
|
138 | 159 | ```sh |
139 | | -# You will also need to ensure the user "ccdc" has read access to any in-house or CSP databases. |
140 | | -# E.g. if these are in the csd-data directory: |
141 | | -sudo chown -R ccdc:ccdc csd-data/ |
| 160 | +# For updating to 4.3.0, "ccdc" needs read access to the necessary docker volumes. |
| 161 | +sudo chown -R ccdc:ccdc lic |
| 162 | +sudo chown -R ccdc:ccdc userdata |
142 | 163 | ``` |
143 | 164 |
|
144 | 165 | ## Basic Configuration And Installation |
@@ -166,7 +187,7 @@ to run either via a GUI or command-line interface. |
166 | 187 | alt="A screenshot of the On-Site WebCSD installer" style="width:4.70in;height:4.33in" /> |
167 | 188 |
|
168 | 189 | 4. At the next stage, the configuration details required for setting up the server are required. This |
169 | | - includes the location of the .pfx file and the associated password, the CCDC licence key and the public URI |
| 190 | + includes the location of the .pfx file and the associated password, the CCDC license key and the public URI |
170 | 191 | for the server. |
171 | 192 |
|
172 | 193 | - If no .pfx file is provided a built-in self-signed certificate will be used. This is not recommended as |
@@ -286,14 +307,51 @@ along with a blank `CSPDatabase.db` CSD-Theory metadata database. |
286 | 307 |
|
287 | 308 | For other optional customisations to your WebCSD server please see [WebCSD Configuration and Customisation](https://github.com/ccdc-opensource/on-site-webcsd/wiki/WebCSD-Configuration-&-Customisation). |
288 | 309 |
|
| 310 | +## Changing license Keys |
| 311 | + |
| 312 | +To change your license key you must delete the license volume and restart the stack: |
| 313 | + |
| 314 | +```sh |
| 315 | +# Append -f docker-compose.insecure-configuration.yml and docker-compose.postgres.yml if needed. |
| 316 | +docker compose -f docker-compose.yml -f docker-compose.ssl.yml down |
| 317 | +rm -r lic |
| 318 | +docker compose -f docker-compose.yml -f docker-compose.ssl.yml up -d |
| 319 | +``` |
| 320 | + |
289 | 321 | ## Updates |
290 | 322 |
|
| 323 | +### Installer |
| 324 | + |
291 | 325 | To update your installation, re-run the maintenance tool and select the same installation folder. |
292 | 326 | Click Ok when a warning message pops up. |
293 | 327 | This will automatically pull the latest versions of all containers and restart the stack. |
294 | 328 |
|
295 | | -If a new database dump file is required the installer will let you know. Please contact |
296 | | -CCDC Support for the latest download link. |
| 329 | +For major releases a new database dump file is shipped. The installer will prompt for the location. It will then overwrite the csd database volume with the update, please export any in-house databases beforehand. Once the update has completed they will need to be reimported within lattice -> database management. |
| 330 | + |
| 331 | +Contact CCDC Support for the latest download link. |
| 332 | + |
| 333 | +### Manual Updates |
| 334 | + |
| 335 | +For major releases export any in-house databases, recreate the csd-database and [restore](https://github.com/ccdc-opensource/on-site-webcsd/wiki/Setting-up-a-self%E2%80%90hosted-PostgreSQL-server#restore-database) it with a new database dump provided by Support. |
| 336 | + |
| 337 | +```sh |
| 338 | +# Append -f docker-compose.insecure-configuration.yml and docker-compose.postgres.yml if needed. |
| 339 | +docker compose -f docker-compose.yml -f docker-compose.ssl.yml down |
| 340 | +docker compose pull |
| 341 | +docker compose -f docker-compose.yml -f docker-compose.ssl.yml up -d |
| 342 | +``` |
| 343 | + |
| 344 | +Now from lattice -> database management, reimport your in-house databases. |
| 345 | + |
| 346 | +## Known Issues |
| 347 | + |
| 348 | +### Restart the message queue |
| 349 | + |
| 350 | +With 4.3.0 rabbitmq needs to be rerun. If you are installing manually please run the following: |
| 351 | + |
| 352 | +```sh |
| 353 | +docker compose -f docker-compose.yml up -d |
| 354 | +``` |
297 | 355 |
|
298 | 356 | ## Contacting Support |
299 | 357 |
|
|
0 commit comments