Forum Stats

  • 3,814,885 Users
  • 2,258,923 Discussions
  • 7,892,883 Comments

Discussions

wget error

Robeen
Robeen Member Posts: 2,175 Silver Badge
edited Mar 17, 2019 3:21PM in Generic Linux

Oracle Database 12.2.0

RHEL 7.4

Hello Team,

I am trying to download Grid Infrastructure 19c on edelivery.com.

I downloaded the wget.sh file to download faster on server.

Unfortunately I see the zip file is not complete.

Logfile content:

-bash-4.1$ cat wgetlog-03-17-19-09:20.log

--2019-03-17 09:20:27--  https://login.oracle.com/sso/auth

Resolving login.oracle.com... 156.151.58.18

Connecting to login.oracle.com|156.151.58.18|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 4290 (4.2K) [text/html]

Saving to: `sso.out'

     0K ....                                                  100% 13.7M=0s

2019-03-17 09:20:30 (13.7 MB/s) - `sso.out' saved [4290/4290]

--2019-03-17 09:20:30--  ***Moderator action (TImo): removed private information!***

Resolving edelivery.oracle.com... 104.75.216.173, 2a02:26f0:e000:18b::366, 2a02:26f0:e000:183::366

Connecting to edelivery.oracle.com|104.75.216.173|:443... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily

Location: ***Moderator action (TImo): removed private information!*** [following]

--2019-03-17 09:20:30-- ***Moderator action (TImo): removed private information!***

Resolving login.oracle.com... 156.151.58.18

Connecting to login.oracle.com|156.151.58.18|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 7356 (7.2K) [text/html]

Saving to: `./V981627-01.zip'

     0K .......                                               100% 15.1M=0s

2019-03-17 09:20:32 (15.1 MB/s) - `./V981627-01.zip' saved [7356/7356]

-bash-4.1$ unzip V981627-01.zip

Archive:  V981627-01.zip

  End-of-central-directory signature not found.  Either this file is not

  a zipfile, or it constitutes one disk of a multi-part archive.  In the

  latter case the central directory and zipfile comment will be found on

  the last disk(s) of this archive.

unzip:  cannot find zipfile directory in one of V981627-01.zip or

        V981627-01.zip.zip, and cannot find V981627-01.zip.ZIP, period.

Pls advise.

Joe

Answers

  • Gaz in Oz
    Gaz in Oz Member Posts: 3,785 Bronze Crown
    edited Mar 17, 2019 8:54AM

    ...wget seems to have downloaded something...

    Did you supply your correct Oracle SSO username and password when running wget.sh?

    How big is the zip file?

       $ ls -ltr V981627-01.zip

    If the file looks roughly the right size then try using gunzip on the zip file.

    If the file looks too small, the use vi or some other editor to see what V981627-01.zip actually contains.

  • Robeen
    Robeen Member Posts: 2,175 Silver Badge
    edited Mar 17, 2019 9:05AM

    It is too small.

    vi content:

    <html>

    <script language="javascript" type="text/javascript">

    function submitForm()

    {

    var hash = location.hash;

    if (hash) {

    if(hash.indexOf("#") == -1){

    hash="#"+hash

    }

    document.myForm.action = document.myForm.action+hash;

    }

    document.myForm.submit();

    }

  • Dude!
    Dude! Member Posts: 22,828 Black Diamond
    edited Mar 17, 2019 1:03PM
    I downloaded the wget.sh file to download faster on server.

    Why do you think it will be faster? It will probably be slower because it cannot take advantage of the Akamai download manager.

    Anyway, the script prompts for your login name and password. The password does not echo and there are not screen updates until the download is completed. If you think something went wrong and press Ctrl-c then you get an incomplete file.

    The problem is due to limitations of wget which is an interactive tools and not really suitable for scripting - it will require a wrapper script to occlude your login cookie and show a progress bar. Since  you have posted your login cookie, I suggest you change your login password to the Oracle download cloud asap.

    Btw, the problem isn't Linux and and the topic rather belongs to .

  • lmu
    lmu Member Posts: 167 Bronze Badge
    edited Mar 17, 2019 1:30PM

    Part of the problem is Linux for me.  I get that all the time, only the files are 0 bytes.  The download wants this added to the wget.command --no-check-certificate

    Depending on the box I  use, some still get a zero byte file with --no-check-certificate added.

    What parameters on the box would cause this? It is annoying.  It only happens on some

  • Dude!
    Dude! Member Posts: 22,828 Black Diamond
    edited Mar 17, 2019 3:03PM

    I used the wget script that the download generated to download 19c GI a couple of days ago and it worked. I did not have to add anything. What clues exist that the problem has something to do with Linux?

  • lmu
    lmu Member Posts: 167 Bronze Badge
    edited Mar 17, 2019 3:09PM

    I don't know that's why I'm asking.  Depending on which box  am downloading patches from using wget, determines if it works for me or not or if I need to use --no-check-certificate. There is nothing I can tell what is different from one or the other.   Most are OEL6, all are vm's. Some ovm, some VMware.  I'll try to see which is what.

  • Dude!
    Dude! Member Posts: 22,828 Black Diamond
    edited Mar 17, 2019 3:21PM

    If you are transfering the script from another system, perhaps network/proxy issues come into play. Whether the login cookies/certificartes work will probably also depend on your external IP address.

    Why using wget and not a web browser to download the files? You do not need to install X window or run X server to run Firefox on your Linux server.

  • User_DDTW0
    User_DDTW0 Member Posts: 0 Green Ribbon

    I had the same problem, and used --no-check-certificate to get success on the download :)

    tks for the help