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
    38
    arrow-down
    1
    ·
    1 day 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 🥴

    • Eager Eagle@lemmy.world
      link
      fedilink
      English
      arrow-up
      22
      ·
      1 day 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
        11
        ·
        1 day 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. 👌

    • Victor@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      1 day ago

      Reminds me of when I was in University and catching up with some lab work over the summer to get a passing grade. Was doing some 3D programming assignment and I spent I think 5 weeks debugging my stuff.

      Turns out I needed to transpose two adjacent lines of code. No syntax errors, no runtime errors, just graphics pipeline not outputting what I expected. Was a nightmare. And not even satisfying to figure it out.

    • frankenswine@lemmy.world
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      edit-2
      1 day ago

      know the feel. even funkier with ssh/scp and the like with every other tool using a different case argument for the same

      that’s how we learn and grow, i guess 🤷

  • frankenswine@lemmy.world
    link
    fedilink
    English
    arrow-up
    28
    ·
    1 day 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
      21
      ·
      1 day ago

      This is such an underutilized and neglected behavior.

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

    • Pika@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      21 hours ago

      the amount of software I’ve used that lacks this type of system is aggravating. How hard is it to keep an object of property names, and if the name isn’t in it then it errors.

      this can be continued into command line as well. if flag -z doesn’t exist, you shouldn’t allow me to run a command with it. It’s clear I am trying to do something (incorrectly) thinking -z is something it isn’t, just error it and tell me that.

  • nis@feddit.dk
    link
    fedilink
    English
    arrow-up
    4
    ·
    21 hours ago

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

  • Lucy :3@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 day ago

    Also spent an hour wondering why it didn’t evalute -z “{CMD_OUT_ERROR” as true, despite manually running the script and echoing “‘${CMD_OUT_ERROR}’” evaluating to ‘’… well it’s the missing $.

    At least it’s time spent in working hours and being paid for the mess that they use as deployment for IdentityIQ written in kornshell.