Project

General

Profile

Re-Import Existing Recordings

Added by John Jones over 1 year ago

I'm running HTS Tvheadend-testing 4.4.20181215 from http://syno.dierkse.nl/ on a Synology NAS.

It stopped working a little while ago and I recently had a chance to get in there and try to fix it. I backed up the entire /volume1/\@appstore/tvheadend-testing/var/ folder and uninstalled it, then reinstalled it, but it didn't work. Turns out the reason everything stopped working was that the update to FFMPEG my Synology prompted me to do broke the symlink to the application binary that allowed the AUS Freeview playlist to work. I reinstalled, deleted the broken symlink, re-created it, and it all just fired up again. Great!

Problem is, however, none of my previous library of recordings is showing up. The file path and setup I had for recordings is the same, and I've tested to see that the file structure and paths are all exactly the same as the previous installation.

I tried copying the files that were in the previous var/dvr/config and var/dvr/log directories over, but this did nothing. I've seen some mentions of scripts in some other logs, but I really have no idea what people are talking about in those posts, and none of the paths look the same as my Synology installation, so don't really know how to apply their fixes to my problem. I don't even really know how to run a Python script in a Synology SSH session.

Can someone please help me get my extensive collection of previous recordings to reappear in my library? Do I have any options here?

Thank-you!

MJJ


Replies (71)

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Ok, I've replaced 'shortcut' with /volume1/@appstore/tvheadend-testing/var and remembered to put that admin password in again this time. This is what I get.

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: /volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868
/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Sending create command for "HD2020-02-2720-30.ts"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>400 Bad Request</H1>
</BODY></HTML>
Imported "HD2020-02-2720-30.ts" successfully

Now we're still getting the "No such file or directory" error, but when I look in that path, I can see that log file there, so I don't understand why the script doesn't see it... Both those files that are referenced above are there... The paths look perfect. What am I missing here?

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

John Jones wrote:

Ok, I've replaced 'shortcut' with /volume1/@appstore/tvheadend-testing/var and remembered to put that admin password in again this time. This is what I get.

I'm more interested to know why the shortcut worked for some files, but then failed. Can you still see the dvr directory via the shortcut?

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Yep.

total 104
drwxr-xr-x 1 sc-tvheadend-testing sc-media 64 May 11 18:20 accesscontrol
drwx------ 1 sc-tvheadend-testing video 896 May 11 21:05 bouquet
drwx------ 1 sc-tvheadend-testing video 64 May 5 23:23 caclient
drwx------ 1 sc-tvheadend-testing video 18 May 5 23:28 channel
drwx------ 1 sc-tvheadend-testing video 256 May 5 23:23 codec
rw-r--r- 1 sc-tvheadend-testing sc-media 550 Dec 19 2018 comskip.ini
rw------ 1 sc-tvheadend-testing video 1550 May 5 23:28 config
drwx------ 1 sc-tvheadend-testing video 160 May 6 22:02 dvr
rw------ 1 sc-tvheadend-testing video 93407 May 11 21:04 epgdb.v3
drwx------ 1 sc-tvheadend-testing video 34 May 5 23:30 epggrab
drwx------ 1 sc-tvheadend-testing video 8 May 5 23:24 input
drwxr-xr-x 1 sc-tvheadend-testing sc-media 64 May 5 23:22 passwd
drwx------ 1 sc-tvheadend-testing video 448 May 5 23:23 profile
rw-r--r- 1 root root 6 May 11 21:05 tvheadend-testing.pid

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

