Project

General

Profile

Record Error using AutoFS SMB sharing

Added by Issa Issa almost 4 years ago

Hello there,

so i got my tvheadend works good (exepet some glitch -- look here https://youtu.be/zM0BdxLPI3Q )

My question is i install autofs sharing using my freebox serveur smb :

my file :

sudo nano /etc/auto.master
+auto.master
/mnt/autofs/smb/ /etc/auto.mnt --ghost,--timeout=30

and my :

 /etc/autoFreebox.mnt

Records -fstype=cifs,iocharset=utf8,credentials=/home/stagiaire/.smbcredentials,uid=1000,gid=1000 :"//192.168.50.254/" 

in command line i can create files remove files

stagiaire@plex:/mnt/autofs/smb/Freebox/record/TVheadend$ ls
stagiaire@plex:/mnt/autofs/smb/Freebox/record/TVheadend$ touch demo
stagiaire@plex:/mnt/autofs/smb/Freebox/record/TVheadend$ ls
demo
stagiaire@plex:/mnt/autofs/smb/Freebox/record/TVheadend$ rm demo
stagiaire@plex:/mnt/autofs/smb/Freebox/record/TVheadend$ ls
stagiaire@plex:/mnt/autofs/smb/Freebox/record/TVheadend$

so now i config the record on this share folder on tvheadend :

look here ---> https://imgur.com/eBrJli9

and when i try to record i got this error :

2021-03-14 15:43:41.017 htsp: 192.168.50.16 [ Kodi Media Center ]: Identified as user 'issa'

2021-03-14 15:43:41.017 htsp: 192.168.50.16 [ issa | Kodi Media Center ]: Privileges updated

2021-03-14 15:44:13.914 mpegts: 618MHz in FrenchChannel - tuning on Afatech AF9033 (DVB-T) #0 : DVB-T #0

2021-03-14 15:44:13.914 subscription: 000C: "192.168.50.16 [ issa | Kodi Media Center ]" subscribing on channel "France 5", weight: 150, adapter: "Afatech AF9033 (DVB-T) #0 : DVB-T #0", network: "FrenchChannel", mux: "618MHz", provider: "Multi4", service: "France 5", profile="htsp", hostname="192.168.50.16", username="issa", client="Kodi Media Center" 

2021-03-14 15:44:15.393 TS: FrenchChannel/618MHz/France 5: H264 @ #420 Continuity counter error (total 1)

2021-03-14 15:44:18.729 dvr: entry be984454ef6024bee852c4f5b779cd34 "Ananas : le roi des fruits ?" on "France 5" starting at 2021-03-14 15:34:30, scheduled for recording by "issa" 

2021-03-14 15:44:18.729 dvr: "Ananas : le roi des fruits ?" on "France 5" recorder starting

2021-03-14 15:44:18.730 dvr: About to set stop timer for "Ananas : le roi des fruits ?" on "France 5" at start 1615736100 and original stop 1615739700 and overall stop at 1615739700

2021-03-14 15:44:18.730 subscription: 000D: "DVR: Ananas : le roi des fruits ?" subscribing on channel "France 5", weight: 300, adapter: "Afatech AF9033 (DVB-T) #0 : DVB-T #0", network: "FrenchChannel", mux: "618MHz", provider: "Multi4", service: "France 5", profile="pass" 

2021-03-14 15:44:18.735 pass: /mnt/autofs/smb/Freebox/record/TVheadend/Ananas : le roi des fruits ?.ts: Unable to create file, open failed -- Permission denied

2021-03-14 15:44:18.735 dvr: Recording error: "/mnt/autofs/smb/Freebox/record/TVheadend/Ananas : le roi des fruits ?.ts": Unable to open file

2021-03-14 15:44:18.735 subscription: 000D: "DVR: Ananas : le roi des fruits ?" unsubscribing from "France 5" 

2021-03-14 15:44:18.735 dvr: unable to stat file '/mnt/autofs/smb/Freebox/record/TVheadend/Ananas : le roi des fruits ?.ts'

2021-03-14 15:44:18.735 dvr: "Ananas : le roi des fruits ?" on "France 5": End of program: File not created

what do u think how i can fix this error please


Replies (1)

RE: Record Error using AutoFS SMB sharing - Added by Hiro Protagonist almost 4 years ago

Issa Issa wrote:

I note your auto.master references '/etc/auto.mnt' but you show the contents of '/etc/autoFreebox.mnt'

in command line i can create files remove files

To be valid, this test needs to be done as the same user that TVHeadend is running as.

Unable to create file, open failed -- Permission denied

This suggests the TVHeadend user does not in fact have permission to write to /mnt/autofs/smb/Freebox/record/TVheadend/

Change your permissions & re-do the command line test using the same user as TVHeadend is using.

You might also run into problems creating filenames containing characters like '?'.
In Configuration/Recording/ you should set:

Remove all unsafe characters from filename:
Replace whitespace in title with '-':
Use Windows-compatible filenames:

In each profile you're using.

    (1-1/1)