Otm Vagrant on Win 8.1

72 views
Skip to first unread message

Nico Aliotta

unread,
Mar 29, 2016, 10:05:35 AM3/29/16
to opentreemap-user
I'm trying to install OTM-vagrant on my Win 8.1

- I've installed both l Vagrant 1.8.1 and VirtualBox 5.0.16-105871-Win
- and Cygwin Terminal x64
- I've downloaded the ZIP file https://github.com/OpenTreeMap/otm-vagrant/archive/master.zip

Do i have to build a virtual machine? an ubuntu VM?


What is the next step?

Sorry if i'm boring you


Message has been deleted

Nico Aliotta

unread,
Mar 29, 2016, 10:32:48 AM3/29/16
to opentreemap-user
For cygwin i've installed ssh and rsync:

Maybe this steps can be added in tutorial for "Win Newbye"

Proceed through the Cygwin setup process until you get to the "Select Packages" screen. From there, make sure the following packages are selected:
  • Net -> openssh
  • Net -> rsync
  • Web -> wget (optional, but useful for downloading files without a browser)


Il giorno martedì 29 marzo 2016 16:23:12 UTC+2, Nico Aliotta ha scritto:
on cygwin if i "run":

Nico@Nico-dev ~
$ mkdir otm2

Nico@Nico-dev ~
$ cd otm2

Nico@Nico-dev ~/otm2
$ get-repos.sh
-bash: get-repos.sh: comando non trovato

comando non trovato is command not found in italian.

I've unzipped OTM-vagrant repository in C:\otm2




Nico Aliotta

unread,
Mar 30, 2016, 1:21:38 PM3/30/16
to opentreemap-user
I tryed both

wget https://github.com/OpenTreeMap/otm-vagrant
and i've a new file/folder in my vagrant but i cannot run the sh

and git clone https://github.com/OpenTreeMap/otm-vagrant
but i recieve
$ git-clone https://github.com/OpenTreeMap/otm-vagrant
-bash: git-clone: comando non trovato

what is the right command to "Clone this repository" ?

Justin Walgran

unread,
Mar 30, 2016, 4:40:55 PM3/30/16
to opentree...@googlegroups.com
Nico,

You should be able to run the get-repos.sh script in Cygwin if you add ./ as a prefix. 
Nico@Nico-dev ~/otm2
$ ./get-repos.sh
The ./ is shorthand for “Don’t search the PATH for a program named get-repos.sh. Just run the script named get-repos.sh in the current directory”

On Tue, Mar 29, 2016 at 7:23 AM, Nico Aliotta <nicoa...@gmail.com> wrote:
on cygwin if i "run":

Nico@Nico-dev ~
$ mkdir otm2

Nico@Nico-dev ~
$ cd otm2

Nico@Nico-dev ~/otm2
$ get-repos.sh
-bash: get-repos.sh: comando non trovato

comando non trovato is command not found in italian.

I've unzipped OTM-vagrant repository in C:\otm2






Il giorno martedì 29 marzo 2016 16:05:35 UTC+2, Nico Aliotta ha scritto:

--
You received this message because you are subscribed to the Google Groups "opentreemap-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentreemap-us...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nico Aliotta

unread,
Mar 30, 2016, 5:05:32 PM3/30/16
to opentreemap-user
Thanks Justin

i installed also git on cygwin all was fine.

Now i've another problem:

==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: Rsyncing folder: /home/Nico/otm-vagrant/otm-core/ => /usr/local/otm/app
==> default:   - Exclude: [".vagrant/", ".git/", "node_modules", "opentreemap"]
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.

Host path: /home/Nico/otm-vagrant/otm-core/
Guest path: /usr/local/otm/app
Command: rsync --verbose --archive --delete -z --copy-links --chmod=ugo=rwX --no-perms --no-owner --no-group --rsync-path sudo rsync -e ssh -p 2222 -o ControlMaster=auto -o ControlPath=C:/cygwin64/tmp/ssh.334 -o ControlPersist=10m -o StrictHostKeyChecking=no -o IdentitiesOnly=true -o UserKnownHostsFile=/dev/null -i 'C:/cygwin64/home/Nico/otm-vagrant/.vagrant/machines/default/virtualbox/private_key' --exclude .vagrant/ --exclude .git/ --exclude node_modules --exclude opentreemap /home/Nico/otm-vagrant/otm-core/ vag...@127.0.0.1:/usr/local/otm/app
Error: Warning: Permanently added '[127.0.0.1]:2222' (ECDSA) to the list of known hosts.
mm_receive_fd: no message header
process_mux_new_session: failed to receive fd 0 from slave
mux_client_request_session: read from master failed: Connection reset by peer
Failed to connect to new control master
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]


i've installed resync on cygwin but i've still this error

Nico Aliotta

unread,
Mar 31, 2016, 1:34:33 PM3/31/16
to opentreemap-user
Seems that i fixed the problem of resync under vagrant 1.8.1


We have to remove the following codes (line 77~79):

"-o ControlMaster=auto " +
"-o ControlPath=#{controlpath} " +
"-o ControlPersist=10m " +

from the file
C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.1\plugins\synced_folders\rsync\helper.rb

and disappear these errors:

Failed to connect to new control master
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]

but now i've this:



$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 80 (guest) => 7070 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Remote connection disconnect. Retrying...

==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.36
    default: VirtualBox Version: 5.0
==> default: Rsyncing folder: /home/Nico/otm-vagrant/otm-core/ => /usr/local/otm/app
==> default:   - Exclude: [".vagrant/", ".git/", "node_modules", "opentreemap"]
==> default: Rsyncing folder: /home/Nico/otm-vagrant/ => /vagrant
==> default:   - Exclude: [".vagrant/", ".git/"]
==> default: Rsyncing folder: /home/Nico/otm-vagrant/otm-tiler/ => /usr/local/tiler
==> default:   - Exclude: [".vagrant/", ".git/", "node_modules", "settings.json"]
==> default: Rsyncing folder: /home/Nico/otm-vagrant/otm-ecoservice/ => /usr/local/ecoservice
==> default:   - Exclude: [".vagrant/", ".git/"]
==> default: Mounting shared folders...
    default: /usr/local/otm/app/opentreemap => C:/cygwin64/home/Nico/otm-vagrant/otm-core/opentreemap
==> default: Running provisioner: shell...
    default: Running: C:/cygwin64/tmp/vagrant-shell20160331-5132-1rpt29i.sh
==> default: stdin: is not a tty
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: debconf is already the newest version.
==> default: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==> default: Generating locales...
==> default:   en_US.UTF-8...
==> default: up-to-date
==> default: Generation complete.
==> default: Running provisioner: shell...
    default: Running: C:/cygwin64/tmp/vagrant-shell20160331-5132-1m8vrvh.sh
==> default: stdin: is not a tty
==> default: Get:1 http://security.ubuntu.com trusty-security InRelease
==> default: Splitting up /var/lib/apt/lists/partial/security.ubuntu.com_ubuntu_dists_trusty-security_InRelease into data and signature failed
==> default: Err http://security.ubuntu.com trusty-security InRelease
==> default:
==> default: Get:2 http://archive.ubuntu.com trusty InRelease
==> default: Splitting up /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_trusty_InRelease into data and signature failed
==> default: Ign http://archive.ubuntu.com trusty InRelease
==> default: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://security.ubuntu.com trusty-security InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
==> default:
==> default: E: GPG error: http://archive.ubuntu.com trusty InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.


Nico Aliotta

unread,
Mar 31, 2016, 1:48:25 PM3/31/16
to opentreemap-user

now in virtual box i can see the VM
but when i try to start it asks me the login username and password

i tryed otm password
root password
but are wrong

otm.png

Nico Aliotta

unread,
Mar 31, 2016, 2:35:23 PM3/31/16
to opentreemap-user

We did it!

Thanks also to Michael Maurizi.
I'll write later something if you wnt  to upgrade the readme for win users and vagrant  and Virtualbox5.0
Immagine.png
Reply all
Reply to author
Forward
0 new messages