this post was submitted on 20 Feb 2025
1 points (100.0% liked)

Selfhosted

62256 readers
621 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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.

top 8 comments
sorted by: hot top controversial new old
[–] frankenswine@lemmy.world 1 points 2 years ago (2 children)

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 1 points 2 years 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 1 points 2 years ago* (last edited 2 years 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.

[–] nick@midwest.social 0 points 2 years ago (3 children)

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 2 points 2 years 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 🙃

[–] victorz@lemmy.world 1 points 2 years ago* (last edited 2 years ago) (1 children)

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.

[–] nick@midwest.social 1 points 2 years ago

Haha Jesus, if it’s not even satisfying to fix that’s a real shame :(

[–] eager_eagle@lemmy.world 1 points 2 years ago

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