Project

General

Profile

Tvheadedn raspberry - no way to records or shifting ?

Added by Issa Issa over 6 years ago

Hello there,

so i have a raspberry :

i m using tvheadend :

So using tvheadend encapsuled in YUNOHOST -- https://yunohost.org/#/
i installed tvheadend with packetage found here --- https://github.com/tuxmouraille/tvheadend_ynh

So i m using it with kodi, so liveTv works :

ok so now when i try to records :

i have this error :


2018-03-31 08:54:23.326 dvr: entry 0085bfdacf92cb2b30481f62fc8cb8fe "Top albums" on "CSTAR" starting at 2018-03-31 08:14:30, scheduled for recording by "issa" 

2018-03-31 08:54:23.328 dvr: "Top albums" on "CSTAR" recorder starting

2018-03-31 08:54:23.330 subscription: 005E: "DVR: Top albums" subscribing on channel "CSTAR", weight: 300, adapter: "Afatech AF9033 (DVB-T) : DVB-T #0", network: "AverMedia", mux: "602MHz", provider: "NTN", service: "CSTAR", profile="pass" 

2018-03-31 08:54:23.527 pass: /media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/Top albums.ts: Unable to create file, open failed -- Permission denied

2018-03-31 08:54:23.527 dvr: Recording error: "/media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/Top albums.ts": Unable to open file

i try all permission nothink works

i even try add a usb disk and i have the same probléme,

please help me to resolved this problem

thanks


Replies (3)

RE: Tvheadedn raspberry - no way to records or shifting ? - Added by Mark Clarkstone over 6 years ago

OK try this.

I assume you're using the tvh deb package.

sudo -u hts mkdir -p /media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/testing
sudo -u hts touch /media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/testing/foofile

If these fail, check permissions on the share.

RE: Tvheadedn raspberry - no way to records or shifting ? - Added by Issa Issa over 6 years ago

Hello,
i have this erro :

how fix please :

root@domaine:~# sudo -u hts mkdir -p /media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/testing
mkdir: cannot create directory ‘/media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/testing’: Permission denied
root@domaine:~# sudo -u hts touch /media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/testing/foofile
touch: cannot touch ‘/media/autofs/smb/GoFlexMediaHome/Videos/Enregistrements/Records/testing/foofile’: No such file or directory

for shatring i m using autofs with this command :

GoFlexMediaHome -fstype=cifs,iocharset=utf8,credentials=/root/.share-credentials,uid=1000,gid=1000 :"//192.168.50.49/GoFlex\ Home\ Public" 

what do u think please

RE: Tvheadedn raspberry - no way to records or shifting ? - Added by Issa Issa over 6 years ago

I found a solution for recordings :

i found solution here :

https://doc.ubuntu-fr.org/autofs


     uid=1000 : 1000 correspond à votre uid linux sur le client (à verifier par la commande id en étant connecté avec votre login (pas en root)
    gid=100 correspond au groupe "users" des utilisateurs. Par défaut votre utilisateur ne fait pas partie du groupe users. Pour ce faire :

sudo usermod -aG users loginUtilisateur

Il faut quitter la session et la réouvrir pour que le changement prenne effet.

so i log with hts user :

root@domaine:~# su hts
hts@domaine:/root$ id
uid=122(hts) gid=128(hts) groups=128(hts)

with that i add it on my autofs config :

GoFlexMediaHome -fstype=cifs,iocharset=utf8,credentials=/root/.share-credentials,uid=122,gid=128:"//192.168.50.49/GoFlex\ Home\ Public" 

with that's works :)

thanks

    (1-3/3)