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

fail to persist data with the recommanded setup #12

Open
maxlath opened this issue Nov 20, 2018 · 0 comments
Open

fail to persist data with the recommanded setup #12

maxlath opened this issue Nov 20, 2018 · 0 comments

Comments

@maxlath
Copy link

maxlath commented Nov 20, 2018

It looks like no data is saved to /data but instead everything is written in /var/lib/jetty/bigdata.jnl.

I tried to mount ./data/blazegraph:/var/lib/jetty instead but it fails as it turns /var/lib/jetty in an empty directory.

What did work was to mount the sole bigdata.jnl after having created it (to avoid letting docker create it as a directory) and set the file uid and gid to jetty user and group in the container, that is 100.

mkdir -p ./data/blazegraph
touch ./data/blazegraph/bigdata.jnl
sudo chown 100:100 ./data/blazegraph/bigdata.jnl

then --volume ./data/blazegraph/bigdata.jnl:/var/lib/jetty/bigdata.jnl successfully persist the data

maxlath added a commit to transition-bibliographique/poc-fne-wikibase-docker that referenced this issue Aug 23, 2019
Without this flag, the root user fails to access /wdqs/data/data.jnl: "Permission Denied"
in the following environment:
- CentOS 7.6
- Docker 1.13.1
- SELinux enabled

Clues on why we get this message:
- SELinux is enabled and might be messing with this container's file permissions
- there are known issues with mounting BlazeGraph data file: lyrasis/docker-blazegraph#12

Co-authored-by: Jums <jums@inventaire.io>
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

1 participant