From owner-freebsd-questions@freebsd.org Sat Jan 26 22:01:49 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 353CA14B014D for ; Sat, 26 Jan 2019 22:01:49 +0000 (UTC) (envelope-from scott.gasch@gmail.com) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA6D06F778 for ; Sat, 26 Jan 2019 22:01:47 +0000 (UTC) (envelope-from scott.gasch@gmail.com) Received: by mail-wr1-x430.google.com with SMTP id u4so13923351wrp.3 for ; Sat, 26 Jan 2019 14:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=OgUm0rNCjmg97+oNyXun0GxPssTsegx41lpWnXGW6l0=; b=UoujOGK6ZiYrEHPNVNgXI7fF6yE1N1v9CtIU783ck51lYfYAa2k17fbKBbp6j2jyCe p9yJvZeADhfcP7Bp+Cy/sQMNn81QmJKVVBSd0SojjyLQgwq9IPcB1XyUFuM8JfLvoQws JbbqRy/n2YtqHf8TS/g3bpScx+zTb/n29KGc5iXK0S+Mz1/PIbUnza27CQS6jBhvUTel eOLE+SYxouU8DfOjFDHNyaUQbk7HCTStbRGporuCHGqxyHmplUJu9+xYJdw7zIaKpudZ byoD4uzKMeFEQMgb4BINwrTgdkB0EHBqBJdF+fI6drE/QBjJd2goI44/hY36qKBsq2ac gEHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=OgUm0rNCjmg97+oNyXun0GxPssTsegx41lpWnXGW6l0=; b=OBxbF+5fMT9+PNvM327XTu5e76sUJxVPdv/6q5VnarRCAkJcdQvfp44/cjAsAqbvF+ s9Swk5QEQw30+szUN4hhQF0W+4Y0aqt5zLnI1EIBQw8+pAme/nWvL1t0LHANgbEAmKGZ hc0rP7YSKdWlUvLaK4+fgy/qET93eb7u2K+oTIQfuyEg4sqj3qX3c34PNhx1PGFcsls5 BWKEbRu+eVabf3V+uHqSE/w2yq+UCvTSRORpR7nAMQ8qzAg6d/9SCJOdgZGelP8fJF2j nm5qno+JBqY4U7xg5V/MhYydgCUrBZ0zJl4A/59qwkDC1DoVEUnH3LLPGZfh7QJUvNSP wwMg== X-Gm-Message-State: AJcUukemX20BdNJBFCNHPAkRtX87TmKBGYT57bR5kDT9drfgMKp3d0Xv VUNKeqJ5X6w4l6zOmMRJfU+6Ti4wnp/1Fcwu74hLoTws X-Google-Smtp-Source: ALg8bN7/qcjf15A4bsoZhN8J0FbKryUdxZ4A6NVmLOpc/5roHFEbskx9TscZCwyXobE/l+iL7kcpi+IaA1k5DRRzA80= X-Received: by 2002:adf:e5c4:: with SMTP id a4mr15561505wrn.157.1548540106032; Sat, 26 Jan 2019 14:01:46 -0800 (PST) MIME-Version: 1.0 Reply-To: scott@gasch.org From: Scott Gasch Date: Sat, 26 Jan 2019 14:02:00 -0800 Message-ID: Subject: ntpd hangs on boot but works afterwards To: freebsd-questions@freebsd.org X-Rspamd-Queue-Id: BA6D06F778 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UoujOGK6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of scottgasch@gmail.com designates 2a00:1450:4864:20::430 as permitted sender) smtp.mailfrom=scottgasch@gmail.com X-Spamd-Result: default: False [-6.75 / 15.00]; HAS_REPLYTO(0.00)[scott@gasch.org]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(-2.77)[ip: (-9.60), ipnet: 2a00:1450::/32(-2.26), asn: 15169(-1.93), country: US(-0.08)]; RCVD_IN_DNSWL_NONE(0.00)[0.3.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jan 2019 22:01:49 -0000 Hi, I have a system I recently upgraded to FreeBSD 12 and started getting a weird problem with ntpd. What happens is, on boot, rc.ntpd seems to hang requiring me to go to the console and hit ^C. When I do so it says something like "/etc/rc.d/ntpd interrupted" and continues to boot successfully (including starting sshd later in the process and letting me ssh into the machine). When I ssh in, ntpd is not running. If I just do a /etc/rc.d/ntpd start at that point it works just fine as does a service ntpd start. I am setting the ntpd_sync_on_start rc variable and I do see the -g option on the ntpd process when it starts. The machine clock should be pretty close to the actual time... so I don't suspect this is due to a huge clock skew. It does seem like the network is up and running by the time it hangs -- I see some DHCP messages earlier in the boot process making me believe that we have an IP address and should not be stuck trying to talk to the ntp peers. Does anyone have ideas or seen this before? Thanks in advance. Here are some relevant configs: # *uname -a* FreeBSD wannabe 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 GENERIC amd64 # *grep ntp rc.conf* ntpd_enable="YES" ntpd_sync_on_start="YES" # *cat ntp.conf | grep -v "^#"* server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 server 0.us.pool.ntp.org iburst server 1.us.pool.ntp.org server ntp.ucsd.edu server ns.nts.umn.edu server 0.freebsd.pool.ntp.org iburst server 1.freebsd.pool.ntp.org restrict default limited kod nomodify notrap nopeer noquery restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap restrict -6 default limited kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1 restrict 127.127.1.0 driftfile /var/lib/ntp/ntp.drift leapfile "/var/db/ntpd.leap-seconds.list"