← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 478895] Re: Error connecting to HDHR causes too many files open

 

[Expired for mythtv (Ubuntu) because there has been no activity for 60
days.]

** Changed in: mythtv (Ubuntu)
       Status: Incomplete => Expired

-- 
Error connecting to HDHR causes too many files open
https://bugs.launchpad.net/bugs/478895
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in ubuntu.

Status in “mythtv” package in Ubuntu: Expired

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
                       eno: Too many open files (24)
2009-11-05 07:09:12.858 HDHRSH(10173A3D-1) Error: Set request failed
                       eno: Too many open files (24)
2009-11-05 07:09:12.883 HDHRSH(10173A3D-1) Error: Get request failed
                       eno: Too many open files (24)
2009-11-05 07:09:12.909 HDHRSH(10173A3D-1) Error: Set request failed
                       eno: Too many open files (24)
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
                       eno: Too many open files (24)
2009-11-05 07:09:13.009 HDHRSH(10173A3D-1) Error: Set request failed
                       eno: Too many open files (24)

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/limits.conf:
@mythtv        hard    nofile         65535
@mythtv        soft    nofile         65535

Max-files open:
cat /proc/sys/fs/file-max
87309

cat /proc/sys/fs/file-nr
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)
NonfreeKernelModules: nvidia
Package: mythtv-backend 0.22.0+fixes22594-0ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: mythtv
Uname: Linux 2.6.31-14-generic i686
XsessionErrors: (polkit-gnome-authentication-agent-1:2705): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed