Issue with creating recording
Added by Stefan N. almost 8 years ago
Hi guys,
I have set TVHeadend to put its recordings to the folder /mnt/recordings wich is mounted to a SMB share.
However, I often get the strange error:
2016-12-27 15:02:00.671 settings: Unable to create dir "/mnt/recordings": File already exists
2016-12-27 15:02:00.671 dvr: Recording error: "Tagesschau": Unable to create directories
The recording then fails with the remark "Time missed"
I do not really understand what is going. Why is TVH trying to create a directory here?!? It should just create a file, for which the permissions are granted. The strange thing is, that this does not always happen, only sometimes. Some records work fine. I have no idea what the reason is.
Best regards
Stefan
EDIT: I just saw that it seems to happen when recordings overlap, i. e. when a recordings starts but another one is not finished yet. Then there is no free addapter. If then after 1-2 minutes the adapter gets free, the new recordings starts but creates this strange messages and fails to record.
Replies (14)
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
If running 4.1.xxxx look into the DVR profile used, check the "subdirectory options".
RE: Issue with creating recording - Added by Stefan N. almost 8 years ago
My build is 4.0.8~jessie
How can I upgrade to 4.1.xxx on RPi3? (Sorry I'm new to Linux).
Currently my DVR profile looks like that (See attachment).
No idea why there should be subdirs beimg created...
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
Stefan N. wrote:
My build is 4.0.8~jessie
How can I upgrade to 4.1.xxx on RPi3? (Sorry I'm new to Linux).
Yes, if you build it yourself.
Currently my DVR profile looks like that (See attachment).
No idea why there should be subdirs beimg created...
It probably isn't creating directories but files - the error might just be hardcoded.
RE: Issue with creating recording - Added by Stefan N. almost 8 years ago
Yes, if you build it yourself.
No idea how to do that, as mentioned I'm net to the LInux world... Best I could probably manage to do would be sth. with apt-get or so ^^
It probably isn't creating directories but files - the error might just be hardcoded.
And what's the error then? Why can't the file be created if it works fine for others? Just because the tuner was not available?
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
Stefan N. wrote:
Yes, if you build it yourself.
No idea how to do that, as mentioned I'm net to the LInux world... Best I could probably manage to do would be sth. with apt-get or so ^^
It's easy, see https://tvheadend.org/boards/5/topics/10622?r=21384#message-21384
It probably isn't creating directories but files - the error might just be hardcoded.
And what's the error then? Why can't the file be created if it works fine for others? Just because the tuner was not available?
I assume it's just to stop empty files being created, but I'm no dev so can't answer that.
RE: Issue with creating recording - Added by Stefan N. almost 8 years ago
Tonight I again had this issue, this time without overlapping. Some recordings worked fine, one did not. Again, I had the message:
2016-12-28 04:39:34.503 settings: Unable to create dir "/mnt/recordings": Die Datei existiert bereits
2016-12-28 04:39:34.503 dvr: Recording error: "Richter Alexander Hold": Unable to create directories
2016-12-28 04:39:44.705 settings: Unable to create dir "/mnt/recordings": Die Datei existiert bereits
2016-12-28 04:39:44.705 dvr: Recording error: "Richter Alexander Hold": Unable to create directories
The smb share is mounted for owner:group "hts:hts" with 755 for dir and file. And it works fine most of the time. But why is this error then happening sometimes? Or is the error message wrong? How can I found out what's the real problem?
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
Stefan N. wrote:
Has anyone an idea?
Does this happen on a local mount? Have you checked the smb logs on the remote machine?
RE: Issue with creating recording - Added by Stefan N. almost 8 years ago
I also tried it with local folder, and I think it happened once. But I will make a new test. I read through the bug reports and found something similar where a fix was made for 4.0.9, maybe that would fix it, but I'm still on 4.0.8 which seems to be the last stable release, right?
Where can I find the SMB logs on a Windows PC?
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
If you can change the repository on your system from release to stable to get the latest fixes in the 4.0.x branch. This won't work on a Pi (only release is available for the Pi as it is done manually).
RE: Issue with creating recording - Added by Stefan N. almost 8 years ago
Unfortunately, I have a Pi with Raspbian installed. In there any schedule for a new release?
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
Stefan N. wrote:
Unfortunately, I have a Pi with Raspbian installed. In there any schedule for a new release?
That I cannot answer - the dev that handles manual builds has been extremely busy, but honestly it's pretty easy to build your own & takes about 10-15 mins on a Pi2 (without building ffmpeg).
RE: Issue with creating recording - Added by Stefan N. almost 8 years ago
Hm as I'm a linux noob, is there any tutorial how to do that?
RE: Issue with creating recording - Added by Mark Clarkstone almost 8 years ago
Stefan N. wrote:
Hm as I'm a linux noob, is there any tutorial how to do that?
I posted it already :p but https://tvheadend.org/boards/5/topics/10622?r=21384#message-21384 :p