Skip to content

Commit fba77b0

Browse files
committed
Add troubleshooting section for MongoDB docs
1 parent b69b264 commit fba77b0

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

ansible/roles/mongodb/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,27 @@
33
This role deploys MongoDB using podman quadlets.
44

55
The container starts as root, but drops privileges after startup.
6+
7+
8+
## Troubleshooting
9+
10+
- **MongoDB refuses connections**
11+
12+
Verify that:
13+
14+
1. Your outbound IP is within the whitelisted LKE ranges in `/etc/nftables` -
15+
the `nftables` Ansible role may be re-run to fetch them freshly
16+
17+
2. Your outbound IP is not banned by `fail2ban`, see `fail2ban-client banned`
18+
19+
3. You are using a sane piece of software that does not randomly appear to not
20+
bind on ports properly:
21+
22+
> I encountered the same problem for an half an hour or so but it was not
23+
> an issue after that. I changed nothing in my code or my firewall
24+
> settings. Just waited a bit and the program worked as usual. So I think
25+
> this may be something that is wrong with the Mongodb servers or it may be
26+
> due to a slow network connection. Maybe check the uri and just waiting
27+
> for a while. It worked for me.
28+
29+
When in doubt, `sudo systemctl restart mongodb`

0 commit comments

Comments
 (0)