Hi I recently upgraded to 5.2.1 (from 5.1.1) and the last part of my PostProcessing.sh script (renaming the database record following a directory move) errored out (see extract).
I record shows to a /TV_temp directory (on SSD) and then use the PostProcessing.sh script to move them to spinning rust on /TV_Recordings.
The simple fix was to change the database entry before moving the file, rather than after. Is the change in behaviour a symptom of more active checking of the existence of recordings / database pruning than before, or has the rename behaviour in NScriptHelper.dll changed?
The error existed irrespective of the AutoRemoveMissingRecordings setting.
An example of the error I was seeing in the logs was:
2021-10-26 15:50:04.624 [DEBUG][66] Got request [127.0.0.1]: /services/service (recording.rename)
2021-10-26 15:50:04.625 [DEBUG][66] method=recording.rename
2021-10-26 15:50:04.625 [DEBUG][66] parameters:
2021-10-26 15:50:04.625 [DEBUG][66] method: recording.rename
2021-10-26 15:50:04.625 [DEBUG][66] from: /TV_temp/Escape to the Country/Season 22/Escape.to.the.Country.S22E07.Derbyshire.ts
2021-10-26 15:50:04.625 [DEBUG][66] to: /TV_Recordings/Escape to the Country/Season 22/Escape.to.the.Country.S22E07.Derbyshire.ts
2021-10-26 15:50:04.625 [DEBUG][66] sid: 8bca4e38b0a64fe59e4ce20421f9c5f6
2021-10-26 15:50:04.625 [DEBUG][66] client_ip: 127.0.0.1
2021-10-26 15:50:04.625 [DEBUG][66] host_callback: ...
2021-10-26 15:50:04.625 [DEBUG][66] Rename
2021-10-26 15:50:04.878 [ERROR][66] Unable to find existing recording with filename: /TV_temp/Escape to the Country/Season 22/Escape.to.the.Country.S22E07.Derbyshire.ts
2021-10-26 15:50:04.878 [DEBUG][66] <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
<err code="2" msg="Invalid Args" />
</rsp>
2021-10-26 15:50:04.886 [DEBUG][129] > rmdir: failed to remove directory '/TV_temp': Permission denied
I record shows to a /TV_temp directory (on SSD) and then use the PostProcessing.sh script to move them to spinning rust on /TV_Recordings.
The simple fix was to change the database entry before moving the file, rather than after. Is the change in behaviour a symptom of more active checking of the existence of recordings / database pruning than before, or has the rename behaviour in NScriptHelper.dll changed?
The error existed irrespective of the AutoRemoveMissingRecordings setting.
An example of the error I was seeing in the logs was:
2021-10-26 15:50:04.624 [DEBUG][66] Got request [127.0.0.1]: /services/service (recording.rename)
2021-10-26 15:50:04.625 [DEBUG][66] method=recording.rename
2021-10-26 15:50:04.625 [DEBUG][66] parameters:
2021-10-26 15:50:04.625 [DEBUG][66] method: recording.rename
2021-10-26 15:50:04.625 [DEBUG][66] from: /TV_temp/Escape to the Country/Season 22/Escape.to.the.Country.S22E07.Derbyshire.ts
2021-10-26 15:50:04.625 [DEBUG][66] to: /TV_Recordings/Escape to the Country/Season 22/Escape.to.the.Country.S22E07.Derbyshire.ts
2021-10-26 15:50:04.625 [DEBUG][66] sid: 8bca4e38b0a64fe59e4ce20421f9c5f6
2021-10-26 15:50:04.625 [DEBUG][66] client_ip: 127.0.0.1
2021-10-26 15:50:04.625 [DEBUG][66] host_callback: ...
2021-10-26 15:50:04.625 [DEBUG][66] Rename
2021-10-26 15:50:04.878 [ERROR][66] Unable to find existing recording with filename: /TV_temp/Escape to the Country/Season 22/Escape.to.the.Country.S22E07.Derbyshire.ts
2021-10-26 15:50:04.878 [DEBUG][66] <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
<err code="2" msg="Invalid Args" />
</rsp>
2021-10-26 15:50:04.886 [DEBUG][129] > rmdir: failed to remove directory '/TV_temp': Permission denied
NextPVR 5 on Debian 10 on LXC (Proxmox 7), Clients Kodi on FireStick/~HD/Mi Box S