Vagrant Google Plugin issues

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Vagrant Google Plugin issues

jruels
Hello,
I followed the README at https://github.com/mitchellh/vagrant-google

I believe I have everything setup correctly, but when I try to run `vagrant up --provider=google` I get the following error

Private key for Google could not be found in the specified location

I have confirmed the SSH key does in fact exist in the specified location and if I manually run

`ssh -i /path/to/sshkey username@IP`   it logs me in successfully. 

Where can I look to debug this issue? 

Thanks,
-js

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Google Plugin issues

Alvaro Miranda Aguilera
Hello

That error happen when none of these is set:

config.google_key_location
config.google_json_key_location

which from the readme is this file:

google.google_json_key_location = "/path/to/your/private-key.json"

can you check you have that file and the path is good?

Alvaro

On Wed, May 24, 2017 at 11:07 PM, <[hidden email]> wrote:
Hello,

I believe I have everything setup correctly, but when I try to run `vagrant up --provider=google` I get the following error

Private key for Google could not be found in the specified location

I have confirmed the SSH key does in fact exist in the specified location and if I manually run

`ssh -i /path/to/sshkey username@IP`   it logs me in successfully. 

Where can I look to debug this issue? 

Thanks,
-js

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyGes5ZfuZExE_bF83LVxV5SGG%2BVMMYW7YNs5phj0d-DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Google Plugin issues

jruels
Hello,
I have the following in my Vagrantfile: 

Vagrant.configure("2") do |config|
  config.vm.box = "google/gce"

  config.vm.provider :google do |google, override|
    google.google_project_id = "vagrant-168620"
    google.google_client_email = "[hidden email]"
    google.google_json_key_location = "~/creds/vagrant-a46870ac43b5.json"

    override.ssh.username = "jruels"
    override.ssh.private_key_path = "/Users/jruels/.ssh/id_rsa"
  end

end

The JSON file downloaded from Google exists in the specified location.

ls -ltr ~/creds/vagrant-a46870ac43b5.json
-rw-r--r--@ 1 jruels  staff  2318 May 24 14:00 /Users/jruels/creds/vagrant-a46870ac43b5.json

Anything else I can try to figure out where it's failing?

Thanks,
-js
-- Typo’s courtesy of Apple --

On May 25, 2017, 1:15 AM -0700, Alvaro Miranda Aguilera <[hidden email]>, wrote:
Hello

That error happen when none of these is set:

config.google_key_location
config.google_json_key_location

which from the readme is this file:

google.google_json_key_location = "/path/to/your/private-key.json"

can you check you have that file and the path is good?

Alvaro

On Wed, May 24, 2017 at 11:07 PM, <[hidden email]> wrote:
Hello,

I believe I have everything setup correctly, but when I try to run `vagrant up --provider=google` I get the following error

Private key for Google could not be found in the specified location

I have confirmed the SSH key does in fact exist in the specified location and if I manually run

`ssh -i /path/to/sshkey username@IP`   it logs me in successfully. 

Where can I look to debug this issue? 

Thanks,
-js

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/PnKaCfDrbFw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyGes5ZfuZExE_bF83LVxV5SGG%2BVMMYW7YNs5phj0d-DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/43c5e2b5-bee8-43ca-b977-35628d3f32fc%40Spark.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Google Plugin issues

jruels
Actually it looks like I found the issue. 

Can't use ~  when specifying path to JSON file. 

Problem Resolved. 

Thanks,
-js


On Thursday, May 25, 2017 at 10:25:42 AM UTC-7, Jason Smith wrote:
Hello,
I have the following in my Vagrantfile: 

Vagrant.configure("2") do |config|
  config.vm.box = "google/gce"

  config.vm.provider :google do |google, override|
    google.google_project_id = "vagrant-168620"
    google.google_client_email = "[hidden email]"
    google.google_json_key_location = "~/creds/vagrant-a46870ac43b5.json"

    override.ssh.username = "jruels"
    override.ssh.private_key_path = "/Users/jruels/.ssh/id_rsa"
  end

end

The JSON file downloaded from Google exists in the specified location.

ls -ltr ~/creds/vagrant-a46870ac43b5.json
-rw-r--r--@ 1 jruels  staff  2318 May 24 14:00 /Users/jruels/creds/vagrant-a46870ac43b5.json

Anything else I can try to figure out where it's failing?

Thanks,
-js
-- Typo’s courtesy of Apple --

On May 25, 2017, 1:15 AM -0700, Alvaro Miranda Aguilera <[hidden email]>, wrote:
Hello

That error happen when none of these is set:

config.google_key_location
config.google_json_key_location

which from the readme is this file:

google.google_json_key_location = "/path/to/your/private-key.json"

can you check you have that file and the path is good?

Alvaro

On Wed, May 24, 2017 at 11:07 PM, <[hidden email]> wrote:
Hello,
I followed the README at <a href="https://github.com/mitchellh/vagrant-google" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant-google\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEY6_qP-8sTlXEDlKJJdLK39ceYYQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant-google\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEY6_qP-8sTlXEDlKJJdLK39ceYYQ&#39;;return true;">https://github.com/mitchellh/vagrant-google

I believe I have everything setup correctly, but when I try to run `vagrant up --provider=google` I get the following error

Private key for Google could not be found in the specified location

I have confirmed the SSH key does in fact exist in the specified location and if I manually run

`ssh -i /path/to/sshkey username@IP`   it logs me in successfully. 

Where can I look to debug this issue? 

Thanks,
-js

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/5ff626dd-e18a-4008-ab29-d9d4f874d76c%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/vagrant-up/PnKaCfDrbFw/unsubscribe" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/topic/vagrant-up/PnKaCfDrbFw/unsubscribe&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/topic/vagrant-up/PnKaCfDrbFw/unsubscribe&#39;;return true;">https://groups.google.com/d/topic/vagrant-up/PnKaCfDrbFw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyGes5ZfuZExE_bF83LVxV5SGG%2BVMMYW7YNs5phj0d-DA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyGes5ZfuZExE_bF83LVxV5SGG%2BVMMYW7YNs5phj0d-DA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyGes5ZfuZExE_bF83LVxV5SGG%2BVMMYW7YNs5phj0d-DA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/CAHqq0eyGes5ZfuZExE_bF83LVxV5SGG%2BVMMYW7YNs5phj0d-DA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
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/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a52bfbd8-82fe-482d-8dbf-078c4e7b8b71%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.