-
Notifications
You must be signed in to change notification settings - Fork 1.9k
use flock automatic lock for upgrade #1757
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
Conversation
fix nextcloud#1756 Signed-off-by: Adam Monsen <haircut@gmail.com>
79e0f83 to
f77b628
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seems to work for me.
If I run two simultaneous containers sharing the same html volume, both of them initialize at the same time. Instead of one waiting for the other to finish.
Also, I'm totally unfamiliar with flock. Is it available for alpine too?
|
on alpine flock is a dependent package https://pkgs.alpinelinux.org/packages?name=flock&branch=v3.14 |
|
Is that the use case? I wasn't aware you could/would run more than one nextcloud container at a time. |
|
i have the same issue with migrate nextcloud:22-2.7 to 22.2.8-apache. I was delete the nextcloud-init-sync.lock file manualy, so it was work. On my Server running three Nextcloud instances parallel but with different volumes. |
|
@skjnldsv so I think this is the current state:
If number 2 is not a concern, flock would be a nice solution for auto-cleaning the lockfile. |
|
Or add aconfig flag to enable this feature |
Then this doesn't quite fit the use case 😸
Yeah,sharing the same DB and data/config, you can fire as much containers as you want and load-balance in front, it's very effective 😉 |
|
So what again was the problem with this pr and why did you decide for that opt-in solution in the other PR instead? |
@rugk I recall (based on the thread above):
Ideas: number 1: surely an easy fix, just add number 2: @remram44 says in #1903 that flock will work fine on NFS and samba. number 3 is irrelevant So that just leaves one problem I'm seeing now: I put Heck, let's fix this thing! Seems like there is some interest to improve it. |
fix #1756