Jump to content

Connection problems "Document contains no data"


deathkrush
 Share

Recommended Posts

I am running Mandrake 10 Official, 2.6.3-13 kernel and Mozilla Firefox as my browser. I never had any problems with internet connection until last week when I installed and started using MLDonkey file sharing client, OpenVPN and sshd. When clicking on a link Firefox would sometimes show a "Document contains no data" error. All I had to do was click on the link again and voila the website opens. But now this happens for every new link I click and it takes more than one click to connect to a website I want (eBay takes about five clicks). The strange thing is that once I do connect to a given URL, that website works fine for the rest of my browsing session, but every new link I click results in the error.

 

I confirmed this to be a problem on all browsers (Konqueror gives me a similar error), on instant messaging clients, on both wireless and ethernet connection, on both DHCP and STATIC internet configurations. I tried disabling my firewall in the router and even setting my laptop as a DMZ host but that had no effect. I also disable IPv6 as some people suggested and tried using only one DNS entry in lookup.conf, still no luck. Clearing Firefox cache does nothing, because this is not a browser problem. Turning off MLDonkey OpenVPN and sshd services and restarting the computer doesn't cure the problem.

 

Please help, I am going mad about this. I thought Linux was supposed to work well with Internet. This problem is inexistent on the same laptop with Windows XP running.

 

Here is my ifconfig:

eth1 Link encap:Ethernet HWaddr ***private***

inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:3986071 errors:0 dropped:0 overruns:0 frame:0

TX packets:4885954 errors:9 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:826236594 (787.9 Mb) TX bytes:803140251 (765.9 Mb)

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:402630 errors:0 dropped:0 overruns:0 frame:0

TX packets:402630 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:32028207 (30.5 Mb) TX bytes:32028207 (30.5 Mb)

Link to comment
Share on other sites

...until last week when I installed and started using MLDonkey file sharing client, OpenVPN and sshd.

 

Are all of these running when you're experiencing these problems?

 

My guess is that something (most likely MLDonkey) is sucking up all of your bandwidth. Try throttling it down so it only uses, say, 50% of your available bandwidth and see if the problem still exists. For how to throttle it, see the MLDonkey website or the program's docs.

Link to comment
Share on other sites

Well I just went to resolv.conf and commented one of the DNS entries. This sort of helped and the error is not so frequent. eBay and Hotmail still give me major problems though because they use a lot of different servers. Windows XP on the same machine works fine as do all other computers in my home network.

Link to comment
Share on other sites

...until last week when I installed and started using MLDonkey file sharing client, OpenVPN and sshd.

 

Are all of these running when you're experiencing these problems?

 

My guess is that something (most likely MLDonkey) is sucking up all of your bandwidth. Try throttling it down so it only uses, say, 50% of your available bandwidth and see if the problem still exists. For how to throttle it, see the MLDonkey website or the program's docs.

I already disabled MLDonkey, sshd and OpenVPN and it didn't help. Also I have noticed that the same error sometimes happens for local addresses: 192.168.1.1, 127.0.0.1, etc.

Link to comment
Share on other sites

This could be becuase something is sucking you BW like LZ says and hence the dns queries are timing out OR like streeter says a problem with the proxy.

 

Since your ALSO using Windows have you tried Firefox in windows ?

perhaps the ISP proxy is set using a MS specific script ?

 

Have you tried just resolving addresses from the cli like

nslookup or dig etc. on a name ?

also then try this iwth the distributed ones like akamai, yahoo etc. and see what happens, it could be stale cache info ....

 

My proxy at work today has decided google is in german today... LOL

ahh well,

Link to comment
Share on other sites

I am not using a proxy, my provider is Comcast cable. I use Firefox as my default browser in Windows and it's fine no probems. I tried nslookup ebay.com and it worked, gave me an address 66.135.192.87. When I enter it into Firefox it results in document contains no data error but when I do it the second time it works as usual. The pictures don't show up but I hit refresh and they do. AOL Instant Messenger takes 10 retries to connect.

 

The strangest thing is that when I am not running any appplications my bandwidth monitor shows constant 1Kb/s transfers. Maybe it's natural because I'm on wireless.

Link to comment
Share on other sites

Any chance of connecting directly to your router by cable, thus ruling out/narrowing it down to the wireless connection?

 

Also, can you post a detailed description of your network, ie what connects to what, through what etc (if that makes sense!)

 

Please also post:

Contents of /etc/resolv.conf

Output of "iptables -nvL"

Output of "iptables -nvL -t nat"

Output of "ps aux"

Output of "route -n"

 

Are you 100% sure you are not going through a proxy - check the settings in Firefox. It is also possible you are getting routed through a proxy without your knowledge (that's what some of the above -might- tell us). I have seen exactly this behaviour before with squid and a satellite internet connection.

 

Chris

Link to comment
Share on other sites

Things that sprinmg to mind then:

perhaps a issue with the network driver or way the card is configured ?

 

something when you installed the VPN client ??

 

One thing to do is maybe to install webmin (if you havn't already) and delete the interface eth0 and everything to do with networking then reinstall .the interface and network..

I guess you could do it from the Mandrake wizards if they worked the first time ?? but I prefer doing it by hand or webmin and understanding.....

 

Just out of interest.... perhaps try running apache on the second PC and connect to this over the LAN. That should at least say if its a routing problem or something else.

 

 

and just a last check.... to see if the firewall somehow got activated ...

ps -ef ¦ grep iptables

see if it comes back with anything ..

and

ps -ef ¦ grep shorewall

Link to comment
Share on other sites

Any chance of connecting directly to your router by cable, thus ruling out/narrowing it down to the wireless connection?

 

Also, can you post a detailed description of your network, ie what connects to what, through what etc (if that makes sense!)

 

Please also post:

Contents of /etc/resolv.conf

Output of "iptables -nvL"

Output of "iptables -nvL -t nat"

Output of "ps aux"

Output of "route -n"

Yes, I have tried it through a cable directly to my router, I disabled wireless just to make sure. Didn't help much, I am still getting the same error.

 

Basically I have this all-in-one Linksys router (hub/gateway/router/wireless) that connects to a cable modem. I have one laptop (this exact machine where I'm experiencing the problem) connected through wireless and 3 desktops connected through cable.

 

cat /etc/resolv.conf
nameserver 204.127.198.19
nameserver 63.240.76.19

# ppp temp entry

 

(These are the exact DNS servers I have on my other machines.)

 

iptables
bash: iptables: command not found

 

(Hmm, this used to work before?!? I don't know what happened to it)

 

ps aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.3  0.1  1580  516 ?        S    22:25   0:03 init [5]
root         2  0.0  0.0     0    0 ?        SWN  22:25   0:00 [ksoftirqd/0]
root         3  0.0  0.0     0    0 ?        SW<  22:25   0:00 [events/0]
root         4  0.0  0.0     0    0 ?        SW<  22:25   0:00 [kblockd/0]
root         5  0.0  0.0     0    0 ?        SW   22:25   0:00 [pdflush]
root         6  0.0  0.0     0    0 ?        SW   22:25   0:00 [pdflush]
root         7  0.0  0.0     0    0 ?        SW   22:25   0:00 [kswapd0]
root         8  0.0  0.0     0    0 ?        SW<  22:25   0:00 [aio/0]
root        10  0.0  0.0     0    0 ?        SW   22:25   0:00 [kseriod]
root        14  0.0  0.0     0    0 ?        SW   22:25   0:00 [kjournald]
root       120  0.0  0.2  2168 1340 ?        S    22:25   0:00 devfsd /dev
root       246  0.0  0.0     0    0 ?        SW   22:25   0:00 [khubd]
root       576  0.0  0.0     0    0 ?        SW   22:25   0:00 [kjournald]
root       750  0.0  0.0     0    0 ?        SW   22:25   0:00 [knodemgrd_0]
root       806  0.0  0.6  5168 3556 ?        S<   22:25   0:00 webconfd
root       807  0.7  0.0     0    0 ?        SW<  22:25   0:06 [kdldrd/dpc]
root       808  0.0  0.0     0    0 ?        SW<  22:25   0:00 [kdldrd/wrk]
root       949  0.0  0.0     0    0 ?        SW<  22:25   0:00 [kdldrd/eth1]
root      1189  0.0  0.0     0    0 ?        SW   22:25   0:00 [pccardd]
root      1198  0.0  0.1  1728  708 ?        S    22:25   0:00 /sbin/cardmgr
rpc       1474  0.0  0.1  1712  580 ?        S    22:26   0:00 portmap
root      1498  0.0  0.1  1880  804 ?        S    22:26   0:00 syslogd -m 0
root      1506  0.0  0.2  2604 1540 ?        S    22:26   0:00 klogd -2
root      1565  0.0  0.1  1880  856 ?        S    22:26   0:00 rpc.statd
xfs       1978  0.0  0.9  6664 4692 ?        S    22:26   0:00 xfs -port -1 -dae
root      2012  0.0  0.0     0    0 ?        SW   22:26   0:00 [rpciod]
root      2013  0.0  0.0     0    0 ?        SW   22:26   0:00 [lockd]
daemon    2094  0.0  0.1  1616  536 ?        S    22:26   0:00 /usr/sbin/atd
root      2121  0.0  0.1  1584  604 ?        S    22:26   0:00 /usr/sbin/acpid
root      2153  0.0  0.1  2688  692 ?        S    22:26   0:00 /usr/bin/mdkkdm -
root      2171  2.9  2.8 48844 14652 ?       SL   22:26   0:25 /etc/X11/X -defer
root      2212  0.0  0.2  2224 1084 ?        S    22:26   0:00 /bin/sh /usr/lib/
root      2213  0.0  0.2  2224 1096 ?        S    22:26   0:00 /bin/sh /usr/lib/
root      2214  2.1  0.6  6060 3576 ?        S    22:26   0:18 /usr/lib/ipsec/pl
root      2215  0.0  0.2  2196 1056 ?        S    22:26   0:00 /bin/sh /usr/lib/
root      2216  0.0  0.0  1564  392 ?        S    22:26   0:00 logger -s -p daem
root      2297  0.0  0.3  3600 1696 ?        S    22:26   0:00 -:0
root      2346  0.0  0.1  2028  716 ?        S    22:26   0:00 _pluto_adns
root      2347  0.0  0.2  3152 1416 ?        S    22:26   0:00 /usr/sbin/sshd
root      2468  0.0  0.1  2168  832 ?        S    22:26   0:00 xinetd -stayalive
root      2566  0.0  0.4  5616 2352 ?        S    22:26   0:00 cupsd
root      2567  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2568  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2569  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2575  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2576  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2577  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2578  0.0  0.0  1644  468 ?        S    22:26   0:00 _pluto_adns
root      2725  0.0  0.1  1756  668 ?        S    22:26   0:00 rpc.mountd --no-n
root      2816  0.0  0.1  1688  664 ?        S    22:26   0:00 /usr/sbin/automou
root      2818  0.0  0.1  1688  664 ?        S    22:26   0:00 /usr/sbin/automou
root      2913  0.0  0.1  1624  624 ?        S    22:26   0:00 crond
stan      3025  0.0  0.2  2544 1224 ?        S    22:26   0:00 /bin/sh /usr/bin/
stan      3105  0.0  1.1 14016 5760 ?        S    22:26   0:00 magicdev
stan      3120  0.0  2.7 28788 14044 ?       S    22:26   0:00 kdeinit: Running.
stan      3123  0.0  2.7 28628 14132 ?       S    22:26   0:00 kdeinit: dcopserv
stan      3125  0.0  0.7  6100 3844 ?        S    22:26   0:00 /usr/lib/gconfd-2
stan      3127  0.0  3.0 30136 15548 ?       S    22:26   0:00 kdeinit: klaunche
stan      3130  0.0  3.8 33808 20048 ?       S    22:26   0:00 kdeinit: kded
stan      3145  0.0  1.4 12724 7628 ?        S    22:26   0:00 artsd -F 10 -S 40
stan      3148  0.0  4.1 38344 21404 ?       S    22:26   0:00 kdeinit: knotify
stan      3152  0.0  0.0  1572  340 ?        S    22:26   0:00 kwrapper ksmserve
stan      3154  0.0  3.3 31036 17140 ?       S    22:26   0:00 kdeinit: ksmserve
stan      3155  0.0  3.6 32260 19036 ?       S    22:26   0:00 kdeinit: kwin -se
stan      3157  0.1  4.9 40016 25296 ?       S    22:26   0:01 kdeinit: kdesktop
stan      3160  0.0  2.8 29776 14684 ?       S    22:26   0:00 kdeinit: kio_file
stan      3161  0.0  4.2 35076 21896 ?       S    22:26   0:00 kdeinit: kicker
stan      3165  0.0  3.6 31736 18564 ?       S    22:26   0:00 kdeinit: klipper
stan      3168  0.0  4.0 33664 20636 ?       S    22:26   0:00 kdeinit: kmix -se
stan      3193  0.0  2.1 21752 10936 ?       S    22:27   0:00 /usr/bin/kdesud
mldonkey  3312  1.2  2.9 25520 15200 ?       SN   22:27   0:09 /usr/lib/mldonkey
root      3314  0.0  0.0  1644  468 ?        S    22:27   0:00 _pluto_adns
root      3315  0.0  0.0  1644  468 ?        S    22:27   0:00 _pluto_adns
root      3316  0.0  0.0  1644  468 ?        S    22:27   0:00 _pluto_adns
stan      3326  0.5  5.1 40792 26580 ?       S    22:27   0:04 /usr/bin/kmldonke
stan      3457  0.0  0.2  2532 1184 ?        S    22:29   0:00 /bin/sh /usr/bin/
stan      3459  0.0  0.2  2640 1268 ?        S    22:29   0:00 /bin/bash /usr/bi
stan      3466  0.0  0.2  2704 1376 ?        S    22:29   0:00 /bin/sh /usr/lib/
stan      3473  3.9  6.0 92248 31260 ?       S    22:29   0:26 /usr/lib/mozilla-
stan      3489  0.0  1.0 10416 5556 ?        S    22:30   0:00 /usr/bin/esd -ter
root      3502  0.0  0.5  8248 3072 ?        S    22:31   0:00 smbd -D
root      3512  0.0  0.3  6140 2012 ?        S    22:31   0:00 nmbd -D
root      3695  0.0  0.0  1568  448 tty1     S    22:31   0:00 /sbin/mingetty tt
root      3696  0.0  0.0  1568  448 tty2     S    22:31   0:00 /sbin/mingetty tt
root      3697  0.0  0.0  1568  448 tty3     S    22:31   0:00 /sbin/mingetty tt
root      3698  0.0  0.0  1568  448 tty4     S    22:31   0:00 /sbin/mingetty tt
root      3699  0.0  0.0  1568  448 tty5     S    22:31   0:00 /sbin/mingetty tt
root      3700  0.0  0.0  1568  448 tty6     S    22:31   0:00 /sbin/mingetty tt
stan      3822  0.1  4.0 34180 20712 ?       S    22:37   0:00 kdeinit: konsole
stan      3823  0.0  0.3  2744 1572 pts0     S    22:37   0:00 /bin/bash
root      3871  0.0  0.1  2444 1020 pts0     S    22:39   0:00 su
root      3874  0.0  0.3  2740 1568 pts0     S    22:39   0:00 bash
root      3920  0.0  0.1  2424  784 pts0     R    22:40   0:00 ps aux

 

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     128.0.0.0       UG    0      0        0 eth1
128.0.0.0       192.168.1.1     128.0.0.0       UG    0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1

 

I'm 100% sure that I'm not going through proxy, well at least judging from settings in Firefox, Konqueror and Mandrake Control Center.

 

One thing to do is maybe to install webmin (if you havn't already) and delete the interface eth0 and everything to do with networking then reinstall .the interface and network..

I guess you could do it from the Mandrake wizards if they worked the first time ?? but I prefer doing it by hand or webmin and understanding.....

 

Just out of interest.... perhaps try running apache on the second PC and connect to this over the LAN. That should at least say if its a routing problem or something else.

 

 

and just a last check.... to see if the firewall somehow got activated ...

ps -ef ¦ grep iptables

see if it comes back with anything ..

and

ps -ef ¦ grep shorewall

 

I installed webmin but it gives me:

webmin

Starting Webmin [ OK ]

Installation problem. Please reinstall.

 

This command doesn't seem to work:

ps -ef ¦ grep iptables

ERROR: Garbage option.

 

ps -ef ¦ grep shorewall

ERROR: Garbage option.

 

I don't know about apache, I never used it before. Furthermore, now I am experiencing "Document contains no data" errors even for local addresses, such as http://localhost:4080 (MLDonkey), http://127.0.0.1:18020 (Linuxant Driverloader) and it's quite frequent.

Link to comment
Share on other sites

OK, I just installed iptables and here is what it gives me:

[root@toshiba stan]# iptables -nvL
Chain INPUT (policy ACCEPT 5655 packets, 572K bytes)
pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 6032 packets, 691K bytes)
pkts bytes target     prot opt in     out     source               destination
[root@toshiba stan]# iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 165 packets, 9096 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 862 packets, 56275 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 862 packets, 56275 bytes)
pkts bytes target     prot opt in     out     source               destination
[root@toshiba stan]#

 

Oh and webmin works fine, it's a nice application!

Edited by deathkrush
Link to comment
Share on other sites

Well, your firewall is wide open, so it's not that causing the problem.

 

Any chance of doing a "ps aux > ~/log.psaux" ? This will send the output to a file called log.psaux in your home directory, which you can cut and paste from - reason being, the output above is truncated.

 

I believe _pluto_adns is something to do with freeS/WAN, but don't know much about it, so perhaps the problem lies there - anybody? Perhaps all your data is being tunnelled through this VPN, and this is causing the problem??

 

As an aside, you have a few daemons running in there you may not need - rpc, portmap - best turned off if you don't need them.

 

Chris

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...