• My question isn't about the fault, its about how to find it.

    From The Natural Philosopher@21:1/5 to All on Fri Sep 13 14:34:44 2024
    Yesterday I brought up a brand new Pi Zero 2 W and after a bit, it was
    all hunky dory.
    Sometime last might, it went offline. No route to host.
    I rebooted it and it lasted half an hour. Then it wouldn't reboot at
    all. Its now sitting next to the wifi router is configured for and is
    for now accessible.
    I have no HDMI adapter for it., Its headless and normally accessible via
    ssh.

    What I want to know is where in the logs to start looking for any issues?

    The most interesting thing is that journalctl is full of unrelated
    messages *all the time I could not access* the PI Zero 2W

    Mostly related to

    Sep 13 11:12:24 PiFi2 systemd[715]: rpi-connect-wayvnc.service:
    Scheduled restart job, restart counter is at 1515.
    Sep 13 11:12:24 PiFi2 systemd[715]: Stopped rpi-connect-wayvnc.service -
    WayVNC process used by Raspberry Pi Connect.
    Sep 13 11:12:24 PiFi2 systemd[715]: Starting rpi-connect-wayvnc.service
    - WayVNC process used by Raspberry Pi Connect...
    Sep 13 11:12:24 PiFi2 systemd[715]: rpi-connect-wayvnc.service: Control
    process exited, code=exited, status=1/FAILURE
    Sep 13 11:12:24 PiFi2 systemd[715]: rpi-connect-wayvnc.service: Failed
    with result 'exit-code'.
    Sep 13 11:12:24 PiFi2 systemd[715]: Failed to start
    rpi-connect-wayvnc.service - WayVNC process used by Raspberry Pi Connect.

    That bunch was followed by an ssh session closed message. I didnt close
    the session.

    [note: I have disabled VNC and wayland in raspi-config - how to remove
    vnc entirely?]
    [Ah. apt-remove rpi-connect seems to work okay ]

    So it appears that the machine was up, but simply wasn't connected
    TCP/IP/Wifi wise?

    It did not respond even to pings. or presumably ARPS...

    Ah. I found something.
    Sep 13 09:42:54 PiFi2 NetworkManager[529]: <info> [1726216974.2842]
    device (wlan0): Activation: (wifi) access point 'Larksrise' has
    security, but secrets are required.
    Sep 13 09:42:54 PiFi2 NetworkManager[529]: <info> [1726216974.2948]
    device (wlan0): Activation: (wifi) connection 'Larksrise' has security,
    and secrets exist. No new secrets needed.
    Sep 13 09:43:19 PiFi2 NetworkManager[529]: <warn> [1726216999.7653]
    device (wlan0): Activation: (wifi) association took too long

    Now googling suggest that may be randomized MAC addresses on the wlan0 interface, or 802.11n enabled on the router. Neither is active as far as
    I know.

    *Well I have possibly fixed it.*

    By explicitly creating
    /etc/NetworkManager/conf.d/30-mac-randomization.conf as [device-mac-randomization]
    wifi.scan-rand-mac-address=no

    So far it's stable after an hour or two

    --

    “The fundamental cause of the trouble in the modern world today is that
    the stupid are cocksure while the intelligent are full of doubt."

    - Bertrand Russell

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Pancho@21:1/5 to The Natural Philosopher on Sat Sep 14 08:12:43 2024
    On 9/13/24 14:34, The Natural Philosopher wrote:
    Yesterday I brought up a brand new Pi Zero 2 W and after a bit, it was
    all hunky dory.
    Sometime last might, it went offline. No route to host.
    I rebooted it and it lasted half an hour. Then it wouldn't reboot at
    all. Its now sitting next to the wifi router is configured for and is
    for now accessible.
    I have no HDMI adapter for it., Its headless and normally accessible via
    ssh.


    Maybe a Serial Console would help?
    <https://www.ebay.co.uk/itm/254214795077?>

    Reading logs is one thing, but immediately being able to test a
    hypothesis is much better.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Natural Philosopher@21:1/5 to Pancho on Sat Sep 14 11:33:48 2024
    On 14/09/2024 08:12, Pancho wrote:
    On 9/13/24 14:34, The Natural Philosopher wrote:
    Yesterday I brought up a brand new Pi Zero 2 W and after a bit, it was
    all hunky dory.
    Sometime last might, it went offline. No route to host.
    I rebooted it and it lasted half an hour. Then it wouldn't reboot at
    all. Its now sitting next to the wifi router is configured for and is
    for now accessible.
    I have no HDMI adapter for it., Its headless and normally accessible
    via ssh.


    Maybe a Serial Console would help?
    <https://www.ebay.co.uk/itm/254214795077?>

    Reading logs is one thing, but immediately being able to test a
    hypothesis is much better.

    Prolly easier to get an HDMI and USB adapter and pop a monitor and
    keyboard on it.
    I spent hours yesterday googling for PI ZERO 2 W WIFI DISCONNECTS and
    everybody has the same problem. Must be 1000 posts out there. It seems
    that the 2W is basically a piece of shit. People try SD cards that work perfectly in the Zero W, but don't work in the 2W.

    I tried every methodology suggested, and its still doing it.

    I am tempted to buy the old version, two of which have been faultlessly connected to the same wifi point for several years....

    Unfortunately I soldered a header block to this one so I can't return
    it. Bin job probably.


    --
    There is something fascinating about science. One gets such wholesale
    returns of conjecture out of such a trifling investment of fact.

    Mark Twain

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