[Plugin] Linuxserver.io - Unraid DVB


Recommended Posts

On 4/29/2019 at 6:30 PM, Steve-0 said:

I have been struggling with this one for a bit, and did see someone else having this issue - but no resolution was presented.

first, NVidia Unraid plugin pulls available builds just fine.

 

however, when trying to pull available builds on unraid-dvb, it just sits at "updating available builds" until I finally give up. I have the latest unraid and version of the dvb plugin. here is the relevant log entries:

 

nginx: 2019/04/29 17:46:02 [error] 8733#8733: *11178 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.203.202, server: , request: "POST /plugins/UnraidDVB/include/exec.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.203.5", referrer: "http://192.168.203.5/Settings/UnraidDVB"


I am at a loss, and would appreciate any help.

I have the same problem and I am at a loss for troubleshooting at this point. I have in the past managed to get it to work but now it does not matter how many times I restart php-fpm or reboot the server. unraid-dvb just hangs at updating and exec.php times out just like your error message.

 

UPDATE: I removed unraid-dvb, updated stock unraid to 6.7.0-rc8 then reinstalled unraid-dvb and it still took awhile but it finally made it past and allowed me to install the new version of unraid-dvb.

Edited by RawrSpace
Fixed for me
Link to comment
On 4/30/2019 at 12:30 AM, Steve-0 said:

I have been struggling with this one for a bit, and did see someone else having this issue - but no resolution was presented.

first, NVidia Unraid plugin pulls available builds just fine.

 

however, when trying to pull available builds on unraid-dvb, it just sits at "updating available builds" until I finally give up. I have the latest unraid and version of the dvb plugin. here is the relevant log entries:

 

nginx: 2019/04/29 17:46:02 [error] 8733#8733: *11178 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.203.202, server: , request: "POST /plugins/UnraidDVB/include/exec.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.203.5", referrer: "http://192.168.203.5/Settings/UnraidDVB"


I am at a loss, and would appreciate any help.

These issues are connection problems to our server, not sure there's anything we can do about it our end tbh.....

Link to comment
On 5/4/2019 at 5:34 PM, CHBMB said:

These issues are connection problems to our server, not sure there's anything we can do about it our end tbh.....

I get that. But why does nvidia unraid work with no problem? Is there a way to manually download the unraid DVB builds in the meantime? I don't really expect you to do anything on your end, I am asking what is wrong on my end. Where do I even look?

 

Link to comment
6 hours ago, Steve-0 said:

I get that. But why does nvidia unraid work with no problem? Is there a way to manually download the unraid DVB builds in the meantime? I don't really expect you to do anything on your end, I am asking what is wrong on my end. Where do I even look?

 

If you wanted to download manually.  It's a bit of a pain....

 

The base URL is

https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/

then you need the Unraid version in this form.....

6-6-7
6-7-0-rc8

followed by the version you want to download

dd
libreelec
stock
tbs-os
tbs-crazy-dvbst

followed by the file you want to download, so you'll need all of them.....

bzimage
bzroot
bzroot-gui
bzfirmware
bzmodules

 

So the whole URL for v6.7.0rc8 LibreELEC for the bzimage file would be

 

https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/6-7-0-rc8/libreelec/bzimage

 

Here's a script you could use

#!/bin/bash

#Set your Unraid version here
UNRAID_VERSION="6-7-0-rc8"

# Set the type of build you want here
DVB_TYPE="libreelec"

#Set the download location here
DOWNLOAD_LOCATION="/mnt/disk1/download/"

echo Downloading v$UNRAID_VERSION of the $DVB_TYPE build to the $DOWNLOAD_LOCATION folder

#Make target directory
mkdir -p ${DOWNLOAD_LOCATION}

#download files
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzimage -O ${DOWNLOAD_LOCATION}/bzimage
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzroot -O ${DOWNLOAD_LOCATION}/bzroot
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzroot-gui -O ${DOWNLOAD_LOCATION}/bzroot-gui
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzfirmware -O ${DOWNLOAD_LOCATION}/bzfirmware
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzmodules -O ${DOWNLOAD_LOCATION}/bzmodules

#download sha356 files
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzimage.sha256 -O ${DOWNLOAD_LOCATION}/bzimage.sha256
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzroot.sha256 -O ${DOWNLOAD_LOCATION}/bzroot.sha256
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzroot-gui.sha256 -O ${DOWNLOAD_LOCATION}/bzroot-gui.sha256
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzfirmware.sha256 -O ${DOWNLOAD_LOCATION}/bzfirmware.sha256
wget https://lsio.ams3.digitaloceanspaces.com/unraid-dvb/${UNRAID_VERSION}/${DVB_TYPE}/bzmodules.sha256 -O ${DOWNLOAD_LOCATION}/bzmodules.sha256

#check sha256 files
BZIMAGESHA256=$(cat ${DOWNLOAD_LOCATION}/bzimage.sha256 | cut -c1-64)
BZROOTSHA256=$(cat ${DOWNLOAD_LOCATION}/bzroot.sha256 | cut -c1-64)
BZROOTGUISHA256=$(cat ${DOWNLOAD_LOCATION}/bzroot-gui.sha256 | cut -c1-64)
BZFIRMWARESHA256=$(cat ${DOWNLOAD_LOCATION}/bzfirmware.sha256 | cut -c1-64)
BZMODULESSHA256=$(cat ${DOWNLOAD_LOCATION}/bzmodules.sha256 | cut -c1-64)

#calculate sha256 on downloaded files
BZIMAGE=$(sha256sum $DOWNLOAD_LOCATION/bzimage | cut -c1-64)
BZROOT=$(sha256sum $DOWNLOAD_LOCATION/bzroot | cut -c1-64)
BZROOTGUI=$(sha256sum $DOWNLOAD_LOCATION/bzroot-gui | cut -c1-64)
BZFIRMWARE=$(sha256sum $DOWNLOAD_LOCATION/bzfirmware | cut -c1-64)
BZMODULES=$(sha256sum $DOWNLOAD_LOCATION/bzmodules | cut -c1-64)

#Compare expected with actual downloaded files
[[ $BZIMAGESHA256 == $BZIMAGE ]]; echo "bzimage passed sha256 verification"
[[ $BZROOTSHA256 == $BZROOT ]]; echo "bzroot passed sha256 verification"
[[ $BZROOTGUISHA256 == $BZROOTGUI ]]; echo "bzroot-gui passed sha256 verification"
[[ $BZFIRMWARESHA256 == $BZFIRMWARE ]]; echo "bzfirmware passed sha256 verification"
[[ $BZMODULESSHA256 == $BZMODULES ]]; echo "bzmodules passed sha256 verification"

Copy that to a file and call it

download.sh

save it to somewhere on your array, like your cache disk.

Make it executable with

chmod +x download.sh

and run it with

./download.sh

Make sure you use a text editor with Linux line endings and that they're set as such.  Notepad++ if you're using Windows would be my recommendation.

 

Then copy the files across to the flash disk.

Edited by CHBMB
  • Like 2
Link to comment
5 hours ago, Steve-0 said:

I get that. But why does nvidia unraid work with no problem? Is there a way to manually download the unraid DVB builds in the meantime? I don't really expect you to do anything on your end, I am asking what is wrong on my end. Where do I even look?

 

MTU has been something responsible in the past, other than that, got no idea, never been able to reproduce it.

Link to comment

hey @CHBMB,

 

tried the latest LibreELEC build 6.7.0-rc8, but it failed.

i'm on a Digital Devices card (TVHeadend recognizes the tuners as: Sony CXD2854ER).

unraid_dvb_670-rc8_libreelec.png.92e5392a766e1b32dd7ef43f978130e9.png

 

might it be, that the DVB drivers are missing and so no tv-card gets recognized? it results in no /dev/dvb directory to be created and so the tvheadend docker won't start.

 

6.7.0-rc7 worked fine.

Edited by s.Oliver
  • Like 1
Link to comment
18 minutes ago, CHBMB said:

OK guys, recompiled all of the dvb builds.  Also managed to build Digital Devices, using their master branch instead of their latest release.

She is buttery smooth again now! Thanks so much for your kind support CHBMB!

Link to comment
Just now, Jimmy90 said:

She is buttery smooth again now! Thanks so much for your kind support CHBMB!

Yeah, it's always the human factor that buggers these up (me) also, I used to test them myself, but I no longer have any DVB kit so I can't test them any more.....

  • Like 1
Link to comment
On 5/9/2019 at 12:59 PM, s.Oliver said:

running this time the Digital Devices Build (6.7.0-rc8) and it looks good!

 

thanks alot @CHBMB for doing the magic! 🙂

 

Cheers for letting me know.  I'll continue to build it from master until it either breaks again or they push a new release.

  • Upvote 1
Link to comment
On 4/4/2019 at 4:08 PM, max007 said:

Thank you for the response, I will wait until the stable version is out and if it is not fixed I will try creating an issue on GitHub on TBS open source drivers.

 

I am going to migrate to recently released TBS 6904-X soon though, hopefully, it will work flawlessly with that card since there has been recently multiple fixes pushed into TBS repo for that card.

Hello, 

 

providing an update to the issue with TBS-5990 stopping to work after a while on RC versions. I have narrowed down the problem to a scenario when both tuners are enabled and I switch like 7-8 channels after each other, it stops working.

 

With only 1 tuner enabled, it seems to work well. On the other topic, my TBS Q-BOX S2 which was not working properly on unraid 6.6.7 started working, so I am still able to get 2 tuners so for now, I am staying on RC8. I created a GitHub issue on https://github.com/tbsdtv/linux_media/issues/161 where I am describing more details, logs from sys, tvheadend, etc.

 

It seems to stop to work at these messages/events in syslog:

 

1.) 

May 10 22:53:17 Tower kernel: cx231xx 1-14:1.1: submit of urb 4 failed (error=-11) <<<--- I think here it stopped working

 

2.)

May 10 23:37:12 Tower kernel: cx231xx 1-14:1.1: Unknown tuner type configuring SIF
May 10 23:37:12 Tower kernel: cx231xx 1-14:1.1: unable to allocate 32768 bytes for transfer buffer 1 <<<--- I think here it stopped working
May 10 23:40:32 Tower kernel: cx231xx 1-14:1.1: Unknown tuner type configuring SIF
May 10 23:40:32 Tower kernel: cx231xx 1-14:1.1: unable to allocate 32768 bytes for transfer buffer 0

 

And these in tvheadend:

 

1.)

2019-05-10 22:53:17.233 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - failed to config dmx for pid 1501 [e=Resource temporarily unavailable]
2019-05-10 22:53:17.985 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - poll TIMEOUT
2019-05-10 22:53:18.667 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - retune nodata
2019-05-10 22:53:25.649 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - poll TIMEOUT
2019-05-10 22:53:25.718 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - retune nodata

 

2.)

2019-05-10 23:07:53.794 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - failed to config dmx for pid 1501 [e=Out of memory]
2019-05-10 23:07:54.546 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - poll TIMEOUT
2019-05-10 23:07:58.183 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - retune nodata
2019-05-10 23:08:02.207 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - poll TIMEOUT
2019-05-10 23:08:03.239 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - retune nodata

 

3.)

2019-05-10 23:22:51.316 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - failed to config dmx for pid 350 [e=Resource temporarily unavailable]
2019-05-10 23:22:52.068 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - poll TIMEOUT
2019-05-10 23:22:52.740 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - retune nodata
2019-05-10 23:22:59.726 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - poll TIMEOUT
2019-05-10 23:22:59.790 linuxdvb: TurboSight TBS 5990 #3 : DVB-S #0 - retune nodata

 

I am still wondering if there is something I could change in tvheadend to make it work, or if it is kernel/drivers issue. More details are in the GitHub linked at the start of this message. I will post an update when I have some for people who come by this message in the future.

 

  • Upvote 1
Link to comment

v6.7.0 just uploading, LibreELEC, TBS-OS, TBS-CrazyCat, Digital Devices all compiled.

 

Please test and let me know what's working, what isn't.

 

EDIT: I've pulled these builds.  Since trying to compile Nvidia I've noticed some issues with a major GCC version upgrade, I think it's better to rebuild these with the same version of GCC as used by LT.

Edited by CHBMB
  • Upvote 1
Link to comment
12 hours ago, CHBMB said:

@max007 Thanks for reporting upstream, ping me here if/when they solve the issue and I can push an updated TBS release.  Out of interest, you tried the CrazyCat TBS drivers?

Will do, thank you. I just confirmed the same issue/behavior on Unraid 6.7.0 both Open Source and Crazycat builds.

Edited by max007
Link to comment
On 5/6/2019 at 5:10 AM, CHBMB said:

MTU has been something responsible in the past, other than that, got no idea, never been able to reproduce it. 

that was the case here too. I am running 10gb fiber, and had MTU set to 9000 everywhere. Put it all back to 1500 and Robert's your father's brother...

Thanks for the insight!

  • Like 1
Link to comment
14 minutes ago, Steve-0 said:

that was the case here too. I am running 10gb fiber, and had MTU set to 9000 everywhere. Put it all back to 1500 and Robert's your father's brother...

Thanks for the insight!

You could always try the script I wrote for you, save you changing your MTU all the while.

Link to comment
2 minutes ago, CHBMB said:

You could always try the script I wrote for you, save you changing your MTU all the while. 

still plan to... and will probably be my long term solution. now that I know what the issue / solution is, I wanted to let everyone else know in case someone had the same issue. Really appreciate all the hard work - and especially spelling out the manual process for us.

Link to comment

Hi CHBMB,

 

Just upgraded to 6.7.0 (was working properly on 6.6.6...LIBRELELEC build)

 

After installing the plugin, my card is detected, but cannot tune anything on tvheadend (timeout error) 

 

Card model:

Hauppauge WinTV-quadHD (DVB-C / DVB-T)

 

Detected on unraid as: 

Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)

 

Plugin info: 
DVB Adapter 1:Silicon Labs Si2168

DVB Adapter 2:Silicon Labs Si2168

DVB Adapter 3:Silicon Labs Si2168

DVB Adapter 4:Silicon Labs Si2168

 

Edited by du.perin
added lib info
Link to comment
17 minutes ago, du.perin said:

Hi CHBMB,

 

Just upgraded to 6.7.0 (was working properly on 6.6.6...LIBRELELEC build)

 

After installing the plugin, my card is detected, but cannot tune anything on tvheadend (timeout error) 

 

Card model:

Hauppauge WinTV-quadHD (DVB-C / DVB-T)

 

Detected on unraid as: 

Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)

 

Plugin info: 
DVB Adapter 1:Silicon Labs Si2168

DVB Adapter 2:Silicon Labs Si2168

DVB Adapter 3:Silicon Labs Si2168

DVB Adapter 4:Silicon Labs Si2168

 

If the drivers are detected and loaded, there's very little I can do to control anything after that point, may be something to do with the kernel change from v6.6.6 to v6.7.0 as quite a lot has changed in the tree for the drivers since then.

 

Only thing I can suggest is, try CrazyCat and see if that's any better/working?

 

How is your card detected in v6.6.6?  As a Silicon Labs Si2168 & Conexant Systems, Inc. CX23885 PCI Video and Audio Decoder (rev 04)?

 

Only other thing I can think of is try a fresh setup of TVHeadend and see if that improves anything, also what version of TVH?  I've found 4.2 to be the most reliable.

Edited by CHBMB
Link to comment
  • Squid locked this topic
Guest
This topic is now closed to further replies.