Error connecting to HDHR causes too many files open
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythtv (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mythtv
New to 0.22 and Karmic, I have started getting too many file open errors with my myth backend which is very disconcerting (it may be stopping my recordings). The symptom is not being able to start watching live TV (the computer is a dual backend + frontend)
When this happens, I see this in my mythbackend.log:
2009-11-05 07:09:12.719 TVRec(5): Changing from None to Watching WatchingLiveTV
2009-11-05 07:09:12.767 TVRec(5): HW Tuner: 5->5
2009-11-05 07:09:12.792 HDHRSH(10173A3D-1) Error: Unable to connect to device
2009-11-05 07:09:12.839 HDHRSH(10173A3D-1) Error: Get request failed
2009-11-05 07:09:12.858 HDHRSH(10173A3D-1) Error: Set request failed
2009-11-05 07:09:12.883 HDHRSH(10173A3D-1) Error: Get request failed
2009-11-05 07:09:12.909 HDHRSH(10173A3D-1) Error: Set request failed
2009-11-05 07:09:12.934 TVRec(5) Error: Failed to set channel to 91. Reverting to kState_None
2009-11-05 07:09:12.959 TVRec(5): Changing from Watching WatchingLiveTV to None
2009-11-05 07:09:12.984 HDHRSH(10173A3D-1) Error: Get request failed
2009-11-05 07:09:13.009 HDHRSH(10173A3D-1) Error: Set request failed
It seems that the problem is either in the backend or in the hdhomerun libraries. Restarting the backend temporarily addresses the issue. The problem seems to be occurring at least once a day.
I have attempted to change my number of open files for the mythtv group, but that did not help
Snippet from /etc/security/
@mythtv hard nofile 65535
@mythtv soft nofile 65535
Max-files open:
cat /proc/sys/
87309
cat /proc/sys/
4832 0 87309
I keep forgetting to run lsof before restarting the backend, but I'll attach that next time it happens. This never happened to me while running Jaunty on this computer.
ProblemType: Bug
Architecture: i386
Date: Sun Nov 8 22:03:05 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Mythbuntu 9.10 "Karmic Koala" - Release Candidate i386 (20091021)
NonfreeKernelMo
Package: mythtv-backend 0.22.0+
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: mythtv
Uname: Linux 2.6.31-14-generic i686
XsessionErrors: (polkit-
The actual problem doesn't appear to be that too many files are opened - the first problem is that it's not able to connect to the device, and then it tries to do some action over and over causing too many file to open up.
Were you having some weird network issues by chance? Errors with your network driver maybe?
Please double check all of your hardware and check ifconfig output for TX or RX errors.
It doesn't look like there has been any changes to the HDHR library support since you filed this bug (http:// svn.mythtv. org/trac/ browser/ branches/ release- 0-22-fixes/ mythtv/ libs/libmythtv) but before we forward this upstream, they generally ask that you are running the latest -fixes checkout.
The Mythbuntu team has builds of newer versions of MythTV available on a PPA if mythbuntu. org/auto- builds
you are interested in upgrading. Please follow the directions at http://
to enable them.