Hi all,
This might be more of a docker question than a WebODM question.
We had an unplanned reboot (power went out), and I can’t get my WebODM DB container working. It seems to have a lockfile permission issue after the server came back up. We’ve got about a year and a half worth of data in the DB container, so resetting it is not an option. The log looks like this:
PostgreSQL Database directory appears to contain a database; Skipping initialization
FATAL: could not create lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
Part of the “LowerDir” is where you can find the actual filesystem the container is using. This one was it for me: /mounts/hamilton/docker-storage/overlay2/ac2770db082b11eadd1da97bf26edcb23fcb1285d33e5b5bdf787f44c835e771/diff
I have no idea if there is an order, or reasoning for the list of paths in Graphdriver/Data/LowerDir, but this one did it. Inside is a regular linux filesystem, including the /tmp folder, which I used chmod -R 777 tmp to make sure it would have permission to write its lock file. Container started up perfectly after this.