Autor Thema: Synology package corrupts tvheadend dierkse 4.4.20180117-1  (Gelesen 14130 mal)

SevenW

  • Newbie
  • *
  • Beiträge: 5
    • Profil anzeigen
Synology package corrupts tvheadend dierkse 4.4.20180117-1
« am: Januar 20, 2018, 11:54:56 Vormittag »
Hi,

After spending several evenings figuring out all kind of privelige issues in tvheadend, I finally discovered that the sundtek start-stop-status script actually creates a new user account and changes the ownership of the tvheadend installation to that new user.

This may have been needed a few years back. Currently, it looks like Dierkse has the user accounts gotten right, and now the "hack" in the Sundtek driver is not required. Stronger, it seems to break tvheadend now.

Can you update the synology package either without having this "hack", or making it conditional on a tvheadend version, or make it configurable in the package install UI?

Thanks,
SevenW

jagertee

  • Newbie
  • *
  • Beiträge: 2
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #1 am: Januar 24, 2018, 11:27:16 Nachmittag »
I experienced the same pita :)

in particular I used the latest tvheadend 4.2.5 syno packages from https://www.tvheadend.org/boards/5/topics/27780 on DSM6, and the sundtek tuner did not show up.

I switched back to the - quite outdated - synocommunity tvheadend package the sundtek tuner showed up.

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #2 am: Januar 25, 2018, 12:14:38 Vormittag »
We will have a look at that tomorrow.
Failure is a good thing! I'll fix it

jagertee

  • Newbie
  • *
  • Beiträge: 2
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #3 am: Februar 01, 2018, 10:59:38 Nachmittag »
I was able to fix the issue as follows after installing the sundtek drivers and tvheaden 4.2.5 (https://www.tvheadend.org/boards/5/topics/27780):

nano /var/packages/tvheadend/scripts/service-setup

In the service_prestart function, I prepended the start command for DSM6+ as follows:

    ...
    if [ $SYNOPKG_DSM_VERSION_MAJOR -lt 6 ]; then
        su ${EFF_USER} -s /bin/sh -c "${COMMAND}" >> ${LOG_FILE} 2>&1 &
    else
        LD_PRELOAD=${SYNOPKG_PKGDEST}/lib/libmediaclient.so ${COMMAND} >> ${LOG_FILE} 2>&1 &
    fi
    ...

Prior to that I copied libmediaclient.so from /volume1/\@appstore/sundtek/opt/lib/ to /volume1/\@appstore/tvheadend/lib/
and changed permissions:
chown sc-tvheadend:tvheadend libmediaclient.so

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #4 am: Februar 03, 2018, 11:56:46 Vormittag »
We have a better solution upcoming which does not need those modifications (however it will take around a week to finish it).
Failure is a good thing! I'll fix it

m4tt075

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #5 am: Februar 10, 2018, 10:18:30 Vormittag »
Hi Sundtek,
I'm working on the Tvheadend Release packages at SynoCommunity here: https://github.com/SynoCommunity/spksrc/pull/3050 In order to make them DSM5+6 compatible the scripts had to be reworked significantly. I have been publishing test packages here: https://github.com/m4tt075/spksrc/releases/tag/Tvheadend-4.2.5
I have been thinking about including the pre-load command for the Sundtek driver in those package script directly. However, from your last comment I'm not sure this still makes sense. Please let me know what you want to do. I'm fine either way as long as we can avoid sed'ing scripts. Thanks.

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #6 am: Februar 10, 2018, 12:19:10 Nachmittag »
Hi,

since TVHeadend supports network based tuners we will add support for that to our streamingserver.
Which means you will have to install our driver + our streamingserver and tvheadend will autodetect our device.
The streamingserver has a very small footprint (below 1 MB).
It's a generic solution for our devices and tvheadend.

The preloading mechanism would be fine for tvheadend, but the mentioned approach will also work with Android!
There's a workaround in the driver setup for fixing some tvheadend packaging issues (I'm not aware that they will really break something - it's just easy to mess up the tvheadend installations with incompatible configurations or wrong permissions - that happened with some dierkse packages (not all of them))
« Letzte Änderung: Februar 10, 2018, 12:28:14 Nachmittag von Sundtek »
Failure is a good thing! I'll fix it

m4tt075

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #7 am: Februar 10, 2018, 02:00:20 Nachmittag »
Thanks for your response. Great idea. That approach is way better, indeed. I will keep the pre-load method out of the scripts, then.

I'm very aware of the permission issues you are mentioning. That is exactly why the scripts had to be changed. I just wanted to ensure that the packages will work well together eventually. From what you write, that will be the case. All well, then. Cheers!

m4tt075

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #8 am: Juni 22, 2018, 08:08:31 Vormittag »
@Sundtek
I just had another Sundtek owner reporting the same issue. Have you implemented the new method you have outlined above in the meantime? If not, do you still want to do it?

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #9 am: Juni 22, 2018, 09:54:37 Vormittag »
It's partly implemented.
We're just finishing our multi-tuners and will complete it afterwards.

Sorry for the long delay the multi-tuners weren't that easy for us to develop (we're just finalising the circuitboards now and continue with the streaming-server which can be used with tvheadend).

Current schedule for the streaming-server update is within July 2018
« Letzte Änderung: Juni 22, 2018, 09:56:11 Vormittag von Sundtek »
Failure is a good thing! I'll fix it

ewisun

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #10 am: Juni 22, 2018, 11:17:44 Nachmittag »
what to do now?
upgraded to 4.2.6-13
and my adapters no more available for tvh

 >:(

ewisun

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #11 am: Juni 22, 2018, 11:19:32 Nachmittag »
Ein Fehler ist aufgetreten!
Das Upload-Verzeichnis ist voll. Bitte versuchen Sie es mit einer kleineren Datei oder kontaktieren Sie den Administrator.
20 kB...
« Letzte Änderung: Juni 22, 2018, 11:22:14 Nachmittag von ewisun »

m4tt075

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #12 am: Juni 23, 2018, 01:30:44 Nachmittag »
@ewisun : There is a workaround here (bottom of the page):
http://tvheadend.org/boards/5/topics/27780?page=8

ewisun

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #13 am: Juni 27, 2018, 12:06:39 Nachmittag »
@m4tt075 :
thank you  :)
but I have seen this too late, all installed new with different versions and lost all configs...
this bug has cost me nearly a weekend of working :(

now I have 4.2.6. again
but
no more
3SAT, DasErste and more ???
why or how to find this?
and
I believed that I am able to recover old recordings...
how to?

thx :)

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Synology package corrupts tvheadend dierkse 4.4.20180117-1
« Antwort #14 am: Juni 27, 2018, 12:47:58 Nachmittag »
https://www.lyngsat.com/Astra-1KR-1L-1M-1N.html

check for the missing stations and enter the transponder information in the TVHeadend scanlist.
Failure is a good thing! I'll fix it