[mythtv-users] Web Frontend stopped working yesterday
Jay Harbeston
jharbestonus at gmail.com
Fri Jul 19 15:59:10 UTC 2019
> On Jul 19, 2019, at 11:36 AM, Janusz S. Bień <jsbien at mimuw.edu.pl> wrote:
>
> On Fri, Jul 19 2019 at 9:18 -05, Bill Meek wrote:
>
> [...]
>
>> In the logs I could find in this thread, a 2nd instance of mythbackend was started:
>>
>> ... Error 8: The bound address is already in use
>
> Multiple instances of mythbackend seem an independent problem for me.
>
>>
>> Make sure all instances are stopped: sudo systemctl stop mythbackend and then ps ax | grep mythbackend
>> to verify that no others are running, kill as required.
>
> Immediately after a reboot I have
>
> --8<---------------cut here---------------start------------->8---
> ps ax | grep mythbackend
> 1675 ? Ssl 0:00 /usr/bin/mythbackend --daemon --pidfile /var/run/mythtv/mythbackend.pid --syslog local6 --verbose http:debug,up
> 2648 pts/0 S+ 0:00 grep mythbackend
> --8<---------------cut here---------------end--------------->8---
>
>
>
>>
>> It appears that you're using /etc/init.d/mythtv-backend, and systemd starts it,
>> you can modify the line in that file to get additional HTTP logging at startup
>> by editing the line that starts mythbackend there.
>
> The mythbackend process uses the arguments specified in /etc/default/mythtv-backend.
>
>>
>> Other info shows a loglevel of crit, change that to general otherwise most logs
>> would be lost.
>
> I also noticed it and I have no idea when and how the process with the
> loglevel of crit was started.
>
>>
>> Use the logging options above that Stephen suggested, e.g. --verbose http:debug.
>
> Done, as you can see above.
>
>>
>> Once setup, start the backend again: sudo systemctl start
>> mythtv-backend,
>
> I skipped this step because after the reboot the backend is definitely
> running (confirmed by systemctl status mythtv-backend)
>
>> attempt to connect to WebFrontend from you favorite browser and put
>> the complete log for that run in a pastebin. Post the pastebin link
>> here.
>
> http://paste.debian.net/1092348/
>
I see this in your log, which still looks like another mythbackend is running, or alternatively, something you are running on this machine is using port 6543:
These next 6 lines I think look ok.
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6544
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6544
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6554
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6554
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: N CoreContext websocket.cpp:37 (WebSocketServer) WebSocketServer(): Max Thread Count 8
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP 0.0.0.0:6549
————————— MORE info logs
Jul 19 17:01:12 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext serverpool.cpp:415 (listen) Listening on TCP [::]:6549
Jul 19 17:01:18 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext main_helpers.cpp:698 (run_backend) Main::Registering HttpStatus Extension
Jul 19 17:01:18 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext httpserver.cpp:329 (RegisterExtension) HttpServer: Registering HttpStatus extension
################### This next line is interesting below that I have turned all caps, indicating something has taken over port 6543.
JUL 19 17:01:18 VIVOPC-D8 MYTHBACKEND: MYTHBACKEND[1847]: E CORECONTEXT SERVERPOOL.CPP:428 (LISTEN) FAILED LISTENING ON TCP 0.0.0.0:6543 - ERROR 8: THE BOUND ADDRESS IS ALREADY IN USE
Jul 19 17:01:18 VivoPC-D8 mythbackend: mythbackend[1847]: C CoreContext main_helpers.cpp:713 (run_backend) Backend exiting, MainServer initialization error.
Jul 19 17:01:18 VivoPC-D8 mythbackend: mythbackend[1847]: I CoreContext bonjourregister.cpp:28 (~BonjourRegister) Bonjour: De-registering service '' on ''
##################
Try another connect, and while doing so, do the following on your mythtv server:
netstat | grep 6544
It should show a connection between your server and the machine running the web page.
More information about the mythtv-users
mailing list