/bin/sh: 1: /usr/bin/python: not found

Local dev spins up fine. Then attempting to provision the Production server and I get this:

TASK [Gathering Facts] *********************************************************************************
System info:
Ansible 2.4.0.0; Darwin
Trellis version (per changelog): “Add Ubuntu 18.04 support and default to it”

MODULE FAILURE
Shared connection to 198.199.86.233 closed.

/bin/sh: 1: /usr/bin/python: not found

fatal: [198.199.86.233]: FAILED! => {“changed”: false, “failed”: true, “rc”: 0}


From the looks of it this has something to do with changes made for 18.04 - I created a new server using version Ubuntu 18.04 and that seemed to resolve it.

I’m fairly certain the fix for that is in 6317bd441b70dee9289461adf79497dbcace3167. I’d suggest updating to latest master if you can.

Sorry Ubuntu 18.04 + Python 3 has been really complicated :pensive:

I’m facing the same issue when deploying to staging:

TASK [Gathering Facts] **************************************************************************************************************************************************************************
System info:
  Ansible 2.4.2.0; Darwin
  Trellis 1.0.0: December 27th, 2018
---------------------------------------------------
MODULE FAILURE
/bin/sh: 1: /usr/bin/python: not found

fatal: [116.203.1.137]: FAILED! => {"changed": false, "module_stdout": "", "rc": 127}

I went through all changed files from the mentioned commit and they are all up to date.

2 Likes

This topic was automatically closed after 42 days. New replies are no longer allowed.