Synology SPK for DVR Record Engine

Downloads & Instructions
Post Reply
fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

That fixed the logs...now I can see the logs, but still no recordings are showing.

And tv app says on live tv : unable to play channel DVR failure.

I don't know if this is a clue or not, but in the past when the record engine was down, it would still play live tv with no issue.
Both the software and the HDHomerun status page show the engine is running yet live tv is dead
..

Thanks..

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: Synology SPK for DVR Record Engine

Post by demonrik »

fletchb1 wrote: Sun Oct 14, 2018 4:02 pm That fixed the logs...now I can see the logs, but still no recordings are showing.

And tv app says on live tv : unable to play channel DVR failure.

I don't know if this is a clue or not, but in the past when the record engine was down, it would still play live tv with no issue.
Both the software and the HDHomerun status page show the engine is running yet live tv is dead
..

Thanks..
That suggests not all is right still with permissions.
The engine runs as user http
You can check by SSH to the NAS and executing

Code: Select all

 ps axo pid,user,group,cmd | grep hdh
Should see something similar to

Code: Select all

13526 http     http     /tmp/hdhomerun_record_arm start --conf /volume1/@appstore/HDHomeRunDVR/etc/HDHomeRunDVR.conf
The check the RecordPath for permissions..
Should look like

Code: Select all

-rwxrwxrwx+ 1 http http 182114 Oct 14 16:25 20181014.log
drwxrwxrwx+ 2 http http   4096 Oct 10 20:59 A Million Little Things
Also lets check that the share settings are right

Code: Select all

synoacltool -get /volume1/HDHomeRun/
You should see something similar to

Code: Select all

ACL version: 1
Archive: has_ACL,is_support_ACL
Owner: [http(user)]
---------------------
         [0] group:administrators:allow:rwxpdDaARWc--:fd--  (level:0)
         [1] group:http:allow:rwxpdDaARWc--:fd--  (level:0)

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

Ok for first step I get this:

admin@starbuck:/volume1$ ps axo pid,user,group,cmd | grep hdh
5298 http root /tmp/hdhomerun_record_x64 start --conf /volume1/@appstore/HDHomeRunDVR/etc/HDHomeRunDVR.conf
20000 admin users grep --color=auto hdh


For permissons (i used ls -la)

-rwxrwxrwx+ 1 http users 200659 Oct 10 18:59 20181010.log
-rwxrwxrwx+ 1 http users 175854 Oct 11 18:59 20181011.log
-rwxrwxrwx+ 1 http users 213748 Oct 12 18:59 20181012.log
-rwxrwxrwx+ 1 http users 162730 Oct 13 18:59 20181013.log
-rwxrwxrwx+ 1 http users 194266 Oct 14 16:58 20181014.log
drwxrwxrwx+ 1 http users 184 Oct 7 17:59 60 Minutes
drwxrwxrwx+ 1 http users 602 Sep 3 10:29 Adam-12
drwxrwxrwx+ 1 http users 2004 Sep 8 22:59 Battlestar Galactica
drwxrwxrwx+ 1 http users 1758 Sep 30 17:07 Bionic Woman
drwxrwxrwx+ 1 http users 312 Oct 12 20:59 Blue Bloods
drwxrwxrwx+ 1 http users 222 Sep 15 13:02 Bonanza
drwxrwxrwx+ 1 http users 268 Oct 13 21:59 Buck Rogers in the 25th Century
drwxrwxrwx+ 1 http users 240 Oct 8 20:59 Bull
drwxrwxrwx+ 1 http users 84 Apr 7 2018 Cannon
drwxrwxrwx+ 1 http users 30 Oct 14 11:45 CBS News Sunday Morning
drwxrwxrwx+ 1 http users 360 Oct 12 07:26 CBS This Morning
drwxrwxrwx+ 1 http users 324 Oct 13 05:59 CBS This Morning Saturday
drwxrwxrwx+ 1 http users 612 Oct 8 16:59 CHiPs


