I just spent 2 hours trying to figure out why fail2ban didn’t increment the ban count.

--- a/fail2ban/etc/fail2ban/jail.local
+++ b/fail2ban/etc/fail2ban/jail.local
@@ -1,6 +1,6 @@
 [DEFAULT]

-bantime.incremet     = true
+bantime.increment    = true
 bantime.rndtime      =
 bantime.maxtime      =
 bantime.factor       = 1

After I found that I seriously considered becoming a goose farmer.

  • nick@midwest.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    27 days ago

    One time I was trying to figure out why the MySQL command wasn’t connecting.

    mysql -h127.0.0.1 -p6033

    Eventually ended up having four different people help me in a huddle. After two hours we figured it out… it turns out the argument is -P for port.

    I wasted several thousand dollars of company time with a casing issue 🥴

    • Lv_InSaNe_vL@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      My team once spent an entire afternoon trying to figure out why an API call was returning either incorrect data, or just no data at all.

      Basically we were in the middle of migrating the API call from one API to another and we didn’t update the URL in the variable, so it was still hitting the old API 🙃

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      27 days ago

      because of garbage like that I always use the long option names in scripts, even when the short one would be obvious

      • Victor@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        27 days ago

        Yeah, for scripts that should be the norm. It really helps with legibility and maintainability, not having to have the manual open for 5 programs while tweaking stuff. 👌

  • frankenswine@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    27 days ago

    happens to the best. if fail2ban were any more resiliently engineered it would have failed to start due to the error in the config file

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      27 days ago

      This is such an underutilized and neglected behavior.

      The very least a config parser should do is to log a warning.

  • Nis@feddit.dk
    link
    fedilink
    English
    arrow-up
    1
    ·
    27 days ago

    Well… Do you really think you’d do any better at incrementing geese?