Project

General

Profile

Kodi 16 - Client won't connect to server on localhost without internet.

Added by XDTZ XDTZ about 8 years ago

Just so future people knows, the answer is found here: https://forum.libreelec.tv/thread-2446.html

I am running LibreELEC 7.1.0 Aug (from this post: http://forum.odroid.com/viewtopic.php?f=144&t=22452) on Odroid C2. The service addon version was Tvheadend 4.0 v7.0.101 and Tvheadend HTSP Client v2.2.15.
After clean install the only thing I did was following this guide to setup Tvheadend backend and client. However the funny thing was I have to boot with internet wire plugged in otherwise the Tvheadend HTSP Client will keep saying Connection Lost. However if the machine was booted with internet connected, everything works fine and it is instant.

This is such an annoying problem that I can't solve even after hours of google session.

The followings are the full logs for each situation (internet on/off)

Offline Boot: http://paste.ubuntu.com/23405244/
Online Boot: http://paste.ubuntu.com/23405238/


Replies (9)

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by Robert Cameron about 8 years ago

Those are only your Kodi debug logs. However, to hazard a guess, it looks like your network is not properly being brought up, and that includes the loopback interface on 127.0.0.1. Unfortunately, without boot logs/dmesg, I'm not sure we can really be up much help here.

LibreELEC (and similarly, OpenELEC) are troublesome to work with and troubleshoot, because they are not full OSes, but merely a minimal embedded OS to run for a single purpose.

Also, what does the log for Tvheadend show when it starts up? Is it starting up, or is it erroring out? Perhaps the problem you can't connect is because Tvheadend is not running, not that there is a problem with your plugin. (The Kodi logs showed the plugin loading properly, just that it could not connect to the HTSP server running on 127.0.0.1:9982.)

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by XDTZ XDTZ about 8 years ago

Thank you so much for your reply

I would happily provide both logs, but I'm not really sure how to get the Tvheadend log. Perhaps you can give me some guidance.

Here are the dmesg log:

Offline: http://pastebin.com/fSPKnBnr
Online: http://pastebin.com/LgWPiCVU

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by Robert Cameron about 8 years ago

I'm not sure where LE puts the TVH logs. If you can get a terminal on the device, it looks like LE is using systemd, so you can get TVH's logs with journalctl -u tvheadend.

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by Robert Cameron about 8 years ago

XDTZ XDTZ wrote:

I tried but it says no entries :(

Even when TVH is running? That's odd, but I suppose it means that LE isn't using systemd for everything ...

Have you tried the LE forum over at odroid?

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by XDTZ XDTZ about 8 years ago

So I tried another way.

The first file is the result of "journalctl | grep vheadend > log.log" when booted with internet. The other file is running "journalctl > log2.log" when booted offline. Will these help?

http://pastebin.com/9i9SPXDj
http://pastebin.com/gHXenun8

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by Robert Cameron about 8 years ago

The first one was closer, but the log level isn't enough or something is off, because there's no mention of it starting to listen on a an interface.

Any response on the LE forums?

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by XDTZ XDTZ about 8 years ago

Posted:
https://forum.libreelec.tv/thread-2446.html

Also before I came here I posted the same issue on kodi forum but none provided insight unfortunately
http://forum.kodi.tv/showthread.php?tid=294348

RE: Kodi 16 - Client won't connect to server on localhost without internet. - Added by XDTZ XDTZ about 8 years ago

Robert Cameron wrote:

The first one was closer, but the log level isn't enough or something is off, because there's no mention of it starting to listen on a an interface.

Any response on the LE forums?

Thanks for your advice, people there did provid answer: https://forum.libreelec.tv/thread-2446.html

    (1-9/9)