For the 3rd step I get this:
ACL version: 1
Archive: has_ACL,is_support_ACL
Owner: [root(user)]
---------------------
[0] user:admin:allow:rwxpdDaARWcCo:fd-- (level:0)
[1] group:http:allow:rwxpdDaARWc--:fd-- (level:0)
[2] user:fletch:allow:rwxpdDaARWcCo:fd-- (level:0)
[3] group:administrators:allow:rwxpdDaARWc--:fd-- (level:0)
[4] group:http:allow:rwxpdDaARWc--:fd-- (level:0)



Ok see anything wrong?

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: Synology SPK for DVR Record Engine

Post by demonrik »

fletchb1 wrote: Sun Oct 14, 2018 4:42 pm Ok for first step I get this:

admin@starbuck:/volume1$ ps axo pid,user,group,cmd | grep hdh
5298 http root /tmp/hdhomerun_record_x64 start --conf /volume1/@appstore/HDHomeRunDVR/etc/HDHomeRunDVR.conf
20000 admin users grep --color=auto hdh


For permissons (i used ls -la)

-rwxrwxrwx+ 1 http users 200659 Oct 10 18:59 20181010.log
-rwxrwxrwx+ 1 http users 175854 Oct 11 18:59 20181011.log
-rwxrwxrwx+ 1 http users 213748 Oct 12 18:59 20181012.log
-rwxrwxrwx+ 1 http users 162730 Oct 13 18:59 20181013.log
-rwxrwxrwx+ 1 http users 194266 Oct 14 16:58 20181014.log
drwxrwxrwx+ 1 http users 184 Oct 7 17:59 60 Minutes
drwxrwxrwx+ 1 http users 602 Sep 3 10:29 Adam-12
drwxrwxrwx+ 1 http users 2004 Sep 8 22:59 Battlestar Galactica
drwxrwxrwx+ 1 http users 1758 Sep 30 17:07 Bionic Woman
drwxrwxrwx+ 1 http users 312 Oct 12 20:59 Blue Bloods
drwxrwxrwx+ 1 http users 222 Sep 15 13:02 Bonanza
drwxrwxrwx+ 1 http users 268 Oct 13 21:59 Buck Rogers in the 25th Century
drwxrwxrwx+ 1 http users 240 Oct 8 20:59 Bull
drwxrwxrwx+ 1 http users 84 Apr 7 2018 Cannon
drwxrwxrwx+ 1 http users 30 Oct 14 11:45 CBS News Sunday Morning
drwxrwxrwx+ 1 http users 360 Oct 12 07:26 CBS This Morning
drwxrwxrwx+ 1 http users 324 Oct 13 05:59 CBS This Morning Saturday
drwxrwxrwx+ 1 http users 612 Oct 8 16:59 CHiPs


For the 3rd step I get this:
ACL version: 1
Archive: has_ACL,is_support_ACL
Owner: [root(user)]
---------------------
[0] user:admin:allow:rwxpdDaARWcCo:fd-- (level:0)
[1] group:http:allow:rwxpdDaARWc--:fd-- (level:0)
[2] user:fletch:allow:rwxpdDaARWcCo:fd-- (level:0)
[3] group:administrators:allow:rwxpdDaARWc--:fd-- (level:0)
[4] group:http:allow:rwxpdDaARWc--:fd-- (level:0)



Ok see anything wrong?
I think so.
Try specifically to add http user to the acl
I suspect because the process is running as root group not http it's being blockedby acl, while file permissions are ok

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

How do I do that? I have only done permissions in unix.

Let me ask you this..if this doesn't work, can I just copy the conf back to it's original name/location so I get the tv working again?

Thanks.

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: Synology SPK for DVR Record Engine

Post by demonrik »

fletchb1 wrote: Sun Oct 14, 2018 5:24 pm How do I do that? I have only done permissions in unix.

Let me ask you this..if this doesn't work, can I just copy the conf back to it's original name/location so I get the tv working again?

Thanks.
No..
The conf file won't help. It's the match of executable permissions.
Easiest is to set the recordable back to the spk default folder then move the recordings to the new /volume1/HdhomerunDVR folder and fix file permissions of the recordings

Anyway, try this to add the user http to the acls

Code: Select all

sudo synoacltool -add /volume1/HDHomeRun user:http:allow:rwxpdDaARWc--:fd-- 

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

Ok that last command line did it!! As soon as I did that, the recordings appeared and the dvr started recording 2 shows in the queue.

one more ?

When they update the record the engine again, do I just download the spk from google drive and reinstall? And if so will it preserve my settings or will I have to do this again?

Thanks for your help tonight! I will be glad to send you a paypal donation for getting me going again (and my gf off my back about the broken tv)..

Thanks...Fletch

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: Synology SPK for DVR Record Engine

Post by demonrik »

fletchb1 wrote: Sun Oct 14, 2018 5:56 pm Ok that last command line did it!! As soon as I did that, the recordings appeared and the dvr started recording 2 shows in the queue.

one more ?

When they update the record the engine again, do I just download the spk from google drive and reinstall? And if so will it preserve my settings or will I have to do this again?

Thanks for your help tonight! I will be glad to send you a paypal donation for getting me going again (and my gf off my back about the broken tv)..

Thanks...Fletch
Next time u just install the update and it should automatically keep all the settings.
Thanks for the thought, no need for donation though, happy to get u up and running.

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

Thanks again!

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

Hi,
Have a ? about re-installation :

This weekend I am getting a new nas and wondering if I would be better to just do a new install or try to do a restore?
I ask because I had those issues installing the spk over my existing hdhomerun install a couple of weeks ago.

I am going from a synology 2 bay to 4 bay model and it does have the option of backup/ restore between the 2. But if a clean install would be easier and then just copy my existing shows over to the new nas/hd install I would certainly go that way.
What do you think?
Thanks!

demonrik
Posts: 1591
Joined: Mon May 04, 2015 10:03 am
Device ID: 108042A1, 10814D8E
x 38

Re: Synology SPK for DVR Record Engine

Post by demonrik »

fletchb1 wrote: Thu Oct 25, 2018 9:38 pm Hi,
Have a ? about re-installation :

This weekend I am getting a new nas and wondering if I would be better to just do a new install or try to do a restore?
I ask because I had those issues installing the spk over my existing hdhomerun install a couple of weeks ago.

I am going from a synology 2 bay to 4 bay model and it does have the option of backup/ restore between the 2. But if a clean install would be easier and then just copy my existing shows over to the new nas/hd install I would certainly go that way.
What do you think?
Thanks!
if its just recordings.. clean install and scp those files all the way
but thats just me

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

That is what I am doing...thanks!

Jwestover
Posts: 1
Joined: Sat Oct 27, 2018 4:41 pm

Re: Synology SPK for DVR Record Engine

Post by Jwestover »

I’m trying to find how to relocate my HD Homerun folder from Volume 1 to my shared folders so I can more easily manage my recordings. Can anyone point me in the right direction?

Thanks!

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

Ok new install went fine but I think I have the same permission problems, When it installed it still defaulted to the Hdhomerun share (that did not exist at that point on the new nas). I used rsync (well their gui version) to copy the recordings over.

I want to try and figure this out myself
I going to do what you told me last time,,I understood most of it except ACL (that one is new to me least in linux)...but I want to ask you about one weird thing I noticed:

It recorded one show but for the heck of me I can't find it anywhere on in the share. If it can't write to the share because of permission or acl problems, where would it put it? I actually have the record engine running on both nas units and the old nas recorded like it should and it shows up in the share. Weird!!

fletchb1
Posts: 103
Joined: Fri Jun 23, 2017 11:39 am

Re: Synology SPK for DVR Record Engine

Post by fletchb1 »

It's the acl problem again. Owner is root, but this time it won't let me change it. Command line just ignores the change. They also have a gui called permissions inspector but it doesn't work.

Try again tomorrow when I am fully awake...

Post Reply