When OpenCRVS servers crash, the /data directory unmounts. When the server is up again, you need to follow these steps to get everything working again
- Stop docker
sudo service docker stop - Verify disk is unmounted
ls /datashould show you no directories or files- If it's already mounted, you are good to start docker again. In some environments we have automatic decryption of the data partition on boot but be advised – this is not safe for production data.
- Mount it back
sudo /opt/opencrvs/infrastructure/cryptfs/mount.sh --mount /data --file /cryptfs_file_sparse.img -p <ENCRYPTION KEY> - Verify files are now in /data
- Start docker
sudo service docker start