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

jabba issues #48

Open
dimisjim opened this issue Nov 22, 2021 · 5 comments
Open

jabba issues #48

dimisjim opened this issue Nov 22, 2021 · 5 comments

Comments

@dimisjim
Copy link

dimisjim commented Nov 22, 2021

Hey,

I am getting the following 2 issues, related to jabba:

  • Error: exec: GET https://github.com/shyiko/jabba/raw/master/index.json returned 503
    
  • Error: exec: /root/bin/jabba: line 1: syntax error near unexpected token `newline'
    
  • exec: /root/bin/jabba: line 1: !DOCTYPE: No such file or directory
    
  •   Error: exec: Downloading adopt@1.8.0-292 (https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u292b10.tar.gz) 
      Extracting /tmp/jabba-d-744477946 to /root/.jabba/jdk/adopt@1.8.0-292 
      gzip: invalid header
    

These are transient issues that resolve themselves after a rerun, but it's still annoying to keep getting these unexpectedly, sporadically and periodically.

Could you look into it?

Thanks!

@dimisjim dimisjim changed the title Error: exec: GET https://github.com/shyiko/jabba/raw/master/index.json returned 503 jabba issues Nov 22, 2021
@SethTisue
Copy link
Contributor

SethTisue commented Nov 22, 2021

is setup-scala giving you something you specifically need that setup-java by itself doesn't provide? if not, consider just using setup-java instead. (setup-java doesn't involve Jabba)

for context, see https://twitter.com/olafurpg/status/1449455082614009863

I've now opened #49 so we have a ticket-of-record on the overall situation

@armanbilge
Copy link

No idea if it makes a difference, but Typelevel maintains its own Jabba index https://github.com/typelevel/jdk-index. Might be worth a try, I don't recall any such issues recently on projects using it.

@dimisjim
Copy link
Author

@armanbilge Aha, thanks for the pointer!

I would say though, that a better way to resolve this issue is for setup-scala to be based on setup-java and additionally just install sbt. I'll try to create a PR soon :)

For reference, see actions/setup-java#266

@armanbilge
Copy link

@dimisjim IIUC sbt is already installed in GH actions runners by default. So, actually you can just use setup-java and call it a day :)

@dimisjim
Copy link
Author

Not really. See actions/setup-java#266

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

3 participants