Hi Most likely the problem is in docker overlays - I guess that if you spawn multiple containers, the locking happens at overlay level, thus is not shared among containers. I don't think there is a way to fix this.
On Wed, 2017-12-06 at 17:00 +0100, Loic Dachary wrote: > $ sudo docker-compose run --rm weblate list_versions > Starting weblate_cache_1 ... > Starting weblate_database_1 ... done > Postgres is up > * Weblate 2.17.1 > * Python 2.7.13 > * Django 1.11.6 > * six 1.10.0 > * social-auth-core 1.4.0 > * social-auth-app-django 1.2.0 > * django-appconf 1.0.2 > * Translate Toolkit 2.2.5 > * Whoosh 2.7.4 > * defusedxml 0.5.0 > * Git 2.11.0 > * Pillow (PIL) 1.1.7 > * dateutil 2.5.3 > * lxml 3.7.1 > * django-crispy-forms 1.6.1 > * compressor 2.2 > * djangorestframework 3.7.0 > * pytz 2017.2 > * pyuca N/A > * pyLibravatar N/A > * PyYAML 3.12 > * tesserocr 2.2.2 > * Mercurial 4.0 > * git-svn 2.11.0 > * Database backends: django.db.backends.postgresql_psycopg2 > > On the docker host: > /dev/sda1 on / type ext4 (rw,relatime,discard,errors=remount- > ro,data=ordered) > > In the docker container: > > overlay on / type overlay > (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/XXBUQCTPI434FQ7NHOOW > 262E3E:/var/lib/docker/overlay2/l/HH4QSL3HULJEMAMWBYWHUYGUCR:/var/lib > /docker/overlay2/l/3ZOW2NZ5SSKABTRZYS5VNNKW6T:/var/lib/docker/overlay > 2/l/DE5BW7ALQ65LKXM5AUOVRTZCCW:/var/lib/docker/overlay2/l/5EDGM7MRJAP > TWVPDHO4RM4G3E5:/var/lib/docker/overlay2/l/XOMCOS7SLIMJTSCUGTXFFDZN7S > :/var/lib/docker/overlay2/l/ROTAM3JVIVC2WBBPV4CBFJMVSE:/var/lib/docke > r/overlay2/l/YQNI454NREZCRWYEROJK6ZWOHQ:/var/lib/docker/overlay2/l/QW > YXCP3JNIXXWIDTW4KF5K4OFT:/var/lib/docker/overlay2/l/TGKF4SSIKGLLSIAY4 > APZNHPCIC:/var/lib/docker/overlay2/l/7SP2AFB4JQGURE3DIK5XRD2GLV:/var/ > lib/docker/overlay2/l/36LYMVRZMFRG3YOGL4NHPRZ2CI:/var/lib/docker/over > lay2/l/ZFPZ6FUUQBAQGI3FP75KQ4HZ3Z,upperdir=/var/lib/docker/overlay2/f > 3b2665525b7d5d3acd40c5d6627fd4956b87ec9bb0cd9b08cd211f658fec87e/diff, > workdir=/var/lib/docker/overlay2/f3b2665525b7d5d3acd40c5d6627fd4956b8 > 7ec9bb0cd9b08cd211f658fec87e/work) > > On 12/06/2017 04:44 PM, Michal Čihař wrote: > > Hi > > > > On Sat, 2017-12-02 at 10:22 +0100, Loic Dachary wrote: > > [...] > > > File "/usr/local/lib/python2.7/dist- > > > packages/whoosh/filedb/compound.py" in save_as_files > > > 297. for name, blocks in self._readback(): > > > > > > File "/usr/local/lib/python2.7/dist- > > > packages/whoosh/filedb/compound.py" in _readback > > > 279. self._tempstorage.delete_file(self._tempname) > > > > > > File "/usr/local/lib/python2.7/dist- > > > packages/whoosh/filedb/filestore.py" in delete_file > > > 544. os.remove(self._fpath(name)) > > > > > > Exception Type: OSError at /update/securedrop/securedrop/ > > > Exception Value: [Errno 2] No such file or directory: > > > '/app/data/whoosh/source.tmp/sym43el2gyeazkq9axmw31u352k0.ctmp' > > > > This seems like some locking issue in Whoosh fulltext index > > updates. > > What Whoosh version do you use and what filesystem is this? > > > > > > > > _______________________________________________ > > Weblate mailing list > > [email protected] > > https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate > > > > -- Michal Čihař | https://cihar.com/ | https://weblate.org/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Weblate mailing list [email protected] https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate
