• Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I like having a consistent update and reboot schedule. Uptime feels overrated over stability and clearing the RAM occasionally.

    I definitely have some Docker containers that randomly stop working, and they are more often consistently fixed by a reboot of the machine rather than a reboot of the container or the Docker service.

    • yeehaw@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Not to mention the security implications of not rebooting after certain updates.

    • billwashere@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      Yeah that’s about the only time I have to do reboots at work which are 99% linux. Well the production ones anyway.

      Or the other reason is my lab having power issues due to malfunctioning UPSes, faulty NEMA L6-30 plugs, janky 240v circuit breakers or… I’m beginning to think my lab is electrically cursed.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Was about to say, “or if you’re running Arch, the last time you updated the kernel or systemd version, so probably last week or summit.”

  • chronicledmonocle@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Pretty sure everybody is missing the joke. The joke is that Debian packages are so stable and stale that you likely will need a reboot before an update.

    Also, it’s a joke…please patch your boxes, k?

  • RattlerSix@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I got obsessed with uptime in the early 2000s, but for my desktop Slackware box. It ran a bunch of servers and services and crap but only for me, not heavy loads of public users. Anyway, I reached 6 years of uptime without a UPS and was aiming for 7 when a power outage got me.

    • moseschrute@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Skill issue. Next time you can open up the computers power supply while it’s running, splice in a second power cable, and attach a UPS without powering down or getting electrocuted.

      For legal reasons, /s

  • J_on_Lemmy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago
    • Uptime : up 2 weeks, 5 days, 2 hours, 7 minutes

    Had to reboot due to Jellyfin weirdness, It’s not happened since so maybe it was patched whatever happened.

    • CarbonatedPastaSauce@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      They screwed up their upgrade script in the release around then. I spent an hour manually fixing it on my system. I’d imagine they sorted it with a point release shortly after but I haven’t checked.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Does NixOS apply kernel updates live? I can’t recall from when I used it.

  • Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    On my Gentoo server, uptime:

    • 21:47:56 up 2455 days, 15:09, 1 user, load average: 0.00, 0.01, 0.00

    Solid.

    Would have been double that by now if not for the fire.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      You forgot to say “this is fine”, I take it?

      Joking aside, I hope you didn’t lose anything. Was it a big fire?

      • Digit@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        Those who manage the dedicated server racks service kept my stuff intact. Thankfully. Just disrupted my uptime.

        [User “error” since, has cost me a TB of data. “Error”, fearquoted, because it was intentional… probably unnecessary clearing of space, partly regretted since.]

        I don’t know how big the fire was, happened over 1000 miles away from here.

        So, it really was fine. :3

  • TerraRoot@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Heard of tuptime? I’ve been using it for a while now, I think I like it.

    System startups: 151 since 18:00:05 10/11/15 System shutdowns: 137 ok + 13 bad System life: 9yr 223d 1h 27m 47s

    Longest uptime: 106d 5h 34m 28s from 14:17:10 26/03/22 Average uptime: 23d 4h 32m 0s System uptime: 99.81% = 9yr 216d 12h 31m 51s

    Longest downtime: 4d 23h 30m 48s from 10:36:53 14/09/23 Average downtime: 1h 2m 46s System downtime: 0.19% = 6d 12h 55m 56s

    Current uptime: 25d 0h 34m 25s since 20:25:37 15/11/25

  • JovialSodium@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I’ve got an OpenBSD based router with ~4 hours of battery backup. If I ever stopped futzing around with it, the uptime would be fairly close to when the last version update was. (They’ve got a release cadence of about 6 months).

  • nomad@infosec.pub
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Debian admin here. Even Debian gets regular kernel upgrades that like a reboot afterwards. Security updates are more important than uptime. Also regular testing for clean recovery after a reboot is a must so a power outrage doesn’t bring any new surprises with it. Also test your backup restores regularly.

    • pHr34kY@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      As someone running a UPS on my ubuntu server, “uptime” represents the time since the last kernel release, and not much else.

    • Zeroc00l@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Novice homelaber here, is this just a case of apt update & upgrade or is there different commands for security and kernel updates? Also what’s your preferred backup/restore software? Thanks!

      • Ghoelian@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        Nope it’s just apt update & upgrade. Iirc apt tells you when the kernel was updated and needs a reboot as well.

          • Samsy@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            2 months ago

            I configured restic once, forget about it and saved my files because it was making backups since forever.

          • zr0@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            Oh, never heard about it. A quick research showed me that restic is a very viable solution. Thanks for mentioning it, I added it to my comment.

            While researching, I also came across a fancy WebUI, which is mostly what non-CLI users want: backrest

      • nomad@infosec.pub
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Kernel updates are usually held back and need to be selected manually. E.g. apt-get install linux-image-amd64.

        I prefer rsync for private backups and employ bareos in my company for all servers.

      • cRazi_man@europe.pub
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        2 months ago

        I’m not the person you asked the question of. I’m a fellow novice homelaber.

        I use Kopia to backup my data folders and Docker container data. Works really well. The project for this weekend is to set offsite backups to be uploaded to iDrive.

        When I update I use this:

        sudo apt update && \ sudo apt upgrade -y && \ sudo apt full-upgrade -y && \ flatpak update -y 2>/dev/null; \ sudo apt autoremove -y && \ sudo apt autoclean && \ sudo journalctl --vacuum-time=7d

          • jcr@jlai.lu
            link
            fedilink
            Français
            arrow-up
            0
            ·
            2 months ago

            Incredible that it’s not written everywhere, I always wanted to use something like this without the " update && upgrade" which looks like is not working oftentimes

            • TerraRoot@sh.itjust.works
              link
              fedilink
              arrow-up
              0
              ·
              2 months ago

              Is it really not written? I saw apt upgrade --update and knew the standard shortcut would be -u, but that didn’t work so I tried -U, bingo bongo off I went.

            • JargonWagon@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              2 months ago

              Your note is very interesting about the difference between the commands and how autoremove will automatically remove stuff before or after the upgrade is performed. Should it always be done after, or are there instances when running it before is more beneficial? Is there any need to do both like this:

              # sudo apt --update --autoremove upgrade -y && sudo apt autoremove -y
              
              
              • Arthur Besse@lemmy.ml
                link
                fedilink
                English
                arrow-up
                0
                ·
                2 months ago

                I can’t really imagine a benefit to --autoremove except for keeping old packages a bit longer before removing them.

                Eg, if you run apt --update --autoremove upgrade -y once a day you’ll keep your prior-to-currently-running-version kernel packages a day longer than if you ran autoremove immediately after each upgrade.

                To make things more confusing: the new-ish apt full-upgrade command seems to remove most of what apt autoremove wants to… but not quite everything. 🤷

    • Pika@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      I haven’t had a kernel update on Debian that triggered the “you should restart” message in quite some time. I was under the understanding that most newer systems now use splicing at the kernel level to not require periodic reboots.

      • CrazyLikeGollum@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        I haven’t seen it in a while either, but also, if there is a kernel update, uname -s always returns the old kernel until a reboot.

    • FlexibleToast@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Yeah, people that brag about uptimes are just bragging about the fragility of their infrastructure. If designed correctly you should be able to patch and reboot infrastructure while application availability stays up.

      • Trainguyrom@reddthat.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        With an uptime of greater than 5 years I’m going to be concerned about the system potentially not coming back up after a reboot/power outage, especially for physical hardware

        At a bank I worked at, we had an old IBM Power server which was at that point purely used for historical data. It had multiple years of uptime and was of course a good 10+ years old. When we went to take it offline, we actually just disabled the nic on the switch so we could reduce the number of powercycles it would see in fear that it would not power on anymore. Theoretically the data on it is purely historical, backed up and not needed, but there was enough question marks on each of those fronts we just played it safe

  • TootSweet@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Huh. Only 11 days on the Raspberry Pi I’m using as a “desktop system” right now. (Arch Linux Arm, btw… though Arch Linux Arm sucks now-a-days.)

    Let’s check my RPi-based NAS:

    [tootsweet@mynasserver ~]$ uptime
     19:56:07 up 212 days, 18:43,  4 users,  load average: 0.16, 0.04, 0.01
    

    Also not as long as I’d have guessed.

    • partial_accumen@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      My RPi uptime on one project will never exceed 4 hours.

      I’ve got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can’t delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.

      I can hear the horror and gnashing of teeth of real developers as they read this.

      • shalafi@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        I’m a sysadmin and I’m weeping, gnashing my teeth and rending my garments. 😆 And I’ve never done anything janky like that. Ever.

        • partial_accumen@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Oh, there’s even more jank in this thing than the reboot workaround described above!

          I have 3 windows displaying different metrics on this display powered by the RPi. Because of the animation of each metric rendered on the display, higher value metrics will consume more CPU. Since each is a separate process, the animation in the displays would be different for each window by without any modifications. So to make each of the 3 display’s animations operate at the same relative speed, I do a calculation of how the number of objects being displayed for the metric, then add an amount of invisible (well, black on black) objects to each window so to equal a fixed amount of the animation speed I want resulting in each window having the exact same number of objects and the animations move at the same speed.

          This works surprisingly well. The only time I have to monkey with the fixed value is if I’m using it on faster or slower Raspberry Pis. For example, I’ll have a lower number of final fixed objects for an RPi 3 rather than a higher number of fixed final objects for a faster RPi 4.

      • ozymandias117@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        As a real developer…

        I just remember that airplanes have “reboot the plane every 51 days” to prevent an overflow from crashing the plane in their maintenance manuals

        So, like, yours can be improved, but it’s not safety critical like other reboot requirements…

      • fayoh@sopuli.xyz
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        You just lack imagination. Some hikvision security cameras (the large, very expensive enterprisey ones) restart every couple of days due to “buildup of cosmic radiation”.

        No matter how competent you are as a developer, there is no escaping cosmic radiation! 😉

  • Valarie@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    At some point when I am less busy again I think I am gonna swap back to a debian based system because my experience on arch and red hat systems just hasnt been as good (this may be because I started on Debian based systems and keep trying to use commands that dont work on the other ones out of muscle memory)

    I get bored every so often and move all the important stuff to an external drive or a separate internal one and completely change my os

    I am on manjaro but I have also run arch, red hat, void, mint, Debian, Ubuntu and a bunch of others that I either put on laptops or something similar as messing around with devices

    Tails and slitaz have to be my favorite to run from a USB but peppermint isn’t the worst

    • Estebiu@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I just did the contrary. Moved from debian to arch. After the update to trixie my network stack completely died somehow, so I’m going back to arch.

    • Tavi@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      I was introduced to homelab by trying to figure out how my uncles setup. It ran for 4 years after he died, 11 years uptime. The estate probate prevented anyone from touching the equipment for the legal fights, and I get a kick out of thinking of how smug he would have been about it.