• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

startup.sh fails on tar of openjdk linux gz

Scheduled Pinned Locked Moved Unsolved
Q&A
2
6
2.9k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    james.black
    last edited by 14 Dec 2021, 18:01

    Fast path install using zip files. no elastic search. linux.
    Install works fine.
    Run startup.sh fails with error message:
    gzip: stdin: not in gzip format

    after closer inspection, the gzip file downloaded that the script tried to tar on was a html doc, with content:

    <html><body>You are being <a href="...">redirected</a>...

    what gives..? work around? presumably if i get that java jdk version and place it in the output location that the tar was trying to put it in the startup script should then work?

    J 1 Reply Last reply 14 Dec 2021, 18:03 Reply Quote 0
    • J
      james.black @james.black
      last edited by 14 Dec 2021, 18:03

      @james-black if i go to that location in the browser, the file downloads properly, it seems that curl command fails for me for some reason

      J 1 Reply Last reply 14 Dec 2021, 18:06 Reply Quote 0
      • J
        james.black @james.black
        last edited by 14 Dec 2021, 18:06

        @james-black using this url from the startup.sh
        https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDKU-jdk_x64_linux_hotspot_17.0.1_12.tar.gz

        1 Reply Last reply Reply Quote 0
        • J
          james.black
          last edited by james.black 14 Dec 2021, 18:26

          TL,DR;

          So i've figured out it is the curl part of the script that is failing, there are some missing options to curl that causes the download to be wrong.

          It seems startup.sh has a parameter of {CURL_OPTS}, but in my case nothing was being used in that parameter, and in closer inspection there are no {CURL_OPTS} specified in this script.

          I can work around it by modifying the startup.sh to contain the correct curl options, but any thoughts on this moving forward?

          R 1 Reply Last reply 14 Dec 2021, 19:53 Reply Quote 0
          • R
            robotdan @james.black
            last edited by 14 Dec 2021, 19:53

            @james-black

            Thanks for letting us know, this is a bug. To work around it, add this to the top of startup.sh:

            CURL_OPTS="-fSL --progress-bar"
            
            R 1 Reply Last reply 14 Dec 2021, 20:01 Reply Quote 3
            • R
              robotdan @robotdan
              last edited by 14 Dec 2021, 20:01

              Tracking here: https://github.com/FusionAuth/fusionauth-issues/issues/1519

              1 Reply Last reply Reply Quote 0
              • J joshua referenced this topic on 25 Jan 2022, 20:35
              5 out of 6
              • First post
                5/6
                Last post