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

building may fail due to bad /var/tmp/yokozuna permissions [JIRA: RIAK-2804] #691

Open
bsoudan opened this issue Oct 6, 2016 · 1 comment

Comments

@bsoudan
Copy link

bsoudan commented Oct 6, 2016

When building yokozuna on a shared machine by multiple users, the build may fail with the following error:

cp: cannot create regular file `/var/tmp/yokozuna/solr-4.7.0-yz-1.tgz': Permission denied

This happens because the tools/grab-solr.sh script creates /var/tmp/yokozuna to cache a copy of the solr tarball, but creates /var/tmp/yokozuna using the umask for the current user, which (typically) prevents other users from writing to the cache directory. If a different user tries to build and the grab-solr.sh script needs to write a tarball to the directory because their build needs a different version of solr, the build will fail with an error similar to the above.

Temporary workaround:

$ chmod 1777 /var/tmp/yokozuna

Permanent fix is ensure grab-solr.sh creates the directory with mode 1777.

@Basho-JIRA Basho-JIRA changed the title building may fail due to bad /var/tmp/yokozuna permissions building may fail due to bad /var/tmp/yokozuna permissions [JIRA: RIAK-2804] Oct 6, 2016
@bsoudan
Copy link
Author

bsoudan commented Oct 6, 2016

See PR #692

bsparrow435 added a commit that referenced this issue Oct 6, 2016
fix issue #691: building may fail due to bad /var/tmp/yokozuna permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants