Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still getting "error acquiring lock" #51

Open
aawdls opened this issue Aug 10, 2022 · 2 comments
Open

Still getting "error acquiring lock" #51

aawdls opened this issue Aug 10, 2022 · 2 comments

Comments

@aawdls
Copy link
Contributor

aawdls commented Aug 10, 2022

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
Copy link
Contributor

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
Copy link
Contributor Author

aawdls commented Aug 11, 2022

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants