SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.04k stars 1.24k forks source link

Tvheadend - Pre-defined muxes names incomplete and selected entry can't be saved #5589

Closed pjjonas closed 1 year ago

pjjonas commented 1 year ago

Is this a new Bug?

Package Name

tvheadend

Package Version

4.3.20221128-34

Device Model

Synology DS218j

Device Architecture

ARMv7

Firmware Version

7.1.1-42962 Update 3

What happened?

Fresh installation of Tvheadend Tried to add DVBS2 network with "Pre-defined muxes: > 19.2E:Astr". The name "> 19.2E:Astr" seems to be incomplete. It should be "> 19.2E:Astra" at least. Furthermore the entry can't be saved. Whenever I edit the new network the field "Pre-defined muxes" is empty.

Reproduction steps

1. Login as admin
2. click Configuration
3. click DVB inputs
4. click Networks
5. click Add
6. select Type DVB-S network
7. check Enabled
8. Enter "Astra" in Network name
9. Pre-defined muxes -> select "> 19.2E:Astr"
10. Orbital position: -> select "28.2E : Astra 2A/2C/2E/2F/Eutelsat 28A"
11. click apply
12. click +create
13. select "Astra"
14. click edit
15. find field "Pre-defined muxes" empty

Install Log

2023/02/02 19:21:43     install tvheadend 4.3.20221128-34 Begin preinst
2023/02/02 19:21:43     Begin reload_inst_variables
2023/02/02 19:21:43     End reload_inst_variables
2023/02/02 19:21:43     Begin initialize_variables
2023/02/02 19:21:43     End initialize_variables
2023/02/02 19:21:43     ===> Step preinst. USER=sc-tvheadend GROUP=sc-media SHARE_PATH=
2023/02/02 19:21:43     install tvheadend 4.3.20221128-34 End preinst ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mkdir -p /volume1/@appstore/tvheadend -m 755
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mkdir -p /volume1/@appstore/tvheadend -m 755 ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/rm -rf /volume1/@appstore/tvheadend
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/rm -rf /volume1/@appstore/tvheadend ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/package /volume1/@appstore/tvheadend
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/package /volume1/@appstore/tvheadend ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/rm -rf /var/packages/tvheadend
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/rm -rf /var/packages/tvheadend ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mkdir -p /var/packages/tvheadend -m 755
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mkdir -p /var/packages/tvheadend -m 755 ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/touch /var/packages/tvheadend/installing
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/touch /var/packages/tvheadend/installing ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/INFO /var/packages/tvheadend/INFO
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/INFO /var/packages/tvheadend/INFO ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/rm -rf /var/packages/tvheadend/scripts
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/rm -rf /var/packages/tvheadend/scripts ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/scripts /var/packages/tvheadend/scripts
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/scripts /var/packages/tvheadend/scripts ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/rm -rf /var/packages/tvheadend/WIZARD_UIFILES
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/rm -rf /var/packages/tvheadend/WIZARD_UIFILES ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/WIZARD_UIFILES /var/packages/tvheadend/WIZARD_UIFILES
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/WIZARD_UIFILES /var/packages/tvheadend/WIZARD_UIFILES ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/rm -rf /var/packages/tvheadend/conf
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/rm -rf /var/packages/tvheadend/conf ret=[0]
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 Begin /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/conf /var/packages/tvheadend/conf
2023/02/02 19:21:46     install tvheadend 4.3.20221128-34 End /bin/mv -f /volume1/@tmp/synopkg/install.mg6tCT/conf /var/packages/tvheadend/conf ret=[0]
2023/02/02 19:21:51     install tvheadend 4.3.20221128-34 Begin postinst
2023/02/02 19:21:51     Begin reload_inst_variables
2023/02/02 19:21:51     End reload_inst_variables
2023/02/02 19:21:51     Begin initialize_variables
2023/02/02 19:21:51     End initialize_variables
2023/02/02 19:21:51     ===> Step postinst. USER=sc-tvheadend GROUP=sc-media SHARE_PATH=
2023/02/02 19:21:51     Begin save_wizard_variables
2023/02/02 19:21:51     End save_wizard_variables
2023/02/02 19:21:51     Begin syno_sync_var_folder
2023/02/02 19:21:51     Install files from var folder
2023/02/02 19:21:51     /bin/rsync -avh --ignore-existing --remove-source-files /volume1/@appstore/tvheadend/var/ /volume1/@appdata/tvheadend
2023/02/02 19:21:51     sending incremental file list
2023/02/02 19:21:51     ./
2023/02/02 19:21:51     epggrab/
2023/02/02 19:21:51     epggrab/conf/
2023/02/02 19:21:51     epggrab/conf/zap2epg.xml
2023/02/02 19:21:51     sent 1.67K bytes  received 58 bytes  3.46K bytes/sec
2023/02/02 19:21:51     total size is 1.48K  speedup is 0.86
2023/02/02 19:21:51     /bin/rsync -avh --remove-source-files /volume1/@appstore/tvheadend/var/ /volume1/@appdata/tvheadend
2023/02/02 19:21:51     sending incremental file list
2023/02/02 19:21:51     epggrab/conf/
2023/02/02 19:21:51     sent 118 bytes  received 17 bytes  270.00 bytes/sec
2023/02/02 19:21:51     total size is 0  speedup is 0.00
2023/02/02 19:21:51     End syno_sync_var_folder
2023/02/02 19:21:51     Begin service_postinst
2023/02/02 19:21:52     Python 3.10.9
2023/02/02 19:22:18     Requirement already satisfied: pip in /volume1/@appstore/tvheadend/env/lib/python3.10/site-packages (22.3.1)
2023/02/02 19:22:19     Collecting pip
2023/02/02 19:22:22       Downloading pip-23.0-py3-none-any.whl (2.1 MB)
2023/02/02 19:22:23          ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 2.1 MB/s eta 0:00:00
2023/02/02 19:22:24     Installing collected packages: pip
2023/02/02 19:22:24       Attempting uninstall: pip
2023/02/02 19:22:24         Found existing installation: pip 22.3.1
2023/02/02 19:22:26         Uninstalling pip-22.3.1:
2023/02/02 19:22:26           Successfully uninstalled pip-22.3.1
2023/02/02 19:22:33     Successfully installed pip-23.0
2023/02/02 19:22:34     Install packages from wheels
2023/02/02 19:22:34     Install packages from wheels [/volume1/@appstore/tvheadend/share/wheelhouse/requirements.txt]
2023/02/02 19:22:37     Looking in links: /volume1/@appstore/tvheadend/share/wheelhouse
2023/02/02 19:22:37     Collecting chardet==4.0.0
2023/02/02 19:22:37       Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
2023/02/02 19:22:37          ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.7/178.7 kB 2.1 MB/s eta 0:00:00
2023/02/02 19:22:38     Collecting requests==2.25.1
2023/02/02 19:22:38       Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
2023/02/02 19:22:38          ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 600.9 kB/s eta 0:00:00
2023/02/02 19:22:38     Collecting urllib3==1.26.5
2023/02/02 19:22:38       Downloading urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
2023/02/02 19:22:39          ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.1/138.1 kB 692.4 kB/s eta 0:00:00
2023/02/02 19:22:39     Collecting certifi>=2017.4.17
2023/02/02 19:22:39       Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
2023/02/02 19:22:39          ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 1.4 MB/s eta 0:00:00
2023/02/02 19:22:39     Collecting idna<3,>=2.5
2023/02/02 19:22:39       Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
2023/02/02 19:22:39          ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 kB 2.0 MB/s eta 0:00:00
2023/02/02 19:22:40     Installing collected packages: urllib3, idna, chardet, certifi, requests
2023/02/02 19:22:43       Attempting uninstall: certifi
2023/02/02 19:22:43         Found existing installation: certifi 2022.12.7
2023/02/02 19:22:43         Not uninstalling certifi at /volume1/@appstore/python310/lib/python3.10/site-packages, outside environment /volume1/@appstore/tvheadend/env
2023/02/02 19:22:43         Can't uninstall 'certifi'. No files were found to uninstall.
2023/02/02 19:22:43     Successfully installed certifi-2022.12.7 chardet-4.0.0 idna-2.10 requests-2.25.1 urllib3-1.26.5
2023/02/02 19:22:44     Installed modules:
2023/02/02 19:22:46     certifi==2022.12.7
2023/02/02 19:22:46     chardet==4.0.0
2023/02/02 19:22:46     distlib==0.3.6
2023/02/02 19:22:46     filelock==3.8.2
2023/02/02 19:22:46     idna==2.10
2023/02/02 19:22:46     platformdirs==2.6.0
2023/02/02 19:22:46     requests==2.25.1
2023/02/02 19:22:46     six==1.16.0
2023/02/02 19:22:46     urllib3==1.26.5
2023/02/02 19:22:46     virtualenv==20.17.1
2023/02/02 19:22:47     End service_postinst
2023/02/02 19:22:47     install tvheadend 4.3.20221128-34 End postinst ret=[0]
2023/02/02 19:22:48     install tvheadend 4.3.20221128-34 Begin start-stop-status start
2023/02/02 19:22:50     install tvheadend 4.3.20221128-34 End start-stop-status start ret=[0]
2023/02/02 19:33:44     stop tvheadend 4.3.20221128-34 Begin start-stop-status stop
2023/02/02 19:33:46     stop tvheadend 4.3.20221128-34 End start-stop-status stop ret=[0]
2023/02/02 19:33:54     start tvheadend 4.3.20221128-34 Begin start-stop-status start
2023/02/02 19:33:55     start tvheadend 4.3.20221128-34 End start-stop-status start ret=[0]
sh-4.4#

Service Log

No response

Other Logs

No response

th0ma7 commented 1 year ago

Sorry for the late response. I was able to replicate the issue and also finding the correspondance configuration files. This specifically comes from the updated DTV scan tables, in this specific case https://github.com/crazycat69/dtv-scan-tables/blob/master/dvb-s/Astra-19.2E

Now as of why tvheadend seems to trim out the trailing character that isn't obvious to me. I stronly presume this is due to a bug within tvheadend that needs to be brought up upstream https://tvheadend.org/projects/tvheadend/wiki/Bugreporting or a patch that fixes the code needs to be provided https://github.com/tvheadend/tvheadend. In any case, I tried investigating in debug mode but couldn't find anything of interest.

Other than that there is nothing I can do on my as packager. But please feel free to re-open if you're able to gather more information from upstream (or better, a fix being applied) and I'll hapily provide updated packages.