dell / patches

Apache License 2.0
3 stars 2 forks source link

Patches does not correctly recover from a hard server failure #2

Closed grantcurell closed 11 months ago

grantcurell commented 1 year ago

It appears after a hard server failure Patches did not recover correctly.

image

The containers appear to be absent:

image

Moreover, during a rerun of the setup to recover psql appears to have failed:

image

Unix Stack Exchange

https://unix.stackexchange.com/users/240147/grant-curell

grantcurell commented 1 year ago

This seems to be some problem with podman. After this reboot doing a build fails:

podman build \
      --tag dell/patches-base:latest \
      --squash-all \
      -f ${SCRIPT_DIR}/Dockerfile.patches_base \
      ${TOP_DIR}
STEP 1/15: FROM node:lts-hydrogen
STEP 2/15: ENV NODE_OPTIONS=--openssl-legacy-provider
STEP 3/15: WORKDIR /home/node/app
Error: building at STEP "WORKDIR /home/node/app": copier: mkdir: error checking directory "/home/node/app": mkdir /home/node/app: permission denied

The problem was that the ownership permissions of ~/.local/share/containers was corrupted. sudo chown -R grant: ~/.local/share/containers/ resolves but I'm not sure why it changed to begin with.