Black Hole
May contain traces of nut
Some people like to keep the stress on their systems to a minimum.Set it once then forget all about it.
Some people like to keep the stress on their systems to a minimum.Set it once then forget all about it.
Indeed it's not the browser (since the timeout is ~5 minutes vs my 90s browser timeout), nor wget (which has a default idle read timeout of 900s) that's timing out. The CF lighttpd webserver is timing out the operation because no data is being sent.... it's not the browser that's timing the session out but the server.
.load()
without overriding jQuery's global timeout, but that's not the issue because the timeout is infinite by default in JQuery-1.12.4. A process is started to decrypt the "recording" using wget to fetch it from the internal DLNA server. While this is happening, the page updates the progress bar every second by measuring the size of the decrypted file. However the request that's running the decryption returns no data and lighttpd has a write timeout server.max-write-idle
set to 360s, after which the request is cancelled and the progress is set to 100%, as if it had completed successfully. Meanwhile wget carries on and eventually completes, leaving a stray decrypted file (with the .decrypting suffix). Presumably this would also happen (but more easily) using stripts to decrypt./mod/etc/lighttpd/server.conf
(the server needs to be restarted). A sufficient timeout seems to be 40s per minute of content, so 19200 would handle a recording of 8 hrs. Alternatively, it might be possible to modify the invocation of wget in /mod/webif/html/browse/decrypt/execute.jim
so that progress is sent to the standard output: currently the output of the wget call is delayed until the operation has completed.server.max-write-idle
value to a distinctive shorter value, and observed the decryption request being cancelled after that time, and then using the super-long timeout to run the WebIf manual decode successfully (with the completion page only shown after reaching 100%, and carrying out the final housekeeping), as below.--Decrypt in-place--
File: /media/My Video/Jools' Annual Hootenanny_20191231_2317.ts
Length: 02:06:10
Decryption method: Hardware accelerated (via DLNA)
Decrypting: 100 %
Processing Jools' Annual Hootenanny_20191231_2317
Moving recording to /media/My Video/_original
Copying back sidecar nts
Copying back sidecar hmt
Copying back sidecar thm
Time taken: 1830.345
I don't know why, I just know they do because they have said so.Why?
No, and I've edited that post to give the real story.... It's down to the WebIf JavaScript code. ...
I don't know why I bother documenting everythingNecroposting I know, but I just found a similar problem - but for all recordings - occurs when you switch off CONTENT SHARE in Settings -> System -> Internet Setting. I think I was trying to work out what was causing the HDR FOX T2 to crash and switched it off to see if it made a difference a few months ago and never did switch it back on, then wondered why anything newer than October this year wouldn't stream. Then checked the queue to see DLNA SERVER NOT RUNNING as the root cause.
Just posting this reminder in case it helps anyone Googling for the solution, as I just did.
Ensure content sharing is turned on
server.max-write-idle
timeout shouldn't be greatly increased in the config file by the custom FW (e.g. by a one-off script that sets a flag in the same directory to say it's been done, or some more elegant means), so this problem vanishes? Auto-decrypting everything seems like a lot of disk mileage and CPU usage/box sluggishness for those (like me) that rarely need a decrypt. I appreciate I can work around it and use the DLNA server on port 9000 to pull a decrypted version off the box, but it would save others the need to search for this post if they never had the problem.Don't know really. I guess increasing it from 6 minutes to 60 is not going to cause any other problems.My previous post was asking, "why not fix the issue?"
It's much easier to add a single "0" to a config. file!The simplest fix would be to remove the archaic 'while you wait' decryption option
The simplest fix would be to remove the archaic 'while you wait' decryption option
Why not use the queued decrypt option - no need to leave the webif sitting on the same page for 25 minutes waiting for it to finishI was going to edit the server.conf myself next time I wanted a decrypt but no need now...
No compelling reason really, the opt+ decrypt option is there and I've always used it. I also have "Suspend automatic processing whilst recording?" enabled, so it gives me a "do it right now" option if something long is recording (like the football was the other day when I wanted to do it). Walking past the computer, seeing the progress bar gives an idea of how long to go, or if finished (reminds me to copy it off the box!), although I could queue it and leave the queue window open instead (refreshes every minute) I suppose.Why not use the queued decrypt option - no need to leave the webif sitting on the same page for 25 minutes waiting for it to finish