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?
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
https://github.com/LemmyNet/lemmy/issues/1804
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