SynoCommunity / spksrc

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

Tvheadend not login #3061

Closed alebupal closed 6 years ago

alebupal commented 6 years ago

Setup

_Package Name: Tvheadend _Package Version: v4.2.4-11

_NAS Model: DS3615xs _NAS Architecture: x64 _DSM version: DSM 6.1.4-15217 Update 5

Problem

Yesterday because of a problem I had to delete and install again tvheadend. And now when I install it I can not log in. I put the username and password that I put in during the installation and it does not work. The first time I install it if it worked perfectly.

any solution?

m4tt075 commented 6 years ago

@alebupal Hmh, the package that is published on this repo is for 5.2 systems, but you are running 6.1. Best you deinstall what you have and try manually installing the appropriate package from this link. Give it a go and let me know whether it works...

alebupal commented 6 years ago

@m4tt075 The link does not work.

The folder "/ Test-builds / Tvheadend Release ..." does not exist.

The strange thing is that the first time I installed everything worked perfectly. Thank you!

m4tt075 commented 6 years ago

@alebupal Sorry. Try this link, please, and go to the realease and then to the 6.1 folder.

Might be, but the version I link is a clean one and a good starting point. If it does not work I can likely help you to make it work from there.

alebupal commented 6 years ago

@m4tt075 I have the same problem. I have installed tvheadend_bromolow-6.1_4.2.4-11

m4tt075 commented 6 years ago

@alebupal OK, let's see. Please log into your Syno using ssh and give me the output of the following commands:

cat /etc/passwd
cd /usr/local/tvheadend/var
ls -la *
cd passwd
cat a927e30a755504f9784f23a4efac5109
alebupal commented 6 years ago

@m4tt075

cat /etc/passwd

admin:x:1024:100:System default user:/var/services/homes/admin:/bin/sh
alebupal:x:1026:100::/var/services/homes/alebupal:/bin/sh
alejandro:x:1042:100::/var/services/homes/alejandro:/sbin/nologin
anonymous:x:21:21::/nonexist:/usr/bin/nologin
avahi:x:84:84::/:/bin/false
bind:x:53:53::/:/usr/bin/nologin
casa:x:1030:100::/var/services/homes/casa:/sbin/nologin
CloudSync:x:177120:177120::/var/packages/CloudSync/target:/sbin/nologin
daemon:x:2:2::/:/bin/sh
dbus:x:81:81::/:/usr/bin/nologin
dovecot:x:143:143::/dev/null:/usr/bin/nologin
DownloadStation:x:125560:125560::/var/packages/DownloadStation/target:/sbin/nolo                                                                                        gin
FileStation:x:179652:179652::/var/packages/FileStation/target:/sbin/nologin
ftp:x:21:21::/nonexist:/usr/bin/nologin
guest:x:1025:100:Guest:/nonexist:/usr/bin/nologin
http:x:1023:1023::/var/services/web:/bin/false
HyperBackup:x:256822:256822::/var/packages/HyperBackup/target:/sbin/nologin
invitado:x:1032:100::/var/services/homes/invitado:/sbin/nologin
ldap:x:439:439::/var/lib/openldap:/usr/bin/nologin
lp:x:7:7::/var/spool/lpd:/bin/sh
martinez:x:1036:100::/var/services/homes/martinez:/sbin/nologin
MediaServer:x:118831:118831::/var/packages/MediaServer/target:/sbin/nologin
mysql:x:66:66::/var/services/mysql:/bin/false
nobody:x:99:99::/:/bin/false
ntp:x:87:87::/var/lib/ntp:/bin/false
paco:x:1040:100::/var/services/homes/paco:/sbin/nologin
PDFViewer:x:273924:273924::/var/packages/PDFViewer/target:/sbin/nologin
PhotoStation:x:138862:138862::/var/packages/PhotoStation/target:/sbin/nologin
plex:x:1027:100:Plex User:/var/services/homes/plex:/bin/sh
postfix:x:125:125::/dev/null:/usr/bin/nologin
postgres:x:55:55::/var/services/pgsql:/bin/sh
root:x:0:0::/root:/bin/ash
rpc:x:32:32::/dev/null:/bin/false
sc-tvheadend:x:150309:150309::/var/packages/tvheadend/target:/sbin/nologin
sickbeard:x:1029:100::/var/services/homes/sickbeard:/bin/sh
sickbeard-custom:x:100:100:SickBeard Custom User:/usr/local/sickbeard-custom/var                                                                                        :/bin/sh
SynoFinder:x:195341:195341::/var/packages/SynoFinder/target:/sbin/nologin
system:x:1:1::/usr/syno/synoman:/usr/bin/nologin
udpxy:x:1046:100:udpxy daemon user:/var/services/homes/udpxy:/bin/sh
VideoStation:x:228233:228233::/var/packages/VideoStation/target:/sbin/nologin
Virtualization:x:185921:185921::/var/packages/Virtualization/target:/sbin/nologi                                                                                        n

cd /usr/local/tvheadend/var ls -la *

-rw------- 1 sc-tvheadend video 1156 Dec 28 23:39 config
-rw------- 1 sc-tvheadend video  138 Dec 28 23:54 epgdb.v2
-rw-r--r-- 1 root         root     6 Dec 28 23:54 tvheadend.pid

accesscontrol:
total 12
drwxr-xr-x 2 sc-tvheadend root 4096 Dec 28 23:39 .
drwxr-xr-x 8 sc-tvheadend root 4096 Dec 28 23:54 ..
-rwx------ 1 sc-tvheadend root  704 Dec 28 23:39 d80ccc09630261ffdcae1497a690acc8

bouquet:
total 60
drwx------ 2 sc-tvheadend video 4096 Dec 28 23:39 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 28 23:54 ..
-rw------- 1 sc-tvheadend video  352 Dec 28 23:39 040f165d1ce7f9f85176d19b47826daa
-rw------- 1 sc-tvheadend video  351 Dec 28 23:39 2955158eb74309f071ffa25016799113
-rw------- 1 sc-tvheadend video  348 Dec 28 23:39 2e0d0330c0f2dc283cdd140d98a49837
-rw------- 1 sc-tvheadend video  351 Dec 28 23:39 5c488951c80f9083af9092cb06642977
-rw------- 1 sc-tvheadend video  352 Dec 28 23:39 652d52b217618a07bddbea2f7ca1220a
-rw------- 1 sc-tvheadend video  352 Dec 28 23:39 698b21db496eee142273d6d35b10a308
-rw------- 1 sc-tvheadend video  358 Dec 28 23:39 7c0dea13dbb65403cf6d8b5e6db31cc3
-rw------- 1 sc-tvheadend video  351 Dec 28 23:39 89fbc75a38dbd93a70b7f1af43684445
-rw------- 1 sc-tvheadend video  347 Dec 28 23:39 92699fa0f2c120e884e3aadffd19e466
-rw------- 1 sc-tvheadend video  347 Dec 28 23:39 93c6a2212dac423ae0b639bf28abc434
-rw------- 1 sc-tvheadend video  357 Dec 28 23:39 969457c0de5bc7a70b333820fefe7929
-rw------- 1 sc-tvheadend video  353 Dec 28 23:39 b47613d92cf35d7cab984f91fbccbc2a
-rw------- 1 sc-tvheadend video  352 Dec 28 23:39 d002ad42ddc4599687d12a70e42965c3

dvr:
total 12
drwx------ 3 sc-tvheadend video 4096 Dec 28 23:39 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 28 23:54 ..
drwx------ 2 sc-tvheadend video 4096 Dec 28 23:39 config

input:
total 12
drwx------ 3 sc-tvheadend video 4096 Dec 28 23:39 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 28 23:54 ..
drwx------ 3 sc-tvheadend video 4096 Dec 28 23:39 satip

passwd:
total 12
drwxr-xr-x 2 sc-tvheadend root 4096 Dec 28 23:39 .
drwxr-xr-x 8 sc-tvheadend root 4096 Dec 28 23:54 ..
-rwx------ 1 sc-tvheadend root  117 Dec 28 23:39 a927e30a755504f9784f23a4efac5109

profile:
total 36
drwx------ 2 sc-tvheadend video 4096 Dec 28 23:39 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 28 23:54 ..
-rw------- 1 sc-tvheadend video  367 Dec 28 23:39 4eef493e0ea088c9dc6de8f2d5b47b93
-rw------- 1 sc-tvheadend video  469 Dec 28 23:39 642d99d4bdded2619e61d5dac8eed341
-rw------- 1 sc-tvheadend video  293 Dec 28 23:39 6b5e02d2079f6f9982212f0600a98dca
-rw------- 1 sc-tvheadend video  305 Dec 28 23:39 7733a8048be887db90351ff970d0e28e
-rw------- 1 sc-tvheadend video  466 Dec 28 23:39 7818ce8ed84117f38f961f62bb54c56f
-rw------- 1 sc-tvheadend video  289 Dec 28 23:39 d6063cba12a3d0552ed882affbb645dd
-rw------- 1 sc-tvheadend video  470 Dec 28 23:39 dc0238f51d3eb79e62f032aef69a5836

this command not work cat a927e30a755504f9784f23a4efac5109, the name of the file is cat a927e30a755504f9784f23a4efac5109

{
        "enabled": true,
        "username": "alebupal",
        "password2": "VFZIZWFkZW5kLUhpZGUtQDFlSjRuRHIwNSE=",
        "wizard": true
}
m4tt075 commented 6 years ago

OK, this does not look like a clean install though. Permissions look messed up, too. Have you created some sc-tvheadend user via the DSM interface by any chance?

alebupal commented 6 years ago

@m4tt075 No, that user is created alone

m4tt075 commented 6 years ago

And you deinstalled the old version, everything was gone and then you installed the version I linked?

alebupal commented 6 years ago

yes, Uninstall the old version, I rebooted the nas and installed the new version

m4tt075 commented 6 years ago

