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

Move .stxxl file into index directory #246

Merged
merged 2 commits into from May 9, 2019

Conversation

lehmann-4178656ch
Copy link
Member

When the .stxxl file is generated where the binaries are stored some docker setups (related to --user/userns) can result in the following error:

IndexBuilderMain, version Apr 25 2019 10:35:41

Set locale LC_CTYPE to: C.UTF-8
Thu May  9 09:45:38.627	- DEBUG: Configuring STXXL...
terminate called after throwing an instance of 'std::runtime_error'
  what():  ! ERROR opening file ".stxxl" with mode "w" (Permission denied)

This pullrequest changes the location of the .stxxl file to reside in the index directory next to the disk file so write permissions there hopefully suffices to run the respective binaries.

@niklas88
Copy link
Member

niklas88 commented May 9, 2019

Sadly STXXL is hard coded to search in the current directory and ~ see here. This means that this change results in the defaults being used and not the index/.stxxl file

@niklas88 niklas88 closed this May 9, 2019
@niklas88 niklas88 reopened this May 9, 2019
@lehmann-4178656ch
Copy link
Member Author

Now the correct path (and config) /app/e2e_data/scientists-index-stxxl.disk is used instead of the default stxxl config /var/tmp/foxxll

Copy link
Member

@niklas88 niklas88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@niklas88 niklas88 merged commit 07187c6 into ad-freiburg:master May 9, 2019
@lehmann-4178656ch lehmann-4178656ch deleted the indexpath-for-stxxl branch May 9, 2019 14:02
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

Successfully merging this pull request may close these issues.

None yet

2 participants