Jump to content
  • [7.0.0-beta.2] ntpd spam


    alturismo
    • Minor

    Hi,

     

    as i wanted to get rid of the annoying ntpd messages

     

    Jul 19 05:41:12 AlsServerII ntpd[19396]: 192.168.1.4 on 1 br0 -> *multiple*
    Jul 19 05:42:53 AlsServerII ntpd[19396]: 192.168.1.4 on 1 br0 -> *multiple*
    Jul 19 05:45:43 AlsServerII ntpd[19396]: 192.168.1.4 on 1 br0 -> *multiple*
    Jul 19 05:50:44 AlsServerII ntpd[19396]: 192.168.1.4 on 1 br0 -> *multiple*
    Jul 19 05:51:04 AlsServerII ntpd[19396]: 192.168.1.4 on 1 br0 -> *multiple*
    Jul 19 05:56:06 AlsServerII ntpd[19396]: 192.168.1.4 on 1 br0 -> *multiple*
    ...
    ..
    .

     

    i rememberd there was something in the changelog ;)

     

    so, after changing the time server settings like recommended

     

    image.png.08eaffc19e421decd2bf4901822ef1e1.png

     

    1/ sshd Server crashed somehow, had to stop / start from web terminal again to get access (restart doesnt work as usually on Unraid ;))

     

    image.thumb.png.71079eee05c3fe7ed317c590448b9315.png

     

    got this solved

     

    2/ i also saw some weird message when i changed ntpd ... shim-br0 deleted (i switched to macvlan for testing if it works again)

     

    image.thumb.png.215e554284fd914e62ea2130f460affb.png

     

    but shim is still there and funtional, so nevermind ...

     

    3/ really annoying, spam in syslog is still there ... red line where i changed time server ...

     

    image.thumb.png.fc2ec2172b7c4a8d3cad3cba8dbd569c.png




    User Feedback

    Recommended Comments



    Thanks I'll see if I can find something in common, but since I can no longer reproduce with beta.3 please also try to find if anything else contributes to this besides "Host access to custom networks" enabled, like does it still do it if all containers are stopped, and after booting in safe mode, and anything else you can think of.

    • Thanks 1
    Link to comment
    On 8/30/2024 at 4:00 AM, thecode said:

     

    Just one note, I think that after restart the NTP client is not syncing anymore.

     

    Web UI will show:

    image.png.35721733a55981d68ae98b2acffe0837.png

     

     

    Checking source for NTP sync:

    root@Sam:~# ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
    *LOCAL(0)        .LOCL.          10 l  135  256  377    0.000   +0.000   0.000
     time2.google.co .INIT.          16 u    - 1024    0    0.000   +0.000   0.000

     

    Last checking on a server before restarting the ntpd:

     

    root@Fanta:~# ntpq -p
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     LOCAL(0)        .LOCL.          10 l 168m   64    0    0.000   +0.000   0.000
    *time1.google.co .GOOG.           1 u   70  128  377   67.400  +837.45 837.667

     

    I know that because I did something similar in the past, if you edit anything in the time settings on the Web UI (such as change NTP server, change it back and press apply) it also restart the ntpd but I noticed that the server start to create drift over time

     

    Heck I’ve always had issues with unraid ntpd drifting pretty hardcore. I have a user script updating it on a schedule since a few releases ago and works great. 

    Link to comment
    8 hours ago, Jclendineng said:

    Heck I’ve always had issues with unraid ntpd drifting pretty hardcore. I have a user script updating it on a schedule since a few releases ago and works great. 

     

    I think you should create another post to debug your problem. I don't have any issues if I don't manually restart the ntpd, I have a server running beta 2 for more than a month (it will be the same for beta 3) with 0.4msec drift. The server that I restarted the ntpd as accumulated 20msec drift in a day.

    Link to comment

    may as sample howto avoid the spam for now until @JorgeB or @limetech may find a solution.

     

    enhanced log plugin can filter syslog entries

     

    image.png.9a34c4795ae759419783e6eab99abd55.png

     

    there you can set a filter ... which i did yesterday after reading up here again and as there seems no solution in sight ...

     

    image.png.c6ae5c11d9d977ff5b6514703b059495.png

     

    since then the log is free from the spam ...

     

    cat /var/log/syslog | grep -i multipl

     

    image.png.4d3cb7a41c0f14e3d93c195776b37a6c.png

     

    so, this is not a fixing solution, just to bypass the annoying spam introduced in v7 beta due ntp changes,

    syslog stays clean from these annoying messages ...

    • Like 2
    • Thanks 1
    Link to comment
    4 minutes ago, SimonF said:

    I have created a draft pr would any one be able to make changes to there rc.ntpd file and run /etc/rc.d/rc.ntpd restart to test id=f it fixes the issue?

     

    https://github.com/unraid/webgui/pull/1881/files

    Already tested your PR 😃I can confirm it resolve the issue for me (20 minutes with no "multiple" in log and clock is reporting to be synchronized), I just wonder, now with it do we need to revert https://github.com/unraid/webgui/commit/12828eec63a27d446c06e95d85f6361ad02fb53d

     

    Thanks!

     

    Edited by thecode
    typo
    • Like 1
    Link to comment
    6 hours ago, SimonF said:

    I have created a draft pr would any one be able to make changes to there rc.ntpd file and run /etc/rc.d/rc.ntpd restart to test id=f it fixes the issue?

     

    https://github.com/unraid/webgui/pull/1881/files

    looking good here after a quick lookup, no more spam, ntpd is running

     

    root@AlsServerII:~# ntpq -pn
         remote           refid      st t when poll reach   delay   offset  jitter
    ==============================================================================
     127.127.1.0     .LOCL.          10 l  908   64    0    0.000   +0.000   0.000
    *2001:4860:4806: .GOOG.           1 u   22   64  377   19.107   -1.256   2.230
    root@AlsServerII:~#

     

    Link to comment

    This would do the change we need, right?

     

    sed -i 's/echo "interface listen \$NET # \$(show \$NET)" >>\$CONF/echo "interface listen \$(show \$NET) # \$NET" >>\$CONF/g' /etc/rc.d/rc.ntpd
    /etc/rc.d/rc.ntpd restart


     

    Edited by Niklas
    Link to comment



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...