Can not provision properly local server setup

Hi,

I experience problems on the local server setup.

Following the documentation in https://github.com/roots/trellis 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: /vagrant-nfs-sleepdiary.dev => /srv/www/sleepdiary.dev/current
==> 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 (https://galaxy.ansible.com/api/): 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:

Ansible: 2.0.0.2
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.

Cheers,
Vicens

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

Hey,

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

follw the thread https://github.com/ansible/ansible/issues/18446

Hopefully helps,

Cheers,
Vicens.

PS: Thanks Scott for answering me!

1 Like