OK, please deinstall TVH again using the DSM package manager. Don't install anything for the time being. After you have removed TVH, please ssh into your box again and give me the output of the following commands:

cat /etc/passwd
cd /var/packages
ls -la *

Then, also go into the user management section of your DSM and check whether there is a sc-tvheadend user appearing there.

alebupal commented 6 years ago

cat /etc/passwd

admin:x:1024:100:System default user:/var/services/homes/admin:/bin/sh
alebupal:x:1026:100::/var/services/homes/alebupal:/bin/sh
alejandro:x:1042:100::/var/services/homes/alejandro:/sbin/nologin
anonymous:x:21:21::/nonexist:/usr/bin/nologin
avahi:x:84:84::/:/bin/false
bind:x:53:53::/:/usr/bin/nologin
casa:x:1030:100::/var/services/homes/casa:/sbin/nologin
CloudSync:x:177120:177120::/var/packages/CloudSync/target:/sbin/nologin
daemon:x:2:2::/:/bin/sh
dbus:x:81:81::/:/usr/bin/nologin
dovecot:x:143:143::/dev/null:/usr/bin/nologin
DownloadStation:x:125560:125560::/var/packages/DownloadStation/target:/sbin/nologin
FileStation:x:179652:179652::/var/packages/FileStation/target:/sbin/nologin
ftp:x:21:21::/nonexist:/usr/bin/nologin
guest:x:1025:100:Guest:/nonexist:/usr/bin/nologin
http:x:1023:1023::/var/services/web:/bin/false
HyperBackup:x:256822:256822::/var/packages/HyperBackup/target:/sbin/nologin
invitado:x:1032:100::/var/services/homes/invitado:/sbin/nologin
ldap:x:439:439::/var/lib/openldap:/usr/bin/nologin
lp:x:7:7::/var/spool/lpd:/bin/sh
martinez:x:1036:100::/var/services/homes/martinez:/sbin/nologin
MediaServer:x:118831:118831::/var/packages/MediaServer/target:/sbin/nologin
mysql:x:66:66::/var/services/mysql:/bin/false
nobody:x:99:99::/:/bin/false
ntp:x:87:87::/var/lib/ntp:/bin/false
paco:x:1040:100::/var/services/homes/paco:/sbin/nologin
PDFViewer:x:273924:273924::/var/packages/PDFViewer/target:/sbin/nologin
PhotoStation:x:138862:138862::/var/packages/PhotoStation/target:/sbin/nologin
plex:x:1027:100:Plex User:/var/services/homes/plex:/bin/sh
postfix:x:125:125::/dev/null:/usr/bin/nologin
postgres:x:55:55::/var/services/pgsql:/bin/sh
root:x:0:0::/root:/bin/ash
rpc:x:32:32::/dev/null:/bin/false
sickbeard:x:1029:100::/var/services/homes/sickbeard:/bin/sh
sickbeard-custom:x:100:100:SickBeard Custom User:/usr/local/sickbeard-custom/var:/bin/sh
SynoFinder:x:195341:195341::/var/packages/SynoFinder/target:/sbin/nologin
system:x:1:1::/usr/syno/synoman:/usr/bin/nologin
udpxy:x:1046:100:udpxy daemon user:/var/services/homes/udpxy:/bin/sh
VideoStation:x:228233:228233::/var/packages/VideoStation/target:/sbin/nologin
Virtualization:x:185921:185921::/var/packages/Virtualization/target:/sbin/nologin

cd /var/packages ls -la *

CloudSync:
total 152
drwxr-xr-x  5 root root   4096 Nov 23 09:53 .
drwxr-xr-x 27 root root   4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root   4096 Dec 28 23:37 conf
-rw-r--r--  1 root root      0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root     32 Nov 23 09:53 etc -> /usr/syno/etc/packages/CloudSync
-rw-r--r--  1 root root 133347 Nov 23 09:53 INFO
drwxr-xr-x  2 root root   4096 Nov 21 03:23 scripts
lrwxrwxrwx  1 root root     28 Nov 23 09:53 target -> /volume1/@appstore/CloudSync
drwxr-xr-x  2 root root   4096 Nov 21 03:23 WIZARD_UIFILES

Docker:
total 52
drwxr-xr-x  5 root root  4096 Dec 19 14:09 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Dec 19 14:09 enabled
lrwxrwxrwx  1 root root    29 Dec 19 14:09 etc -> /usr/syno/etc/packages/Docker
-rw-r--r--  1 root root 31103 Dec 19 14:09 INFO
drwxr-xr-x  2 root root  4096 Dec 15 12:40 scripts
lrwxrwxrwx  1 root root    25 Dec 19 14:09 target -> /volume1/@appstore/Docker
drwxr-xr-x  2 root root  4096 Dec 15 12:40 WIZARD_UIFILES

