美文网首页
ntpdate[1103]: Can't adjust

ntpdate[1103]: Can't adjust

作者: andycheng | 来源:发表于2018-06-21 17:54 被阅读268次

To have a correct server time ntpd is a commonly used daemon. It periodically synchronizes the local server time with a time server. Some days ago I recognized that the time on a server I administrate is two hours slow. So I tried to manually update the time using the ntpdate tool. But all I got was the following:

root@foobar:/$ ntpdate -u 3.debian.pool.ntp.org ntpdate[1337]: Can't adjust the time of day: Operation not permitted

Searching the web for the cause of this problem, I found many posts which say that this could be due to the fact that the affected server is a virtual machine and thus cannot set the system time on the host machine. This could be the case here because this is about a virtual machine.
Asking an acquaintance who administrates the host machine for help, he affirmed that the time on the host is correct. He suggested that the problem could be on account of a wrong timezone setting. By executing

dpkg-reconfigure tzdata

I corrected the timezone in the setup and there it was: The correct server time. So the actual problem was not that ntpdate is not allowed to set the time – I assume this is really because of a restriction of the virtual machine. Sometimes the solution can be found at a different spot.

[](javascript:void(0))

相关文章

  • ntpdate[1103]: Can't adjust

    To have a correct server time ntpd is a commonly used dae...

  • Ubuntu Server 18.04 时间校对

    尝试ntpdate 校时sudo apt install ntpdate -ysudo ntpdate cn.po...

  • linux时间同步

    安装ntpdate yum -y install ntpdate 同步网络时间 ntpdate -u ntp.ap...

  • LInux修改时区

    第一种: yum -y install ntp /sbin/ntpdate pool.ntp.org 第二种: T...

  • Can't convert to dimension t

    具体异常 更具体细节的异常栈我就找不出来了(因为我已经修复好了并且不能复现了哈哈哈哈),只能在网上找了一个类似的。...

  • Can't explain

    Why should I stay here? My affection for you is sincere. ...

  • adjust

    once you opened the phone to play,first start you just ...

  • adjust

    逐渐适应自己是个悲观厌世的人,对于回到过去这种幻想我只想回到还没出生那段日子然后用脐带把自己勒死。虽然有个“...

  • Linux联网同步时间

    首先安装 ntpdate 命令:yum install -y ntpdate 接着执行如下命令开始同步:ntpda...

  • so  good  that  they can't  

    说干就干,说走就走——只有2015年让我那么用力的心跳,去生活。 25岁左右的年纪,优秀的人都在折腾。 25岁也是...

网友评论

      本文标题:ntpdate[1103]: Can't adjust

      本文链接:https://www.haomeiwen.com/subject/eiscyftx.html