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

open: permission denied #190

Closed
shyiko opened this issue May 5, 2018 · 7 comments
Closed

open: permission denied #190

shyiko opened this issue May 5, 2018 · 7 comments

Comments

@shyiko
Copy link
Owner

shyiko commented May 5, 2018

travis-ci/travis-ci#9572 (comment)

@shyiko
Copy link
Owner Author

shyiko commented May 5, 2018

It appears there is more to the fix than a simple 393dc18 (not reproducible locally).

@shyiko
Copy link
Owner Author

shyiko commented May 5, 2018

(hopefully) Fixed in 0.9.6.

Verified using the same Travis CI configuration as in eed3si9n/sbt (wip/discover-java-home) (build succeeded 10 times out of 10).

@eed3si9n please let me know if you experience any problems. 🙇‍♂️

@shyiko shyiko closed this as completed May 5, 2018
eed3si9n added a commit to eed3si9n/sbt that referenced this issue May 5, 2018
eed3si9n added a commit to eed3si9n/sbt that referenced this issue May 5, 2018
Ref shyiko/jabba#190
Bumping to jabba 0.9.6 fixes sporaditc permission issues.
@shyiko shyiko reopened this May 5, 2018
@shyiko
Copy link
Owner Author

shyiko commented May 5, 2018

@shyiko
Copy link
Owner Author

shyiko commented May 6, 2018

@eed3si9n sorry for all the back and forth but do you think you could try

eed3si9n added a commit to eed3si9n/sbt that referenced this issue May 7, 2018
@eed3si9n
Copy link

eed3si9n commented May 7, 2018

The previous failures may be been related to my Travis CI cache.

I saw your message above, and added a new commit on sbt to use 0.10.0, and it failed on the first try:

1.94s$ curl -sL https://raw.githubusercontent.com/shyiko/jabba/0.10.0/install.sh | bash && . ~/.jabba/jabba.sh
Installing v0.10.0...
Adding source string to /home/travis/.bashrc
Adding source string to /home/travis/.bash_profile
Installation completed
(if you have any problems please report them at https://github.com/shyiko/jabba/issues)
13.10s$ /home/travis/.jabba/bin/jabba install [email protected]
Downloading [email protected] (https://download.java.net/java/GA/jdk10/10.0.1/fb4372174a714e6b8c52526dc134031e/10/openjdk-10.0.1_linux-x64_bin.tar.gz) 
204885801/204885801
Extracting /tmp/jabba-d-109463111 to /home/travis/.jabba/jdk/[email protected] 
open /home/travis/.jabba/jdk/[email protected]/legal/java.base/ADDITIONAL_LICENSE_INFO: permission denied 

But it came to me that I might be causing this problem by caching

cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt/boot
    - $HOME/.jabba

so I wiped out Travis CI cache, and it seemed to have worked:

14.16s$ /home/travis/.jabba/bin/jabba install [email protected]
Downloading [email protected] (https://download.java.net/java/GA/jdk10/10.0.1/fb4372174a714e6b8c52526dc134031e/10/openjdk-10.0.1_linux-x64_bin.tar.gz) 
204885801/204885801
Extracting /tmp/jabba-d-157287413 to /home/travis/.jabba/jdk/[email protected] 
[email protected] -> /home/travis/.jabba/jdk/[email protected] 

@shyiko
Copy link
Owner Author

shyiko commented May 7, 2018

Right... cache must have contained files without write permission (e.g. 0444) from jabba pre-0.9.5 (jabba 0.9.5+ makes sure write flag is set, but if the file (w/o write bit) already exists open(2) fails). This (along with incorrect install-check fixed in 0.10.1) explains everything.

Thank you for helping gunning these bugs down!
🙇‍♂️

@shyiko shyiko closed this as completed May 7, 2018
@eed3si9n
Copy link

eed3si9n commented May 7, 2018

Nice. Thanks for following up on all the loose ends.

eed3si9n added a commit to eed3si9n/sbt that referenced this issue May 30, 2018
Ref shyiko/jabba#190
Bumping to jabba 0.9.6 fixes sporaditc permission issues.
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

2 participants