Project

General

Profile

Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy

Added by Gunnar Tryggvason almost 12 years ago

Tvheadend stopped working, i.e. get following error.:

Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy and
v4l: Unable to open /dev/video1 -- Device or resource busy
Jan 29 20:17:45 [INFO]:epggrab: module eit created
Jan 29 20:17:45 [INFO]:epggrab: module uk_freesat created
Jan 29 20:17:45 [INFO]:epggrab: module uk_freeview created
Jan 29 20:17:45 [INFO]:epggrab: module opentv-skyuk created
Jan 29 20:17:45 [INFO]:epggrab: module opentv-ausat created
Jan 29 20:17:45 [INFO]:epggrab: module opentv-skyit created
Jan 29 20:17:45 [INFO]:epggrab: module pyepg created
Jan 29 20:17:45 [INFO]:epggrab: module xmltv created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_huro created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_dk_dr created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_se_swedb created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_fr created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_il created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_fi_sv created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_fr_kazer created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_uk_rt created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_nl created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_fi created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_uk_bleb created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_es_miguiatv created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_es_laguiatv created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_ar created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_in created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_na_dd created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_za created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_dtv_la created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_it created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_ee created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_pt_meo created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_eu_epgdata created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_pt created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_hr created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_is created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_combiner created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_no_gfeed created
Jan 29 20:17:46 [INFO]:epggrab: module /usr/bin/tv_grab_ch_search created
Jan 29 20:17:46 [INFO]:epgdb: loaded v2
Jan 29 20:17:46 [INFO]:epgdb: channels 0
Jan 29 20:17:46 [INFO]:epgdb: brands 0
Jan 29 20:17:46 [INFO]:epgdb: seasons 0
Jan 29 20:17:46 [INFO]:epgdb: episodes 0
Jan 29 20:17:46 [INFO]:epgdb: broadcasts 0
Jan 29 20:17:46 [INFO]:dvr: Creating new configuration ''
Jan 29 20:17:46 [WARNING]:dvr: Output directory for video recording is not yet configured for DVR configuration "". Defaulting to to "/root". This can be changed from the web user interface.
Jan 29 20:17:46 [INFO]:CSA: Using SSE2 128bit parallel descrambling
Jan 29 20:17:46 [NOTICE]:START: HTS Tvheadend version 3.2.34~gfaee94b~precise started, running as PID:2686 UID:0 GID:0, settings located in '/root/.hts/tvheadend'
Jan 29 20:17:47 [INFO]:AVAHI: Service 'Tvheadend' successfully established.

If I run lsof | grep /dev/dvb/adapter0/demux0

I get this.

lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/gunnar/.gvfs
Output information may be incomplete.
tvheadend 1327 hts 10u CHR 212,1 0t0 8421 /dev/dvb/adapter0/demux0
tvheadend 1327 hts 11u CHR 212,1 0t0 8421 /dev/dvb/adapter0/demux0
tvheadend 1327 hts 13u CHR 212,1 0t0 8421 /dev/dvb/adapter0/demux0
tvheadend 1327 hts 19u CHR 212,1 0t0 8421 /dev/dvb/adapter0/demux0
tvheadend 1327 hts 21u CHR 212,1 0t0 8421 /dev/dvb/adapter0/demux0

Tvheadend wont sinc to channels or update epg as "Device or resource busy". I am using Ubuntu 12.04 and Haupauge 1300 card.


Replies (4)

RE: Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy - Added by Adam Sutton almost 12 years ago

Have you got 2 instances of TVH running? Since the one in lsof has different PID to the debug listed before.

Adam

RE: Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy - Added by Gunnar Tryggvason almost 12 years ago

Thats the case. I dont know how to get rid of this second proccess. All was well until I installed a second videocard (analog). I removed the analog card, uninstalled TVheadend and installed again, without any luck. I tryed to kill the process (pid no), but new one started again????? I did that several times, but new tvheadend turned up again with new pid no. How can I remove tvheadend completely with all folders and files?

Regards GT

RE: Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy - Added by Adam Sutton almost 12 years ago

If you're installing the debs on Ubuntu then the process is started (and monitored) by upstart, so that in the event of a crash it will auto-restart. So to stop the process you must do it properly via upstart:

sudo stop tvheadend

and to restart

sudo start tvheadend

Adam

RE: Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy - Added by Gunnar Tryggvason almost 12 years ago

After I stop the process with
sudo stop tvheadend
I then do tvheadend stop and get this error.:

gunnar@gunnar-tv:~$ tvheadend stop
Jan 31 23:40:10 [INFO]:charset: 59 entries loaded
Jan 31 23:40:10 [ALERT]:dvb: Unable to open /dev/dvb/adapter0/frontend0 -- Device or resource busy
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: cx8800 Hauppauge WinTV-HVR1300 DVB-T/H PCI:0000:01:07.0 capabilities: 0x05010011
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #0: 0000000000001000 NTSC-M, frameperiod: 1001/30000, 525 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #1: 0000000000002000 NTSC-M-JP, frameperiod: 1001/30000, 525 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #2: 0000000000004000 NTSC-443, frameperiod: 1001/30000, 525 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #3: 0000000000000007 PAL-BG, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #4: 0000000000000010 PAL-I, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #5: 00000000000000e0 PAL-DK, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #6: 0000000000000100 PAL-M, frameperiod: 1001/30000, 525 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #7: 0000000000000200 PAL-N, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #8: 0000000000000400 PAL-Nc, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #9: 0000000000000800 PAL-60, frameperiod: 1001/30000, 525 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #10: 0000000000010000 SECAM-B, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #11: 0000000000040000 SECAM-G, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #12: 0000000000080000 SECAM-H, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #13: 0000000000320000 SECAM-DK, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Standard #14: 0000000000400000 SECAM-L, frameperiod: 1/25, 625 lines
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Input #0: Television (Tuner), audio:0x0, tuner:0, standard:00000000007f7ff7,
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Input #1: Composite1 (Camera), audio:0x0, tuner:0, standard:0000000000000000,
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Input #2: S-Video (Camera), audio:0x0, tuner:0, standard:0000000000000000,
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #0: 8 bpp, gray [GREY]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #1: 15 bpp RGB, le [RGBO]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #2: 15 bpp RGB, be [RGBQ]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #3: 16 bpp RGB, le [RGBP]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #4: 16 bpp RGB, be [RGBR]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #5: 24 bpp RGB, le [BGR3]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #6: 32 bpp RGB, le [BGR4]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #7: 32 bpp RGB, be [RGB4]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #8: 4:2:2, packed, YUYV [YUYV]
Jan 31 23:40:10 [INFO]:v4l: /dev/video0: Format #9: 4:2:2, packed, UYVY [UYVY]
Jan 31 23:40:10 [WARNING]:v4l: /dev/video0: Device lacks MPEG encoder, device skipped
Jan 31 23:40:10 [ALERT]:v4l: Unable to open /dev/video1 -- Device or resource busy
Jan 31 23:40:10 [INFO]:epggrab: module eit created
Jan 31 23:40:10 [INFO]:epggrab: module uk_freesat created
Jan 31 23:40:10 [INFO]:epggrab: module uk_freeview created
Jan 31 23:40:10 [INFO]:epggrab: module opentv-skyuk created
Jan 31 23:40:10 [INFO]:epggrab: module opentv-ausat created
Jan 31 23:40:10 [INFO]:epggrab: module opentv-skyit created
Jan 31 23:40:10 [INFO]:epggrab: module pyepg created
Jan 31 23:40:10 [INFO]:epggrab: module xmltv created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_huro created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_dk_dr created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_se_swedb created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_fr created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_il created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_fi_sv created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_fr_kazer created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_uk_rt created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_nl created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_fi created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_uk_bleb created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_es_miguiatv created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_es_laguiatv created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_ar created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_in created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_na_dd created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_za created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_dtv_la created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_it created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_ee created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_pt_meo created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_eu_epgdata created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_pt created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_hr created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_is created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_combiner created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_no_gfeed created
Jan 31 23:40:12 [INFO]:epggrab: module /usr/bin/tv_grab_ch_search created
Jan 31 23:40:12 [INFO]:epgdb: loaded v2
Jan 31 23:40:12 [INFO]:/usr/bin/tv_grab_is: grab /usr/bin/tv_grab_is
Jan 31 23:40:12 [INFO]:epgdb: channels 0
Jan 31 23:40:12 [INFO]:epgdb: brands 0
Jan 31 23:40:12 [INFO]:epgdb: seasons 0
Jan 31 23:40:12 [INFO]:epgdb: episodes 0
Jan 31 23:40:12 [INFO]:epgdb: broadcasts 0
Jan 31 23:40:12 [INFO]:dvr: Creating new configuration ''
Jan 31 23:40:12 [INFO]:CSA: Using SSE2 128bit parallel descrambling
Jan 31 23:40:12 [NOTICE]:START: HTS Tvheadend version 3.2.34~gfaee94b~precise started, running as PID:16469 UID:1000 GID:1000, settings located in '/home/gunnar/.hts/tvheadend'
Jan 31 23:40:13 [INFO]:AVAHI: Service 'Tvheadend' successfully established.
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: grab took 14 seconds
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: parse took 0 seconds
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: channels tot= 2 new= 0 mod= 0
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: brands tot= 0 new= 0 mod= 0
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: seasons tot= 0 new= 0 mod= 0
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: episodes tot= 0 new= 0 mod= 0
Jan 31 23:40:26 [INFO]:/usr/bin/tv_grab_is: broadcasts tot= 0 new= 0 mod= 0

How can I get rid of this second process running?

    (1-4/4)