View Full Version : Losing network connectivity on hacked Directivo
michaeljc70
11-17-2006, 03:01 PM
I applied all the hacks to my Directivo to enable the networking, hooked up my USB network adapter and was able to FTP or telnet in no problem. However, I seem to be losing access to the Tivo a lot. I even rebooted the Tivo and reset my router and it didn't seem to come back. I unplugged the USB adapter and then it seemed to come back.
I think it could be related to the nighttime reboot I think one of the hacks does. I would imgaine that my router may need reseting after the reboot? If that is the case, that is a hassle. Any other ideas on what it could be?
I just expercienced it today. I was at work and using TivoWebPlus and some channels weren't showing properly so I chose reboot. I waited (it was hours ago) and I still can't connect. When I get home I will probably have to reset the router and maybe try unplugging the adapter.
marlboroman
11-17-2006, 04:29 PM
Michael,
Which directivo is this and what version? The HR10-250 with 6.3a likes to call /sbin/dhclient so it's a good idea to rename this file. You configured your network using netconfig.tcl correct instead of through rc.sysinit.author? Also, are you sure the network is dying completely or the ipchains firewall keeps coming back up? I moved my /sbin/ipchains file and created a new one that does exit 0 when /etc/netfilter-enable calls for it.
michaeljc70
11-17-2006, 06:08 PM
This is a Samsung 4080, version 6.3.
How can I tell if the ipchains firewall keeps coming back up? When it happens, I can't telnet, ftp, TivoWebPlus into it and it doesn't show in my routers table of clients.
marlboroman
11-17-2006, 11:25 PM
Get the serial cable out and see what is happening. See if eth0 interface is still up and reporting the correct IP. If it is, then it sounds like an ipchains issue. You should follow the procedure outlined earlier to disable the firewall or you can add a command inside rc.sysinit.author to call /etc/netfilter-disable.
michaeljc70
11-17-2006, 11:27 PM
I don't have a serial cable, but when I got home, I unplugged the USB network adapter from the Tivo and plugged it back in. I was able to connect no problem. Could it be my USB adapter (it is old and have had it laying around for yrs). Is it possible it has some kind of sleep mode?
marlboroman
11-18-2006, 01:17 AM
The adapter itself shouldn't have a sleep mode. The only other thing I can think of without looking at the console would be to investigate some of the logs in /var/log. It could be that the network is timing out and your require a keepalive command. Maybe schedule a cron job to run every so often to send periodic pings. The console connection would help immensely in troubleshooting. Can make one for a few dollars from radio shack parts or can be lazy and buy one from 9thtee.com or weaknees.com for a few dollars more.
cheer
11-20-2006, 10:22 AM
This is almost certainly a DHCP-related problem. Are you using DHCP to assign an IP, or did you assign a static IP? If you assigned a static IP, you must rename dhclient or this problem will continue.
michaeljc70
11-20-2006, 12:11 PM
I made it through the weekend without losing connectivity. This morning, I noticed it was out again. I remember when I applied the hacks, I beleive one causes a reboot on Sunday and Wed. I lost connectivity Thur and Mon morning.
I will look for that file, but I don't think I have that (it was setup initially to have a static IP).
michaeljc70
11-30-2006, 11:14 AM
This is almost certainly a DHCP-related problem. Are you using DHCP to assign an IP, or did you assign a static IP? If you assigned a static IP, you must rename dhclient or this problem will continue.
I renamed the dhclient.lease and it is still having the problem. There is another file with a bunch of letters and numbers with extension .lease. Do I need to get rid of that too?
I have verified over and over that merely unplugging the usb adapter and replugging it in restores connectivity. I don't have to reboot or anything. Obviously, doing this a few times a week isn't going to work. The whole purpose was being able to access these files remotely.
cheer
11-30-2006, 01:26 PM
You have to rename /sbin/dhclient, not dhclient.lease.
michaeljc70
11-30-2006, 07:12 PM
That directory doesn't exist.
That's not a directory. In linux, executables do not need a file extension.
I am having a similar problem. I have a hr10-250. Over Thanksgiving weekend my system was locked up and had to be unplugged to reset. Since then, I can not telnet or access the web page unless I do a continuous ping for about 30 seconds. Thing were working fine prior to having to unplug the unit. Any suggest to correct this problem. I have done several search but can not find any solution.
michaeljc70
12-03-2006, 12:02 AM
That's not a directory. In linux, executables do not need a file extension.
I don't have a file or directory with that name.
Since unplugging the usb adapter and plugging it back in fixes the problem, I am suspicious of the adapter. I don't have another one, but might try picking one up or borrowing one. The one I have was one the compatibilty list I saw for the hack.
The other thing is since it seems to happen after a reboot, I can cancel the auto reboots. I think I have it set to reboot 2x a week. Is that really necessary to keep the hacked unit operating smoothly?
rbautch
12-05-2006, 12:56 AM
I don't have a file or directory with that name.
Since unplugging the usb adapter and plugging it back in fixes the problem, I am suspicious of the adapter. I don't have another one, but might try picking one up or borrowing one. The one I have was one the compatibilty list I saw for the hack.
The other thing is since it seems to happen after a reboot, I can cancel the auto reboots. I think I have it set to reboot 2x a week. Is that really necessary to keep the hacked unit operating smoothly?I have found that if unplugging/replugging the adapter makes it work, it's often a symptom of setting network parameters in more than one place, like if you have ifconfig statements in your author file and also have network params set in MFS. Now that most of the instability of TWP has been removed, the only reason to purposely reboot is for fakecall to take effect.
michaeljc70
12-05-2006, 04:13 PM
I have found that if unplugging/replugging the adapter makes it work, it's often a symptom of setting network parameters in more than one place, like if you have ifconfig statements in your author file and also have network params set in MFS. Now that most of the instability of TWP has been removed, the only reason to purposely reboot is for fakecall to take effect.
Here is what I have. The route I am not sure what that does or if it is needed as the ips don't look familar to me (my tivo is 192.168.1.111).
In my author file (rc.sysinit.author - network related only):
route add -host 204.176.49.2 gw 127.0.0.1
route add -net 204.176.49.0 gw 127.0.0.1 netmask 255.255.2
if rm -rf /firstboot_flag; then
tivosh /hacks/network.tcl 192.168.1.111 192.168.1.1
In my mfs file (mfs_network):
IP Address = 192.168.1.111
DNS = 4.2.2.2
Default Gateway = 192.168.1.1
Subnet Mask = 255.255.255.0
DHCP is off
I used a script to do the auto-reboot and am not that familiar with it. I assume it is a cron job. How can I disable that?
rbautch
12-05-2006, 11:33 PM
Edit your crontab (filename is "root").
marlboroman
12-06-2006, 12:20 AM
Edit your crontab (filename is "root").
More specifically, if you are using AlphaWolf's AIO binary of cron or suspect that is what it is using, it is hard coded to /var/spool/cron/crontabs/root
You could also do a find / -name cron* if it's not in that location and hopefully the script has the expression in the path or filename
michaeljc70
12-06-2006, 11:39 AM
More specifically, if you are using AlphaWolf's AIO binary of cron or suspect that is what it is using, it is hard coded to /var/spool/cron/crontabs/root
You could also do a find / -name cron* if it's not in that location and hopefully the script has the expression in the path or filename
Thanks. I've commented out those lines and I'll see if that fixes my connectivity problem.
michaeljc70
12-07-2006, 08:23 PM
I removed the reboot and am still having the problem. It was fine this morning and I lost connectivity by noon. I had connectivity for a good 5 days. When I unplugged the network adapter and plugged it back in, everything was fine.
Any other ideas? Is there a way to programmatically stop and restart the network connectivity (like via cron job)?
marlboroman
12-07-2006, 10:54 PM
You could create an intermittent ping to keep network activity alive. I don't know what daemon the Tivo uses to start/stop the network. It's not inetd cause I just try to grep for that process. Maybe someone else might know or you can go through the rc.sysinit and the scripts it calls to take a look.
cheer
12-08-2006, 01:54 PM
Tivo doesn't start/stop -- tivo just starts the network on boot.
I still think you need to fix the problem, not bandaid it. Remove the static IP completely and see if the box gets an IP addres via DHCP. If it does, then you need to double-check for the existence of /sbin/dhclient.
michaeljc70
12-08-2006, 07:05 PM
Tivo doesn't start/stop -- tivo just starts the network on boot.
I still think you need to fix the problem, not bandaid it. Remove the static IP completely and see if the box gets an IP addres via DHCP. If it does, then you need to double-check for the existence of /sbin/dhclient.
That /sbin/dhclient isn't there, so I am a little concerned. If I change DHCP is off to DHCP is ON and the file isn't there, what will happen? If I make a change and completely lose network connectivity, I am hosed (short of pulling drive again, opening pc, opening tivo, etc).
What about these lines in my author:
route add -host 204.176.49.2 gw 127.0.0.1
route add -net 204.176.49.0 gw 127.0.0.1 netmask 255.255.2
Do they do anything or harm anything? I don't recognize the IPs.
marlboroman
12-09-2006, 12:19 AM
Those are the routes to prevent the Tivo from calling home via the ethernet. (Those are the network addresses of Tivo so it tells your unit to go to localhost to reach them and not out your internet gateway). Don't think it matters whether they are there or not since the HR10 can't use the network to call home unless you modify a file (I did this once, think it's one of the scripts that rc.sysinit calls but can't remember which one).
rbautch
12-09-2006, 01:27 PM
That /sbin/dhclient isn't there, so I am a little concerned. If I change DHCP is off to DHCP is ON and the file isn't there, what will happen? If I make a change and completely lose network connectivity, I am hosed (short of pulling drive again, opening pc, opening tivo, etc).
What about these lines in my author:
route add -host 204.176.49.2 gw 127.0.0.1
route add -net 204.176.49.0 gw 127.0.0.1 netmask 255.255.2
Do they do anything or harm anything? I don't recognize the IPs.Do you have a file called "dhclient-disabled", or something like it?
michaeljc70
12-12-2006, 06:08 PM
yes, I have the dhclient-disabled. The script I used initially asked if I wanted a static IP and I assume it renamed it.
michaeljc70
12-16-2006, 04:26 PM
I m still having the issue. The time between networking going out has increased, but it still goes out every week or 2.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.