Installed the new package and getting some errors when I try to delete recordings from the dashboard.
I click delete and I get a pop up saying
Error invalid Status:
405 not allowed
nginx
status 405
Synology SPK for DVR Record Engine
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
yeah - I see it..
Sorry about that..
I know what the issue is.. I should have read the changelog better.
Before the default for the recorded_files returned all recordings so was a quick way to get full list sorted in recorded order from most recent.
But now it defaults to the root folder which basically is a list of series (and is in alphabetical order), so when you click delete it tries to delete a recording that isn't a recording and fails.
So I need to implement a full break down of each series 1 by 1 and then sort on date which is going to get messy

I have the basic workings of the code over in the HDHR_DVRUI, just need to port it and rework a few things.. so bear with me.
Re: Synology SPK for DVR Record Engine
I appreciate your patience and hard work just to help the community! I look forward to the update whenever you have it done!demonrik wrote: ↑Tue May 26, 2020 3:40 pmyeah - I see it..
Sorry about that..
I know what the issue is.. I should have read the changelog better.
Before the default for the recorded_files returned all recordings so was a quick way to get full list sorted in recorded order from most recent.
But now it defaults to the root folder which basically is a list of series (and is in alphabetical order), so when you click delete it tries to delete a recording that isn't a recording and fails.
So I need to implement a full break down of each series 1 by 1 and then sort on date which is going to get messy
I have the basic workings of the code over in the HDHR_DVRUI, just need to port it and rework a few things.. so bear with me.
Re: Synology SPK for DVR Record Engine
So... should we avoid installing the May26 version for now? No hurry/pressure, just curious if its safe / good to go.demonrik wrote: ↑Tue May 26, 2020 3:40 pmyeah - I see it..
Sorry about that..
I know what the issue is.. I should have read the changelog better.
Before the default for the recorded_files returned all recordings so was a quick way to get full list sorted in recorded order from most recent.
But now it defaults to the root folder which basically is a list of series (and is in alphabetical order), so when you click delete it tries to delete a recording that isn't a recording and fails.
So I need to implement a full break down of each series 1 by 1 and then sort on date which is going to get messy
I have the basic workings of the code over in the HDHR_DVRUI, just need to port it and rework a few things.. so bear with me.
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
its safe to do - you lose the functionality of seeing the recordings properlySion wrote: ↑Fri Jun 12, 2020 4:12 pmSo... should we avoid installing the May26 version for now? No hurry/pressure, just curious if its safe / good to go.demonrik wrote: ↑Tue May 26, 2020 3:40 pmyeah - I see it..
Sorry about that..
I know what the issue is.. I should have read the changelog better.
Before the default for the recorded_files returned all recordings so was a quick way to get full list sorted in recorded order from most recent.
But now it defaults to the root folder which basically is a list of series (and is in alphabetical order), so when you click delete it tries to delete a recording that isn't a recording and fails.
So I need to implement a full break down of each series 1 by 1 and then sort on date which is going to get messy
I have the basic workings of the code over in the HDHR_DVRUI, just need to port it and rework a few things.. so bear with me.
in next release I'm going to remove that anyway.
Trying to decide if on next release I will remove the UI completely and just move to something like I did for docker, and just have the conf file somewhere handy and have the start script just fetch the engine.. would remove most of the support pains.
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
NEW PACKAGE AVAILABLE
Big change here - apologies it took so long. Some good news and some bad.. And heads up - you will need to do work to upgrade
Main goal of this release has been to
(a) minimize the support headaches of permissions
(b) streamline the install process for better user experience, and minimize code
(c) remove/reduce duplication with SDs existing interfaces (i.e. recordings)
(d) refactor as much as possible to maximize reuse of scripts and code between the various NAS installers
So good news first
new SPK HDHomeRunDVR-1.0.0.spk available in the usual locations Google Drive, DropBox, OneDrive
Code is available on github
https://github.com/Silicondust/dvr_install
Big change here - apologies it took so long. Some good news and some bad.. And heads up - you will need to do work to upgrade
Main goal of this release has been to
(a) minimize the support headaches of permissions
(b) streamline the install process for better user experience, and minimize code
(c) remove/reduce duplication with SDs existing interfaces (i.e. recordings)
(d) refactor as much as possible to maximize reuse of scripts and code between the various NAS installers
So good news first
- Have changed to be similar to the docker image I created and on starting the engine, the script now gets the latest record engine from SDs servers and runs that. This will mean once SD make available a new version of the record engine you will not need to wait for me to release a new SPK. Just simply stop and start the engine and it will pick it up.
- To also make it easier, I've added some parameters to the config file I manage for the engine that you can edit. You want to look at BetaEngine parameter, and set this to 1 and it will download from both the beta and the release URLs and then compare to see which is newer and use that.. if BetaEngine is set to anything but 1 it will only download the latest full release.
- The SPK now creates a 'hdhomerundvr' user to run the engine under. this user will be removed on uninstalling the package. You can change the user to run as by editing the config file once more and changing the 'RunAs' parameter to the username you want to run as.
- The SPK now creates a HDHomeRunDVR share by default and not a standard folder, and then adds the administrators and http groups to it, as well as the new user created above.
- Installing and Removing the SPK is logged to /tmp/hdhomerundvr_install.log which should help us understand when things go wrong
- UI Page now opens direct to the dashboard
- Since I've reduced the code/scripts considerably and rolling update means less need to do SPK updates I am finally updating this to version 1.0.0
- Recordings management has been completely removed. This broke recently, and was hitting issues with permissions quite a bit. Also since the SD page for your record engine lists the recordings properly - is better to simply point you there.. and that is possible by clicking the first link for the record engine in the HDHR list in the dashboard.
- Engine start/stop from the DVR Manager UI has been removed. Running in to permissions issues a lot, and some crazy thing happening on Synology directly was causing the wrappers to get out of whack with the UI.. You can start/stop the service for HDHomeRunDVR via the command line or the App Center anyway, so removing doesn't remove capability, just duplication and simplifies support.
- Removed the log file management.. Since SD added the cleanup of the log files automatically by the record engine, this features wasn't needed and it cleans up the interface.
- Wrappers are no longer needed and removed
- IMPORTANT That change of user means you need to ensure the user has permissions to your existing recordings. Simply add the new user 'hdhomerundvr' to your recordpath share or change the RunAs user once upgraded and you should be good
new SPK HDHomeRunDVR-1.0.0.spk available in the usual locations Google Drive, DropBox, OneDrive
Code is available on github
https://github.com/Silicondust/dvr_install
Re: Synology SPK for DVR Record Engine
I use both a QNAP and Synology to record (dual record engines). The QNAP install went fine and it appeared the Synology did but as I would like the recordings to default to the Synology, it only records to the QNAP. I noticed there is no Storage ID shown, just the message, "StorageID not Set". I don't know how to set the storage ID though I do know what that ID is.
How can I do this?
Thanks for all your hard work. As I said before, I'd gladly donate to the cause!
How can I do this?
Thanks for all your hard work. As I said before, I'd gladly donate to the cause!
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
Are you saying the Synology won't record at all, or just that it won't default to it?Beerman wrote: ↑Wed Jul 08, 2020 1:33 pm I use both a QNAP and Synology to record (dual record engines). The QNAP install went fine and it appeared the Synology did but as I would like the recordings to default to the Synology, it only records to the QNAP. I noticed there is no Storage ID shown, just the message, "StorageID not Set". I don't know how to set the storage ID though I do know what that ID is.
How can I do this?
Thanks for all your hard work. As I said before, I'd gladly donate to the cause!
Make sure you update the MaxRecordedStreams for the latter - should be 0 on the QNAP.
I will look at the storageID thing..
would not be set if the user running the record engine can't write to the config file.. which is a bug.
The engine gets the UID for the storage and ID and writes to the config file.
Re: Synology SPK for DVR Record Engine
Yes but you are so fast and so good, you got back to me before I restarted the NAS. After a restart, it shows the Storage ID and does work now. I think it's supposed to record to the NAS with the biggest amount of space and that would be my Synology.
Not sure why I had to restart but I finally remembered needing to when I first installed your wonderful program.
I'll put this thru lots of recordings the rest of this week and post back if I find any oddities. This one was on me!
Thanks for the uber quick reply!
Not sure why I had to restart but I finally remembered needing to when I first installed your wonderful program.
I'll put this thru lots of recordings the rest of this week and post back if I find any oddities. This one was on me!
Thanks for the uber quick reply!
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
hmm - implies something is sticking during the upgrade. Have seen it once before, but haven't been able to replicate again.. it's as if the record engine doesn't shut down during the upgrade.. but you should only need to do the restart via the app center and not full restart.Beerman wrote: ↑Wed Jul 08, 2020 1:52 pm Yes but you are so fast and so good, you got back to me before I restarted the NAS. After a restart, it shows the Storage ID and does work now. I think it's supposed to record to the NAS with the biggest amount of space and that would be my Synology.
Not sure why I had to restart but I finally remembered needing to when I first installed your wonderful program.
I'll put this thru lots of recordings the rest of this week and post back if I find any oddities. This one was on me!
Thanks for the uber quick reply!
You are right about storage size though..
Re: Synology SPK for DVR Record Engine
Having the identical issue. StorageID is not set.
I have tried:
Restarting the app
Restarting the diskstation
Restarting hdhomerun device
Done both a fresh install and upgrade install with no success
0.8.3 was working (limping but working) but the new version won't seem to find the HDHomeRunDVR device.
Permissions seem correct (I think). I SSH'd in to manually add my storageid to the hdhomerun.conf file but was unable to since the file owner is hdhomerundvr.
The log on the dashboard (possible sensitive content replaced with *** for privacy) shows:
I also noticed when I tested 0.8.3 that the storage ID is completely different from the ones listed in the current log above.
Any ideas?
I have tried:
Restarting the app
Restarting the diskstation
Restarting hdhomerun device
Done both a fresh install and upgrade install with no success
0.8.3 was working (limping but working) but the new version won't seem to find the HDHomeRunDVR device.
Permissions seem correct (I think). I SSH'd in to manually add my storageid to the hdhomerun.conf file but was unable to since the file owner is hdhomerundvr.
The log on the dashboard (possible sensitive content replaced with *** for privacy) shows:
I am not sure if it matters but the last storageid seems to be different that the first two in the above log.---------- Config File ----------------------------------------------------------
Location = /volume1/@appstore/HDHomeRunDVR/etc/HDHomeRunDVR.conf
RecordPath = /volume1/HDHomeRunDVR
RecordStreamsMax = 16
ServerPort = 59090
StorageID = StorageID not Set
---------- CONNECTIVITY CHECKS --------------------------------------------------
DVRUI_apiurl = http://api.hdhomerun.com/
Discover URL = http://api.hdhomerun.com/discover
Ping to api.hdhomerun.com success
curl extension = not available
checking alternative connection
stream returned = [ { "DeviceID": "********", "LocalIP": "192.168.0.120", "ConditionalAccess": 1, "BaseURL": "http://192.168.0.120", "DiscoverURL": "http://192.168.0.120/discover.json", "LineupURL": "http://192.168.0.120/lineup.json" }, { "StorageID": "******-****-****-****-******DEF6", "LocalIP": "192.168.0.170:59090", "BaseURL": "http://192.168.0.170:59090", "DiscoverURL": "http://192.168.0.170:59090/discover.json", "StorageURL": "http://192.168.0.170:59090/recorded_files.json" }, { "StorageID": "******-****-****-****-******DEF6", "LocalIP": "192.168.0.170:59090", "BaseURL": "http://192.168.0.170:59090", "DiscoverURL": "http://192.168.0.170:59090/discover.json", "StorageURL": "http://192.168.0.170:59090/recorded_files.json" }, { "StorageID": "******-****-****-****-******0B56", "LocalIP": "192.168.0.170:59090", "BaseURL": "http://192.168.0.170:59090", "DiscoverURL": "http://192.168.0.170:59090/discover.json", "StorageURL": "http://192.168.0.170:59090/recorded_files.json" } ]
---------- HDHR TUNERS-----------------------------------------------------------
tuner(0) id: ********
tuner(0) model: HDHR3-CC
tuner(0) firmware: 20200521
tuner(0) baseurl: http://192.168.0.120
tuner(0) auth: guG-***********************
---------- HDHR DVR ENGINES------------------------------------------------------
---------- HDHR Account -----------------------------------------------------------
curl extension = not available
stream returned = { "AccountEmail": "************", "AccountDeviceIDs": [ "********" ], "DvrActive": 1, "AccountState": "Active" }
------------ DVR Series ------------------------------------------------------
?DisplayGroupID=root
------------ DVR Recordings ------------------------------------------------------
I also noticed when I tested 0.8.3 that the storage ID is completely different from the ones listed in the current log above.
Any ideas?
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
I don't know - need to go investigate..MNOiSY wrote: ↑Wed Jul 08, 2020 2:40 pm Having the identical issue. StorageID is not set.
Have tried restarting the app, restarting the diskstation, and restarting hdhomerun device multiple times with no success. 0.8.3 was working (limping but working) but the new version wont seem to find the hdhomerun device. Done fresh install as well as upgrade install for the spk.
Permissions seem correct. I even SSH'd in to manually add my storageid to the hdhomerun.conf file but was unable to since the owner is hdhomerundvr.
Any ideas?
I checked the installer and it sets the permissions correctly.. so something else is sticking such that the new user can't update the conf file..
I'll keep digging
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
you're seeing 3 entries there for the 192.168.0.170 device because on restarting the storageID is not persistent so the engine makes up a new one and thus registers as a new device.MNOiSY wrote: ↑Wed Jul 08, 2020 2:40 pmI am not sure if it matters but the last storageid seems to be different that the first two in the above log.stream returned = [ { "DeviceID": "********", "LocalIP": "192.168.0.120", "ConditionalAccess": 1, "BaseURL": "http://192.168.0.120", "DiscoverURL": "http://192.168.0.120/discover.json", "LineupURL": "http://192.168.0.120/lineup.json" }, { "StorageID": "******-****-****-****-******DEF6", "LocalIP": "192.168.0.170:59090", "BaseURL": "http://192.168.0.170:59090", "DiscoverURL": "http://192.168.0.170:59090/discover.json", "StorageURL": "http://192.168.0.170:59090/recorded_files.json" }, { "StorageID": "******-****-****-****-******DEF6", "LocalIP": "192.168.0.170:59090", "BaseURL": "http://192.168.0.170:59090", "DiscoverURL": "http://192.168.0.170:59090/discover.json", "StorageURL": "http://192.168.0.170:59090/recorded_files.json" }, { "StorageID": "******-****-****-****-******0B56", "LocalIP": "192.168.0.170:59090", "BaseURL": "http://192.168.0.170:59090", "DiscoverURL": "http://192.168.0.170:59090/discover.json", "StorageURL": "http://192.168.0.170:59090/recorded_files.json" } ]
I also noticed when I tested 0.8.3 that the storage ID is completely different from the ones listed in the current log above.
Any ideas?
Need to fix the storage ID being persisted..
Re: Synology SPK for DVR Record Engine
It looks like it must be some type of permission issue.
Just to test, I created a new share at /volume1/HDHomeRun. Updated the location in the app settings, restarted the app and boom, it worked fine and found the record engine. If I change the location in the app back to the default /volume1/HDHomeRunDVR and restart the app, it will not work again.
I moved my recordings to the new share and it seems to be working fine now. I will simply keep this configuration until its resolved.
Thanks for all your hard work!!!!! I look forward to seeing what might be causing this.
Just to test, I created a new share at /volume1/HDHomeRun. Updated the location in the app settings, restarted the app and boom, it worked fine and found the record engine. If I change the location in the app back to the default /volume1/HDHomeRunDVR and restart the app, it will not work again.
I moved my recordings to the new share and it seems to be working fine now. I will simply keep this configuration until its resolved.
Thanks for all your hard work!!!!! I look forward to seeing what might be causing this.
-
- Posts: 1351
- Joined: Mon May 04, 2015 10:03 am
- Device ID: 10736454, 1073A35A, 1075C377, 108042A1
- x 11
Re: Synology SPK for DVR Record Engine
I can't replicate the issue
Can one of you SSH to the box and have a look at the conf file, e.g.
should see something like
Can one of you SSH to the box and have a look at the conf file, e.g.
Code: Select all
ls -l /volume1/\@appstore/HDHomeRunDVR/etc
Code: Select all
rik@NAS:/$ ls -l
total 4
-rw-rw-r-- 1 hdhomerundvr http 142 Jul 8 15:13 HDHomeRunDVR.conf