Can not provision properly local server setup


I experience problems on the local server setup.

Following the documentation in and after running vagrant up for the first time in a brand new installation I got this error:

==> default: Bindfs seems to not be installed on the virtual machine, installing now
    default: Bindfs 1.12.6 is installed
==> default: Machine is ready to use bindfs!
==> default: Creating bind mounts after synced_folders...
    default: / => /srv/www/
==> default: Updating /etc/hosts file on active guest machines...
==> default: Updating /etc/hosts file on host machine (password may be required)...
==> default: Running provisioner: ansible...
    default: Running ansible-galaxy...
 [WARNING]: - composer was NOT installed successfully: Failed to get data from
the API server ( a bytes-like object is
required, not 'str'

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I own the following dependencies versions:

Virtualbox: 5.0.30
Vagrant: 1.9.1
Vagrant binfs 1.01

ansible-galaxy plugins:

  • composer, 1.5.0
  • geerlingguy.daemonize, 1.1.1
  • logrotate, e7a498d
  • mailhog, 2.1.0
  • ntp, 1.3.0
  • swapfile, 0.4

composer is installed in host 1.2.4

No idea what is happening I was able to run previously the local server setup with older versions.

Any help appreciated.


If you run vagrant provision does it happen again? That error might have been caused by some temporary network issue.


I fix the problem. It was nothing related to Trellis. The problem was how I installed Ansible.

follw the thread

Hopefully helps,


PS: Thanks Scott for answering me!

1 Like