<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 4, 2022 at 12:37 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 3 Sep 2022 16:44:06 -0400, you wrote:<br>
<br>
>Hi All.<br>
><br>
>I am trying to setup a new backend.<br>
><br>
>mythbuntu ver 31 on 22.04.<br>
>I have everything going except one issue that I so not understand.<br>
><br>
>I have a nas hooked up to this backend that I want to use for storage.<br>
>The nas works as expected. I can read and write to the folder I specified<br>
>for storage using user mythtv. I even changed its permission to 777 for<br>
>testing.<br>
>I enter mythtv-setup as user mythtv. I set the default storage location to<br>
>the nas folder i made.<br>
>I receive no errors when I exit mythtv-setup.<br>
>However, mythtv fails to start a recording or live tv using that<br>
>configuration. I see no relevant error messages in mythbackend.log No<br>
>permission errors that I see<br>
><br>
>If I create a symlink in /home/mythtv to the nas folder I created, and use<br>
>that symlink as storage under mythtv-setup, mythtv works fine.<br>
>Mythtv also works fine using any other location on the local drive as long<br>
>as ithat folder has the correct permissions.<br>
><br>
>Anyone have any idea why this would be happening?<br>
>Does anyone see an issue if I use the symlink instead of the actual folder<br>
>on the nas?<br>
<br>
What sort of network connection are you using to the NAS? The network<br>
connections can have separate permissions settings from the settings<br>
you see on the directories where they are mounted.<br>
<br>
Where are you mounting the NAS? The permissions on the path to the<br>
mount point also need to be checked, not just the mount point. You<br>
could try setting the mount point to under /home/mythtv.<br>
<br>
One basic check to do is to see if mythbackend is actually running as<br>
the user you think it is:<br>
<br>
sudo ps -ef | grep mythbackend<br>
<br>
You should also check the logs for the network connection method you<br>
are using for messages, and /var/log/syslog.<br><br></blockquote>It is a qnap nas ts-328 connected directly to my router with a static ip address <br>I created a directory on it called Nasmedia. It has read, write and execute privileges set for everyone. Confirmed though the nas interface.<br>The nfs is setup on the nas with read/write permission for everyone and no_root_squash<br>I can read or write to that directory under any user from any computer on my network.<br><br>On the backend running mythbackend i have fstab set like this.<br><br>192.168.1.222:/Nasmedia /home/mythtv/qnap/ nfs defaults 0 0<br><br>I do not know a great way to show folder permissions so I have done my best and pasted below<br><br>kevin@MP67:/home/mythtv$ ls -la<br>total 58088<br>drwxr-x--- 10 mythtv mythtv 4096 Sep 4 12:07 .<br>drwxr-xr-x 4 root root 4096 Aug 21 17:18 ..<br>drwxr-xr-x 5 mythtv mythtv 4096 Aug 28 19:21 .cache<br>drwx------ 6 mythtv mythtv 4096 Sep 3 11:49 .config<br>drwxrwxr-x 2 mythtv mythtv 4096 Sep 4 11:42 livetv<br>drwxrwxr-x 3 mythtv mythtv 4096 Aug 21 17:39 .local<br>drwxr-xr-x 7 mythtv mythtv 4096 Sep 3 13:18 .mythtv<br>drwxrwxrwx 6 mythtv mythtv 4096 Sep 4 10:01 qnap<br>-rw-r--r-- 1 mythtv mythtv 59432960 Sep 3 11:13 SD<br>drwx------ 3 mythtv mythtv 4096 Aug 28 19:21 snap<br>-rw------- 1 mythtv mythtv 100 Sep 4 12:07 .Xauthority<br>drwxrwxr-x 2 mythtv mythtv 4096 Sep 3 11:06 .xmltv<br><br>kevin@MP67:/home/mythtv/qnap$ ls -la<br>total 32<br>drwxrwxrwx 6 mythtv mythtv 4096 Sep 4 10:01 .<br>drwxr-x--- 10 mythtv mythtv 4096 Sep 4 12:07 ..<br>drwxrwxrwx 4 kevin kevin 4096 Aug 28 21:33 movies<br>drwxrwxrwx 4 mythtv mythtv 4096 Sep 4 10:59 mythtv<br>drwxrwxrwx 2 root root 4096 Aug 23 14:37 @Recycle<br>drwxrwxrwx 2 root root 4096 Aug 23 16:00 .@__thumb<br><br>kevin@MP67:/home/mythtv/qnap/mythtv$ ls -la<br>total 20<br>drwxrwxrwx 4 mythtv mythtv 4096 Sep 4 10:59 .<br>drwxrwxrwx 6 mythtv mythtv 4096 Sep 4 10:01 ..<br>drwxrwxrwx 2 mythtv mythtv 4096 Sep 4 11:06 livetv<br>drwxrwxrwx 2 mythtv mythtv 4096 Sep 4 12:15 storage<br>User mythtv, or anyone for that matter can create directories or files anywhere along that path<br><br>If i setup the storage groups to use /home/mythtv/qnap/mythtv/storage, live tv will fail<br>If i setup the storage groups to use /home/mythtv/qnap/mythtv/livetv, live tv will fail<br>If I setup the storage group to use /home/mythtv/livetv, live tv works.<br>I can set the storage group to anything on the local drive and live tv works as long as I set the permissions correctly on the chosen folder.</div><div class="gmail_quote"><br></div><span id="gmail-docs-internal-guid-b3c44d62-7fff-5572-4652-3adce24b7d20">I can record programs while the storage is set to nas. And playback works fine with the recorded programs.<br>Its just live tv that fails. It starts for about 2 seconds, then stops.<br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><br></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">I am okay with leaving it like this. I am just trying to understand why its failing live tv.<br></p></span></div>