Project

General

Profile

Recording problem "settings: Unable to create dir"

Added by Florian B almost 9 years ago

Hi!

I have setup tvheadend to record to /mnt/recordings which is a samba share with full permissions, so anybody can read/write there.
I also defined that tvheadend should put the recordings in a subfolder for the channel.

If I click on "record" on kodi I get this output in the tvheadend log.

It says that it is not allowed to create the directory "ORF20 HD". But altough this error message the folder is created! but tvh does not start to record.

If I click again it starts recording (because then the folder already exists!) Any Idea what the problem could be?

2015-12-12 10:32:25.705 settings: Unable to create dir "/mnt/recordings/ORF2O HD": Die Operation ist nicht erlaubt
2015-12-12 10:32:25.705 dvr: Recording error: "Kleine große Stimme": Unable to create file
2015-12-12 10:32:25.705 subscription: 003C: "DVR: Kleine große Stimme" unsubscribing from "ORF2O HD"
2015-12-12 10:32:25.705 dvr: "Kleine große Stimme" on "ORF2O HD": End of program: File Not Created


Replies (5)

RE: Recording problem "settings: Unable to create dir" - Added by Julien d almost 9 years ago

Hi ,

Same problem here , the folder is created but i have also this error :

2015-12-17 21:48:10.052 settings: Unable to create dir "/volume2/video/Enregistrements/tvheadend/2015-12-17/TF1": Opération non permise
2015-12-17 21:48:10.052 dvr: Recording error: "Contact": Unable to create directories

all the rights on the directory are to 777

Can i have help ? im not able to programm recording :(....

Thanks

Note : it is also a samba share (synology with full right account)

Note2 : I can also confirm that on local recording (so whitout recording on my nas) it is working perfect

RE: Recording problem "settings: Unable to create dir" - Added by Prof Yaffle almost 9 years ago

The obvious test is to su to the user as which you run tvheadend (e.g. hts) and see if that user genuinely can write to those folders.

If that doesn't work then we need to do some tracing/debugging...

RE: Recording problem "settings: Unable to create dir" - Added by Julien d almost 9 years ago

Thanks for the answer ,

I tester with hts user and i cant create a folder in the recording folder
example command :
impossible de faire un touch «dd»: Permission non accordée

strange because i checked my permissions on the folder its:
drwxrwxrwx 142 hts hts 0 déc. 18 00:13 tvheadend

What is wrong ? Configuration on my NAS ? fstab configuration ?

here is my configuration :
//192.168.1.126/video/Enregistrements/tvheadend /volume2/video/Enregistrements/tvheadend cifs credentials=/home/tvhuser/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0

RE: Recording problem "settings: Unable to create dir" - Added by Prof Yaffle almost 9 years ago

Not something I'd claim to be an expert on - I get these things to work more by luck than judgement :-) - but my guess would be the permissions on the mount point on your tvh host. If it's not that, it's something about how you're mounting: the UID/GID might need squashing, for example, or be more specific about the user details on the NAS.

If you post more details from both client and server then I'm sure someone can stare at them for you. It's not a tvh issue per se, though.

RE: Recording problem "settings: Unable to create dir" - Added by Julien d almost 9 years ago

You right , recording are now working correctly !!

I changed my fsab configuration with gid uid of the user hts, its working now.

But i dont understood why before changing these settings tvheadend can sometimes record and sometimes just create the folder...

Thanks for your help :)

    (1-5/5)