Tenho o Ubuntu Server 16.04 em execução no OpenVZ (provedor de hospedagem VPS) e tenho dificuldades em executar o ntp para sincronização de horário. Acabei de instalar o ntp ( apt install ntp
), mas quando eu tento, vejo
root@vps:~# ntpq -p
ntpq: read: Connection refused
Meu fuso horário local está correto
root@vps:~# dpkg-reconfigure tzdata
Current default time zone: 'Europe/Prague'
Local time is now: Mon May 9 08:40:44 CEST 2016.
Universal Time is now: Mon May 9 06:40:44 UTC 2016.
Quando tento recarregar o serviço ntp systemctl reload ntp.service
Failed to reload ntp.service: Job type reload is not applicable for unit ntp.service.
See system logs and 'systemctl status ntp.service' for details.
E quando eu corro systemctl status ntp.service
ntp.service - LSB: Start NTP daemon
Loaded: loaded (/etc/init.d/ntp; bad; vendor preset: enabled)
Active: active (exited) since Mon 2016-05-09 09:04:29 CEST; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 25429 ExecStop=/etc/init.d/ntp stop (code=exited, status=0/SUCCESS)
Process: 25487 ExecStart=/etc/init.d/ntp start (code=exited, status=0/SUCCESS)
May 09 09:04:29 vps systemd[1]: Started LSB: Start NTP daemon.
May 09 09:04:29 vps ntpd[25496]: proto: precision = 0.092 usec (-23)
May 09 09:04:29 vps ntpd[25496]: Listen and drop on 0 v6wildcard [::]:123
May 09 09:04:29 vps ntpd[25496]: Listen and drop on 1 v4wildcard 0.0.0.0:123
May 09 09:04:29 vps ntpd[25496]: Listen normally on 2 lo 127.0.0.1:123
May 09 09:04:29 vps ntpd[25496]: Listen normally on 3 venet0 127.0.0.2:123
May 09 09:04:29 vps ntpd[25496]: Listen normally on 4 venet0:0 myipv4:123
May 09 09:04:29 vps ntpd[25496]: Listen normally on 5 lo [::1]:123
May 09 09:04:29 vps ntpd[25496]: Listen normally on 6 venet0 [myipv6]:123
May 09 09:04:29 vps ntpd[25496]: Listening on routing socket on fd #23 for interface updates
E em / var / log / syslog
May 9 09:04:29 vps ntpd[25496]: Listening on routing socket on fd #23 for interface updates
May 9 09:04:29 vps ntpd[25496]: start_kern_loop: ntp_loopfilter.c line 1126: ntp_adjtime: Operation not permitted
May 9 09:04:29 vps ntpd[25496]: set_freq: ntp_loopfilter.c line 1089: ntp_adjtime: Operation not permitted
May 9 09:04:29 vps ntpd[25496]: cap_set_proc() failed to drop root privs: Operation not permitted
Eu também tentei
root@vps:~# ntpdate pool.ntp.org
9 May 09:19:47 ntpdate[25785]: Can't adjust the time of day: Operation not permitted
Alguém sabe o que há de errado com o meu NTP?
Obrigado.