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?

  • @nutomicA
    link
    23 years ago

    Which distro are you using? The playbook doesnt do anything with iptables, and works fine on Ubuntu.

    • @purplerabbitOP
      link
      23 years ago

      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

      • @nutomicA
        link
        2
        edit-2
        3 years ago

        No idea then, you will have to do the manual installation (or debug ansible).

  • @purplerabbitOP
    link
    23 years ago

    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

    • @purplerabbitOP
      link
      13 years ago

      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

      • DessalinesMA
        link
        23 years ago

        Open up an issue on lemmy’s github and post your lemmy.hjson.

      • @purplerabbitOP
        link
        13 years ago

        Any ideas on how to troubleshoot this?

        • @purplerabbitOP
          link
          13 years ago

          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