NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 29 30 31 32 33 34 Next »
NPVR stopped detecting RTL2838 DVB-T

 
  • 0 Vote(s) - 0 Average
NPVR stopped detecting RTL2838 DVB-T
spasiklas
Offline

Junior Member

Posts: 11
Threads: 1
Joined: Oct 2019
#1
2019-10-19, 06:34 PM (This post was last modified: 2019-10-19, 06:41 PM by spasiklas.)
Hello,

A couple of weeks ago I installed NextPVR on Ubuntu 18.04 and it worked normally for a couple of days, but at some point the tv tuner disappeared from the Devices list.

I can still use the same tv tuner with Kaffeine (on the same computer) and it works ok.

I removed NextPVR (with apt purge) and installed it again today, only to find out that NextPVR does not detect it, again (but the web UI works).

lsusb returns Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T

I also saw this in the log
Code:
[...startup]
2019-10-19 20:44:12.760    [DEBUG][1]    No /var/opt/nextpvr/scripts/PreStartup.sh
2019-10-19 20:44:12.771    [DEBUG][1]    Checking if upgrade required
2019-10-19 20:44:12.773    [DEBUG][1]    master file is /opt/nextpvr/system/data/Config-master-dont-edit.xml
2019-10-19 20:44:12.780    [DEBUG][1]    Doing database updates
2019-10-19 20:44:12.781    [DEBUG][1]    Database: /var/opt/nextpvr/npvr.db3
2019-10-19 20:44:12.847    [INFO][1]    Version 5.0.0.191018
2019-10-19 20:44:12.966    [DEBUG][1]    CaptureSource.LoadAll()
2019-10-19 20:44:13.625    [DEBUG][1]    []
2019-10-19 20:44:13.648    [DEBUG][1]    HDHR Discover
2019-10-19 20:44:14.608    [DEBUG][1]    Local Devices: <devices>

2019-10-19 20:44:14.650    [ERROR][1]    Unexpected error scanning for other devices: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: devices. Line 2, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at NShared.Visible.CaptureSource.UpdateDevices(ICaptureSourceUpdateStatus callback)
2019-10-19 20:44:17.011    [DEBUG][1]    CaptureSource.LoadAll()
2019-10-19 20:44:17.028    [INFO][1]    Using in-progress RecordingService
2019-10-19 20:44:17.030    [INFO][1]    RecordingService.Startup()
2019-10-19 20:44:17.034    [DEBUG][9]    PowerManagement CancelWakeup (needs implementation)
2019-10-19 20:44:17.040    [DEBUG][9]    Requesting wake up for 'EPG-UPDATE' [EPG Update] at

and sudo systemctl status nextpvr-server returns this
server.sh[925]: ERROR: Open frontend0 failed
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#2
2019-10-19, 08:03 PM
Make sure Kaffeine isn't holding the device open. If you run

/opt/nextpvr/system/DeviceHost/x64/DeviceHostLinux -discover

do you see any additional messages?

Martin
spasiklas
Offline

Junior Member

Posts: 11
Threads: 1
Joined: Oct 2019
#3
2019-10-19, 10:12 PM
(2019-10-19, 08:03 PM)mvallevand Wrote: Make sure Kaffeine isn't holding the device open.  If you run

/opt/nextpvr/system/DeviceHost/x64/DeviceHostLinux -discover

do you see any additional messages?

Martin
Thank you for your reply. This is the output
Code:
~$ /opt/nextpvr/system/DeviceHost/x64/DeviceHostLinux -discover
<devices>
  <device>
    <name>adapter0 (Realtek RTL2832 (DVB-T))</name>
    <type>DVB-T</type>
    <filter>adapter0</filter>
    <instance>1</instance>
    <resource>adapter0</resource>
  </device>
  <device>
    <name>adapter0 (Realtek RTL2832 (DVB-T))</name>
    <type>DVB-C</type>
    <filter>adapter0</filter>
    <instance>1</instance>
    <resource>adapter0</resource>
  </device>
</devices>

