<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 7/19/20 1:15 PM, Bill Meek wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:cd7fc88c-bda7-4b2d-6902-97d5b37400b5@gmail.com">
      <br>
      I see your point. And, in the mythtv-setup log:
      <br>
      <br>
        mythuifilebrowser.cpp:613 (updateLocalFileList) -
      MythUIFileBrowser: current directory does not exist!
      <br>
      <br>
      The Services API isn't as picky. Verify the host name known to
      MythTV
      <br>
      (it takes into account any LocalHostName in config.xml) with this:
      <br>
      <br>
        curl localhost:6544/Myth/GetHostName
      <br>
      <br>
      This works, but don't use /tmp/blah!:
      <br>
      <br>
        curl --data GroupName=Default --data DirName=/tmp/blah --data
      HostName=yourHostName localhost:6544/Myth/AddStorageGroupDir
      <br>
      <br>
      You can substitute RemoveStorageGroupDir for AddStorageGroupDir if
      a typo is made.
      <br>
      <br>
      <blockquote type="cite">This is where I'm getting my Storage Group
        information and I can't seem to make it work.  The errors I'm
        getting are related to the recordings not being accessible.
        <br>
        <br>
<a class="moz-txt-link-freetext" href="https://www.mythtv.org/wiki/Setup_Storage_Directories#Multiple_Backends">https://www.mythtv.org/wiki/Setup_Storage_Directories#Multiple_Backends</a>
        <br>
      </blockquote>
      <br>
      Good choice (and, no I didn't write it.)
      <br>
      <br>
      This API displays existing Storage Group entries. You can look at
      it in a browser with
      <br>
      <br>
        yourBackend:6544/Myth/GetStorageGroupDirs
      <br>
      <br>
      Or, from the command line (you likely need to install the
      libxml2-utils package.)
      <br>
      Note the trailing dash:
      <br>
      <br>
        curl --silent localhost:6544/Myth/GetStorageGroupDirs | xmllint
      --format -
      <br>
      <br>
      Here's my 'Default' SG as an example. Note that the HostName is
      'mc0', which is my main backend:
      <br>
      <br>
      curl --silent
      localhost:6544/Myth/GetStorageGroupDirs?GroupName=Default |
      xmllint --format -
      <br>
      <?xml version="1.0" encoding="UTF-8"?>
      <br>
      <StorageGroupDirList
      xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
      version="1.0" serializerVersion="1.1">
      <br>
        <StorageGroupDirs>
      <br>
          <StorageGroupDir>
      <br>
            <Id>55</Id>
      <br>
            <GroupName>Default</GroupName>
      <br>
            <HostName>mc0</HostName>
      <br>
            <DirName>/srv/mythtv-0/recordings/</DirName>
      <br>
            <DirRead>true</DirRead>
      <br>
            <DirWrite>true</DirWrite>
      <br>
            <KiBFree>37060992</KiBFree>
      <br>
          </StorageGroupDir>
      <br>
      <br>
          ... omitted others that are on the main backend
      <br>
      <br>
          <StorageGroupDir>
      <br>
            <Id>40</Id>
      <br>
            <GroupName>Default</GroupName>
      <br>
            <HostName>mc0</HostName>
      <br>
           
      <DirName>/var/lib/mythtv/remote/recordings/</DirName>
      # This path doesn't exist on the main backend
      <br>
            <DirRead>false</DirRead>
      <br>
            <DirWrite>false</DirWrite>
      <br>
            <KiBFree>4294967295</KiBFree>
      <br>
          </StorageGroupDir>
      <br>
        </StorageGroupDirs>
      <br>
      </StorageGroupDirList>
      <br>
      <br>
    </blockquote>
    <p>Okay, now that I have my head out of my butt, I see what you are
      saying. I used the following command on my Master Backend:</p>
    <p>curl --data GroupName=Default --data
      DirName=/srv/mythtv/recordings --data HostName=mythbuntu
      localhost:6544/Myth/AddStorageGroupDir</p>
    <p>Now my Master backend Storage Groups look like this:</p>
    <div class="folder" id="folder5" style="color: rgb(0, 0, 0);
      font-family: monospace; font-size: 13px; font-style: normal;
      font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
      start; text-indent: 0px; text-transform: none; white-space:
      normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
      0px; text-decoration-style: initial; text-decoration-color:
      initial;">
      <div class="line"><span class="html-tag"><StorageGroupDir></span></div>
      <div class="opened" style="margin-left: 1em;">
        <div class="line"><span class="html-tag"><Id></span><span>18</span><span
            class="html-tag"></Id></span></div>
        <div class="line"><span class="html-tag"><GroupName></span><span>Default</span><span
            class="html-tag"></GroupName></span></div>
        <div class="line"><span class="html-tag"><HostName></span><span>mythbuntu</span><span
            class="html-tag"></HostName></span></div>
        <div class="line"><span class="html-tag"><DirName></span><span>/mnt/md0/recorded-tv1</span><span
            class="html-tag"></DirName></span></div>
        <div class="line"><span class="html-tag"><DirRead></span><span>true</span><span
            class="html-tag"></DirRead></span></div>
        <div class="line"><span class="html-tag"><DirWrite></span><span>true</span><span
            class="html-tag"></DirWrite></span></div>
        <div class="line"><span class="html-tag"><KiBFree></span><span>1179876784</span><span
            class="html-tag"></KiBFree></span></div>
      </div>
      <div class="line"><span class="html-tag"></StorageGroupDir></span></div>
    </div>
    <div class="folder" id="folder6" style="color: rgb(0, 0, 0);
      font-family: monospace; font-size: 13px; font-style: normal;
      font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
      start; text-indent: 0px; text-transform: none; white-space:
      normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
      0px; text-decoration-style: initial; text-decoration-color:
      initial;">
      <div class="line"><span class="folder-button fold"
          style="user-select: none; cursor: pointer; display:
          inline-block; margin-left: -10px; width: 10px; background:
          url("data:image/svg+xml,<svg
          xmlns='http://www.w3.org/2000/svg' fill='%23909090' width='10'
          height='10'><path d='M0 0 L8 0 L4 7
          Z'/></svg>"); vertical-align: bottom; height:
          10px;"></span><span class="html-tag"><StorageGroupDir></span></div>
      <div class="opened" style="margin-left: 1em;">
        <div class="line"><span class="html-tag"><Id></span><span>19</span><span
            class="html-tag"></Id></span></div>
        <div class="line"><span class="html-tag"><GroupName></span><span>Default</span><span
            class="html-tag"></GroupName></span></div>
        <div class="line"><span class="html-tag"><HostName></span><span>mythbuntu</span><span
            class="html-tag"></HostName></span></div>
        <div class="line"><span class="html-tag"><DirName></span><span>/mnt/md1/recorded-tv2</span><span
            class="html-tag"></DirName></span></div>
        <div class="line"><span class="html-tag"><DirRead></span><span>true</span><span
            class="html-tag"></DirRead></span></div>
        <div class="line"><span class="html-tag"><DirWrite></span><span>true</span><span
            class="html-tag"></DirWrite></span></div>
        <div class="line"><span class="html-tag"><KiBFree></span><span>1378748488</span><span
            class="html-tag"></KiBFree></span></div>
      </div>
      <div class="line"><span class="html-tag"></StorageGroupDir></span></div>
    </div>
    <div class="folder" id="folder7" style="color: rgb(0, 0, 0);
      font-family: monospace; font-size: 13px; font-style: normal;
      font-variant-ligatures: normal; font-variant-caps: normal;
      font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
      start; text-indent: 0px; text-transform: none; white-space:
      normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
      0px; text-decoration-style: initial; text-decoration-color:
      initial;">
      <div class="line"><span class="folder-button fold"
          style="user-select: none; cursor: pointer; display:
          inline-block; margin-left: -10px; width: 10px; background:
          url("data:image/svg+xml,<svg
          xmlns='http://www.w3.org/2000/svg' fill='%23909090' width='10'
          height='10'><path d='M0 0 L8 0 L4 7
          Z'/></svg>"); vertical-align: bottom; height:
          10px;"></span><span class="html-tag"><StorageGroupDir></span></div>
      <div class="opened" style="margin-left: 1em;">
        <div class="line"><span class="html-tag"><Id></span><span>36</span><span
            class="html-tag"></Id></span></div>
        <div class="line"><span class="html-tag"><GroupName></span><span>Default</span><span
            class="html-tag"></GroupName></span></div>
        <div class="line"><span class="html-tag"><HostName></span><span>mythbuntu</span><span
            class="html-tag"></HostName></span></div>
        <div class="line"><span class="html-tag"><DirName></span><span>/srv/mythtv/recordings</span><span
            class="html-tag"></DirName>  # this dir doesn't exist
            on my Master but does on slave.<br>
          </span></div>
        <div class="line"><span class="html-tag"><DirRead></span><span>false</span><span
            class="html-tag"></DirRead></span></div>
        <div class="line"><span class="html-tag"><DirWrite></span><span>false</span><span
            class="html-tag"></DirWrite></span></div>
        <div class="line"><span class="html-tag"><KiBFree></span><span>4294967295</span><span
            class="html-tag"></KiBFree></span></div>
      </div>
      <div class="line"><span class="html-tag"></StorageGroupDir></span></div>
      <div class="line"><span class="html-tag"><br>
        </span></div>
      <div class="line"><span class="html-tag">So did I do this right?
          Should I have changed the HostName from mythbuntu to
          raspberrypi, which is the hostname of the slave backend? It
          looks like you left "mc0" as the hostname on your entry of the
          non-existent directory that does exist on the slave. So, I'm
          guessing I did it right?</span></div>
      <div class="line"><span class="html-tag"><br>
        </span></div>
      <div class="line"><span class="html-tag">Jim A</span></div>
      <div class="line"><span class="html-tag"><br>
        </span></div>
    </div>
  </body>
</html>