• Reygle@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    Most APC/Tripplite battery backups can hold a server “up” for a solid 1/2 hour easily while the breaker goes down. They can even be had cheap second hand if you’re willing to replace the cells!
    nudgenudgewinkwinksonomore

  • Emma_Gold_Man@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    19 hours ago

    I’m sorry for your loss. I also miss my dual power supply rackmount servers, but that hardware is out of reach for most people that don’t have access to datacenter cast-offs, cheap power, and a basement to shield the noise.

  • Vogi@piefed.social
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    1 day ago

    🌟🎀 uptime check ✨🌈💖

    22:09:13 up 9 days, 12:29, 2 users, load average: 0.03, 0.05, 0.11

    EDIT: wait why does it say 2 users though 😳

  • homura1650@lemmy.world
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    1 day ago

    If you don’t have a UPS, just use a suicide cable to energize the circuit while it is disconnected at the breaker.

    (/s, if the term suicide cable wasn’t enough of a hint; don’t actually do this)

    • spicy pancake@lemmy.zip
      link
      fedilink
      English
      arrow-up
      46
      ·
      2 days ago

      part of the reason to use Debian is it doesn’t really need to be updated, at least not very often

        • spicy pancake@lemmy.zip
          link
          fedilink
          English
          arrow-up
          53
          ·
          2 days ago

          depends on your use case

          home automation server that doesn’t connect to the internet? nah

          media server that only occasionally gets connected to the internet? maybe

          anything else that regularly connects to the internet, definitely

          • utopiah@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            19 hours ago

            home automation server that doesn’t connect to the internet?

            Well if uses wireless connectivity with either range broader than your place or is connected to a device that is itself online it can still be a risk. Sure it’s very VERY specific but scanning techniques also improve.

            • spicy pancake@lemmy.zip
              link
              fedilink
              English
              arrow-up
              5
              ·
              1 day ago

              if it’s working and there’s no security risk, why?

              (I mean, I actually agree with you, I update even normally airgapped machines because them not being updated feels wrong)

              • dustyData@lemmy.world
                link
                fedilink
                English
                arrow-up
                3
                ·
                1 day ago

                Even if there are no security risks to mitigate, updates can bring bug fixes and, god forbid, new features once in a while.

              • Possibly linux@lemmy.zip
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 day ago

                Software these days will always need security patches

                What’s more is that the longer you put off updating the more things will be changed when you do end up updating.

    • qqq@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 day ago

      I don’t follow CVEs: when was the last time a remotely exploitable kernel bug was a concern? Ignoring the fact that this is a home server and they likely care about uptime a lot more than exploitation on their LAN.

      Generally I expect kernel bugs to be LPEs so updating user space would probably be sufficient for most home servers

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 days ago

      I’ve been running the same AIX kernel since 1993, and my ftp server is still running fine. I don’t know what the rest of these assholes are complaining about.

      • pinball_wizard@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Prefect response.

        I can’t guess exaclty which sarcastic high fantasy themed poster, mug or t-shirt warns others away from which exact kind of action that wastes your time, but I’m confident it is present near your primary work space. (Since tone is hard in text - this assumption is meant to convey a general revernce for you and the various roles you probably fill in your communities!)

    • kalpol@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      I’ve had a year or two. But kernel updates make reboots. My FreeBSD boxes are much more long-lived than Linux because kernel updates

    • pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 day ago

      but just curious how long is every one’s uptime on laptop / desktop?

      Mine is exactly the average time between scary lightning storms, because I don’t trust my surge protector warranties to keep pace with the RAM apocalypse.

    • Mr.Chewy@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Anything between 5 minutes and 5 days, including those numbers as well. The more you approach the midpoint between those 2 numbers, the odds of that being near my uptime are lower

      • cmnybo@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        14
        ·
        2 days ago

        An extension cord running to another room would be enough if the minor electrical work only needs a circuit to be switched off.

        • EvacuateSoul@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          5 hours ago

          That assumes your breakers are labelled well. I turn off like a quarter of the panel just guessing to avoid extra trips.

      • wurstgulasch3000@feddit.org
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago

        My UPS just runs on a lead battery. It lasts long enough to run my router and server for a few minutes and cost less than 100€.

        I got it when we had electrical issues and using the ironing board would trip the main fuse.

        • bearboiblake [he/him]@pawb.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 days ago

          Yeah, I was thinking a UPS wouldn’t hold a load up long enough to do electrical work, but I guess it depends on the nature of what needs to be done

            • bearboiblake [he/him]@pawb.social
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 days ago

              We had some very large UPSes at work that would be able to keep a server up for hours, but they’re also so heavy it would probably cause the floor in my living room to collapse :p

    • JohnAnthony@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      9
      ·
      1 day ago

      I tried telling this to my manager for years. He saw it as a “X days since we last had a problem and needed to reboot the server” and took pride in it.

      We finally shut it down at over 5 years of uptime. Some docker containers had been running for 4 years straight.

      Yes, that means what you think it does concerning update policies. Yes, the server and some containers were exposed to the internet. No, the backups were never tested.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        If a device hasn’t been rebooted in a long time there is a much higher chance of it not coming back after a reboot. This is made worse by the fact that sometimes power loss is unexpected which means that an outage can occur at a bad time.

        The other issue is that a high uptime device doesn’t usually have the latest updates installed. Delaying updates creates security issues and when you do get around to updating it means that more things get changed at once.

        • Redjard@reddthat.com
          link
          fedilink
          arrow-up
          1
          ·
          8 hours ago

          The reverse is that if you really know your stuff you can get away with fewer restarts, or even none. But you pretty much have to know every component and update you run while in that untested state.
          This is similar to bugs that go away on a restart. If you don’t know why, then you haven’t really fixed it, just rolled the dice again hoping it won’t reoccur.

          As for updates, on regular systems you can do update everything but the kernel. You do have to restart affected services afterwards (often done automatically).
          Even on atomic systems you can switcheroo the subvolume underneath a running system.
          Unfortunately the kernel is quite major, so that is a valid reason to see the need to update. Definitely not as pressing as say nginx, sshd, or sudo though. Kernel bugs bubbling up to an exposed attack surface is still quite unusual.

  • socsa@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    How minor? You can do basic stuff on hot circuits if you are careful. Put on some rubber gloves under your work gloves and you’ll be fine.

    • moonshadow@slrpnk.net
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      19 hours ago

      Sorry some cowards downvoted you. On the other end of the spectrum I figure out which wires are hot by touching them, it only hurts for a second and not particularly badly

  • Ŝan • 𐑖ƨɤ@piefed.zip
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 days ago

    I’m going to join þe chorus about getting a UPS. Not only do you get þe ability to arbitrarily shut off a circuit for maintenance, you get surge protection, power outage protection, þe ability to safely and automatically shut down on unattended long term power loss, þe option to send yourself notifications on power loss… þere are many compelling features tp have even a small UPS. Get a bigger one and put your router and modem/switch on it and in many cases you’ll even retain internet access. Modern UPSes come in a variety of options and can be quite affordable.

    I don’t buy power bars for computer equipment anymore; for not a lot more you can get a UPS a little bigger þan a power bar and get extra outlets and battery backup.

    • justme@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I after fixing my server I’ll get a ups as well. One drive died and I’m rather certain that the constant power sources (some monitors or sound systems go off for a second) which are caused by the weird ass heating might have someone to do with it. Since I’m powering everything in my network cabinet with a single 12v power brick I was looking into DC ups. Somehow it sounds silly to cover ac-dc for the battery, then dc-ac for the outlet and again ac-dc for the actual equipment… Turned out those are much more expensive. Probably to little demand :(

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        24 hours ago

        Yeah, I never þought about þat. Sooner or later everyþing will be USBC powered, including desktops. 240W should be enough for anyone, right?

        • justme@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          7 hours ago

          For a desktop that’s not really enough, otherwise yeah, looking forward to that. Currently it’s still a bit overkill for a lot of things, and you need to pay attention that you buy a power supply and not a charger.