I did sudo apt purge kaffeine && sudo systemctl restart nextpvr-server but the issue persists.
Is there a way to check if there is another app holding it open? (although I don't think that I have any other apps that could be using it)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#4
2019-10-19, 10:20 PM
If you get that output then the tuner is not locked, however your earlier snippet showed it locked when the server started. Do you still get that error on a restart?

Martin
spasiklas
Offline

Junior Member

Posts: 11
Threads: 1
Joined: Oct 2019
#5
2019-10-19, 10:33 PM (This post was last modified: 2019-10-19, 11:46 PM by spasiklas.)
(2019-10-19, 10:20 PM)mvallevand Wrote: If you get that output then the tuner is not locked, however your earlier snippet showed it locked when the server started.  Do you still get that error on a restart?

Martin
Yes, the only device is IPTV, nothing else.

/opt/nextpvr/system/DeviceHost/x64/DeviceHostLinux -discover
still shows the device but the web ui does not

Code:
[ERROR][1]    Unexpected error scanning for other devices: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: devices. Line 2, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at NShared.Visible.CaptureSource.UpdateDevices(ICaptureSourceUpdateStatus callback)
This error is still here


Attached Files
.zip   logs-20191020-0129.zip (Size: 2 bytes / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#6
2019-10-19, 11:06 PM
Are your /dev/dvb/adaptor devices in the video group? If so can you check to see if nextpvr (the user the deb installer created for the server) is also in video ie:

getent group video

Martin
spasiklas
Offline

Junior Member

Posts: 11
Threads: 1
Joined: Oct 2019
#7
2019-10-19, 11:14 PM
(2019-10-19, 11:06 PM)mvallevand Wrote: Are your /dev/dvb/adaptor devices in the video group?  If so can you check to see if nextpvr (the user the deb installer created for the server) is also in video ie:

getent group video

Martin

Code:
~$  getent group video
video:x:44:nextpvr
I have followed this in order to setup the folders but I haven't done anything for the device.

How do I add it to the video group?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#8
2019-10-19, 11:18 PM
Normally the devices are added to the video group when they are installed but you can confirm

ls -lt /dev/dvb/adapter0

Martin
spasiklas
Offline

Junior Member

Posts: 11
Threads: 1
Joined: Oct 2019
#9
2019-10-19, 11:20 PM
(2019-10-19, 11:18 PM)mvallevand Wrote: Normally the devices are added to the video group when they are installed but you can confirm

ls -lt /dev/dvb/adapter0

Martin

This is the output, not sure about what it means
Code:
~$ ls -lt /dev/dvb/adapter0
total 0
crw-rw----+ 1 root plugdev 212, 1 Οκτ  20 01:26 dvr0
crw-rw----+ 1 root plugdev 212, 3 Οκτ  20 01:26 frontend0
crw-rw----+ 1 root plugdev 212, 2 Οκτ  20 01:26 net0
crw-rw----+ 1 root plugdev 212, 0 Οκτ  20 01:26 demux0
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,104
Threads: 957
Joined: May 2006
#10
2019-10-19, 11:28 PM
It means that you probably can't access it with nextpvr. Maybe try

sudo usermod -a -G plugdev nextpvr

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NPVR stops playing live TV at about 6 mins Tnix 14 1,938 2024-04-01, 10:09 PM
Last Post: sub
  NPVR can only see 100GB of a 3TB hard drive WagMan 13 2,043 2024-01-12, 11:54 PM
Last Post: mvallevand
  NextPVR suddenly stopped receiving streams bmentink 10 1,740 2024-01-10, 02:28 AM
Last Post: mvallevand
  apt upgrade broke NPVR WagMan 11 1,740 2024-01-01, 04:59 PM
Last Post: mvallevand
  WinTV Dual HD tuner not detecting through NextPVR on RPI joshdee 11 1,979 2023-09-11, 09:39 PM
Last Post: LynnO
  Nextpvr Has Stopped Recording Mark_S 4 933 2023-05-28, 04:27 PM
Last Post: Mark_S
  Current extras tuner process not stopped when recording on another channel is schedul greatwhitenorth 4 1,116 2022-12-04, 09:37 PM
Last Post: greatwhitenorth
  nextpvr server stopped running SteveTyrakowski 22 4,894 2021-10-30, 10:41 PM
Last Post: mvallevand
  Npvr server crash baj1 17 4,927 2021-02-09, 04:25 PM
Last Post: baj1
  Importing Channels from an existing NPVR flyingsubs 4 2,508 2020-10-09, 05:09 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode