-
Notifications
You must be signed in to change notification settings - Fork 89
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
File locking error on externally bound volume #41
Comments
I can confirm that this continues to happen on The correct fix (installing This issue will continue to catch people, however, until For others caught by this, try initContainers:
- name: cleanup-tdb-locks
image: stain/jena
command:
- /bin/bash
- -c
- rm -rf /fuseki/system/tdb.lock
volumeMounts:
- name: fuseki-data # match your persistent volume name
mountPath: /fuseki |
I'd vote for updating the :latest image to include the mentioned fix. |
I can confirm that I hit the same issue with |
I am using a bound volume on the Docker host to externalize the state of the TDB2 database, so I can destroy the jena-fuseki container, and recreate it, but still use the original datasets/models. Sometimes I encountered an intermittent problem with a TDBException on successive restarts. It said that the current server PID was not the same as the PID that locked the database, and so the server stopped. I think this is a safety feature build into TDB2 to stop multi-process updates.
Just above the fatal exception there was a warning, that it could not execute the "PS" command, and this appear to be associated with the lock checking process. I tried issuing the PS command from inside the container's BASH shell, but it did not recognize it.
I added a fix to the Dockerfile so that the "procps" package was installed:
change:
bash curl ca-certificates findutils coreutils pwgen \
to:
bash curl ca-certificates findutils coreutils pwgen procps \
and this appeared to fix the problem, but I need to do more testing.
The text was updated successfully, but these errors were encountered: