WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 2.x: wget (in base) will not download google.com / other sites  (Read 6415 times)

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
wget http://google.com says "bad address" even though ff will download google.com.

appbrowser works, no changes have been made to any configs.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: 2.x: wget (in base) will not download google.com / other sites
« Reply #1 on: April 30, 2009, 10:04:33 PM »
It was probably was just a temporary network problem.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: 2.x: wget (in base) will not download google.com / other sites
« Reply #2 on: May 01, 2009, 04:50:45 PM »
It was probably was just a temporary network problem.

that's what robert told me as well, but it happened the day before and when i got the pm i immediately tried it just now.

let me be absolutely clear about this, wget http://google.com is not working at all. both it by itself and sudo /usr/bin/getTime.sh return "bad address: google.com" or "bad address: nist.time.gov" (something like that.)

waiting an hour makes no difference, using ubuntu on the same network wget works fine. waiting a day makes no difference, using appbrowser (it calls wget) for some bizarre reason works. using the browser works but getTime and wget alone never- work in 2.0 rc1.

i've never had this problem and it won't go away. i even tried using the syntax busybox wget -q http://google.com which is the syntax tce-fetch uses. i tried it again just now. in ff, google loads. this is not a network issue, this is not temporary., it's been happening since i made that 2.0rc1 cd, but for whatever reason appbrowser works- not wget itself (it makes no sense) or getTime.sh.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: 2.x: wget (in base) will not download google.com / other sites
« Reply #3 on: May 01, 2009, 04:53:47 PM »
Are you sure you are not using the wget extension?  Appbrowser specifically uses busybox wget, whereas if you are getting a different result with wget at the command line it sounds like you may have the extension loaded.

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: 2.x: wget (in base) will not download google.com / other sites
« Reply #4 on: May 01, 2009, 06:56:20 PM »
Are you sure you are not using the wget extension?

i hadn't installed it yet. the only setup i'm using to test 2.0 rc1 is boot from cd, no other media connected. i found this yesterday and didn't install wget.tce until an hour or two ago, to see if that helped (no.) but the output of the next script ought to make you certain.

note that for sudo busybox wget, wget.tce, and aria2c, the 3 google ip's work but http://google.com does not. this issue does not affect appbrowser, or links, or ff, but does affect elinks.

/tmp/not.sh
Code: [Select]
#!/bin/sh

sudo busybox wget http://google.com -O bb1
sudo busybox wget http://209.85.171.100 -O bb2
sudo busybox wget http://74.125.67.100 -O bb3
sudo busybox wget http://74.125.45.100 -O bb4

wget http://google.com -O wg1
wget http://209.85.171.100 -O wg2
wget http://74.125.67.100 -O wg3
wget http://74.125.45.100 -O wg4

aria2c http://google.com -o ar1
aria2c http://209.85.171.100 -o ar2
aria2c http://74.125.67.100 -o ar3
aria2c http://74.125.45.100 -o ar4

ls -l bb* wg* ar*

Quote
tc@box:/tmp$ ./not.sh
wget: bad address 'google.com'
Connecting to 209.85.171.100 (209.85.171.100:80)
bb2                  100% |*******************************|  4987  --:--:-- ETA
Connecting to 74.125.67.100 (74.125.67.100:80)
bb3                  100% |*******************************|  4981  --:--:-- ETA
Connecting to 74.125.45.100 (74.125.45.100:80)
bb4                  100% |*******************************|  4987  --:--:-- ETA
--2009-05-02 02:36:35--  http://google.com/
Resolving google.com... failed: Name or service not known.
wget: unable to resolve host address `google.com'
--2009-05-02 02:36:45--  http://209.85.171.100/
Connecting to 209.85.171.100:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `wg2'

    [ <=>                                   ] 4,981       --.-K/s   in 0.02s   

2009-05-02 02:36:45 (235 KB/s) - `wg2' saved [4981]

--2009-05-02 02:36:45--  http://74.125.67.100/
Connecting to 74.125.67.100:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `wg3'

    [ <=>                                   ] 4,987       --.-K/s   in 0.01s   

2009-05-02 02:36:46 (419 KB/s) - `wg3' saved [4987]

--2009-05-02 02:36:46--  http://74.125.45.100/
Connecting to 74.125.45.100:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `wg4'

    [ <=>                                   ] 4,987       --.-K/s   in 0.02s   

2009-05-02 02:36:46 (199 KB/s) - `wg4' saved [4987]


2009-05-02 02:36:46.335482 WARN - You may encounter the certificate verification                                                 error with HTTPS server. See --ca-certificate and --check-certificate option.
terminate called after throwing an instance of 'aria2::DlAbortEx'
Aborted

2009-05-02 02:36:56.534752 WARN - You may encounter the certificate verification                                                 error with HTTPS server. See --ca-certificate and --check-certificate option.

2009-05-02 02:36:57.180826 NOTICE - Download complete: ./ar2

Download Results:
gid|stat|avg speed  |path/URI
===+====+===========+==========================================================
  1|  OK|        n/a|./ar2

Status Legend:
 (OK):download completed.

2009-05-02 02:36:57.223525 WARN - You may encounter the certificate verification                                                 error with HTTPS server. See --ca-certificate and --check-certificate option.

2009-05-02 02:36:57.508207 NOTICE - Download complete: ./ar3

Download Results:
gid|stat|avg speed  |path/URI
===+====+===========+==========================================================
  1|  OK|        n/a|./ar3

Status Legend:
 (OK):download completed.

2009-05-02 02:36:57.552690 WARN - You may encounter the certificate verification                                                 error with HTTPS server. See --ca-certificate and --check-certificate option.

2009-05-02 02:36:57.832411 NOTICE - Download complete: ./ar4

Download Results:
gid|stat|avg speed  |path/URI
===+====+===========+==========================================================
  1|  OK|        n/a|./ar4

Status Legend:
 (OK):download completed.
-rw-r--r--    1 tc       staff        4987 May  2 02:36 ar2
-rw-r--r--    1 tc       staff        4987 May  2 02:36 ar3
-rw-r--r--    1 tc       staff        4987 May  2 02:36 ar4
-rw-r--r--    1 root     root         4987 May  2 02:36 bb2
-rw-r--r--    1 root     root         4981 May  2 02:36 bb3
-rw-r--r--    1 root     root         4987 May  2 02:36 bb4
-rw-r--r--    1 tc       staff           0 May  2 02:36 wg1
-rw-r--r--    1 tc       staff        4981 May  2 02:36 wg2
-rw-r--r--    1 tc       staff        4987 May  2 02:36 wg3
-rw-r--r--    1 tc       staff        4987 May  2 02:36 wg4
tc@box:/tmp$