DownloadStation:
total 136
drwxr-xr-x  5 root root   4096 Nov  2 12:23 .
drwxr-xr-x 27 root root   4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root   4096 Dec 28 23:37 conf
-rw-r--r--  1 root root      0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root     38 Nov  2 12:23 etc -> /usr/syno/etc/packages/DownloadStation
-rw-r--r--  1 root root 118224 Nov  2 12:23 INFO
drwxr-xr-x  2 root root   4096 Nov  1 03:40 scripts
lrwxrwxrwx  1 root root     34 Nov  2 12:23 target -> /volume1/@appstore/DownloadStation
drwxr-xr-x  2 root root   4096 Nov  1 03:40 WIZARD_UIFILES

FileStation:
total 116
drwxr-xr-x  4 root root   4096 Dec 12 12:24 .
drwxr-xr-x 27 root root   4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root   4096 Dec 28 23:37 conf
-rw-r--r--  1 root root      0 Dec 12 12:24 enabled
lrwxrwxrwx  1 root root     34 Dec 12 12:23 etc -> /usr/syno/etc/packages/FileStation
-rw-r--r--  1 root root 100007 Dec 12 12:23 INFO
drwxr-xr-x  2 root root   4096 Nov 29 10:20 scripts
lrwxrwxrwx  1 root root     41 Dec 12 12:23 target -> /usr/local/packages/@appstore/FileStation

git:
total 20
drwxr-xr-x  4 root root 4096 Nov  2 08:08 .
drwxr-xr-x 27 root root 4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root 4096 Dec 28 23:36 conf
-rw-r--r--  1 root root    0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root   26 Nov  2 08:08 etc -> /usr/syno/etc/packages/git
-rw-r--r--  1 root root 4083 Nov  2 08:08 INFO
drwxr-xr-x  2 root root 4096 Dec  7  2016 scripts
lrwxrwxrwx  1 root root   22 Nov  2 08:08 target -> /volume1/@appstore/git

HyperBackup:
total 84
drwxr-xr-x  5 root root  4096 Nov 23 09:53 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    34 Nov 23 09:53 etc -> /usr/syno/etc/packages/HyperBackup
-r--r--r--  1 root root 65279 Nov 23 09:53 INFO
drwxr-xr-x  2 root root  4096 Nov 21 05:35 scripts
lrwxrwxrwx  1 root root    30 Nov 23 09:53 target -> /volume1/@appstore/HyperBackup
drwxr-xr-x  2 root root  4096 Nov 21 05:35 WIZARD_UIFILES

Java8:
total 40
drwxr-xr-x  4 root root  4096 Nov  8 17:08 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    28 Nov  8 17:08 etc -> /usr/syno/etc/packages/Java8
-rw-r--r--  1 root root 24145 Nov  8 17:08 INFO
drwxr-xr-x  2 root root  4096 Nov  7 12:26 scripts
lrwxrwxrwx  1 root root    24 Nov  8 17:08 target -> /volume1/@appstore/Java8

JDownloader:
total 36
drwxr-xr-x  5 root root  4096 Jul  8 02:24 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    34 Jan 23  2017 etc -> /usr/syno/etc/packages/JDownloader
-rw-r--r--  1 root root 11565 May 14  2016 INFO
-rw-r--r--  1 root root    62 Jan 23  2017 install.log
drwxr-xr-x  4 root root  4096 Jan 23  2017 scripts
lrwxrwxrwx  1 root root    30 Jan 23  2017 target -> /volume1/@appstore/JDownloader
drwxr-xr-x  2 root root  4096 Aug 23  2015 WIZARD_UIFILES

MariaDB:
total 60
drwxr-xr-x  5 root root  4096 Dec 25 03:06 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Dec 25 03:06 enabled
lrwxrwxrwx  1 root root    30 Dec 13 08:30 etc -> /usr/syno/etc/packages/MariaDB
-rw-r--r--  1 root root 37588 Dec 13 08:30 INFO
drwxr-xr-x  4 root root  4096 Nov 17 11:15 scripts
lrwxrwxrwx  1 root root    26 Dec 13 08:30 target -> /volume1/@appstore/MariaDB
drwxr-xr-x  2 root root  4096 Nov 17 11:15 WIZARD_UIFILES

MediaServer:
total 116
drwxr-xr-x  4 root root  4096 Nov  7 10:19 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    34 Nov  7 10:19 etc -> /usr/syno/etc/packages/MediaServer
-rw-r--r--  1 root root 99346 Nov  7 10:19 INFO
drwxr-xr-x  2 root root  4096 Oct 27 12:15 scripts
lrwxrwxrwx  1 root root    30 Nov  7 10:19 target -> /volume1/@appstore/MediaServer

oscam:
total 36
drwxr-xr-x  4 root root  4096 Dec 24 14:27 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Dec 24 14:27 enabled
lrwxrwxrwx  1 root root    28 Dec 24 14:27 etc -> /usr/syno/etc/packages/oscam
-rw-r--r--  1 root root 18557 Dec 24 14:27 INFO
drwxr-xr-x  2 root root  4096 Jul 13  2014 scripts
lrwxrwxrwx  1 root root    24 Dec 24 14:27 target -> /volume1/@appstore/oscam

PDFViewer:
total 88
drwxr-xr-x  4 root root  4096 Jun 17  2017 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    32 Jun 17  2017 etc -> /usr/syno/etc/packages/PDFViewer
-rw-r--r--  1 root root 72762 Jun 17  2017 INFO
drwxr-xr-x  2 root root  4096 May 26  2017 scripts
lrwxrwxrwx  1 root root    28 Jun 17  2017 target -> /volume1/@appstore/PDFViewer

PhotoStation:
total 120
drwxr-xr-x  4 root root   4096 Dec  7 12:36 .
drwxr-xr-x 27 root root   4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root   4096 Dec 28 23:37 conf
-rw-r--r--  1 root root      0 Dec 13 08:31 enabled
lrwxrwxrwx  1 root root     35 Dec  7 12:36 etc -> /usr/syno/etc/packages/PhotoStation
-rw-r--r--  1 root root 102798 Dec  7 12:36 INFO
drwxr-xr-x  3 root root   4096 Nov 22 12:13 scripts
lrwxrwxrwx  1 root root     31 Dec  7 12:36 target -> /volume1/@appstore/PhotoStation

PHP5.6:
total 76
drwxr-xr-x  4 root root  4096 Dec 13 08:31 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Dec 13 08:31 enabled
lrwxrwxrwx  1 root root    29 Dec 13 08:31 etc -> /usr/syno/etc/packages/PHP5.6
-rw-r--r--  1 root root 59522 Dec 13 08:31 INFO
drwxr-xr-x  2 root root  4096 Oct 31 07:24 scripts
lrwxrwxrwx  1 root root    25 Dec 13 08:31 target -> /volume1/@appstore/PHP5.6

PHP7.0:
total 76
drwxr-xr-x  4 root root  4096 Dec 13 08:31 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Dec 13 08:31 enabled
lrwxrwxrwx  1 root root    29 Dec 13 08:31 etc -> /usr/syno/etc/packages/PHP7.0
-rw-r--r--  1 root root 59522 Dec 13 08:31 INFO
drwxr-xr-x  2 root root  4096 Oct 31 04:35 scripts
lrwxrwxrwx  1 root root    25 Dec 13 08:31 target -> /volume1/@appstore/PHP7.0

Plex Media Server:
total 32
drwxr-xr-x  4 root root  4096 Dec 24 18:02 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Dec 24 18:02 enabled
lrwxrwxrwx  1 root root    40 Dec 15 09:03 etc -> /usr/syno/etc/packages/Plex Media Server
-rwxrwxr-x  1 root root 14554 Dec 15 09:03 INFO
drwxrwxr-x  2 root root  4096 Aug 31 01:41 scripts
lrwxrwxrwx  1 root root    36 Dec 15 09:03 target -> /volume1/@appstore/Plex Media Server

python3:
total 24
drwxr-xr-x  4 root root 4096 Nov  2 08:08 .
drwxr-xr-x 27 root root 4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root 4096 Dec 28 23:36 conf
-rw-r--r--  1 root root    0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root   30 Nov  2 08:08 etc -> /usr/syno/etc/packages/python3
-rw-r--r--  1 root root 6923 Nov  2 08:08 INFO
drwxr-xr-x  2 root root 4096 May 25  2015 scripts
lrwxrwxrwx  1 root root   26 Nov  2 08:08 target -> /volume1/@appstore/python3

SynoFinder:
total 88
drwxr-xr-x  4 root root  4096 Nov  7 10:14 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    33 Nov  7 10:14 etc -> /usr/syno/etc/packages/SynoFinder
-rw-r--r--  1 root root 73385 Nov  7 10:14 INFO
drwxr-xr-x  2 root root  4096 Oct 26 11:31 scripts
lrwxrwxrwx  1 root root    40 Nov  7 10:14 target -> /usr/local/packages/@appstore/SynoFinder

TextEditor:
total 100
drwxr-xr-x  4 root root  4096 Oct  6 13:42 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    33 Oct  6 13:42 etc -> /usr/syno/etc/packages/TextEditor
-rw-r--r--  1 root root 85750 Oct  6 13:42 INFO
drwxr-xr-x  2 root root  4096 Sep 14 06:41 scripts
lrwxrwxrwx  1 root root    29 Oct  6 13:42 target -> /volume1/@appstore/TextEditor

udpxy:
total 20
drwxr-xr-x  4 root root 4096 Dec 26 15:53 .
drwxr-xr-x 27 root root 4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root 4096 Dec 28 23:36 conf
-rw-r--r--  1 root root    0 Dec 26 15:53 enabled
lrwxrwxrwx  1 root root   28 Dec 24 15:04 etc -> /usr/syno/etc/packages/udpxy
-rw-r--r--  1 root root 2581 Dec 24 15:04 INFO
drwxr-xr-x  2 root root 4096 Mar  2  2013 scripts
lrwxrwxrwx  1 root root   24 Dec 24 15:04 target -> /volume1/@appstore/udpxy

VideoStation:
total 56
drwxr-xr-x  5 root root  4096 Dec  7 12:37 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Dec  7 12:37 enabled
lrwxrwxrwx  1 root root    35 Dec  7 12:37 etc -> /usr/syno/etc/packages/VideoStation
-rw-r--r--  1 root root 34062 Dec  7 12:37 INFO
drwxr-xr-x  2 root root  4096 Nov 30 12:56 scripts
lrwxrwxrwx  1 root root    31 Dec  7 12:37 target -> /volume1/@appstore/VideoStation
drwxr-xr-x  2 root root  4096 Nov 30 12:56 WIZARD_UIFILES

Virtualization:
total 112
drwxr-xr-x  5 root root  4096 Dec 13 08:37 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Dec 13 08:37 enabled
lrwxrwxrwx  1 root root    37 Dec 13 08:36 etc -> /usr/syno/etc/packages/Virtualization
-rw-r--r--  1 root root 93600 Dec 13 08:36 INFO
drwxr-xr-x  2 root root  4096 Dec 12 11:44 scripts
lrwxrwxrwx  1 root root    33 Dec 13 08:36 target -> /volume1/@appstore/Virtualization
drwxr-xr-x  2 root root  4096 Dec 12 11:44 WIZARD_UIFILES

VPNCenter:
total 76
drwxr-xr-x  5 root root  4096 Dec 13 08:31 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:37 conf
-rw-r--r--  1 root root     0 Dec 13 08:31 enabled
lrwxrwxrwx  1 root root    32 Dec 13 08:31 etc -> /usr/syno/etc/packages/VPNCenter
-rw-r--r--  1 root root 57342 Dec 13 08:31 INFO
drwxr-xr-x  3 root root  4096 Nov  9 04:49 scripts
lrwxrwxrwx  1 root root    28 Dec 13 08:31 target -> /volume1/@appstore/VPNCenter
drwxr-xr-x  2 root root  4096 Nov  9 04:49 WIZARD_UIFILES

WebDAVServer:
total 52
drwxr-xr-x  4 root root  4096 Nov 10 12:20 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  2 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Nov 23 09:54 enabled
lrwxrwxrwx  1 root root    35 Nov 10 12:02 etc -> /usr/syno/etc/packages/WebDAVServer
-rw-r--r--  1 root root 36522 Nov 10 12:02 INFO
drwxr-xr-x  3 root root  4096 Jan 20  2017 scripts
lrwxrwxrwx  1 root root    31 Nov 10 12:02 target -> /volume1/@appstore/WebDAVServer

WebStation:
total 92
drwxr-xr-x  4 root root  4096 Dec 13 08:35 .
drwxr-xr-x 27 root root  4096 Dec 29 00:18 ..
drwxr-xr-x  3 root root  4096 Dec 28 23:36 conf
-rw-r--r--  1 root root     0 Dec 13 08:35 enabled
lrwxrwxrwx  1 root root    33 Dec 13 08:35 etc -> /usr/syno/etc/packages/WebStation
-rw-r--r--  1 root root 77526 Dec  1 04:27 INFO
drwxr-xr-x  3 root root  4096 Dec  1 04:27 scripts
lrwxrwxrwx  1 root root    29 Dec 13 08:35 target -> /volume1/@appstore/WebStation

users https://image.prntscr.com/image/AP1KYn9nTo2UL2FszrZZgQ.png

m4tt075 commented 6 years ago

Strange. OK, output of the following, please:

cd /usr/local
ls -la
alebupal commented 6 years ago

cd /usr/local ls -la

drwxr-xr-x  8 root root 4096 Dec 29 00:18 .
drwxr-xr-x 11 root root 4096 Nov  2 22:40 ..
drwxr-xr-x  3 root root 4096 Dec 29 00:25 bin
drwxr-xr-x 12 root root 4096 Dec 25 23:30 etc
lrwxrwxrwx  1 root root   22 Nov  2 08:08 git -> /volume1/@appstore/git
drwxr-xr-x  5 root root 4096 Feb  3  2017 lib
drwxr-xr-x 27 root root 4096 Jun 21  2017 libexec
drwxrwxrwx  4 root root 4096 Jun 21  2017 packages
lrwxrwxrwx  1 root root   26 Nov  2 08:08 python3 -> /volume1/@appstore/python3
drwxr-xr-x  7 root root 4096 Feb  2  2017 share
lrwxrwxrwx  1 root root   26 Mar 29  2017 sundtek -> /volume1/@appstore/sundtek
lrwxrwxrwx  1 root root   25 Mar 28  2017 xupnpd -> /volume1/@appstore/xupnpd
m4tt075 commented 6 years ago

OK, looks clean. Please install the package I linked above again through the DSM package center. Just accept the default username and passwd. Don't enter anything. When you are done, give me the following:

cat /etc/passwd
cd /usr/local/tvheadend/var
ls -la *
cd passwd
cat a927e30a755504f9784f23a4efac5109

Also, try to log into the TVH Web-Interface using "admin" and "admin" as username and password. Let me know whether it works or not.

alebupal commented 6 years ago

cat /etc/passwd

admin:x:1024:100:System default user:/var/services/homes/admin:/bin/sh
alebupal:x:1026:100::/var/services/homes/alebupal:/bin/sh
alejandro:x:1042:100::/var/services/homes/alejandro:/sbin/nologin
anonymous:x:21:21::/nonexist:/usr/bin/nologin
avahi:x:84:84::/:/bin/false
bind:x:53:53::/:/usr/bin/nologin
casa:x:1030:100::/var/services/homes/casa:/sbin/nologin
CloudSync:x:177120:177120::/var/packages/CloudSync/target:/sbin/nologin
daemon:x:2:2::/:/bin/sh
dbus:x:81:81::/:/usr/bin/nologin
dovecot:x:143:143::/dev/null:/usr/bin/nologin
DownloadStation:x:125560:125560::/var/packages/DownloadStation/target:/sbin/nologin
FileStation:x:179652:179652::/var/packages/FileStation/target:/sbin/nologin
ftp:x:21:21::/nonexist:/usr/bin/nologin
guest:x:1025:100:Guest:/nonexist:/usr/bin/nologin
http:x:1023:1023::/var/services/web:/bin/false
HyperBackup:x:256822:256822::/var/packages/HyperBackup/target:/sbin/nologin
invitado:x:1032:100::/var/services/homes/invitado:/sbin/nologin
ldap:x:439:439::/var/lib/openldap:/usr/bin/nologin
lp:x:7:7::/var/spool/lpd:/bin/sh
martinez:x:1036:100::/var/services/homes/martinez:/sbin/nologin
MediaServer:x:118831:118831::/var/packages/MediaServer/target:/sbin/nologin
mysql:x:66:66::/var/services/mysql:/bin/false
nobody:x:99:99::/:/bin/false
ntp:x:87:87::/var/lib/ntp:/bin/false
paco:x:1040:100::/var/services/homes/paco:/sbin/nologin
PDFViewer:x:273924:273924::/var/packages/PDFViewer/target:/sbin/nologin
PhotoStation:x:138862:138862::/var/packages/PhotoStation/target:/sbin/nologin
plex:x:1027:100:Plex User:/var/services/homes/plex:/bin/sh
postfix:x:125:125::/dev/null:/usr/bin/nologin
postgres:x:55:55::/var/services/pgsql:/bin/sh
root:x:0:0::/root:/bin/ash
rpc:x:32:32::/dev/null:/bin/false
sc-tvheadend:x:150309:150309::/var/packages/tvheadend/target:/sbin/nologin
sickbeard:x:1029:100::/var/services/homes/sickbeard:/bin/sh
sickbeard-custom:x:100:100:SickBeard Custom User:/usr/local/sickbeard-custom/var:/bin/sh
SynoFinder:x:195341:195341::/var/packages/SynoFinder/target:/sbin/nologin
system:x:1:1::/usr/syno/synoman:/usr/bin/nologin
udpxy:x:1046:100:udpxy daemon user:/var/services/homes/udpxy:/bin/sh
VideoStation:x:228233:228233::/var/packages/VideoStation/target:/sbin/nologin
Virtualization:x:185921:185921::/var/packages/Virtualization/target:/sbin/nologin

cd /usr/local/tvheadend/var ls -la *

-rw------- 1 sc-tvheadend video 1156 Dec 29 00:41 config
-rw-r--r-- 1 root         root     5 Dec 29 00:41 tvheadend.pid

accesscontrol:
total 12
drwxr-xr-x 2 sc-tvheadend root 4096 Dec 29 00:41 .
drwxr-xr-x 8 sc-tvheadend root 4096 Dec 29 00:41 ..
-rwx------ 1 sc-tvheadend root  704 Dec 29 00:41 d80ccc09630261ffdcae1497a690acc8

bouquet:
total 60
drwx------ 2 sc-tvheadend video 4096 Dec 29 00:41 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 29 00:41 ..
-rw------- 1 sc-tvheadend video  351 Dec 29 00:41 152f38325822bda9165245071b5ae847
-rw------- 1 sc-tvheadend video  347 Dec 29 00:41 15b118d5ebb72cad3f0ba2f883601ffe
-rw------- 1 sc-tvheadend video  352 Dec 29 00:41 196332e4c5b12a7d54624ea9f591d375
-rw------- 1 sc-tvheadend video  352 Dec 29 00:41 494c991dbdcbd73c13099c8dad2a1231
-rw------- 1 sc-tvheadend video  347 Dec 29 00:41 4fcb00c44dc49ce16bf4e61a92a9755a
-rw------- 1 sc-tvheadend video  357 Dec 29 00:41 564c607e1892d05aa56ca598e39b4a8f
-rw------- 1 sc-tvheadend video  352 Dec 29 00:41 587c9fd69729105c62d4865aed56905e
-rw------- 1 sc-tvheadend video  351 Dec 29 00:41 64837bc6b40cc182db9adc8c51ac313c
-rw------- 1 sc-tvheadend video  352 Dec 29 00:41 80f6059a618ceb22c45a691e52f84580
-rw------- 1 sc-tvheadend video  348 Dec 29 00:41 967b09727f23af67e12c3da8e318627b
-rw------- 1 sc-tvheadend video  351 Dec 29 00:41 a4d6087a030c02492ab53fe4b10ebd05
-rw------- 1 sc-tvheadend video  358 Dec 29 00:41 deaf142d69b4b01c5312c01fe1373049
-rw------- 1 sc-tvheadend video  353 Dec 29 00:41 e162914ab2f5560a3a90819ef4a9dbbd

