Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: Sync time from NTP

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
a few recent versions up to and including 6.2.001.010 (developer)
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
Yes
Attachments
Results 1 to 9 of 9

Thread: Sync time from NTP

  1. #1
    littlejim

    Question Sync time from NTP

    I used to be able to tell OpenViX I wanted to use my local NTP server (it's in my router, I specify it by its IP address) rather than by using transponder time, and it would work perfectly.
    But now I've noticed that if I do this, the time doesn't necessarily get set correctly for quite some time after booting. I haven't waited to see how long it takes, but I know a few (5 or 10) minutes doesn't seem to do it.

    It took me a while to figure out what was happening, since just rebooting without going into deep standby and removing power often seems to result in OpenViX starting up with the clock approximately correct anyway, like it just remembers in RAM or in a hardware clock chip or something. Normally I don't often use deep standby and disconnect the power, which it what it seems to take to make it almost always really obvious that the clock is wrong when it starts up again.

    Of course, I can use Transponder time, which I am now doing, and that works well correctly setting the time correctly within a few seconds after booting, but in the past the NTP option did seem to work well for me.

    Do you think this could be a bug introduced recently?

    I guess there are other possible explanations, such as a worn out battery in a backed hardware clock in the box.
    But I'd kind of assumed they did bother with battery backed clocks in enigma2 boxes, since the software always has a way to get the time anyway.

    Sorry this is kind of vague, and obviously it's very low priority, almost a non bug.

  2. #2
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,792
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Can you post your /var/log/messages file?
    It will contain reports of when ntpdate runs (and what it does).
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. The Following User Says Thank You to birdman For This Useful Post:


  4. #3
    adm's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Sep 2014
    Location
    Southend on Sea, UK
    Posts
    1,654
    Thanks
    65
    Thanked 655 Times in 511 Posts
    Quote Originally Posted by littlejim View Post
    I used to be able to tell OpenViX I wanted to use my local NTP server (it's in my router, I specify it by its IP address) rather than by using transponder time, and it would work perfectly.
    But now I've noticed that if I do this, the time doesn't necessarily get set correctly for quite some time after booting. I haven't waited to see how long it takes, but I know a few (5 or 10) minutes doesn't seem to do it.

    It took me a while to figure out what was happening, since just rebooting without going into deep standby and removing power often seems to result in OpenViX starting up with the clock approximately correct anyway, like it just remembers in RAM or in a hardware clock chip or something. Normally I don't often use deep standby and disconnect the power, which it what it seems to take to make it almost always really obvious that the clock is wrong when it starts up again.

    Of course, I can use Transponder time, which I am now doing, and that works well correctly setting the time correctly within a few seconds after booting, but in the past the NTP option did seem to work well for me.

    Do you think this could be a bug introduced recently?

    I guess there are other possible explanations, such as a worn out battery in a backed hardware clock in the box.
    But I'd kind of assumed they did bother with battery backed clocks in enigma2 boxes, since the software always has a way to get the time anyway.

    Sorry this is kind of vague, and obviously it's very low priority, almost a non bug.
    There is no battery in your box.

    Probably the problem being discussed in another thread

    https://www.world-of-satellite.com/s...up-EPG-problem

    Read first
    https://www.world-of-satellite.com/s...oblem/page2#26

    The problem appears to be that the NTP routine is being run twice at boot-up and when woken from deep-standby is using the time that the box went into deep standby as the reference time to correct (but twice rather than just the first time). Possibly not everyone sees the problem because it may relate to how fast you box boots and establishes connection with your home network. I see the problem on my box connected via wi-fi but not on my other box with a wired ethernet connection.

    What I've seen on boot-up is the first (correct) time correction, then the second (erroneous) time correction and then the third (correct) transponder time correction all in the space of around a second. When this problem occurs the grid epg will be missing data for the current programs and for a period in the future.

    If you didn't set transponder time and just configured NTP time then the erroneous time may not be corrected until up to a hour later as NTP runs every 30 minutes past each hour.

    As birdman has requested, the /var/log/messages file will confirm what is happening on your box. (The file may only be relevant after the boot-up from deep standby and the box had been in deep standby for a hour or more)
    Last edited by adm; 10-05-22 at 10:12.
    Xtrend ET10K, 2 x satellite tuners 28.2 (Sky FTA), 2 x hybrid (UK Freeview), Zgemma H9S (satellite)

  5. The Following User Says Thank You to adm For This Useful Post:


  6. #4
    littlejim

    Post

    Here is /var/log/messages for starting up in NTP time mode after being in deep standby for, if I remember right, about 25 minutes.
    messages (1).txt

    And here, just in case it's of interest, is one from a couple of minutes later after I changed settings to use transponder time.
    messages (2).txt
    Last edited by littlejim; 10-05-22 at 23:15.

  7. #5
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    The first messages file shows what @adm and I have been experiencing on a box connected by wifi. Your NTP server, which would appear to be your router, is also complaining about being hammered by date/time requests. Because of the double offset stepping, your system time ended up 22 minutes ahead of real time.
    Code:
    May 10 22:33:28 Zgemmah7 kern.info kernel: [   21.729219] platform dvb0.0: DVB: registering adapter 0 frontend 3 (vtuner)...
    May 10 22:55:39 Zgemmah7 daemon.notice ntpdate[2026]: step time server 192.168.13.1 offset +1326.008669 sec
    May 10 23:17:51 Zgemmah7 daemon.notice ntpdate[2185]: step time server 192.168.13.1 offset +1326.008686 sec
    May 10 23:17:52 Zgemmah7 daemon.err ntpdate[2217]: 192.168.13.1 rate limit response from server.
    Your second messages file shows a similar, but opposite step backwards from a fake future time, to real time to time in the past.

    All these issues are related to ntpdate running twice in very quick succession. So, the answer needs to be found as to what is causing the situation. I have found that removing the backgrounding in ntpdate-sync resolves the problem as it forces the script to wait.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  8. The Following User Says Thank You to Joe_90 For This Useful Post:


  9. #6
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,629
    Thanks
    2,006
    Thanked 4,953 Times in 3,274 Posts
    Quote Originally Posted by Joe_90 View Post
    Thanks @Huevos, but beyond my limited skill level.
    That's a bit of a get-out, LOL.

    Please check "/usr/bin/ntpdate-syncsilent" is present on your file system.
    Help keep OpenViX servers online.Please donate!

  10. #7
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by Huevos View Post
    That's a bit of a get-out, LOL.

    Please check "/usr/bin/ntpdate-syncsilent" is present on your file system.
    I think you meant to answer in the other thread? ntpdate-sync is present on my system. I've been editing it and it works fine if I remove the backgrounding. "silent" is a parameter to the script, used when it is called from the *:30 cron job.
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  11. #8
    littlejim
    /usr/bin/ntpdate-sync is also present on my system.
    Anyone know if this file part of OpenViX (which can be fixed) or is it provided by Zgemma?
    Also does the box always call ntpdate using this script?

  12. #9
    Joe_90's Avatar
    Title
    Moderator
    Join Date
    Mar 2014
    Location
    Wicklow, Ireland
    Posts
    4,109
    Thanks
    1,275
    Thanked 1,122 Times in 884 Posts
    Quote Originally Posted by littlejim View Post
    /usr/bin/ntpdate-sync is also present on my system.
    Anyone know if this file part of OpenViX (which can be fixed) or is it provided by Zgemma?
    It's part of OpenVix.

    Quote Originally Posted by littlejim View Post
    Also does the box always call ntpdate using this script?
    I don't know. The developers are checking. There will be a solution!
    GB Quad Plus, Mut@nt HD51, AX HD61, 80cm dish and Supreme Dark motor. Sony STR-DN 1060, Sony UHP-H1 Bluray, Odroid N2+ (CoreElec), Monitor Audio Bronze 5.1 speakers

  13. The Following User Says Thank You to Joe_90 For This Useful Post:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.