AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1476532
Accepted
frankfalse
frankfalse
Asked: 2023-07-06 18:36:14 +0800 CST2023-07-06 18:36:14 +0800 CST 2023-07-06 18:36:14 +0800 CST

Por que o cliente timesyncd não recebe nenhuma resposta do servidor NTP (tempo esgotado na resposta)?

  • 772

No meu lubuntu 22.04 está ativo o serviço systemd-timesyncd. Este é o status deste serviço:

> systemctl status systemd-timesyncd

# this is the output of the previous command:
● systemd-timesyncd.service - Network Time Synchronization
     Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-07-06 12:21:43 CEST; 2min 54s ago
       Docs: man:systemd-timesyncd.service(8)
   Main PID: 1917 (systemd-timesyn)
     Status: "Idle."
      Tasks: 2 (limit: 2030)
     Memory: 1.3M
        CPU: 201ms
     CGroup: /system.slice/systemd-timesyncd.service
             └─1917 /lib/systemd/systemd-timesyncd

lug 06 12:21:55 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 185.125.190.57:123 (ntp.ubuntu.com).
lug 06 12:22:05 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 185.125.190.58:123 (ntp.ubuntu.com).
lug 06 12:22:15 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 185.125.190.56:123 (ntp.ubuntu.com).
lug 06 12:22:25 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 91.189.94.4:123 (ntp.ubuntu.com).

A saída mostra que o serviço está em execução e tenta se conectar ao servidor NTP ntp.ubuntu.com, mas não recebe nenhuma resposta (consulte as mensagens Timed out waiting for reply from ntp.ubuntu.com); este servidor pode ser acessado por ping, como podemos ver pela saída do seguinte comando:

> ping ntp.ubuntu.com
PING ntp.ubuntu.com (91.189.94.4) 56(84) bytes of data.
64 bytes from pugot.canonical.com (91.189.94.4): icmp_seq=1 ttl=53 time=30.0 ms
64 bytes from pugot.canonical.com (91.189.94.4): icmp_seq=2 ttl=53 time=29.8 ms
64 bytes from pugot.canonical.com (91.189.94.4): icmp_seq=3 ttl=53 time=29.8 ms

O firewall iptablesnão está ativo:

> sudo iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

Alguém pode me dizer por que o cliente timesyncd não recebe nenhuma resposta do servidor NTP ntp.ubuntu.com?

Obrigado

networking
  • 1 1 respostas
  • 40 Views

1 respostas

  • Voted
  1. Best Answer
    frankfalse
    2023-07-06T21:08:36+08:002023-07-06T21:08:36+08:00

    O problema estava no provedor de serviços de Internet

    Obrigado por seus comentários. Tentei me conectar a outra rede que é capaz de se conectar à Internet de outra maneira, em relação à rede que usei quando escrevi o post.
    Por esta outra rede e sem nenhuma modificação no arquivo de configuração /etc/systemd/timesyncd.confque é:

    [Time]
    #NTP=
    #FallbackNTP=ntp.ubuntu.com
    #RootDistanceMaxSec=5
    #PollIntervalMinSec=32
    #PollIntervalMaxSec=2048
    

    o cliente NTP systemd timesyncdpode sincronizar a data do sistema com o servidor NTP ntp.ubuntu.com.

    Na verdade, o status do serviço systemd-timesyncd.serviceé o seguinte:

    systemctl status systemd-timesyncd
    ● systemd-timesyncd.service - Network Time Synchronization
         Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
         Active: active (running) since Thu 2023-07-06 14:12:48 CEST; 46min ago
           Docs: man:systemd-timesyncd.service(8)
       Main PID: 2065 (systemd-timesyn)
         Status: "Initial synchronization to time server 185.125.190.56:123 (ntp.ubuntu.com)."
          Tasks: 2 (limit: 2030)
         Memory: 1.3M
            CPU: 203ms
         CGroup: /system.slice/systemd-timesyncd.service
                 └─2065 /lib/systemd/systemd-timesyncd
    
    lug 06 14:12:48 ceia-te systemd[1]: Starting Network Time Synchronization...
    lug 06 14:12:48 ceia-te systemd[1]: Started Network Time Synchronization.
    lug 06 14:12:13 ceia-te systemd-timesyncd[2065]: Initial synchronization to time server 185.125.190.56:123 (ntp.ubuntu.com).
    

    Portanto, sem nenhuma modificação na configuração do lubuntu e sem instalar nenhum outro pacote, o sistema funciona corretamente.

    • 1

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve