Posts: 25
Joined: Mar 2015
Reputation:
0
nim6us
Junior Member
Posts: 25
2016-01-25, 18:23
(This post was last modified: 2016-01-28, 13:52 by nim6us.)
I'm having the most frustrating issue. I just took my router out and replaced it with a router/firewall combo unit. Ever since then the time shows 1:00AM 1970. I tried putting the NTP servers into OpenELEC and the time and date will fix themselves, but only until the next reboot. Then it wipes and goes back to 1:00AM 1970. And that trick doesn't work all the time, sometimes it has the NTP server information but it won't refresh the date and time.
I don't understand what's gone wrong, I have 3 other Pi's all with the same issue. I've even opened my firewall with an Any rule for the Pi's, but still no affect. So two questions:
1) How/where does Kodi pull he time from?
2) Any ideas on how to fix it?
Kodi 15.2
Raspberry Pi 2 Model B
Posts: 291
Joined: Mar 2013
Reputation:
14
Pi's get time from network, there is no realtime clock in a pi.
It looks like network is not up when Kodi starts.
How are the pi's connected to your router, ethernet or wifi ?
You could try giving one of the pi's a fixed IP address and see if that improves the situation.
Posts: 465
Joined: Mar 2011
Reputation:
12
It's not Kodi pulling time data from an ntp server, it's the underlying OS that does (you know, no RTC on a RPi, no battery also...).
What ever that 'router/firewall' combo might be, one rule should suffice:
- allow any client on your local network to contact ntp sources: local network -> allow outgoing traffic using UDP port 123
If your 'combo' doesn't utilize a proxy, that is.
Maybe your 'combo' can act as an ntp-server itself - then you could configure your OE-PIs to use it as a local time source (not pool.xyz.ntp.org, but 192.168.x.y).
And maybe you just forgot to reconfigure your PIs to reflect your new 'combo's' IP address to use for DNS queries...
And so on, anyway, it'll surely be one small config error.
Bye,
Fry
Kodi v17.6 with shared MariaDB v10.3 | HTS Tvheadend 4.2.6 on RPi2 | running on:
Windows 10x64 | Nvidia Shield | FireTV4k | FireTVStick4 | Android 5 | RPi3 with OSMC
Posts: 25
Joined: Mar 2015
Reputation:
0
nim6us
Junior Member
Posts: 25
Okay well I don't have the time to dump into this at the moment. The fix I employed was to tell my firewall appliance to be an NTP server, then I told all the Pi's too look at it for NTP. This seems to have resolved the issue across the board on all Pi's. Thanks to everyone who put their time into this.
Posts: 14
Joined: Jan 2016
Reputation:
0
scalci
Junior Member
Posts: 14
I have a similar problem on my new Pi3 conncted via WiFi. How do I delay Kodi to start to ensure the WiFi is up?
Posts: 1
Joined: Sep 2017
Reputation:
0
I have the same problem. I have a fresh install of libreELEC 8.0.2 on a raspberry pi 3 connected via wifi and I have set the pool.ntp.org server but still ...
Posts: 14,213
Joined: Nov 2009
Reputation:
706
Klojum
Lost connection
Posts: 14,213
LibreELEC has a 'Wait for Network" option in the Settings Add-on which you can enable.
Set it to 30 secs for a RPi.