feddit.de has been giving “Server error” for some time but I read that the server is still working when using a Lemmy app. Tried the Photon front-end today and choosing feddit.de as instance.

My question (I’m just curious, I have no account on feddit.de) is : Can an alternative front-end on their server co-exist with the other server software ? I guess it would be a matter of installing Photon and then point nginx configuration to that. Or am I missing something crucial ?

  • Victor
    link
    fedilink
    26 months ago

    Nice down vote. Let’s discuss instead.

    I’m saying that the server shouldn’t go down just because new content can’t be added. You should get maybe a 500-series REST response or something. Not… nothing. Ideally it should write to disk. Ideally it should allow new content to be added. But uptime and content access is still more important than being able to write to disk. It should warn the admin of the serious errors, and explain to the user in some diplomatic/apologetic manner. But never go down completely. That’s not resilient at all.

    That’s my opinion. 👍

    • @KISSmyOSFeddit@lemmy.world
      link
      fedilink
      16 months ago

      Fun fact: Old school admins used to write a large-ish (~5% hdd space) file of random data to the drive right after installing the server. If the hard drive ran full without anyone noticing, you could just delete the file to get some breathing room to deal with the issue. It’s a very crude alarm system, but one you WILL notice when it goes off even if you ignore all emails.

      • Victor
        link
        fedilink
        1
        edit-2
        6 months ago

        ran full without anyone noticing

        alarm system, but one you WILL notice when it goes off even if you ignore all emails

        I’m slightly confused. They will notice it, but somehow it still happened without anyone noticing? I feel like I lost something in that text. 😅 What makes that trick such a good alarm system?

        • @KISSmyOSFeddit@lemmy.world
          link
          fedilink
          1
          edit-2
          6 months ago

          The alarm is that your server stops working, which you will definitely notice.
          But you can get it working again simply by deleting the file.

          • Victor
            link
            fedilink
            16 months ago

            lol okay. So that fixes nothing, except you’ll be able to get it running a bit faster, provided you’re even there to quickly react. But if this isn’t the case, like it wasn’t in the case of feddit, it’s exactly the same. No maintenance: server becomes unreachable/crashes just because there’s no disk space. Very fragile.

            Oh well. Status quo, I guess.

    • @Jarvis2323@programming.dev
      link
      fedilink
      16 months ago

      For the record I did not downvote.

      But I capitulate on your point. It would be great if every piece of software was written with resilience and uptime in mind.

      As a former sysadmin that sounds like a dream. But I don’t think I have ever seen that with any mainstream program that I’ve had responsibility for. Does that mean all those programs were bad? I don’t think so. We wouldn’t need sysadmins if all programs were written the way you describe.

      Programs can be written to auto rotate their logs, compact and reindex their db’s. Using browser updates as an example, they can even safely auto update and revert back on failure.

      How many programs actually do these things? My experience is next to 0. But I wouldn’t call them all bad or poorly written programs.

      • Victor
        link
        fedilink
        16 months ago

        For the record I did not downvote.

        Thank you. It’s alright, just aimed at whoever did. Sorry if it came off salty!

        How many programs actually do these things? My experience is next to 0. But I wouldn’t call them all bad or poorly written programs.

        I meeeaaan… I hear what you’re saying. I think your definition of “bad” is a bit stricter than what I was going for. So, you’re right. They’re not bad in some sense that they’re useless or something along those lines. But if I were to write server software, my main goals I guess would be security, performance, and resiliency to failure. Stay alive at all costs (within reason).

        But I think we’re both on the same side there on all counts. 😁👍

      • Victor
        link
        fedilink
        26 months ago

        That’s good. 👍 Just one piece of the puzzle though. 😬