# What am I supposed to do after running `trellis up`?

**URL:** https://discourse.roots.io/t/what-am-i-supposed-to-do-after-running-trellis-up/23299
**Category:** trellis
**Created:** 2022-06-06T09:05:43Z
**Posts:** 28

## Post 1 by @iryan2 — 2022-06-06T09:05:44Z

If I do

```
trellis new example.com
```

followed by

```
cd example.com && trellis up
```

and get the post `vagrant up` message:

```
==> default: Your Trellis Vagrant box is ready to use!
==> default: * Composer and WP-CLI commands need to be run on the virtual machine
==> default: for any post-provision modifications.
==> default: * You can SSH into the machine with `vagrant ssh`.
==> default: * Then navigate to your WordPress sites at `/srv/www`
==> default: or to your Trellis files at `/home/vagrant/trellis`.
```

What am I supposed to do at this point? If I navigate to `http://example.test` in the browser I get `example.test refused to connect.`. However if I then run `vagrant halt` and refresh the browser, it tries to connect for a long time.

Seems like there’s something misconfigured on the VM but I have no idea what. Note I haven’t touched wordpress\_sites.yaml or vault.yml as some docs I read implied defaults are set automatically.

Please tell me what I’m doing wrong :pray:

Edit: MacOS 12.4, trellis-cli 1.7.0, trellis 1.14.0, bedrock 1.20.0.

---

## Post 2 by @iryan2 — 2022-06-07T21:31:28Z

Anyone? Sorry if it’s a stupid question…

---

## Post 3 by @strarsis — 2022-06-07T21:34:55Z

> [@iryan2](#):
>
> `example.test`

With `up`ped Trellis, does `example.test` resolve, and to what IP ~~, localhost (as `127.0.0.1` for the usual IPv4 localhost)~~? Try `ping example.test`, does it resolve to an IP and can it be pinged?

---

## Post 4 by @iryan2 — 2022-06-08T02:10:08Z

Thanks @strarsis

It does, here’s the output of `ping example.test`:

```
PING example.test (192.168.56.5): 56 data bytes
64 bytes from 192.168.56.5: icmp_seq=0 ttl=64 time=1.794 ms
64 bytes from 192.168.56.5: icmp_seq=1 ttl=64 time=0.300 ms
64 bytes from 192.168.56.5: icmp_seq=2 ttl=64 time=0.287 ms
64 bytes from 192.168.56.5: icmp_seq=3 ttl=64 time=0.290 ms
64 bytes from 192.168.56.5: icmp_seq=4 ttl=64 time=0.232 ms
64 bytes from 192.168.56.5: icmp_seq=5 ttl=64 time=0.250 ms
64 bytes from 192.168.56.5: icmp_seq=6 ttl=64 time=0.280 ms
^C
--- example.test ping statistics ---
7 packets transmitted, 7 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.232/0.490/1.794/0.533 ms
```

---

## Post 5 by @iryan2 — 2022-06-08T05:52:29Z

I’m not quite sure what you’re asking about regarding localhost though.

---

## Post 6 by @strarsis — 2022-06-08T09:01:30Z

So the Trellis vagrant box can be pinged, that’s good.

Can you `wget http://example.test` or `curl http://examle.test`?  
When it doesn’t work using the browser, does it work in the terminal using those commands?

And does `trellis ssh development` work and you can `ssh` into the Trellis vagrant box?

---

## Post 7 by @iryan2 — 2022-06-08T09:33:24Z

Really appreciate your help :man_bowing:

wget/curl fails just like the browser…

```
> wget http://example.test                                                              
--2022-06-08 19:25:47-- http://example.test/
Resolving example.test (example.test)... 192.168.56.5
Connecting to example.test (example.test)|192.168.56.5|:80... failed: Connection refused.
> curl http://example.test                                                          
curl: (7) Failed to connect to example.test port 80 after 1010 ms: Connection refused
```

* * *

…but I can ssh in:

```
> trellis ssh development                                                          
Running command => ssh vagrant@example.test
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-91-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage

  System information as of Wed 08 Jun 2022 09:29:58 AM UTC

  System load: 0.0 Processes: 115
  Usage of /: 12.1% of 30.88GB Users logged in: 0
  Memory usage: 25% IPv4 address for eth0: 10.0.2.15
  Swap usage: 0% IPv4 address for eth1: 192.168.56.5

This system is built by the Bento project by Chef Software
More information can be found at https://github.com/chef/bento
Last login: Mon Jun 6 08:47:41 2022 from 10.0.2.2
-bash: warning: setlocale: LC_ALL: cannot change locale (en_AU.UTF-8)
vagrant@example:~$ ls /srv/www
example.com
```

---

## Post 8 by @strarsis — 2022-06-08T09:39:21Z

When being `ssh`ed into the Trellis Vagrant box, check the service status of `nginx` (`service nginx status`), does it run? Also try out `netstat`, is port `80` listened on by any process (something like `netstat -tulpn | grep :80`)?

---

## Post 9 by @iryan2 — 2022-06-08T09:46:10Z

I think we’re getting somewhere:

```
vagrant@example:~$ service nginx status
Unit nginx.service could not be found.
vagrant@example:~$ netstat
-bash: netstat: command not found
vagrant@example:~$
```

also

```
vagrant@example:~$ php
-bash: php: command not found
```

---

## Post 10 by @strarsis — 2022-06-08T09:50:59Z

When you `trellis up`, do you see any warnings/errors during the provision process (that uses `ansible`) of the spun up Vagrant Ubuntu box?  
Can you destroy the Vagrant box (you haven’t stored anything non-persisted/inside the Vagrant box that is precious I suppose) and `trellis up` again, does it result in the same issue?

---

## Post 11 by @iryan2 — 2022-06-08T09:54:19Z

Oh hey, sorry if this is relevant. The one thing I did different to the guide was edit /Users/{me}/projects/example.com/trellis/roles/python\_interpreter/tasks/main.yml and change line 9 from

```
when: ubuntu_version.stdout | trim is version('18.04', '>=')
```

to

```
when: ubuntu_version.stdout
```

because without that change, `trellis up` fails with

```
The conditional check 'ubuntu_version.stdout | trim is version('18.04',
'>=')' failed. The error was: Version comparison: '<' not supported between
instances of 'str' and 'int'

The error appears to be in '/Users/{me}/projects/example.com/trellis/roles/pyt
hon_interpreter/tasks/main.yml': line 6, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    changed_when: false
  - name: Set ansible_python_interpreter for Ubuntu >= 18.04
    ^ here
fatal: [default]: FAILED! => {}

PLAY RECAP *********************************************************************
default : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
exit status 1
```

I’ll try destroying the vagrant box now and report back.

---

## Post 12 by @strarsis — 2022-06-08T10:01:45Z

Current Trellis requires Ubuntu 20.04 (“Focal”) LTS:

> **[GitHub - roots/trellis: WordPress LEMP stack with PHP 8.1, Composer, WP-CLI...](https://github.com/roots/trellis#:~:text=Ubuntu%2020.04%20Focal%20LTS)**
>
> WordPress LEMP stack with PHP 8.1, Composer, WP-CLI and more - GitHub - roots/trellis: WordPress LEMP stack with PHP 8.1, Composer, WP-CLI and more

Using an older Ubuntu can indeed make the provisioning fail as at least the packages may not be compatible with the older Ubuntu version.

But when you don’t change that configuration and force an older Ubuntu version, the process also fails… Are you sure that you updated your Trellis to latest version?

---

## Post 13 by @iryan2 — 2022-06-08T10:08:54Z

Here’s the full output from `trellis up`, and this is with a fresh project (`trellis new blah.com`)

```
trellis up ~/projects/blah.com/trellis
Starting galaxy role install process
- composer (1.9.0) is already installed, skipping.
- ntp (2.2.0) is already installed, skipping.
- logrotate (v0.0.5) is already installed, skipping.
- swapfile (v2.0.32) is already installed, skipping.
- mailhog (2.2.0) is already installed, skipping.

Running command => vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'bento/ubuntu-20.04'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'bento/ubuntu-20.04' version '202206.03.0' is up to date...
==> default: Setting the name of the VM: blah.test
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2201 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2201
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Installing NFS client...
==> default: Exporting NFS shared folders...
==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
==> default: Mounting NFS shared folders...
==> default: Mounting shared folders...
    default: /vagrant => /Users/imr/projects/blah.com/trellis
==> default: Checking for bindfs in VM...
    default: Package manager detected: apt-get
    default: Fuse kernel module is installed
    default: Fuse kernel module is loaded
==> default: Bindfs seems to not be installed on the virtual machine, installing now
    default: Bindfs 1.14.1 is installed
==> default: Machine is ready to use bindfs!
==> default: Creating bind mounts after synced_folders...
    default: /vagrant-nfs-blah.com => /srv/www/blah.com/current
    default: /ansible-nfs => /home/vagrant/trellis
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
==> default: Running provisioner: ansible...
    default: Running ansible-playbook...

PLAY [Set ansible_python_interpreter] ******************************************

TASK [python_interpreter : Get Ubuntu version] *********************************
ok: [default]

TASK [python_interpreter : Set ansible_python_interpreter for Ubuntu >= 18.04] ***
System info:
  Ansible 2.10.16; Vagrant 2.2.18; Darwin
  Trellis 1.14.0: February 16th, 2022
---------------------------------------------------
The conditional check 'ubuntu_version.stdout | trim is version('18.04',
'>=')' failed. The error was: Version comparison: '<' not supported between
instances of 'str' and 'int'

The error appears to be in '/Users/imr/projects/blah.com/trellis/roles/python
_interpreter/tasks/main.yml': line 6, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

    changed_when: false
  - name: Set ansible_python_interpreter for Ubuntu >= 18.04
    ^ here
fatal: [default]: FAILED! => {}

PLAY RECAP *********************************************************************
default : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
exit status 1
[1] > trellis up ~/projects/blah.com/trellis
[130] > trellis-cli ~/projects/blah.com/trellis
zsh: command not found: trellis-cli
[127] > trellis --version ~/projects/blah.com/trellis
1.7.0
```

Looks like I’m on the right ubuntu version and latest trellis. Anything jump out at you?

---

## Post 14 by @iryan2 — 2022-06-08T10:23:50Z

The only other thing I can think of that might be non-standard is I installed trellis-cli by downloading trellis\_1.7.0\_Darwin\_x86\_64.tar.gz and `mv trellis /usr/local/bin`. I’ve noticed some of the docs clone the trellis repo instead, is it worth giving that a shot?

---

## Post 15 by @strarsis — 2022-06-08T10:39:19Z

> [@iryan2](#):
>
> ```
> The conditional check 'ubuntu_version.stdout | trim is version('18.04',
> '>=')' failed. The error was: Version comparison: '<' not supported between
> instances of 'str' and 'int'
> 
> The error appears to be in '/Users/imr/projects/blah.com/trellis/roles/python
> _interpreter/tasks/main.yml': line 6, column 5, but may
> be elsewhere in the file depending on the exact syntax problem.
> ```

This indicates that the provisioning failed, no wonder that there is no `nginx` and everything else installed on that Vagrant box.

---

## Post 16 by @strarsis — 2022-06-08T10:42:10Z

> [@iryan2](#):
>
> `Set ansible_python_interpreter for Ubuntu`

This was removed in recent Trellis:

> <https://github.com/roots/trellis/issues/1180>
>
> * [x] I've read the [guidelines for Contributing to Roots Projects](https://gith…ub.com/roots/.github/blob/master/CONTRIBUTING.md)
> * [x] This request isn't a duplicate of an existing request
> * [x] This is not a personal support request that should be posted on the [Roots Discourse](https://discourse.roots.io/) community
> 
> ## Summary
> 
> Support for Ubuntu 20.04 LTS
> 
> ## Motivation
> 
> Ability to use Ubuntu 20.04 with trellis
> 
> ## Additional context
> 
> Thanks for your work on trellis. Is Ubuntu 20.04 support planned?

---

## Post 17 by @strarsis — 2022-06-08T10:46:12Z

> [@iryan2](#):
>
> ```
> Version comparison: '<' not supported between
> instances of 'str' and 'int'
> ```

Looks like some `python` `2`/`3` interpreter incompatibility ([Version comparison: '\<' not supported between instances of 'str' and 'int' · Issue #70014 · ansible/ansible · GitHub](https://github.com/ansible/ansible/issues/70014)).

But this line doesn’t exist anymore in recent Trellis anyway. So your Trellis is probably somehow outdated.

---

## Post 18 by @iryan2 — 2022-06-08T11:22:47Z

Ok cool, thanks. So it’d be `trellis-cli` that I need to update? I deleted my `usr/local/bin/trellis` that I got from the github releases, installed homebrew just to try it 100% as per the docs, and I get the same result (`Version comparison: '<' not supported between instances of 'str' and 'int'`). Makes sense since it’s the [same file](https://github.com/roots/trellis-cli/releases/download/v1.7.0/trellis_1.7.0_Darwin_x86_64.tar.gz) in both cases.

I really have no idea how I’d be running an older trellis, `> trellis --version` outputs 1.7.0 and if I delete the executable or `brew uninstall trellis-cli` and `which trellis`, I get `trellis not found`.

Again, I really appreciate your help because I am baffled.

---

## Post 19 by @strarsis — 2022-06-08T12:04:07Z

Hm, please note that [`Trellis CLI`](https://github.com/roots/trellis-cli) is not the same as [`Trellis`](https://github.com/roots/trellis) (they both complement each other).

`Trellis CLI` is a (basically optional) helper tool that prepares things for `Trellis` to run smoothly.  
`Trellis` itself is an `Ansible` based project with server, deploy and rollback playbooks.  
So you have to check your `Trellis` project to be recent and correct, not just the `Trellis CLI` helper that can be invoked by command line.

So what currently is in that project directory from within you invoke `trellis` (`Trellis CLI`) is the first line?

---

## Post 20 by @iryan2 — 2022-06-08T20:07:05Z

The first line of ~/projects/blah.com/trellis/CHANGELOG.md is

```
### 1.14.0: February 16th, 2022
```

So it looks up to date, but then I’ve also got a `roles/python_interpreter` directory, which doesn’t match what’s on github. Seems heavily implied here but to be explicit, the `python_interpreter` directory shouldn’t be there with trellis 1.14.0 right?

---

## Post 21 by @strarsis — 2022-06-08T20:15:35Z

Hm, interesting. Release `v1.14.0` (which is the most recent) actually contains a `roles/python_interpreter/tasks/main.yml`:

> **[trellis/roles at v1.14.0 · roots/trellis](https://github.com/roots/trellis/tree/v1.14.0/roles)**
>
> v1.14.0/roles

But the current `master` does not contain that directory, it was removed in a commit right after the `v1.14` release:

> <https://github.com/roots/trellis/commit/f931c899453fdf4acec8dc92217eed1a2fb9b3d1#diff-c2d16456b84affefc657594ab14a0af7e8622f48fcabea0a659ac6ca85676695>
>
> Python 2 has been EOL for a while now anad is unsupported. macOS is
> removing it …as well as of 12.3
> 
> Trellis was compatible with both Python 2 or 3 but it took some extra
> work and complexity. This removes all workarounds for python2 and makes
> python3 a requirement.

Are you using the latest `master` or the latest release `v1.14.0`?  
But it works fine for me, with `master` and with that `python_interpreter` directory removed.  
It appears that your `Trellis` project got some inconsistencies.

---

## Post 22 by @iryan2 — 2022-06-08T20:18:50Z

In all the previous posts I’ve been using the trellis that gets installed by `trellis-cli`, that is, 1.14.0. Only just now have I tried cloning master. Note I also never tried deleting the python\_interpreter directory

I’ve done the following to try to ensure I’m using the latest trellis:

- backed up my group\_vars directory
- deleted my trellis dir
- cloned trellis from gh
- restored my previous group\_vars directory
- `trellis init`
- `trellis up`

It’s taking much longer than it has previously, seems encouraging. Should have a result soon

---

## Post 23 by @iryan2 — 2022-06-08T20:24:04Z

Success!!! :tada::tada::tada::tada:

So, would I be correct in saying that the version of trellis that you get by running `trellis new myproject.com` is outdated, at least for MacOS?

---

## Post 24 by @iryan2 — 2022-06-08T20:29:31Z

Thanks so much for all your help @strarsis!

---

## Post 25 by @strarsis — 2022-06-08T20:48:52Z

> [@iryan2](#):
>
> So, would I be correct in saying that the version of trellis that you get by running `trellis new myproject.com` is outdated, at least for MacOS?

Hm, that wouldn’t be just outdated but contains incorrect code that prevented a successful `trellis up`. It would be very helpful if you can reproduce this issue and create a new issue: [Issues · roots/trellis · GitHub](https://github.com/roots/trellis/issues)

---

## Post 26 by @iryan2 — 2022-06-08T23:37:01Z

Done, let me know if there’s any other info you think I should provide

> <https://github.com/roots/trellis/issues/1390>
>
> ### Terms
> 
> - [X] I have read the [guidelines for Contributing to Roots Projects]…(https://github.com/roots/.github/blob/master/CONTRIBUTING.md)
> - [X] This request is not a duplicate of an existing issue
> - [X] I have read the [docs](https://roots.io/docs/) and followed them (if applicable)
> - [X] I have seached the [Roots Discourse](https://discourse.roots.io/) for answers and followed them (if applicable)
> - [X] This is not a personal support request that should be posted on the [Roots Discourse](https://discourse.roots.io/) community
> 
> ### Description
> 
> #### What's wrong?
> 
> The version of `trellis` that gets installed by the latest `trellis-cli` still includes the roles/python_interpreter directory that has been removed on `master`.
> 
> Running `trellis up` then fails with:
> ```
> trellis up ~/projects/blah.com/trellis
> Starting galaxy role install process
> - composer (1.9.0) is already installed, skipping.
> - ntp (2.2.0) is already installed, skipping.
> - logrotate (v0.0.5) is already installed, skipping.
> - swapfile (v2.0.32) is already installed, skipping.
> - mailhog (2.2.0) is already installed, skipping.
> 
> Running command => vagrant up
> Bringing machine 'default' up with 'virtualbox' provider...
> ==> default: Importing base box 'bento/ubuntu-20.04'...
> ==> default: Matching MAC address for NAT networking...
> ==> default: Checking if box 'bento/ubuntu-20.04' version '202206.03.0' is up to date...
> ==> default: Setting the name of the VM: blah.test
> ==> default: Fixed port collision for 22 => 2222. Now on port 2201.
> ==> default: Clearing any previously set network interfaces...
> ==> default: Preparing network interfaces based on configuration...
> default: Adapter 1: nat
> default: Adapter 2: hostonly
> ==> default: Forwarding ports...
> default: 22 (guest) => 2201 (host) (adapter 1)
> ==> default: Running 'pre-boot' VM customizations...
> ==> default: Booting VM...
> ==> default: Waiting for machine to boot. This may take a few minutes...
> default: SSH address: 127.0.0.1:2201
> default: SSH username: vagrant
> default: SSH auth method: private key
> default:
> default: Vagrant insecure key detected. Vagrant will automatically replace
> default: this with a newly generated keypair for better security.
> default:
> default: Inserting generated public key within guest...
> default: Removing insecure key from the guest if it's present...
> default: Key inserted! Disconnecting and reconnecting using new SSH key...
> ==> default: Machine booted and ready!
> ==> default: Checking for guest additions in VM...
> ==> default: Setting hostname...
> ==> default: Configuring and enabling network interfaces...
> ==> default: Installing NFS client...
> ==> default: Exporting NFS shared folders...
> ==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
> ==> default: Mounting NFS shared folders...
> ==> default: Mounting shared folders...
> default: /vagrant => /Users/imr/projects/blah.com/trellis
> ==> default: Checking for bindfs in VM...
> default: Package manager detected: apt-get
> default: Fuse kernel module is installed
> default: Fuse kernel module is loaded
> ==> default: Bindfs seems to not be installed on the virtual machine, installing now
> default: Bindfs 1.14.1 is installed
> ==> default: Machine is ready to use bindfs!
> ==> default: Creating bind mounts after synced_folders...
> default: /vagrant-nfs-blah.com => /srv/www/blah.com/current
> default: /ansible-nfs => /home/vagrant/trellis
> ==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
> ==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
> ==> default: Running provisioner: ansible...
> default: Running ansible-playbook...
> 
> PLAY [Set ansible_python_interpreter] ******************************************
> 
> TASK [python_interpreter : Get Ubuntu version] *********************************
> ok: [default]
> 
> TASK [python_interpreter : Set ansible_python_interpreter for Ubuntu >= 18.04] ***
> System info:
> Ansible 2.10.16; Vagrant 2.2.18; Darwin
> Trellis 1.14.0: February 16th, 2022
> ---------------------------------------------------
> The conditional check 'ubuntu_version.stdout | trim is version('18.04',
> '>=')' failed. The error was: Version comparison: '<' not supported between
> instances of 'str' and 'int'
> 
> The error appears to be in '/Users/imr/projects/blah.com/trellis/roles/python
> _interpreter/tasks/main.yml': line 6, column 5, but may
> be elsewhere in the file depending on the exact syntax problem.
> 
> The offending line appears to be:
> 
> changed_when: false
> - name: Set ansible_python_interpreter for Ubuntu >= 18.04
> ^ here
> fatal: [default]: FAILED! => {}
> 
> PLAY RECAP *********************************************************************
> default : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
> 
> Ansible failed to complete successfully. Any error output should be
> visible above. Please fix these errors and try again.
> exit status 1
> [127] > trellis --version ~/projects/blah.com/trellis
> 1.7.0
> ```
> 
> 
> #### What have you tried?
> See [discourse thread](https://discourse.roots.io/t/what-am-i-supposed-to-do-after-running-trellis-up/23299/15) for details
> 
> #### What insights have you gained?
> @strarsis is a legend.
> 
> #### Possible solutions
> Release a new version of trellis that matches master (1.14.0 still includes the roles/python_interpreter dir)
> 
> #### Temporary workarounds
> Clone trellis from github rather than using the version installed by trellis-cli
> 
> ### Steps To Reproduce
> 
> 1. Install trellis-cli
> 2. `trellis new example.com && cd example.com`
> 3. `trellis up`
> ...
> error.
> 
> I'm on MacOS, I'd be surprised if other OS's aren't affected but it's possible.
> 
> 
> ### Expected Behavior
> 
> Trellis to work
> 
> ### Actual Behavior
> 
> Visiting `http://example.test` would error with `Connection refused`.
> 
> ### Relevant Log Output
> 
> ```shell
> trellis up ~/projects/blah.com/trellis
> Starting galaxy role install process
> - composer (1.9.0) is already installed, skipping.
> - ntp (2.2.0) is already installed, skipping.
> - logrotate (v0.0.5) is already installed, skipping.
> - swapfile (v2.0.32) is already installed, skipping.
> - mailhog (2.2.0) is already installed, skipping.
> 
> Running command => vagrant up
> Bringing machine 'default' up with 'virtualbox' provider...
> ==> default: Importing base box 'bento/ubuntu-20.04'...
> ==> default: Matching MAC address for NAT networking...
> ==> default: Checking if box 'bento/ubuntu-20.04' version '202206.03.0' is up to date...
> ==> default: Setting the name of the VM: blah.test
> ==> default: Fixed port collision for 22 => 2222. Now on port 2201.
> ==> default: Clearing any previously set network interfaces...
> ==> default: Preparing network interfaces based on configuration...
> default: Adapter 1: nat
> default: Adapter 2: hostonly
> ==> default: Forwarding ports...
> default: 22 (guest) => 2201 (host) (adapter 1)
> ==> default: Running 'pre-boot' VM customizations...
> ==> default: Booting VM...
> ==> default: Waiting for machine to boot. This may take a few minutes...
> default: SSH address: 127.0.0.1:2201
> default: SSH username: vagrant
> default: SSH auth method: private key
> default:
> default: Vagrant insecure key detected. Vagrant will automatically replace
> default: this with a newly generated keypair for better security.
> default:
> default: Inserting generated public key within guest...
> default: Removing insecure key from the guest if it's present...
> default: Key inserted! Disconnecting and reconnecting using new SSH key...
> ==> default: Machine booted and ready!
> ==> default: Checking for guest additions in VM...
> ==> default: Setting hostname...
> ==> default: Configuring and enabling network interfaces...
> ==> default: Installing NFS client...
> ==> default: Exporting NFS shared folders...
> ==> default: Preparing to edit /etc/exports. Administrator privileges will be required...
> ==> default: Mounting NFS shared folders...
> ==> default: Mounting shared folders...
> default: /vagrant => /Users/imr/projects/blah.com/trellis
> ==> default: Checking for bindfs in VM...
> default: Package manager detected: apt-get
> default: Fuse kernel module is installed
> default: Fuse kernel module is loaded
> ==> default: Bindfs seems to not be installed on the virtual machine, installing now
> default: Bindfs 1.14.1 is installed
> ==> default: Machine is ready to use bindfs!
> ==> default: Creating bind mounts after synced_folders...
> default: /vagrant-nfs-blah.com => /srv/www/blah.com/current
> default: /ansible-nfs => /home/vagrant/trellis
> ==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
> ==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
> ==> default: Running provisioner: ansible...
> default: Running ansible-playbook...
> 
> PLAY [Set ansible_python_interpreter] ******************************************
> 
> TASK [python_interpreter : Get Ubuntu version] *********************************
> ok: [default]
> 
> TASK [python_interpreter : Set ansible_python_interpreter for Ubuntu >= 18.04] ***
> System info:
> Ansible 2.10.16; Vagrant 2.2.18; Darwin
> Trellis 1.14.0: February 16th, 2022
> ---------------------------------------------------
> The conditional check 'ubuntu_version.stdout | trim is version('18.04',
> '>=')' failed. The error was: Version comparison: '<' not supported between
> instances of 'str' and 'int'
> 
> The error appears to be in '/Users/imr/projects/blah.com/trellis/roles/python
> _interpreter/tasks/main.yml': line 6, column 5, but may
> be elsewhere in the file depending on the exact syntax problem.
> 
> The offending line appears to be:
> 
> changed_when: false
> - name: Set ansible_python_interpreter for Ubuntu >= 18.04
> ^ here
> fatal: [default]: FAILED! => {}
> 
> PLAY RECAP *********************************************************************
> default : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
> 
> Ansible failed to complete successfully. Any error output should be
> visible above. Please fix these errors and try again.
> exit status 1
> [127] > trellis --version ~/projects/blah.com/trellis
> 1.7.0
> ```
> 
> 
> ### Versions
> 
> trellis-cli 1.7.0, trellis 1.14.0, MacOS 12.4

Thanks again!

---

## Post 27 by @Twansparant — 2022-06-09T07:08:10Z

I think the **Trellis CLI** will just install the latest tagged trellis version and not the latest commits, so this makes sense.

---

## Post 28 by @swalkinshaw — 2022-06-09T14:41:19Z

I mentioned it in the issue, but `trellis new --trellis-version=dev example.com` exists and would use the dev/master version instead of the latest stable version.
