Solved Playback won't start after system start unless add-on disabled and re-enabled
#1
I am running Kodi from LibreElec 11.0.6 on an RPI 2. Playback is refusing to start unless I go through a disable/reenable loop with the add-on, then it works perfectly.

Partial log here: https://paste.kodi.tv/jakigupayo.kodi

Appreciate someone shedding some light on what is causing this and how to fix it...Or happy to be directed to another thread as appropriate.

Many thanks!
Reply
#2
I can’t tell what version of anything you are running from your log.

Can you create a full debug log from startup and try to play something that fails? Then maybe I can help.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#3
Hi

Thanks for replying. Apologies for taking so long to get back to you.

The log from earlier today is at:
https://paste.libreelec.tv/shining-oarfish.log

Many thanks.
Reply
#4
Do you have wait for network enabled under the LibreElec settings?

That’s probably the reason it doesn’t play straight away.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#5
I've tested starting up, both with and without that option set, and the result seems equally random.

It seems that some service is unable to start reliably at startup, and the system cannot display iptv streams until I go through disable/enable cycle.
Reply
#6
The log is very clear that it is a network error nothing to do with iptvsimple

2023-02-17 07:11:20.969 T:964 error <general>: CCurlFile::Stat - <https://i.mjh.nz/nzau/kodi.m3u8> Failed: Couldn't resolve host name(6)https://i.mjh.nz/nzau/kodi.m3u8> Failed: Couldn't resolve host name(6)

5 seconds before the IP is registered.

Feb 17 07:11:25.493357 LibreELEC avahi-daemon[701]: Registering new address record for 192.168.1.187 on wlan0.IPv4.

You hjave lots have errors in your logs, I think the LibreELEC forums is a better place for this question.





Martin
Reply
#7
Thanks for the response. that is an error that hasn't reoccurred since February last year, and I don't think its related to the behaviour I'm seeing atm.

Latest log: https://paste.libreelec.tv/eager-flamingo.log

The error from earlier today was:
2024-04-08 10:49:36.695 T:841 error <general>: GetChannelStreamProperties: Add-on 'pvr.iptvsimple' returned an error: server error
2024-04-08 10:49:36.753 T:841 info <general>: VideoPlayer::OpenFile: pvr://channels/tv/All%20channels/[email protected]_1518111536.pvr
2024-04-08 10:49:36.754 T:1334 info <general>: Creating InputStream
2024-04-08 10:49:36.755 T:1334 error <general>: CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/All%20channels/[email protected]_1518111536.pvr]

Happy to be corrected, but it certainly appears to be related to iptvsimple plugin?
Reply
#8
Looks like you have network issues like 2 devices using same IP address?
Code:
Feb 17 07:11:21.991135 LibreELEC nmbd[784]: [2023/02/17 07:11:21.990889, 0] ../../source3/nmbd/nmbd_namequery.c:109(query_name_response) Feb 17 07:11:21.991168 LibreELEC nmbd[784]: query_name_response: Multiple (2) responses received for a query on subnet 192.168.1.187 for name CCHOME<1d>.
Feb 17 07:11:21.991208 LibreELEC nmbd[784]: This response was from IP 192.168.1.102, reporting an IP address of 192.168.1.102.

Also as phunkyfish wrote you need to enable "wait for network" in LE settings because when addon is started playlist is not loaded because of
Code:

2023-02-17 07:11:12.533 T:935      info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - Create starting IPTV Simple PVR client...
2023-02-17 07:11:12.565 T:935      info <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - Init - Loaded '3' providers mappings
2023-02-17 07:11:12.614 T:935     error <general>: CCurlFile::Stat - <https://i.mjh.nz/nzau/kodi.m3u8> Failed: Couldn't resolve host name(6)
2023-02-17 07:11:12.621 T:935     error <general>: CCurlFile::CReadState::FillBuffer - (0x69c16f20) Failed: Couldn't resolve host name(6)
2023-02-17 07:11:12.622 T:935     error <general>: CCurlFile::Open - <https://i.mjh.nz/nzau/kodi.m3u8> Failed with code 0:
2023-02-17 07:11:12.622 T:935     error <general>: AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadPlayList - Unable to load playlist cache file 'https://i.mjh.nz/nzau/kodi.m3u8':  file is missing or empty.

If "wait for network" doesn't help then create file /storage/.config/autostart.sh with sleep 20 inside. Adjust value 20 with higher or lower value until it will always work.
Reply
#9
Thanks for the suggestions @ultraman

I've already tried the 'wait for network' option but will create the shell script and see how it responds.

Fingers crossed.
Reply
#10
As @ultraman pointed out, you need to fix your network. Having multiple devices with the same IP will cause no end of problems.

Once that is fixed provide a new log if the problem still exists after following all the other guidance
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#11
Thanks all for your responses. The problem is now resolved.

The 'sleep 20' suggestion did the trick. 'sleep 10' also works, which is what I have it set to.

As previously mentioned, the network errors only occurred about a year ago, and haven't reapproved.

Happy for this to be marked as 'solved'

Many thanks!
Reply
#12
Thread marked solved.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply

Logout Mark Read Team Forum Stats Members Help
Playback won't start after system start unless add-on disabled and re-enabled0