Mailing List Archive

Leanback on AT&T TV Android STB
I just moved to AT&T TV - it is 100% streaming and does not require their
data network.

I was able to sideload the Leanback app onto it via USB stick and a file
manager, but there is no ADB access or access to the logs. I installed
leanfront-v0-173-gdd74f11.apk

Everything plays and connects perfectly, but everytime I press pause, upon
resume, the video stalls while audio plays. A quick jump via the arrow
keys fixes it though.

It is such a pain to sideload on this thing, I'd rather not downgrade, but
I will if need be (assuming the issue does not exist on previous versions).

It is Android 8 with 20200505 security patch, but highly AT&T bastardized -
they have their own slew of system apps that replaced the original android
stuff, so....

Anyone else have experience with this?

TiA,

Greg
Re: Leanback on AT&T TV Android STB [ In reply to ]
On Wed, Aug 5, 2020 at 5:23 PM Greg Oliver <oliver.greg@gmail.com> wrote:

> I just moved to AT&T TV - it is 100% streaming and does not require their
> data network.
>
> I was able to sideload the Leanback app onto it via USB stick and a file
> manager, but there is no ADB access or access to the logs. I installed
> leanfront-v0-173-gdd74f11.apk
>
> Everything plays and connects perfectly, but everytime I press pause, upon
> resume, the video stalls while audio plays. A quick jump via the arrow
> keys fixes it though.
>
> It is such a pain to sideload on this thing, I'd rather not downgrade, but
> I will if need be (assuming the issue does not exist on previous versions).
>
> It is Android 8 with 20200505 security patch, but highly AT&T bastardized
> - they have their own slew of system apps that replaced the original
> android stuff, so....
>
> Anyone else have experience with this?
>
> TiA,
>
> Greg
>

BTW:

Peter -

This is the first time I have used leanfront - I always thought it would
lack compared to mythfrontend (I have not sideloaded it on this device
yet), but it actually does almost everything I want, and quite possibly I
just do not know how to use it yet, so I am still playing, so THANKS!
Re: Leanback on AT&T TV Android STB [ In reply to ]
On 8/5/20 7:10 PM, Greg Oliver wrote:
> On Wed, Aug 5, 2020 at 5:23 PM Greg Oliver <oliver.greg@gmail.com
> <mailto:oliver.greg@gmail.com>> wrote:
>
> I just moved to AT&T TV - it is 100% streaming and does not
> require their data network.
>
> I was able to sideload the Leanback app onto it via USB stick and
> a file manager, but there is no ADB access or access to the logs. 
> I installed leanfront-v0-173-gdd74f11.apk
>
> Everything plays and connects perfectly, but everytime I press
> pause, upon resume, the video stalls while audio plays. A quick
> jump via the arrow keys fixes it though.
>
> It is such a pain to sideload on this thing, I'd rather not
> downgrade, but I will if need be (assuming the issue does not
> exist on previous versions).
>
> It is Android 8 with 20200505 security patch, but highly AT&T
> bastardized - they have their own slew of system apps that
> replaced the original android stuff, so....
>
> Anyone else have experience with this?
>
> TiA,
>
> Greg
>
>
> BTW:
>
> Peter -
>
> This is the first time I have used leanfront - I always thought it
> would lack compared to mythfrontend (I have not sideloaded it on this
> device yet), but it actually does almost everything I want, and quite
> possibly I just do not know how to use it yet, so I am still playing,
> so THANKS!
>
>
Greg

I do not believe downgrading to an earlier version of leanfront will help.

Is it possible that it is a temporary freeze? Often, after resuming
pause,  the video is frozen for a few seconds and then continues. How
long have you tried waiting for the video to continue?

If that does not help, if you disable audio and re-enable audio (by
clicking the "ear" icon until audio is disabled, then clicking the "ear"
icon again to enable it), does that fix it? This is obviously not an
acceptable thing to do every time but it may give me a clue on how to
fix the problem.

Peter
Re: Leanback on AT&T TV Android STB [ In reply to ]
On Thu, Aug 6, 2020 at 8:35 AM Peter Bennett <pb.mythtv@gmail.com> wrote:

>
> On 8/5/20 7:10 PM, Greg Oliver wrote:
>
> On Wed, Aug 5, 2020 at 5:23 PM Greg Oliver <oliver.greg@gmail.com> wrote:
>
>> I just moved to AT&T TV - it is 100% streaming and does not require their
>> data network.
>>
>> I was able to sideload the Leanback app onto it via USB stick and a file
>> manager, but there is no ADB access or access to the logs. I installed
>> leanfront-v0-173-gdd74f11.apk
>>
>> Everything plays and connects perfectly, but everytime I press pause,
>> upon resume, the video stalls while audio plays. A quick jump via the
>> arrow keys fixes it though.
>>
>> It is such a pain to sideload on this thing, I'd rather not downgrade,
>> but I will if need be (assuming the issue does not exist on previous
>> versions).
>>
>> It is Android 8 with 20200505 security patch, but highly AT&T bastardized
>> - they have their own slew of system apps that replaced the original
>> android stuff, so....
>>
>> Anyone else have experience with this?
>>
>> TiA,
>>
>> Greg
>>
>
> BTW:
>
> Peter -
>
> This is the first time I have used leanfront - I always thought it would
> lack compared to mythfrontend (I have not sideloaded it on this device
> yet), but it actually does almost everything I want, and quite possibly I
> just do not know how to use it yet, so I am still playing, so THANKS!
>
>
> Greg
>
> I do not believe downgrading to an earlier version of leanfront will help.
>
> Is it possible that it is a temporary freeze? Often, after resuming
> pause, the video is frozen for a few seconds and then continues. How long
> have you tried waiting for the video to continue?
>

Well, I'll be damned - it did it consistently the other day and does not do
it at all today. We did lose power yesterday, so all of the frontends got
rebooted. Maybe just a glitch in their matrix.



> If that does not help, if you disable audio and re-enable audio (by
> clicking the "ear" icon until audio is disabled, then clicking the "ear"
> icon again to enable it), does that fix it? This is obviously not an
> acceptable thing to do every time but it may give me a clue on how to fix
> the problem.
>

I found out how to enable developer options, so I can get logs next time it
happens. For anyone else, you have to click System->General->System
Summary 7x instead of the usual Build button.

On another note, the adb logs are full of :

08-07 13:19:28.259 1528 1595 E lfe : AsyncBackendCall Exception
Getting backend Info.
08-07 13:19:28.259 1528 1595 E lfe : java.io.FileNotFoundException:
http://192.168.100.151:6544/Status/GetStatus
08-07 13:19:28.259 1528 1595 E lfe : at
com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
08-07 13:19:28.259 1528 1595 E lfe : at
org.mythtv.leanfront.data.f.a(Unknown Source:39)
08-07 13:19:28.259 1528 1595 E lfe : at
org.mythtv.leanfront.data.a.b(Unknown Source:376)
08-07 13:19:28.259 1528 1595 E lfe : at
org.mythtv.leanfront.data.a.doInBackground(Unknown Source:2)
08-07 13:19:28.259 1528 1595 E lfe : at
android.os.AsyncTask$2.call(AsyncTask.java:333)
08-07 13:19:28.259 1528 1595 E lfe : at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
08-07 13:19:28.259 1528 1595 E lfe : at
android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
08-07 13:19:28.259 1528 1595 E lfe : at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
08-07 13:19:28.259 1528 1595 E lfe : at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
08-07 13:19:28.259 1528 1595 E lfe : at
java.lang.Thread.run(Thread.java:764)

Do I need a v31 backend for that URL? I have:
root@mythtv:~# mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v30.0
MythTV Branch :
Network Protocol : 91
Library API : 30.20181231-1
QT Version : 5.9.5
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_crystalhd using_dvb using_firewire using_frontend
using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv
using_joystick_menu using_libcec using_libcrypto using_libdns_sd
using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl
using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript
using_qtdbus using_taglib using_v4l2 using_x11 using_xnvctrl
using_xnvctrl_external using_libbluray_external using_xrandr using_xv
using_profiletype using_systemd_notify using_systemd_journal
using_bindings_perl using_bindings_python using_bindings_php
using_freetype2 using_mythtranscode using_opengl using_vaapi using_vaapi2
using_vdpau using_ffmpeg_threads using_mheg using_libass using_libxml2
using_libmp3lame

My backend does not respond to that URL at all, but it is listening on
6544..

root@mythtv:~# !net
netstat -peanut|grep myth
tcp 0 0 0.0.0.0:6543 0.0.0.0:* LISTEN
0 27606 1516/mythbackend
tcp 0 0 0.0.0.0:6544 0.0.0.0:* LISTEN
0 27600 1516/mythbackend
tcp 0 0 0.0.0.0:6549 0.0.0.0:* LISTEN
0 27604 1516/mythbackend
tcp 0 0 0.0.0.0:6554 0.0.0.0:* LISTEN
0 27602 1516/mythbackend
tcp 0 0 192.168.100.151:40344 192.168.100.140:3306
ESTABLISHED 0 739713 1516/mythbackend
tcp 0 0 192.168.100.151:37156 192.168.100.140:3306
ESTABLISHED 0 28466 1516/mythbackend
tcp 0 0 192.168.100.151:37132 192.168.100.140:3306
ESTABLISHED 0 27563 1516/mythbackend
tcp 0 0 192.168.100.151:37148 192.168.100.140:3306
ESTABLISHED 0 26430 1516/mythbackend
tcp 0 420824 192.168.100.151:6544 192.168.100.157:43475
ESTABLISHED 0 740834 1516/mythbackend
tcp 0 0 192.168.100.151:40346 192.168.100.140:3306
ESTABLISHED 0 739868 1516/mythbackend
tcp 0 0 192.168.100.151:40364 192.168.100.140:3306
ESTABLISHED 0 740801 1516/mythbackend

Thanks again for all the Android stuff - I will not have to put up with an
inferior plug-in on some other platform (or keep buying PCs to watch TV)!




> Peter
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: Leanback on AT&T TV Android STB [ In reply to ]
On Fri, Aug 07, 2020 at 01:37:29PM -0500, Greg Oliver wrote:
> On Thu, Aug 6, 2020 at 8:35 AM Peter Bennett <pb.mythtv@gmail.com> wrote:
> > Is it possible that it is a temporary freeze? Often, after resuming
> > pause, the video is frozen for a few seconds and then continues. How long
> > have you tried waiting for the video to continue?
>
> Well, I'll be damned - it did it consistently the other day and does not do
> it at all today. We did lose power yesterday, so all of the frontends got
> rebooted. Maybe just a glitch in their matrix.

FWIW, in addition to mythtv, I watch a lot of youtube on my nvidia
shield. About once or twice a week, youtube playback gets stuck. By
that, I mean playback of a video starts and then freezes a fraction of
a second later. In my experience, only a reboot of the shield fixes
the issue. Our problems might be related.

David
--
David Engel
david@istwok.net
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: Leanback on AT&T TV Android STB [ In reply to ]
On 8/7/20 2:37 PM, Greg Oliver wrote:
> On another note, the adb logs are full of :
>
> 08-07 13:19:28.259  1528  1595 E lfe     : AsyncBackendCall Exception
> Getting backend Info.
> 08-07 13:19:28.259  1528  1595 E lfe     :
> java.io.FileNotFoundException:
> http://192.168.100.151:6544/Status/GetStatus
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> org.mythtv.leanfront.data.f.a(Unknown Source:39)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> org.mythtv.leanfront.data.a.b(Unknown Source:376)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> org.mythtv.leanfront.data.a.doInBackground(Unknown Source:2)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> android.os.AsyncTask$2.call(AsyncTask.java:333)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
> 08-07 13:19:28.259  1528  1595 E lfe     : at
> java.lang.Thread.run(Thread.java:764)
>
This is used for displaying the percentage of disk space used
(percentage displays next to the search icon on the list).

I do not know why that is failing. I just started v30 backend
mythbackend version: fixes/30 [v30.0-92-gc6b20b072e] www.mythtv.org and
I can run that url on a browser. What do you see? Look at your backend
log and see if there is an error message.
Re: Leanback on AT&T TV Android STB [ In reply to ]
On Sat, Aug 8, 2020 at 12:06 PM Peter Bennett <pb.mythtv@gmail.com> wrote:

>
> On 8/7/20 2:37 PM, Greg Oliver wrote:
>
> On another note, the adb logs are full of :
>
> 08-07 13:19:28.259 1528 1595 E lfe : AsyncBackendCall Exception
> Getting backend Info.
> 08-07 13:19:28.259 1528 1595 E lfe : java.io.FileNotFoundException:
> http://192.168.100.151:6544/Status/GetStatus
> 08-07 13:19:28.259 1528 1595 E lfe : at
> com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> org.mythtv.leanfront.data.f.a(Unknown Source:39)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> org.mythtv.leanfront.data.a.b(Unknown Source:376)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> org.mythtv.leanfront.data.a.doInBackground(Unknown Source:2)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> android.os.AsyncTask$2.call(AsyncTask.java:333)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
> 08-07 13:19:28.259 1528 1595 E lfe : at
> java.lang.Thread.run(Thread.java:764)
>
> This is used for displaying the percentage of disk space used (percentage
> displays next to the search icon on the list).
>
> I do not know why that is failing. I just started v30 backend mythbackend
> version: fixes/30 [v30.0-92-gc6b20b072e] www.mythtv.org and I can run
> that url on a browser. What do you see? Look at your backend log and see if
> there is an error message.
>

I had to turn on debugs to get it, but it looks like I am missing some rows
in the DB somehow.. I have not hand jammed anything in or out of the
database in years though..

Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.231457 I
HttpWorker(62): New connection
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232498 I
(Request Header) accept:
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232503 I
(Request Header) accept-encoding: gzip, deflate
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232504 I
(Request Header) accept-language: en-US,en;q=0.5
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232506 I
(Request Header) cache-control: max-age=0
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232509 I
(Request Header) connection: keep-alive
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232510 I
(Request Header) dnt: 1
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232511 I
(Request Header) host: 192.168.100.151:6544
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232512 I
(Request Header) upgrade-insecure-requests: 1
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232513 I
(Request Header) user-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64;
rv:77.0) Gecko/20100101 Firefox/77.0
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232563 I
Database object created: DBManager17
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232566 I
New DB connection, total: 11
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.233232 I
[DBManager17] Connected to database 'mythconverg' at host: 192.168.100.140
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.233901 I
MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
'http/protected/urls' AND hostname = 'mythtv' <<<< Took 0ms, Returned 0
row(s)
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.234431 I
MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
'http/protected/urls' AND hostname IS NULL <<<< Took 0ms, Returned 0 row(s)
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.234542 I
ExtractMethodFromURL(end) : GetStatus : /Status
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235054 I
MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
'http/keepalivetimeoutsecs' AND hostname = 'mythtv' <<<< Took 0ms, Returned
0 row(s)
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235537 I
MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
'http/keepalivetimeoutsecs' AND hostname IS NULL <<<< Took 0ms, Returned 0
row(s)
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235642 I
HTTPRequest::FormatFileResponse('') - cannot find file
Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235655 I
HTTPRequest::SendResponse(xml/html) () :404 Not Found -> 192.168.99.10: 2
Re: Leanback on AT&T TV Android STB [ In reply to ]
On 8/8/20 1:24 PM, Greg Oliver wrote:
> On Sat, Aug 8, 2020 at 12:06 PM Peter Bennett <pb.mythtv@gmail.com
> <mailto:pb.mythtv@gmail.com>> wrote:
>
>
> On 8/7/20 2:37 PM, Greg Oliver wrote:
>> On another note, the adb logs are full of :
>>
>> 08-07 13:19:28.259  1528  1595 E lfe     : AsyncBackendCall
>> Exception Getting backend Info.
>> 08-07 13:19:28.259  1528  1595 E lfe     :
>> java.io.FileNotFoundException:
>> http://192.168.100.151:6544/Status/GetStatus
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> org.mythtv.leanfront.data.f.a(Unknown Source:39)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> org.mythtv.leanfront.data.a.b(Unknown Source:376)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> org.mythtv.leanfront.data.a.doInBackground(Unknown Source:2)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> android.os.AsyncTask$2.call(AsyncTask.java:333)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
>> 08-07 13:19:28.259  1528  1595 E lfe     : at
>> java.lang.Thread.run(Thread.java:764)
>>
> This is used for displaying the percentage of disk space used
> (percentage displays next to the search icon on the list).
>
> I do not know why that is failing. I just started v30 backend 
> mythbackend version: fixes/30 [v30.0-92-gc6b20b072e]
> www.mythtv.org <http://www.mythtv.org> and I can run that url on a
> browser. What do you see? Look at your backend log and see if
> there is an error message.
>
>
> I had to turn on debugs to get it, but it looks like I am missing some
> rows in the DB somehow..  I have not hand jammed anything in or out of
> the database in years though..
>
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.231457
> I  HttpWorker(62): New connection
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232498
> I  (Request Header) accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232503
> I  (Request Header) accept-encoding: gzip, deflate
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232504
> I  (Request Header) accept-language: en-US,en;q=0.5
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232506
> I  (Request Header) cache-control: max-age=0
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232509
> I  (Request Header) connection: keep-alive
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232510
> I  (Request Header) dnt: 1
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232511
> I  (Request Header) host: 192.168.100.151:6544
> <http://192.168.100.151:6544>
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232512
> I  (Request Header) upgrade-insecure-requests: 1
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232513
> I  (Request Header) user-agent: Mozilla/5.0 (X11; Fedora; Linux
> x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232563
> I  Database object created: DBManager17
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232566
> I  New DB connection, total: 11
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.233232
> I  [DBManager17] Connected to database 'mythconverg' at host:
> 192.168.100.140
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.233901
> I  MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value
> = 'http/protected/urls' AND hostname = 'mythtv' <<<< Took 0ms,
> Returned 0 row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.234431
> I  MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value
> = 'http/protected/urls' AND hostname IS NULL <<<< Took 0ms, Returned 0
> row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.234542
> I  ExtractMethodFromURL(end) : GetStatus : /Status
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235054
> I  MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value
> = 'http/keepalivetimeoutsecs' AND hostname = 'mythtv' <<<< Took 0ms,
> Returned 0 row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235537
> I  MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value
> = 'http/keepalivetimeoutsecs' AND hostname IS NULL <<<< Took 0ms,
> Returned 0 row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235642
> I  HTTPRequest::FormatFileResponse('') - cannot find file
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235655
> I  HTTPRequest::SendResponse(xml/html) () :404 Not Found ->
> 192.168.99.10 <http://192.168.99.10>: 2
>
> _______________________________________________

I don't think that is related to the problem, I also have no data for
those values.

I looked at it a bit more. GetStatus has been part of mythbackend since
2006. The following urls are available. All should work.

http://name:6544/Status/GetStatus
http://name:6544/Status/GetStatusHTML
http://name:6544/Status/Status
http://name:6544/Status/xml

Status and GetStatusHTML return a web page, the two others return xml.

I don't know why yours is failing, perhaps there is a probelm with
creating a temporary file in your system?
Re: Leanback on AT&T TV Android STB [ In reply to ]
On Sat, Aug 8, 2020 at 1:14 PM Peter Bennett <pb.mythtv@gmail.com> wrote:

> On 8/8/20 1:24 PM, Greg Oliver wrote:
>
> On Sat, Aug 8, 2020 at 12:06 PM Peter Bennett <pb.mythtv@gmail.com> wrote:
>
>>
>> On 8/7/20 2:37 PM, Greg Oliver wrote:
>>
>> On another note, the adb logs are full of :
>>
>> 08-07 13:19:28.259 1528 1595 E lfe : AsyncBackendCall Exception
>> Getting backend Info.
>> 08-07 13:19:28.259 1528 1595 E lfe : java.io.FileNotFoundException:
>> http://192.168.100.151:6544/Status/GetStatus
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> org.mythtv.leanfront.data.f.a(Unknown Source:39)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> org.mythtv.leanfront.data.a.b(Unknown Source:376)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> org.mythtv.leanfront.data.a.doInBackground(Unknown Source:2)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> android.os.AsyncTask$2.call(AsyncTask.java:333)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> java.util.concurrent.FutureTask.run(FutureTask.java:266)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
>> 08-07 13:19:28.259 1528 1595 E lfe : at
>> java.lang.Thread.run(Thread.java:764)
>>
>> This is used for displaying the percentage of disk space used (percentage
>> displays next to the search icon on the list).
>>
>> I do not know why that is failing. I just started v30 backend
>> mythbackend version: fixes/30 [v30.0-92-gc6b20b072e] www.mythtv.org and
>> I can run that url on a browser. What do you see? Look at your backend log
>> and see if there is an error message.
>>
>
> I had to turn on debugs to get it, but it looks like I am missing some
> rows in the DB somehow.. I have not hand jammed anything in or out of the
> database in years though..
>
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.231457 I
> HttpWorker(62): New connection
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232498 I
> (Request Header) accept:
> text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232503 I
> (Request Header) accept-encoding: gzip, deflate
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232504 I
> (Request Header) accept-language: en-US,en;q=0.5
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232506 I
> (Request Header) cache-control: max-age=0
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232509 I
> (Request Header) connection: keep-alive
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232510 I
> (Request Header) dnt: 1
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232511 I
> (Request Header) host: 192.168.100.151:6544
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232512 I
> (Request Header) upgrade-insecure-requests: 1
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232513 I
> (Request Header) user-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64;
> rv:77.0) Gecko/20100101 Firefox/77.0
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232563 I
> Database object created: DBManager17
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.232566 I
> New DB connection, total: 11
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.233232 I
> [DBManager17] Connected to database 'mythconverg' at host: 192.168.100.140
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.233901 I
> MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
> 'http/protected/urls' AND hostname = 'mythtv' <<<< Took 0ms, Returned 0
> row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.234431 I
> MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
> 'http/protected/urls' AND hostname IS NULL <<<< Took 0ms, Returned 0 row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.234542 I
> ExtractMethodFromURL(end) : GetStatus : /Status
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235054 I
> MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
> 'http/keepalivetimeoutsecs' AND hostname = 'mythtv' <<<< Took 0ms, Returned
> 0 row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235537 I
> MSqlQuery::exec(DBManager17) SELECT data FROM settings WHERE value =
> 'http/keepalivetimeoutsecs' AND hostname IS NULL <<<< Took 0ms, Returned 0
> row(s)
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235642 I
> HTTPRequest::FormatFileResponse('') - cannot find file
> Aug 08 12:20:23 mythtv mythbackend[23863]: 2020-08-08 12:20:23.235655 I
> HTTPRequest::SendResponse(xml/html) () :404 Not Found -> 192.168.99.10: 2
>
> _______________________________________________
>
> I don't think that is related to the problem, I also have no data for
> those values.
>
> I looked at it a bit more. GetStatus has been part of mythbackend since
> 2006. The following urls are available. All should work.
>
> http://name:6544/Status/GetStatus
> http://name:6544/Status/GetStatusHTML
> http://name:6544/Status/Status
> http://name:6544/Status/xml
>
> Status and GetStatusHTML return a web page, the two others return xml.
>
> I don't know why yours is failing, perhaps there is a probelm with
> creating a temporary file in your system?
>
> Hmmm. All of my partitions have plenty of space. Where does it try to
write to? I run the backend as root, so no permission issues. It can
write logs and recordings ok obviously.