Coder Social home page Coder Social logo

Provisioning fails about trellis HOT 6 CLOSED

roots avatar roots commented on May 19, 2024
Provisioning fails

from trellis.

Comments (6)

starise avatar starise commented on May 19, 2024

Looks like the same dependency problem i'd here: #8
Try to use this command in the guest (using vagrant ssh):

sudo apt-get install -f

then restart provisioning using vagrant provision

from trellis.

mwalters avatar mwalters commented on May 19, 2024

Thanks @starise this got me going in the right direction to get past this. I actually had to vagrant halt then vagrant up again, and then was able to vagrant ssh and run sudo apt-get install -f then exit out of SSH and run vagrant provision and it finally got it to provision correctly. Would definitely be nice to not have to do the extra steps though. Figured I'd leave my comment in case someone else comes across here with the same problem though.

from trellis.

swalkinshaw avatar swalkinshaw commented on May 19, 2024

@mwalters @starise @ionutzp would be helpful to know if you're using the latest version/commit of this playbook. And also if you're using the (now) default base of roots/bedrock, or a default Ubuntu 14.04 Trusty, or the old Ubuntu 12.04.

Also what host you're running Ansible from (Linux or OSX) or if you're using it within a shell script from Windows.

from trellis.

mwalters avatar mwalters commented on May 19, 2024

@swalkinshaw Sorry for the lack of detail in my previous post, hope this helps:

  • I'm using OSX
  • I just installed for the first time today, so I cloned the repository around 1-2 hours ago. Only changes I made to it were for setting the domain to testing.dev. I'm going super vanilla with this and the roots/bedrock repo just to learn how it works before I try implementing it.
  • I am using roots/bedrock for the default base box.

Not sure if it would help/matter, but I am on Vagrant 1.6.1. I also had to install Ansible on the host machine to get this all working, so that was just installed today as well and is on version 1.6.1.

When I initially ssh'd in to the VM to run sudo apt-get install -f I noticed it was saying a system restart was required, so that's why I halted and re-up'd. After the box came back up I tried to reprovision it before SSH'ing in, in case that fixed it, but it failed with the same error that @ionutzp mentions above. I then ssh'd in, ran the apt-get install, and then was able to successfully provision.

from trellis.

ionutzp avatar ionutzp commented on May 19, 2024

same as @mwalters here: osx, latest version, default roots/bedrock box

from trellis.

swalkinshaw avatar swalkinshaw commented on May 19, 2024

This was a fairly dumb error looking back. Fixed as of a5962e9 and I also published a new 0.2.0 version.

apt-get upgrade was being run by default as part of the provision but it shouldn't be because it causes errors like this as packages get upgraded to different versions and could cause conflicts. Basically the goal of any project like this should be to have consistent/deterministic package states and upgrading them breaks that.

from trellis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.