Author Topic: Issue With Wget, Ipkg, Etc.  (Read 147439 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Issue With Wget, Ipkg, Etc.
« on: September 11, 2007, 09:56:56 pm »
I have an odd issue with wget, ipkg, apt-get, XVhat, and other apps that try to access the net. Many times they'll fail to find the site they're trying to access and assume it's IP is 1.0.0.0, then time out. It works much more often, if not almost always, over my desktop's wired connection, making me believe that it's a wireless thing.

Any ideas? This is getting really annoying.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

T3_slider

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Issue With Wget, Ipkg, Etc.
« Reply #1 on: September 11, 2007, 10:40:57 pm »
I don't know how to fix it, but it sounds like a problem either with DHCP (ie getting your IP) or getting a nameserver (usually also assigned over DHCP when using WiFi). The only thing I would suggest is confirming the right WiFi settings and ejecting/reinserting the card, but I'm sure you've already tried that.
Basically you'll have to wait for someone better at this than me (which is most people) to help you out.

The nameserver used is located in /etc/resolv.conf, but I'm not sure how that gets assigned in pdaXrom.
Conics SL-C3200 running pdaXrom beta3 and XFCE with a Planex WiFi CF card.

Slackware rules!

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Issue With Wget, Ipkg, Etc.
« Reply #2 on: September 12, 2007, 04:53:44 pm »
I would run commands like "route" and "ifconfig" to see if/how you are connected before trying to do wget, etc.

Also try "ping google.com" and "nslookup google.com".

If no packets are returned by ping, and your Z can't find google, you ain't made it to the net for sure.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Issue With Wget, Ipkg, Etc.
« Reply #3 on: September 12, 2007, 07:41:44 pm »
Oh, I know I'm connected. I'll be surfing the net just fine, then decide to wget some source or something, and it won't work.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Issue With Wget, Ipkg, Etc.
« Reply #4 on: September 12, 2007, 07:46:39 pm »
Quote
Oh, I know I'm connected. I'll be surfing the net just fine, then decide to wget some source or something, and it won't work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167350\"][{POST_SNAPBACK}][/a][/div]
proxy/ftp blocking issue?  Obvious maybe, but..well... sometimes the obvious is worth mentioning
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Issue With Wget, Ipkg, Etc.
« Reply #5 on: September 13, 2007, 07:35:57 am »
I don't think so. I can browse the sites just fiine, and DLing in the browser works OK, but wget/ipkg doesn't.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Issue With Wget, Ipkg, Etc.
« Reply #6 on: September 19, 2007, 05:58:00 pm »
I would run strace every time I did a wget download that was likely to fail until I got the output from one of those time outs.  The output can be huge (megs) but is usually worth it.  Have you done that?

Oh, the default output sometimes doesn't reveal what I want to see, so I increase the character limit per line.  Here's an example command with 100 characters, and output directed to my SD card (you can name the output file whatever you want):

strace -f -v -s 100 -o /mnt/card/wget.strace wget [any wget options go here] URL-OF-FILE-YOU-WANT-TO-FETCH &

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Issue With Wget, Ipkg, Etc.
« Reply #7 on: September 19, 2007, 06:14:41 pm »
I don't know why, but pinging the site before I wget from it seems to help, so I guess this issue is mostly solved.

Thanks for all the suggestions (I may still look into it)!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Issue With Wget, Ipkg, Etc.
« Reply #8 on: December 19, 2007, 05:38:43 pm »
FWIW, it appears to be an issue with my DNS server. Switching to OpenDNS seems to fix the issue nicely.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3703
    • View Profile
Issue With Wget, Ipkg, Etc.
« Reply #9 on: December 26, 2007, 06:12:51 pm »
you don't have http proxy set do you?

some ISPs do nasty things to people's DNS - NTL for example in the UK transparently hijack all DNS to their own resolvers - why, I don't know - but it really messes things up!

personally, I prefer to run my own caching resolver on my linux gateway -  I don't like the idea of anyone being able to mangle DNS to favour anyone for whatever political correct purposes they purport to use - and opendns with their whitelisting/blacklisting strikes me as giving someone else control over what I do! I recall when verisign started hijacking NX results to favour advertisers which was pretty evil!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.