• Sabata@ani.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      If you know how your setup works, then that’s a great time for another project that breaks everything.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    27
    ·
    1 month ago

    logging is probably down

    You do, of course have a dedicated rsyslogd server? An isolated system to which logs are sent, so that if someone compromises another one of your systems, they can’t wipe traces of that compromise from those systems?

    Oh. You don’t. Well, that’s okay. Not every lab can be complete. That Raspberry Pi over there in the corner isn’t actually doing anything, but it’s probably happy where it is. You know, being off, not doing anything.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    24
    ·
    1 month ago

    You have remote power management set up for the systems in your homelab, right? A server set up that you can reach to power-cycle other servers, so that if they wedge in some unusable state and you can’t be physically there, you can still reboot them? A managed/smart PDU or something like that? Something like one of these guys?

    Oh. You don’t. Well, that’s probably okay. I mean, nothing will probably go wrong and render a device in need of being forcibly rebooted when you’re physically away from home.

    • FauxLiving@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 month ago

      Oh. You don’t. Well, that’s probably okay. I mean, nothing will probably go wrong and render a device in need of being forcibly rebooted when you’re physically away from home.

      *furiously adds a new item to the TODO list*

    • Fmstrat@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      I built an 8 outlet version of those with relays and wall outlets for… a lot less.

    • tychosmoose@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      If you do have the smart PSU and power management server you probably also went down the rabbit hole of scripting the power cycling, right? Maybe made that server hardened against power loss disk corruption so it can be run until UPS battery exhaustion.

      What if there is a power outage and NUT shuts everything down? Would be nice to have everything brought back up in an orderly way when power returns. Without manual intervention. But keeping you informed via logging and push notifications.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    23
    ·
    1 month ago

    All of those systems in your homelab…they aren’t all pulling down their updates multiple times over your network link, right? You’re making use of a network-wide cache? For Debian-family systems, something like Apt-Cacher NG?

    Oh. You’re not. Well, that’s probably okay. I mean, not everyone can have their environment optimized to minimize network traffic.

    • the_tab_key@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 month ago

      I set this up years ago, but then decided it was better to just install different distros on each of my computers. Problem solved?

  • MonkeMischief@lemmy.today
    link
    fedilink
    English
    arrow-up
    16
    ·
    1 month ago

    Don’t worry, you’re one Docker pull away from having to look up how to manually migrate Postgres databases within running containers!

    (Looks at my PaperlessNGX container still down. Still irritated.)

  • paequ2@lemmy.today
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    1 month ago

    Actually, one thing I want to do is switch from services being on a subdomain to services being on a path.

    immich.myserver.com -> myserver.com/immich
    jellyfin.myserver.com -> myserver.com/jellyfin
    

    I’m getting tired of having to update DNS records every time I want to add a new service.

    I guess the tricky part will be making sure the services support this kind of routing…

    • suicidaleggroll@lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      ·
      1 month ago

      Why are you having to update your DNS records when you add a new service? Just set up a wildcard A record to send *.myserver.com to the reverse proxy and you never have to touch it again. If your DNS doesn’t let you set wildcard A records, then switch to a better DNS.

    • shadowtofu@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 month ago

      I had the same idea, but the solution I thought about is finding a way to define my DNS records as code, so I can automate the deployment. But the pain is tolerable so far (I have maybe 30 subdomains?), I haven’t done anything yet

  • FauxLiving@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    1 month ago

    The comments in this thread have collectively created thousands of person-hours worth of work for us all…

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 month ago

    You have an intrusion detection system set up, right? A server watching your network’s traffic, looking for signs that systems on your network have been compromised, and to warn you? Snort or something like that?

    Oh. You don’t. Well, that’s probably okay. I mean, probably nothing on your network has been compromised. And probably nothing in the future will be.

  • jeffep@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 month ago

    Can’t believe nobody here mentioned nixOS so far? How about moving all of your configs in a flake and manage all of your systems with it?

    • FauxLiving@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 month ago

      I made a git repo and started putting all of my dot files in a Stow and then I forgot why I was doing it in the first place.

      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 month ago

        So that when setting up a new system, you can migrate all your user configuration easily, while also version-controlling it.

        • FauxLiving@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          1 month ago
          git commit --message 'So that when setting up a new system, you can migrate all your user configuration easily, while also version-controlling it.'
          
    • yabbadabaddon@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 month ago

      I already have Ansible to manage my system and I like to have the same base between my pc and my server build muscle memory.

      If I was managing a pc fleet I would consider NixOS, but I don’t see the appeal right now.

      • jeffep@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 month ago

        Okay, but why not create more work for yourself by rebuilding everything from scratch?

  • Fedegenerate@fedinsfw.app
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 month ago

    Going into spring/summer that’s ideal, I wanna go places do things. Mid winter, I’m feature creeping till something breaks.

  • nucleative@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 month ago

    Never run:

    docker compose pull
    docker compose down
    docker compose up -d
    

    Right before the end of your day. Ask me how I know 😂

    • shym3q@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 month ago

      compose up will automatically recreate with newer images if the new one were pulled. so there is no need for compose down btw

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

        You’re right. I got in the habit of doing that because I’m endlessly tweaking my .env files and I don’t think those reload unless you shut down first

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

      Right before the end of your day

      Oh, gosh, I did this last evening. I didn’t check what time it was, and initiated an update on some 70 containers. I have a cron that shuts down the server in the evening, and sure enough, right in the middle of the updates, it powered off. I didn’t even mess with it and went to bed. Re-initiated the update this morning, and everything is up and running. Whew!