<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Feb 16, 2025 at 8:57 AM Peter Bennett <<a href="mailto:pb.mythtv@gmail.com">pb.mythtv@gmail.com</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"><u></u>

  
    
  
  <div>
    <p><br>
    </p>
    <div>On 2/15/25 21:20, James Abernathy
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Sat, Feb 15, 2025 at
            8:33 PM Peter Bennett <<a href="mailto:pb.mythtv@gmail.com" target="_blank">pb.mythtv@gmail.com</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">
            <div>
              <p><br>
              </p>
              <div>On 2/15/25 18:12, James Abernathy wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div>After a successful build of mythv using cmake on
                    Archlinux, I copied all the files from the
                    "CMAKE_INSTALL_PREFIX=mythtv-qt5-build" location to
                    /usr/local/ and then did 'sudo ldconfig'</div>
                  <div><br>
                  </div>
                  <div>I set up the mythtv-backend.service so it's would
                    find mythbackend in /usr/local/bin/</div>
                  <div><br>
                  </div>
                  <div>When I reboot, it shows mythtv-backend running
                    but when I send firefox to localhost:6544, I see
                    this in the log and a 404 error in the browser. </div>
                  <div><br>
                  </div>
                  <div>This had worked a few days ago on Debian. Maybe
                    I'm missing something?</div>
                  <div><br>
                  </div>
                  <div><span style="font-family:monospace"><span style="background-color:rgb(255,255,255);color:rgb(0,0,0)">Feb 15
                        18:03:27 nucboxg3 mythbackend[1972]: </span><span style="font-weight:bold;background-color:rgb(255,255,255);color:rgb(0,0,0)">mythbackend[1972]:
                        W HTTP0 <a>mythhttpfile.cpp:50</a>
                        (ProcessFile) HTTPFile: Failed to find
                        '/home/jim/mythtv-qt5-build/share/mythtv/html/apps/backend/index.html'</span><br>
                      <span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><br>
                    </span></div>
                  <div>Jim A</div>
                  <div><br>
                  </div>
                </div>
                <br>
              </blockquote>
              <p>The value of -DMYTH_RUN_PREFIX= determines where it
                should run from. I suspect that you had
                -DMYTH_RUN_PREFIX set as some incorrect value.<br>
              </p>
              <p>Also at run time you can use MYTHTVDIR=/usr/local to
                override an incorrect MYTH_RUN_PREFIX used when
                building.</p>
              <p>Peter</p>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>There must be something else as well. See output below:</div>
          <div> </div>
          <div> [jim@nucboxg3 ~]$ echo $MYTHTVDIR </div>
          <div>/usr/local</div>
          <div><br>
          </div>
          <div>[jim@nucboxg3 ~]$ sudo systemctl status mythtv-backend<br>
            ● mythtv-backend.service - MythTV Backend<br>
                 Loaded: loaded
            (/etc/systemd/system/mythtv-backend.service; enabled;
            preset: disabled)<br>
                 Active: active (running) since Sat 2025-02-15 21:11:32
            EST; 3min 37s ago<br>
             Invocation: d890ede46af54a038a61a21fd2bc7d69<br>
                   Docs: <a href="https://www.mythtv.org/wiki/Mythbackend" target="_blank">https://www.mythtv.org/wiki/Mythbackend</a><br>
               Main PID: 699 (mythbackend)<br>
                  Tasks: 9 (limit: 18663)<br>
                 Memory: 169.7M (peak: 172.3M)<br>
                    CPU: 573ms<br>
                 CGroup: /system.slice/mythtv-backend.service<br>
                         └─699 /usr/local/bin/mythbackend --quiet
            --syslog local7<br>
            <br>
            Feb 15 21:11:34 nucboxg3 mythbackend[699]: mythbackend[699]:
            I HTTPServer <a>serverpool.cpp:421</a> (listen) Listening on TCP <a href="http://0.0.0.0:6544" target="_blank">0.0.0.0:6544</a><br>
            Feb 15 21:11:34 nucboxg3 mythbackend[699]: mythbackend[699]:
            I HTTPServer <a>serverpool.cpp:421</a> (listen) Listening on TCP
            [::]:6544<br>
            Feb 15 21:11:34 nucboxg3 mythbackend[699]: mythbackend[699]:
            I HTTPServer <a>serverpool.cpp:421</a> (listen) Listening on TCP <a href="http://0.0.0.0:6744" target="_blank">0.0.0.0:6744</a><br>
            Feb 15 21:11:34 nucboxg3 mythbackend[699]: mythbackend[699]:
            I HTTPServer <a>serverpool.cpp:421</a> (listen) Listening on TCP
            [::]:6744<br>
            Feb 15 21:11:35 nucboxg3 mythbackend[699]: mythbackend[699]:
            I HTTPServer <a>bonjourregister.cpp:116</a> (BonjourCallback)
            Bonjour: Service registration complete: name 'mythbackend on
            nucboxg3' type '_http._tcp.' domain: 'loca><br>
            Feb 15 21:12:28 nucboxg3 mythbackend[699]: mythbackend[699]:
            I HTTP0 <a>mythhttpmetaservice.cpp:126</a> (MythHTTPMetaService)
            Service '/services/' introspection complete<br>
            Feb 15 21:12:28 nucboxg3 mythbackend[699]: mythbackend[699]:
            W HTTP0 <a>mythhttpfile.cpp:50</a> (ProcessFile) HTTPFile: Failed
            to find
            '/home/jim/mythtv-qt5-output/share/mythtv/html/apps/backend/index.html'<br>
            Feb 15 21:12:28 nucboxg3 mythbackend[699]: mythbackend[699]:
            W HTTP0 <a>mythhttpfile.cpp:50</a> (ProcessFile) HTTPFile: Failed
            to find
            '/home/jim/mythtv-qt5-output/share/mythtv/html/apps/backend/index.html'<br>
            Feb 15 21:12:28 nucboxg3 mythbackend[699]: mythbackend[699]:
            W HTTP0 <a>mythhttpfile.cpp:50</a> (ProcessFile) HTTPFile: Failed
            to find
            '/home/jim/mythtv-qt5-output/share/mythtv/html/favicon.ico'<br>
            Feb 15 21:12:28 nucboxg3 mythbackend[699]: mythbackend[699]:
            W HTTP0 <a>mythhttpfile.cpp:50</a> (ProcessFile) HTTPFile: Failed
            to find
            '/home/jim/mythtv-qt5-output/share/mythtv/html/apps/backend/index.html'<br>
            lines 1-22/22 (END)</div>
          <div><br>
          </div>
          <div>Even though it's looking the a different place, the files
            are there:</div>
          <div><br>
          </div>
          <div>cd mythtv-qt5-output/share/mythtv/html/apps/backend/<br>
            [jim@nucboxg3 backend]$ ls<br>
            3rdpartylicenses.txt  color.png  favicon.ico  hue.png
             index.html  main.js  polyfills.js  runtime.js  styles.css<br>
            [jim@nucboxg3 backend]$ <br>
            <br>
          </div>
          <div>Jim A</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <p>Did you export MYTHTVDIR=/usr/local in the systemd service?</p>
    <p>Better to build with the correct MYTH_RUN_PREFIX so that you
      don't need to specify MYTHTVDIR in the systemd service. I only use
      MYTHTVDIR for testing and debugging or when running mythbackend
      from the command line.</p>
    <p>Peter</p></div></blockquote><div>I'm not completely sure I understand the MYTH_RUN_PREFIX.  If I'm building with -DCMAKE_INSTALL_PREFIX=~/my_mythtv_cmake_output but I intend to copy the content of the my_mythtv_cmake_output directory to /usr then I need to add -DMYTH_RUN_PREFIX=/usr?? </div><div><br></div><div>Jim A</div><div> <br></div></div></div>