I’ve been having this issue very sporadically (sometimes a couple times a week, sometimes once a month). I’m curious as to how the more veteran folk here would try and narrow down the cause of this issue.

I can provide more info if needed!

Edit: More Info:

  • Using a static IP (no DHCP) through Netplan.
  • Malin@omg.qa
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Honestly I would replace Ubuntu with an actual operating system designed for servers.

    • Dax87@forum.stellarcastle.netOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      tbf i’m using ubuntu server because I’ve been using it on and off for a decade. Overall I’ve had no major issues. And its long-term support is one of the longest.

      There’s the thought of going RHEL-based which I have experience with from work too, so that is an option in the long run.

  • axzxc1236@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I have a TP-Link HS300 that connects to a AP running openwrt, at any moment I can wireguard to AP and use Kasa APP to turn on/off any machine (not the AP though).

    There is a Python package for kasa so one can use openwrt machine to detect if machine is down and automatically switch on and off if needed.

    • Dax87@forum.stellarcastle.netOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I was thinking of something like a local script to reboot the PC once internet isn’t reachable after 5 min or so, but only as a stopgap/workaround until I figure out the issue.

  • bunny@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Are you able to access the server’s Linux shell via KVM or out-of-band management during the Internet outage? If so, I would first check the kernel log for any errors. I’d then follow up with a PING to the local gateway within the same IP subnet to validate Ethernet connectivity. After that I’d start performing PINGs and traceroutes to subnets beyond the local gateway to see what’s going on with tcpdump capturing all interface traffic in the background.

    • Dax87@forum.stellarcastle.netOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I am able to access the Linux shell locally or on the local area network. From within I can ping the gateway, but nothing beyond that.

      Is there a tracert equivalent for Ubuntu?

      I will say I get this error when trying to ping www.google.com:

      ping: unknown host

      • fuser@quex.cc
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        if ping fails with the name but works with 8.8.8.8 then you’re losing DNS. set the nameservers locally on the server if you’re using a static IP.

          • fuser@quex.cc
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            it should - I think (I am not familiar with netplan) - but from what I can tell it it’s a utility that simplifies the local config tasks, when you apply it, I think it should be putting the nameservers in /etc/resolv.conf - but before you go down this rabbit hole, check whether 8.8.8.8 or 1.1.1.1 respond to a ping when pings to named servers don’t - if so, it’s definitely name resolution (which would be my first guess).