dvr:
total 12
drwx------ 3 sc-tvheadend video 4096 Dec 29 00:41 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 29 00:41 ..
drwx------ 2 sc-tvheadend video 4096 Dec 29 00:41 config

input:
total 12
drwx------ 3 sc-tvheadend video 4096 Dec 29 00:41 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 29 00:41 ..
drwx------ 3 sc-tvheadend video 4096 Dec 29 00:41 satip

passwd:
total 12
drwxr-xr-x 2 sc-tvheadend root 4096 Dec 29 00:41 .
drwxr-xr-x 8 sc-tvheadend root 4096 Dec 29 00:41 ..
-rwx------ 1 sc-tvheadend root  117 Dec 29 00:41 a927e30a755504f9784f23a4efac5109

profile:
total 36
drwx------ 2 sc-tvheadend video 4096 Dec 29 00:41 .
drwxr-xr-x 8 sc-tvheadend root  4096 Dec 29 00:41 ..
-rw------- 1 sc-tvheadend video  293 Dec 29 00:41 23dd55fbc6c264153292206bf582bb55
-rw------- 1 sc-tvheadend video  305 Dec 29 00:41 3d699c2c6b836930e5fac0e5a2134721
-rw------- 1 sc-tvheadend video  367 Dec 29 00:41 5883539ab92041c8c049798511b6057f
-rw------- 1 sc-tvheadend video  469 Dec 29 00:41 588b65e7c4e62dc154fbbfc2f4d2f3d3
-rw------- 1 sc-tvheadend video  466 Dec 29 00:41 5e05ab2fd071f08fe228bbd50d99eecc
-rw------- 1 sc-tvheadend video  289 Dec 29 00:41 fce2a0354c81ffc4bf468f3d5256dfbb
-rw------- 1 sc-tvheadend video  470 Dec 29 00:41 fe9043b6bc8134e0b4668676811a8cc0

cd passwd cat a927e30a755504f9784f23a4efac5109


{
        "enabled": true,
        "username": "alebupal",
        "password2": "VFZIZWFkZW5kLUhpZGUtQDFlSjRuRHIwNSE=",
        "wizard": true
}

nothing.... https://gyazo.com/1725e1a9faa207fcc2985a27d42fcd2b

m4tt075 commented 6 years ago

Somehow the installation process is unearthing an old installation with weird permissions, which overwrites the new installation. It seems you used to have a login with username "alebupal". Try to log in using that together with the old password you used to have. Can you get in then?

alebupal commented 6 years ago

I have tested and the DSM password has worked. is this possible? You may use the same pass in the first installation, although I think it was different.

It works now. One doubt. When they get new update I have to update the package manually no? If you allow me I will edit the logs so that no data from my nas. Thank you so much for everything!

m4tt075 commented 6 years ago

That's great. Happy it worked out in the end. But permissions are still screwed up, so here some more advice: Stop TVH via the DSM package manager and ssh into your box again. Then execute the following commands:

sudo su -

You will be asked for a password. Enter the same password you are using with your admin account when you enter into the box with ssh. Then enter:

chown -R sc-tvheadend:root /var/packages/tvheadend/target

Exit your ssh session and restart TVH via the DSM package manager. This should get your permissions right.

As to your questions: We are trying to automate things for DSM6.1 over here and TVH will be one of the first test packages. You might be able to benefit from that or upgrade manually. Either case, you know how it works now. Feel free to edit the logs. Would be great if you could do it in such a way that people can still follow the story if they run into similar problems.

When everything worked out and you are done, please also close this issue.

kianrafiee commented 6 years ago

@m4tt075 can you upload a package of tvheadend for rtd1296 dsm6.1?

m4tt075 commented 6 years ago

@kianrafiee Would love to, but cannot. Tvheadend is a pretty complex package with many dependencies, ffmpeg being one of them. Unfortunately, our ffmpeg package does not (yet) support the rtd1296 architecture. Therefore, Tvheadend does not either. @cytec and @ymartin59 have been maintaining the ffmpeg package in the past. Maybe you are lucky and one of them will look into it. However, currently we are quite busy trying to get generic support for DSM5+6 platforms up and running, so probably better not to expect a quick fix...

kianrafiee commented 6 years ago

Ah didn't realize it depended on ffmpeg. I already asked @ymartin59 about ffmpeg support in the past and it seems he is busy with dsm6 support as you mentioned. Oh well I will just wait then.