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

      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 Reply Quote 0
      • J
        james.black @james.black
        last edited by

        @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 Reply Quote 0
        • J
          james.black @james.black
          last edited by

          @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

            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?

            robotdanR 1 Reply Last reply Reply Quote 0
            • robotdanR
              robotdan @james.black
              last edited by

              @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"
              
              robotdanR 1 Reply Last reply Reply Quote 3
              • robotdanR
                robotdan @robotdan
                last edited by

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

                1 Reply Last reply Reply Quote 0
                • joshuaJ joshua referenced this topic on
                • First post
                  Last post