Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2318 - [busybox sysntpd] server not suitable for synchronization #7211

Closed
openwrt-bot opened this issue Jun 14, 2019 · 5 comments
Closed
Labels

Comments

@openwrt-bot
Copy link

n8v8R:

  • Software versions of OpenWrt/LEDE release
    18.06

  • packages, etc.

  • bysubox 1.28.4-3.13
  • ntpdate 4.2.8p11-1.13
  • ntp-utils 4.2.8p11-1.13
  • setting
  • etc/config/system

config timeserver 'ntp'
option enabled '1'
option enable_server '1'

  • Steps to reproduce
    install ntpdate and ntp-utils

ntpq -p
//localhost: timed out, nothing received
***Request timed out//

ntpdate localhost
//ntpdate no server suitable for synchronization found
//

whilst in comparison

ntpdate 0.openwrt.pool.ntp.org

//ntpdate: adjust time server 5.103.139.163 offset 0.000341 sec//

ntpdate -q localhost
//server ::1, stratum 2, offset 0.000013, delay 0.02769
server 127.0.0.1, stratum 2, offset 0.000006, delay 0.02766
14 Jun 10:40:12 ntpdate[2460]: adjust time server 127.0.0.1 offset 0.000006 sec//

@openwrt-bot
Copy link
Author

n8v8R:

for completeness of debugging efforts

ntpdc -lnps
localhost: timed out, nothing received
***Request timed out
localhost: timed out, nothing received
***Request timed out
localhost: timed out, nothing received
***Request timed out

ntptime -r
ntp_gettime() returns code 5 (ERROR)
ntp_adjtime() returns code 5 (ERROR)

@openwrt-bot
Copy link
Author

n8v8R:

tested now with 19.07 and the outcome is the same unfortunately

@openwrt-bot
Copy link
Author

n8v8R:

From it enclosed strace ntpq -p it seems that ntpd is refusing/closing the connection

@openwrt-bot
Copy link
Author

n8v8R:

extended debugging effort

/etc/init.d/sysntpd stop

/sbin/ntpd -nNlSddddp 1.openwrt.pool.ntp.org

ntpq -p ->-> ntpd: malformed packet received from ::1: size 12

ntptime -r ->-> no output from ntpd

ntpdc -lnps ->-> no output from ntpd

ntpdate localhost ->-> no output from ntpd

@openwrt-bot
Copy link
Author

n8v8R:

It probably won't fix on OpenWrt. Looking more like an issue at source

https://bugs.busybox.net/show_bug.cgi?id=12001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant