Using the current version of the trellis-cli (1.9.0), I’m getting an issue bringing a project up for the first time. I’ve never had this particular issue, and I just updated the trellis-cli today. The output isn’t helping too much to point me in the right direction unfortunately, and I’m not super familiar with what is going on with this task in the background, so any help at all would be appreciated.
I bumped into this and got back on track by requiring ansible at 2.10.7 in requirements.txt:
ansible==2.10.7
passlib
I also wiped .trellis/virtualenv. Versions >2.10.7 didn’t work when specified in requirements.txt (it just used 2.14.3 as if I hadn’t specified anything or complained that the version didn’t exist, even if it did).
I’ve tried Kelly’s solution and it appears to have gotten me through this for the time being. I’m going to hold off on accepting an answer for the time being as it’s more of a workaround though, and wait for the roots team to either update something in trellis or recommend that this is the best approach.
hm, getting this same iptables error on a completely new trellis/trellis-cli 1.10.1, vagrant 2.3.4, python 3.9.6 install on Mac OS 13.2.1.
I tried using @kellymears tip requiring ansible 2.10.7 and removing later versions of ansible, and I’m still seeing the same iptables error on trellis up.
Hi, I am just now running trellis-cli v1.10.1 obtained via brew install. I am experiencing the error FAILED! => {“msg”: "invalid or malformed argument on TASK [ferm : ensure iptables INPUT rules are added] while executing trellis up.
I see the solution is v1.20.1 (thank you), but I see compressed files for source that do not appear to have the Go code. I can build from source, but the result is version = canary and with that version (canary) I still get the error on TASK [ferm : ensure iptables INPUT rules are added].
My coworkers obtained trellis-cli from brew install some days ago and they got v1.9 and they are able to successfully trellis up.
Can you offer suggestions about building v1.12 from source or getting v1.12 via brew? I also tried a manual install of v1.9 on MacOS, but I still got the error.
For existing projects, you need to apply that fix (or the entire release) manually by pulling the code via Git.
The trellis-cli version has nothing to do with this bug/fix since the CLI is a management tool for Trellis.
If you started a brand new project with trellis new, it would use the latest published version of Trellis by default (which is now v1.20.1 and includes that fix). But again, for existing projects, the CLI version doesn’t impact this at all.
I looked at the commits and realized the change needed to address the error was in roles/ferm/tasks/main.yml and not related to the binary. I am up and running successfully now. Thanks very much.