Uh oh!
There was an error while loading. Please reload this page.
use flock automatic lock for upgrade - #1757
Conversation
fixnextcloud#1756 Signed-off-by: Adam Monsen <haircut@gmail.com>
79e0f83 to
f77b628CompareThere was a problem hiding this comment.
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?
martadinata666
commented
May 25, 2022
on alpine flock is a dependent package https://pkgs.alpinelinux.org/packages?name=flock&branch=v3.14 |
skjnldsv
commented
May 25, 2022
|
meonkeys
commented
May 25, 2022
Is that the use case? I wasn't aware you could/would run more than one nextcloud container at a time. |
chilli230
commented
May 25, 2022
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 |
skjnldsv
commented
May 31, 2022
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 😉 |
rugk
commented
Jun 7, 2022
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