hashicorp / otto-getting-started

The repository used for Otto getting started guide.
26 stars 25 forks source link

Issue w/ Getting Started and Alternate Providers #2

Open n4580 opened 8 years ago

n4580 commented 8 years ago

I'm not sure if this counts as an issue, since it requires a previous install of Vagrant and an additional provider installed, but it did cause me some trouble until I was able to find some additional documentation elsewhere.

I have the vagrant-parallels provider installed. I didn't have the VAGRANT_DEFAULT_PROVIDER environment variable set. When I installed Otto and followed the Getting Started guide, it attempted to create the local development environment using the Parallels provider. Since there is no box that matches, it errors out. I was trying to find a way to specify the default provider in the Appfile by skipping ahead in the guide, but I eventually switched to looking for how to set the default provider in Vagrant. That led to the documentation on that environment variable, which fixed the issue.

I'm not sure if there's a good way to specify a specific provider in the Getting Started files, or if it's worth having a note of some sort elsewhere, but there's probably a few people that'll hit the same issue if they use Parallels for other Vagrant configurations, and decide to try out Otto.

% otto dev
==> Creating local development environment with Vagrant if it doesn't exist...
    Raw Vagrant output will begin streaming in below. Otto does
    not create this output. It is mirrored directly from Vagrant
    while the development environment is being created.

Bringing machine 'default' up with 'parallels' provider...
==> default: Box 'hashicorp/precise64' could not be found. Attempting to find and install...
    default: Box Provider: parallels
    default: Box Version: >= 0
==> default: Loading metadata for box 'hashicorp/precise64'
    default: URL: https://atlas.hashicorp.com/hashicorp/precise64
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Atlas, make sure the box is
released.

Name: hashicorp/precise64
Address: https://atlas.hashicorp.com/hashicorp/precise64
Requested provider: [:parallels]

Error building dev environment: Error executing Vagrant: exit status 1

The error messages from Vagrant are usually very informative.
Please read it carefully and fix any issues it mentions. If
the message isn't clear, please report this to the Otto project.
%
phiroict commented 8 years ago

Brilliant, I ran into the same issue with VMWare installed. This resolved it. Thank you!

guycalledseven commented 8 years ago

Thank you kind internet stranger. :+1: Also it never hurts to update the plugin you are using. eg. vagrant plugin install vagrant-parallels I am not sure if it updates it self or not, but it was VAGRANT_DEFAULT_PROVIDER add obsolete plugin in my case.