flexo wrote: Wed Apr 28, 2021 8:18 pm
hi demonrik, thanks for your help with the hdhomerun user permissions. that fixed my issue! recently (today), after a QNAP firmware upgrade I lost the record engine. can you help me with that?
I installed the 0.10.7 version and got the record engine back, for now.
if it disappeared after the QNAP update it can be multiple reasons.
On execution of the scripts I log all decisions to /tmp/hdhomerundvr_install.log
If it all runs smoothly there isn't much reported, e.g.
Code: Select all
# cat /tmp/hdhomerundvr_install.log
Downloading latest release
Not checking for Beta versions using the Release version
Downloading latest release
Downloading latest beta
Comparing which is newest
Beta version is newer - selecting as record engine
Worth seeing if there is an error there, and/or from the command line execute the following
Code: Select all
qpkg_service restart HDHomeRunDVR
and should get a readout of how it progresses, e.g.
Code: Select all
# qpkg_service restart HDHomeRunDVR
HDHomeRun RECORD stopped
Checking HDHomeRunDVR is enabled
Validating the Config File is available and set up correctly
Config File exists and is writable - is record path and port correct
-- Installing the HDHomeRunDVR Record Engine
Lets remove any existing engine - we're going to take the latest always....
Checking it was deleted - if we can't remove it we can't update
Changing binary owner to hdhomerundvr
Starting the recordengine as hdhomerundvr
HDHomeRun RECORD started
On a NAS update there might be a few things that happen.
1. It might do a check of the drives on reboot which keeps them non-writable, so the download of the record engine fails - should see the error in the logs
2. I've seen sometimes where the permissions are delayed and same issue
3. There are so many checks and things loading the engine load just takes a long long time (I've seen 10mins)
My advice is to wait about 15mins after the reboot before panicking.
If it's not come up.. Try just restart from app center (stop and start), or command line as above.
If it still fails to come up...
Check that App Center is allowing apps without valid digital signature in the app center settings..
Check the Security Counselor rules and make sure 'Does QTS allow the installation of applications without a valid digital signature' is NOT CHECKED
Check permissions haven't changed somewhere
FWIW - I've had no issues with update to latest QNAP OS and running 1.0.4. so is something on your NAS.
I would recommend figuring out why 1.0.4 isn't running on your system rather than relying on 0.10.7
But at this point it might be worth taking out the sledgehammer and get you to a stable system. So my recommendation is to remove all knowledge of the previous installation and start again (saving existing recordings while we do it).
So - this should take about 10-20mins or so. (depends on your experience). Just take your time
- SSH to the NAS as an Admin.. Select Q to get to a command line
- From SSH Remove the QPKG with
- From SSH Create a temporary folder and move existing recordings to it (if you keep to same volume as existing RecordPath it will be quick), e.g.
Code: Select all
mkdir /share/CACHEDEV1_DATA/Public/SaveMe
cp -R /share/Recordings/HDHomeRunDVR/* /share/CACHEDEV1_DATA/Public/SaveMe
- From SSH clean out old record engine
- From SSH clean save file of record engine
Code: Select all
rm -f /share/CACHEDEV1_DATA/Public/SaveMe/hdhome*
- From SSH clean old logs files
Code: Select all
rm -f /share/CACHEDEV1_DATA/Public/SaveMe/*.log
- From QTS Desktop - remove the RecordingsPath folder and/or Share via Control Panel -> Shared Folders and/or FileStation.
- From QTS Desktop - install the 1.0.4 QPKG via AppCenter
- Verify Engine is running - open the UI, check my.hdhomerun.com
- From SSH Restore the saved recordings to the new RecordPath
Code: Select all
cp -R /share/CACHEDEV1_DATA/Public/SaveMe/* /share/HDHomeRunDVR/
- From SSH Fix ownership on recordings
Code: Select all
chown -R hdhomerundvr:administrators /share/CACHEDEV1_DATA/Public/SaveMe/*
- From SSH Fix permissions on recordings
Code: Select all
chmod -R 774 hdhomerundvr:administrators /share/CACHEDEV1_DATA/Public/SaveMe/*