Following instructions from https://join-lemmy.org/docs/en/administration/install_ansible.html and running the command
ansible-playbook lemmy.yml --become
Gives the below error message for iptables
TASK [start docker-compose] ******************************************************************************************************************************************************************************
fatal: [root@<ip>]: FAILED! => {"changed": false, "errors": [], "module_stderr": "", "module_stdout": "", "msg": "Error starting project 500 Server Error: Internal Server Error (\"Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-9df07e7bb41e -j DOCKER: iptables v1.8.7 (nf_tables): Chain 'DOCKER' does not exist\nTry `iptables -h' or 'iptables --help' for more information.\n (exit status 2)\")"}
My iptables were completely empty on the vps when I ran this command. Any suggestions?
Which distro are you using? The playbook doesnt do anything with iptables, and works fine on Ubuntu.
I am using a fully up-to date debian 11 machine on a vps and the iptabels are completely clear and its still giving me this error message after flushing iptables several times
No idea then, you will have to do the manual installation (or debug ansible).
Also a sidenote I needed to do
sudo apt install python3-certbot-nginx
manually on the vps server as it didn’t automatically install this with ansible
This is likely a docker and iptables issue, you might have to restart the machine.
running from within the vps server itself
sudo service docker restart
and then rerunning
ansible-playbook lemmy.yml --become
fixed the issue I had with. But now I am having a different issue. Visitng the website gives a 502 bad gateway error and its the correct website
Open up an issue on lemmy’s github and post your lemmy.hjson.
Noob at github issues so please do excuse any failings on my side
Any ideas on how to troubleshoot this?
Running
docker-compose logs -f lemmy
gives the following logs
lemmy_1 | thread 'main' panicked at 'Error connecting to postgres://lemmy:<password>@localhost:5432/lemmy', src/main.rs:45:25 lemmy_1 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace