dls-controls / dev-c7

A container for running the DLS Controls RHEL7 developer environment on a RHEL8 workstation
Apache License 2.0
0 stars 2 forks source link

Still getting "error acquiring lock" #51

Open aawdls opened 2 years ago

aawdls commented 2 years ago

I'm using graphroot at /scratch/fedid/podman and overlay filesystem. I thought the overlay was supposed to fix the below errors, but I still have them:

ERRO[0001] Refreshing container c3aec97f7c02f9157f8de0cb494647969fd551408d80b3e48d5ba9d11b48584c: error acquiring lock 0 for container c3aec97f7c02f9157f8de0cb494647969fd551408d80b3e48d5ba9d11b48584c: file exists 
restarting stopped dev-c7 container latest ...
dev-c7

Do I have the wrong idea?

gilesknap commented 2 years ago

Andy,

please can you try adding the latest changes described in here to your storage.conf file

https://dls-controls.github.io/dev-c7/main/how-to/podman.html#update-settings

particularly 

mount_program = "/bin/fuse-overlayfs"

If that does not work come and chat to me

aawdls commented 2 years ago

First ran with run-devc7.sh -d to delete the old copy of the container.

We don't know what the problem is but below looks like it fixed it

diff --git a/libpod.conf b/libpod.conf
index cd19506..c96b0e0 100644
--- a/libpod.conf
+++ b/libpod.conf
@@ -22,4 +22,5 @@ EventsLogFilePath = ""
 detach_keys = "ctrl-p,ctrl-q"

 [runtimes]
-  runc = ["/usr/bin/runc", "/usr/sbin/runc", "/usr/local/bin/runc", "/usr/local
/sbin/runc", "/sbin/runc", "/bin/runc", "/usr/lib/cri-o-runc/sbin/runc"]
+  crun = ["/usr/bin/crun", "/usr/sbin/crun", "/usr/local/bin/crun", "/usr/local/sbin/crun", "/sbin/crun", "/bin/crun", "/usr/lib/cri-o-runc/sbin/crun"]