Getting started project fails with a weird error on Windows

257 views
Skip to first unread message

Mike Thomsen

unread,
Sep 29, 2015, 9:03:56 PM9/29/15
to Otto
I have Vagrant 1.7.4 installed already, and when I try running the Appfile for the getting started project, I get this weird error about Vagrant not being able to find the path:

C:\workspace\otto-getting-started>otto dev
←[0m←[1m==> Creating local development environment with Vagrant if it doesn't exist...←[0m
←[0m    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.
    ←[0m
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The host path of the shared folder is missing: C:workspaceotto-getting-started
* The host path of the shared folder is missing: C:workspaceotto-getting-started.otto☼mpiledpp♀oundation-consulpp-dev


←[0m←[0m
←[0;31mError 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.←[0m

Any ideas about what's going on here?

Mitchell Hashimoto

unread,
Oct 3, 2015, 6:22:44 PM10/3/15
to otto...@googlegroups.com
Hi,

This is fixed and will be available in the next version.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/otto/issues
IRC: #otto-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Otto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otto-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/otto-tool/26464808-41f1-4ac5-ad95-5597e71ba761%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stuart McMath

unread,
Jan 7, 2016, 3:03:47 AM1/7/16
to Otto

Hi,

 I'm running Windows 10, VirtualBox 5.0.12,  Vagrant 1.8.1 and Otto 0.2.0.  And I'm seeing a very similar error to this:

C:\vdd\data\drupal7>otto dev
==> Creating development environment layers...
    Otto uses layers to speed up building development environments.
    Each layer only needs to be built once. We've detected that the
    layers below aren't created yet. These will be built this time.
    Future development envirionments will use the cached versions
    to be much, much faster.
==> Creating layer: consul
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

File provisioner:
* File upload source file C:/Users/admin/.otto.d/global-data/vagrant-layered/layers/consul/ dddatadrupal7.otto mpiledpp criptpacksSTDLIB.tar.gz must exist
* File upload source file C:/Users/admin/.otto.d/global-data/vagrant-layered/layers/consul/ dddatadrupal7.otto mpiledpp criptpacksPHP.tar.gz must exist

Is this the same problem and can you suggest anything?

The two script pack files exist in the scriptpacks folder in the project (C:\vdd\data\drupal7\.otto\compiled\app\scriptpacks) but are not anywhere in the ....otto.d./.. folder tree shown above.


Mitchell Hashimoto

unread,
Jan 7, 2016, 10:30:47 PM1/7/16
to otto...@googlegroups.com
Hey Stuart,

This looks like a bug! Can you please report it (if you haven't already)? I'll take a look ASAP.

Best,
Mitchell

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/otto/issues
IRC: #otto-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Otto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otto-tool+...@googlegroups.com.

Tim Graf

unread,
Jan 8, 2016, 1:33:30 AM1/8/16
to Otto
Same here:

C:\cdmm\dev\otto\otto-getting-started>otto dev
←[0m←[1m==> Creating development environment layers...←[0m
←[0m    Otto uses layers to speed up building development environments.

    Each layer only needs to be built once. We've detected that the
    layers below aren't created yet. These will be built this time.
    Future development envirionments will use the cached versions
    to be much, much faster.←[0m
←[0m←[1m==> Creating layer: consul←[0m

Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

File provisioner:
* File upload source file C:/Users/tg/.otto.d/global-data/vagrant-layered/layers
/consul/♦mmdevottootto-getting-started.otto☼mpiledpp criptpacksSTDLIB.tar.gz mus
t exist
* File upload source file C:/Users/tg/.otto.d/global-data/vagrant-layered/layers
/consul/♦mmdevottootto-getting-started.otto☼mpiledpp criptpacksRUBY.tar.gz must
exist


←[0;31mError building dev environment: Error building dev environment layers: Er

ror executing Vagrant: exit status 1


Thank you for looking into this.

Wesley Staples

unread,
Jan 22, 2016, 2:27:28 PM1/22/16
to Otto
I just downloaded otto 0.2.0 and this still appears to be an issue. The temporary fix until the merged code is released is:

Search through your .otto directory for Vagrantfiles. I found 3 for the otto-getting-started project

.otto\compiled\app\dev\Vagrantfile
.otto\compiled\app\dev\layer-base\Vagrantfile
.otto\compiled\app\foundation-layers\0-consul\Vagrantfile

if you go into each one you will see 2 double quoted strings with a windows backslashes. If you replace the double quotes with single quotes that should resolve the issue.

Everytime I ran otto compile it put the double quotes back though.

Mitch Kuppinger

unread,
Apr 8, 2016, 5:45:33 PM4/8/16
to Otto
PR #394 was merged Mar 8. However, the current release does not yet include this it appears. Windows based developers are still out in the cold.

Not sure Wesley Staples work around actually works. I walked through all Vagrantfile instances I could find on my system, changing the double quotes to single where appropriate. Still no joy with otto dev. Did not run otto compile after because as WS says that seems to put the double quotes back in.

It probably would be good practice in this project to always use single quotes in Ruby strings if the special characteristics of double quoted strings (support for interpolation, etc.) are not needed.
Reply all
Reply to author
Forward
0 new messages