Skip to content

Commit 6c6b564

Browse files
Merge pull request #93 from ccdc-opensource/update-4.3.0-docs
Update docs
2 parents 2a43ed7 + f36895b commit 6c6b564

1 file changed

Lines changed: 67 additions & 9 deletions

File tree

README.md

Lines changed: 67 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
- [In-House Database Configuration](#in-house-database-configuration)
1919
- [CSD-Theory Web Database Configuration](#csd-theory-web-database-configuration)
2020
- [Other Customisations](#other-customisations)
21+
- [Changing license Keys](#changing-license-keys)
2122
- [Updates](#updates)
23+
- [Installer](#installer)
24+
- [Manual Updates](#manual-updates)
25+
- [Known Issues](#known-issues)
26+
- [Restart the message queue](#restart-the-message-queue)
2227
- [Contacting Support](#contacting-support)
2328

2429
## Introduction
@@ -84,7 +89,24 @@ sudo apt-get install libnss3 libxss1 libopengl0 libgfortran5 libxkbcommon-x11-0
8489
- A valid CCDC activation key (a 36-character key in the format ######-######-######-######-######-######)
8590
will be required to use the software.
8691
- 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+
88110
- On-Site WebCSD is installed via Docker, which requires access to the CCDC docker container registry.
89111
To obtain a username and password please contact CCDC Support.
90112

@@ -132,13 +154,12 @@ sudo groupadd docker
132154
sudo usermod -aG docker ccdc
133155
```
134156

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.**
137158

138159
```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
142163
```
143164

144165
## Basic Configuration And Installation
@@ -166,7 +187,7 @@ to run either via a GUI or command-line interface.
166187
alt="A screenshot of the On-Site WebCSD installer" style="width:4.70in;height:4.33in" />
167188

168189
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
170191
for the server.
171192

172193
- 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.
286307

287308
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).
288309

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+
289321
## Updates
290322

323+
### Installer
324+
291325
To update your installation, re-run the maintenance tool and select the same installation folder.
292326
Click Ok when a warning message pops up.
293327
This will automatically pull the latest versions of all containers and restart the stack.
294328

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+
```
297355

298356
## Contacting Support
299357

0 commit comments

Comments
 (0)