So, 44 times it works, then grep: shortcut/dvr/log/*: No such file or directory

But shortcut/dvr/log/ is still there. That's just weird.

Give this one a go, if it fails to find a log file, it will stop and list the dvr/log directory. It's still using the shortcut which is what I want - this it primarily a test.

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: /volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868
/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Sending create command for "HD2020-02-2720-30.ts"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>400 Bad Request</H1>
</BODY></HTML>
Imported "HD2020-02-2720-30.ts" successfully

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Just so I understand what's going on here a little better, what's

/volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868 for

and then what's

/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035 for?

What do these two different files have to do with each other?

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

John Jones wrote:

Just so I understand what's going on here a little better, what's

/volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868 for

This is the file in which grep has found the path for a specific recording. It therefore must exist and be readable,
why cat can't subsequently open it is a mystery.

and then what's

/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035 for?

What do these two different files have to do with each other?

In a sane world: Nothing.

I'm hoping to find out more from the test run.

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

The previous post showing -

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: /volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868
/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Sending create command for "HD2020-02-2720-30.ts"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>400 Bad Request</H1>
</BODY></HTML>
Imported "HD2020-02-2720-30.ts" successfully

Is what happens with that last script version.

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

John Jones wrote:

The previous post showing -

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: /volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868
/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory

The most recent script I posted is accessing shortcut/dvr/log/* - not the path shown here.

Is what happens with that last script version.

I think you may be running an older script.

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Ok, sorry about that. Don't know how that could have happened... Just deleted the last one, downloaded the latest one again, chmod, then ran it and I get this. Looks the same.

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: /volume1/@appstore/tvheadend-testing/var/dvr/log/77200c696a6cd8c24e95fb4795a26868
/volume1/@appstore/tvheadend-testing/var/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Sending create command for "HD2020-02-2720-30.ts"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>400 Bad Request</H1>
</BODY></HTML>
Imported "HD2020-02-2720-30.ts" successfully

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

Does the script you're running have this?

CONFIGDIR='shortcut'

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Well, no. I've been replacing 'shortcut' with /volume1/@appstore/tvheadend-testing/var Am I not supposed to do that? I thought that this is what you wanted me to do? ? ?

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: shortcut/dvr/log/77200c696a6cd8c24e95fb4795a26868
shortcut/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Sending create command for "HD2020-02-2720-30.ts"
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>400 Bad Request</H1>
</BODY></HTML>
Imported "HD2020-02-2720-30.ts" successfully

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

Back when I first posted this test version you'll see I said "It's still using the shortcut which is what I want - this it primarily a test."

Need a different test now...

So please update USER & PASS, but not CONFIGDIR

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Ok. Here's the output. There were lots more lines, but I only put in the top few.

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: shortcut/dvr/log/77200c696a6cd8c24e95fb4795a26868
shortcut/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Failed to import HD2020-02-2720-30.ts - unable to access log
total 1.6M
drwx------ 1 sc-tvheadend-testing video 25K May 12 14:10 ./
drwx------ 1 sc-tvheadend-testing video 160 May 6 22:02 ../
---------- 1 root root 1.4K May 6 22:10 0248bf0359d1d1cf0a1068f35b7bea7b
rw------ 1 sc-tvheadend-testing video 1.3K May 11 13:20 027c79350687080e2f8a5ec3e9278c77
---------- 1 root root 1.3K May 6 22:10 02c468abe4efa0c2e0377be3f2268f00
---------- 1 root root 800 May 6 22:10 02c9531e8f6e22466af4e3c27adb9133
---------- 1 root root 1.2K May 6 22:10 0379efbfb43068e3862227c606c22418
rw------ 1 sc-tvheadend-testing video 847 May 12 00:04 03da519e4f99646cc573f5efc93584e7
---------- 1 root root 1.2K May 6 22:10 0410627298a6c09d0b5e5a5693975af2

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

John Jones wrote:

Ok. Here's the output. There were lots more lines, but I only put in the top few.

Looks like you have some very odd permissions here.

drwx------ 1 sc-tvheadend-testing video 25K May 12 14:10 ./
drwx------ 1 sc-tvheadend-testing video 160 May 6 22:02 ../
---------- 1 root root 1.4K May 6 22:10 0248bf0359d1d1cf0a1068f35b7bea7b
rw------ 1 sc-tvheadend-testing video 1.3K May 11 13:20 027c79350687080e2f8a5ec3e9278c77
---------- 1 root root 1.3K May 6 22:10 02c468abe4efa0c2e0377be3f2268f00
---------- 1 root root 800 May 6 22:10 02c9531e8f6e22466af4e3c27adb9133
---------- 1 root root 1.2K May 6 22:10 0379efbfb43068e3862227c606c22418
rw------ 1 sc-tvheadend-testing video 847 May 12 00:04 03da519e4f99646cc573f5efc93584e7
---------- 1 root root 1.2K May 6 22:10 0410627298a6c09d0b5e5a5693975af2

So you have some files owned by sc-tvheadend-testing.video with owner rw permissions, and a bunch owned by root.root with no permissions set at all.

Suggest you cd to that directory and type:

chown sc-tvheadend-testing.video *
chmod 666 *

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Done. I get this now.

Scanning logs and recordings
Preparing to import HD2020-02-2720-30.ts with log 77200c696a6cd8c24e95fb4795a26868
cat: shortcut/dvr/log/77200c696a6cd8c24e95fb4795a26868
shortcut/dvr/log/f6c6748c0888054d5b11fd5894e18035: No such file or directory
Failed to import HD2020-02-2720-30.ts - unable to access log
total 1.6M
drwx------ 1 sc-tvheadend-testing video 25K May 12 14:10 ./
drwx------ 1 sc-tvheadend-testing video 160 May 6 22:02 ../
rw-rw-rw 1 sc-tvheadend-testing video 1.4K May 6 22:10 0248bf0359d1d1cf0a1068f35b7bea7b
rw-rw-rw 1 sc-tvheadend-testing video 1.3K May 11 13:20 027c79350687080e2f8a5ec3e9278c77
rw-rw-rw 1 sc-tvheadend-testing video 1.3K May 6 22:10 02c468abe4efa0c2e0377be3f2268f00
rw-rw-rw 1 sc-tvheadend-testing video 800 May 6 22:10 02c9531e8f6e22466af4e3c27adb9133
rw-rw-rw 1 sc-tvheadend-testing video 1.2K May 6 22:10 0379efbfb43068e3862227c606c22418
rw-rw-rw 1 sc-tvheadend-testing video 847 May 12 00:04 03da519e4f99646cc573f5efc93584e7
rw-rw-rw 1 sc-tvheadend-testing video 1.2K May 6 22:10 0410627298a6c09d0b5e5a5693975af2
rw-rw-rw 1 sc-tvheadend-testing video 1.5K May 6 22:10 04e4290680d09b0db15dd935932d63a5
rw-rw-rw 1 sc-tvheadend-testing video 800 May 6 22:10 059fd5a6b9da3789b5ffb63b6c4f1d62
rw-rw-rw 1 sc-tvheadend-testing video 1.2K May 11 13:20 06c18ffc285be9638f4811d6a99114c8

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

OK, I will have to put more data dump in the script to see WTF is going on. Will look at the tomorrow, I'm signing off for the day now.

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

No worries. Thanks again.

Can't help but think it would be so much easier if I just created a new password for the server root access, and gave you an IP address so you could dial in? Or Teamviewer into a computer I have here that is SSH-ed into that server?

RE: Re-Import Existing Recordings - Added by John Jones over 1 year ago

Ok, I've set up an account on another computer I have in here that is SSH-ed into that server. It's got Teamviewer on it and is ready to go. Just let me know if you want to do this and we can work out how to get you the log-in credentials in a private way.

RE: Re-Import Existing Recordings - Added by Hiro Protagonist over 1 year ago

I don't have Teamviewer installed, but ssh would work best for me anyway. Do you know how to install a public key into ssh? If you're able to do that then there's no need for private login credentials.

Anyway if there's a way we could take this off a public forum, that would be good.

(51-71/71)