• FreeBSD 12.2 system hangs in boot until CTRL-D

    From mikea@mikea.ath.cx@21:1/5 to All on Wed May 4 19:03:48 2022
    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after issuing a message about startng ntpd, until I hit CONTROL-D; After the CONTROL-D, it takes off and fnishes the boot nicely. Does anyone have any idea what the
    cause is, and how to fix it?

    Thanks in advance,
    Mike

    --
    Ah, yes, _The Dying Earth_: a wonderful title, greatly spoiled by the
    book.
    -- Nix, in a newsgroup inhabited by a better class of people

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From steve kargl@21:1/5 to mikea@mikea.ath.cx on Wed May 4 19:28:55 2022
    mikea@mikea.ath.cx wrote:

    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after issuing a
    message about startng ntpd, until I hit CONTROL-D; After the CONTROL-D, it takes off and fnishes the boot nicely. Does anyone have any idea what the cause is, and how to fix it?

    Is ntpd pointed at a valid ntp server? Is the date and system clock in
    the BIOS set correctly (I vaguely recall you need /etc/localtime).

    --
    steve

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lowell Gilbert@21:1/5 to steve kargl on Wed May 4 16:25:30 2022
    steve kargl <sgk@REMOVEtroutmask.apl.washington.edu> writes:

    mikea@mikea.ath.cx wrote:

    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after issuing a
    message about startng ntpd, until I hit CONTROL-D; After the CONTROL-D, it >> takes off and fnishes the boot nicely. Does anyone have any idea what the
    cause is, and how to fix it?

    Is ntpd pointed at a valid ntp server? Is the date and system clock in
    the BIOS set correctly (I vaguely recall you need /etc/localtime).

    An easy test would be to disable ntpd (probably by commenting
    "ntp_enable=YES" out of rc.conf). If the delay goes away, you
    know for sure that starting ntpd really is your problem.

    If the system starts fine without ntpd, you can then try starting
    it after boot. If it does not start that way, you can debug it
    with an otherwise fully operating system. If it does not start
    that way, you have to determine why it is unhappy with starting
    at boot time in particular.

    Good luck.

    --
    Lowell Gilbert, embedded/networking software engineer
    http://be-well.ilk.org/~lowell/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Eager@21:1/5 to mikea on Wed May 4 20:28:35 2022
    On Wed, 04 May 2022 19:03:48 +0000, mikea wrote:

    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after
    issuing a message about startng ntpd, until I hit CONTROL-D; After the CONTROL-D, it takes off and fnishes the boot nicely. Does anyone have
    any idea what the cause is, and how to fix it?

    Something is trying to read from the console. At the boot menu, select a verbose boot. That may give you a clue.




    --
    Using UNIX since v6 (1975)...

    Use the BIG mirror service in the UK:
    http://www.mirrorservice.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Sax@21:1/5 to mikea@mikea.ath.cx on Thu May 5 07:34:06 2022
    On Wed, 4 May 2022 19:03:48 -0000 (UTC), mikea@mikea.ath.cx wrote:
    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after issuing a
    message about startng ntpd, until I hit CONTROL-D; After the CONTROL-D, it takes off and fnishes the boot nicely. Does anyone have any idea what the cause is, and how to fix it?

    Hi
    Is a own DNS service like unbound running?
    If yes it's possible that ntpd is starting before DNS and cannot
    resolve it's adresses.

    Got this here. Was that the jail with unbound started after ntpd.
    man rcorder(8) helped me.

    Detlef
    --
    https://www.12schrittefrei.de/
    https://www.noart.de/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bob Eager@21:1/5 to Detlef Sax on Thu May 5 11:14:23 2022
    On Thu, 05 May 2022 07:34:06 +0000, Detlef Sax wrote:

    On Wed, 4 May 2022 19:03:48 -0000 (UTC), mikea@mikea.ath.cx wrote:
    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after
    issuing a message about startng ntpd, until I hit CONTROL-D; After the
    CONTROL-D, it takes off and fnishes the boot nicely. Does anyone have
    any idea what the cause is, and how to fix it?

    Hi Is a own DNS service like unbound running?
    If yes it's possible that ntpd is starting before DNS and cannot resolve
    it's adresses.

    How would that explain the Ctrl-D behaviour? (unless it's stopping and
    asking for information)



    --
    Using UNIX since v6 (1975)...

    Use the BIG mirror service in the UK:
    http://www.mirrorservice.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Detlef Sax@21:1/5 to Bob Eager on Thu May 5 15:06:47 2022
    On 5 May 2022 11:14:23 GMT, Bob Eager wrote:
    On Thu, 05 May 2022 07:34:06 +0000, Detlef Sax wrote:

    On Wed, 4 May 2022 19:03:48 -0000 (UTC), mikea@mikea.ath.cx wrote:
    When I boot my FreeBSD 12.2 system, it hangs during boot, rght after
    issuing a message about startng ntpd, until I hit CONTROL-D; After the
    CONTROL-D, it takes off and fnishes the boot nicely. Does anyone have
    any idea what the cause is, and how to fix it?

    Hi Is a own DNS service like unbound running?
    If yes it's possible that ntpd is starting before DNS and cannot resolve
    it's adresses.

    How would that explain the Ctrl-D behaviour? (unless it's stopping and
    asking for information)

    With Ctrl-D or Ctrl-C you stop the ntpd-start-script in /etc/rc.d.
    The ntpd starts nevertheless and next time it looks up what time it is
    upline the DNS is already up.

    grep ntpd /var/log/messages to know what really is going on your
    machine.

    Detlef
    --
    https://www.12schrittefrei.de/
    https://www.noart.de/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)