File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33This role deploys MongoDB using podman quadlets.
44
55The 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 `
You can’t perform that action at this time.
0 commit comments