I should ask is the backend really down? systemctl status mythtv-backend
My tests were on a 20.04 host on master (v32-Pre) and mythtv-status --version
returns 1.0.1.
Could be that I don't speak Perl enough. I'm looking at line 1317 in /usr/bin/mythtv-status
and an alarm is set for 10 seconds. If your response was slower than that, I'd look for the
cause if it.
When I run /usr/bin/mythtv-status from the command line, the response is nearly immediate.
You can increase the logging on a running backend with: mythbackend --setverbose http,upnp
Lines like these should be there, with reasonable timestamps:
Code: Select all
2020-06-01 19:57:40.621044 I [7854/7854] CoreContext httpserver.cpp:460 (HttpWorker) - HttpWorker(43): New connection
2020-06-01 19:57:40.637462 I [7854/27611] HttpServer43 httprequest.cpp:1308 (ParseRequest) - (Request Header) connection: TE, close
2020-06-01 19:57:40.637464 I [7854/27611] HttpServer43 httprequest.cpp:1308 (ParseRequest) - (Request Header) host: localhost:6544
2020-06-01 19:57:40.637465 I [7854/27611] HttpServer43 httprequest.cpp:1308 (ParseRequest) - (Request Header) te: deflate,gzip;q=0.3
2020-06-01 19:57:40.637467 I [7854/27611] HttpServer43 httprequest.cpp:1308 (ParseRequest) - (Request Header) user-agent: libwww-perl/6.43
2020-06-01 19:57:40.637489 I [7854/27611] HttpServer43 httprequest.cpp:1620 (ExtractMethodFromURL) - ExtractMethodFromURL(end) : GetStatus : /Status
2020-06-01 19:57:40.641357 I [7854/27611] HttpServer43 httprequest.cpp:343 (SendResponse) - HTTPRequest::SendResponse(xml/html) () :200 OK -> 127.0.0.1: 1
2020-06-01 19:57:40.642505 W [7854/27611] HttpServer43 httpserver.cpp:637 (run) - HttpWorker(43): Error The remote host closed the connection (1)
2020-06-01 19:57:40.642511 I [7854/27611] HttpServer43 httpserver.cpp:685 (run) - HttpWorker(43): Connection -1 closed. 1 requests were handled
Turn off the extra logging with: mythbackend --setverbose http:alert,upnp:alert