Solved 2 problems with a TV server not running 24/7
#31
Since you pushed the stuff to master and Krypton branches yesterday, are the changes supposed to be in today's nightly?
Reply
#32
Never mind. Just checked it in the kodi-20161214-4547804-Krypton-armeabi-v7a.apk for Android. DVBViewer Add-on lib is at 2.4.6. So fixes are in the nightlies already.
Reply
#33
Thumbs Up 
PERFECT!!!! WORKS !!!! THANKS!!!!
Reply
#34
My RS is currently running 24/7. I sometimes have the problem that when I start Kodi on my Android TV after having been in standby for several hours, connection sometimes fails. Kodi events toggle every second between "server is unreachable" and "communication established". When I then tune a TV channel it recovers and everything looks good.

I tried to log the incident but the file grew to big to be uploaded to pastebin and Sony fucked up Marshmallow so I currently can't copy the log from the file system either. So I can only post an extract from the log Sad .

Code:
INFO: AddOnLog: DVBViewer Client: Trying to connect to the backend service
DEBUG: CurlFile::Open(0xb9906848) http://192.168.233.192:8080/api/version.html
ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
ERROR: CCurlFile::Open failed with code 0 for http://192.168.233.192:8080/api/version.html
INFO: AddOnLog: DVBViewer Client: Connection to the backend service failed. Retrying in 10 seconds...
INFO: AddOnLog: DVBViewer Client: Trying to connect to the backend service
DEBUG: CurlFile::Open(0xb9906848) http://192.168.233.192:8080/api/version.html
ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
ERROR: CCurlFile::Open failed with code 0 for http://192.168.233.192:8080/api/version.html
INFO: AddOnLog: DVBViewer Client: Connection to the backend service failed. Retrying in 10 seconds...
INFO: AddOnLog: DVBViewer Client: Trying to connect to the backend service
DEBUG: CurlFile::Open(0xb9906848) http://192.168.233.192:8080/api/version.html
DEBUG: EPG - UpdateFromScraper - updating EPG for channel 'oe24.tv' from client '851262089'
ERROR: PVR - GetEPGForChannel - addon 'DVBViewer: 192.168.233.192' returned an error: server error
ERROR: PVR - GetEPGForChannel - cannot get EPG for channel 'oe24.tv' from client '851262089': server error
ERROR: EPG - update - failed to update table 'oe24.tv'

EPG update then fails for every channel...

Any ideas?
Reply
#35
Nope. Kodi/curl says RS is not reachable.
Reply
#36
Weird thing is that as soon as I start a live stream, the issue gets resolved.

I now found a way to copy logs to a USB storage device by using the Kodi file manager. Waiting now until it happens again...

When I am in that state again, I will also try to access the API via browser.
Reply
#37
Maybe the TV hasn't got a wifi/network connection yet? But that shouldn't result in connection state flips.
Reply
#38
I don't think it is the Wi-Fi. I had the issue several times and always waited a different amount of time before starting a live stream, which fixed the toggling always.

I will capture it sooner or later in another log. I just had a quick look at it but it was a pain on the TV screen. Next time I will be able to copy it over...
Reply
#39
OK, starting live stream doesn't fix it. Guess that the toggling stops after all channels have been tried through for EPG results. However, the live stream works while Kodi is still toggling between not reachable and connected (so network is up, live stream server is a different port though). RS web API is perfectly reachable from a notebook while Kodi is in this state though (tried /api/version.html).

I am attaching the huge 8.6M log. Maybe something can be seen inside. Think it spams the log as soon as the problem happens.

kodi_rs_unreachable.log
Reply
#40
hm weird. connection fails on all possible endpoints but endpoint seems to work 10 seconds later. e.g.

Quote:14:24:20.187 T:18446744071964539184 INFO: AddOnLog: DVBViewer Client: Trying to connect to the backend service...
14:24:20.198 T:18446744071964539184 DEBUG: CurlFile::Open(0xb92090a8) http://192.168.233.192:8080/api/version.html
14:24:20.201 T:18446744071964539184 ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
14:24:20.201 T:18446744071964539184 ERROR: CCurlFile::Open failed with code 0 for http://192.168.233.192:8080/api/version.html
14:24:20.202 T:18446744071964539184 INFO: AddOnLog: DVBViewer Client: Connection to the backend service failed. Retrying in 10 seconds...
14:24:30.248 T:18446744071964539184 INFO: AddOnLog: DVBViewer Client: Trying to connect to the backend service...
14:24:30.250 T:18446744071964539184 DEBUG: CurlFile::Open(0xb92090a8) http://192.168.233.192:8080/api/version.html
14:24:30.778 T:18446744071964539184 NOTICE: AddOnLog: DVBViewer Client: Checking backend version...
14:24:30.785 T:18446744071964539184 NOTICE: AddOnLog: DVBViewer Client: Version: 23265541

Still looks like a curl problem to me. Anyone else have an idea? I'm using READ_NO_CACHE, no other flags.
Reply
#41
Still happens frequently for me. Suppose something is wrong after waking up from standby or something. Streams work properly. So the network is intact.
Reply
#42
Lacking a device to reproduce this I'm afraid you're on your own. Or you buy me a new android tv Big Grin
Reply

Logout Mark Read Team Forum Stats Members Help
2 problems with a TV server not running 24/71