Coder Social home page Coder Social logo

Comments (6)

wenzel-felix avatar wenzel-felix commented on August 30, 2024

Could you check, if the key already exists? Probably a leftover from the filed deployment yesterday.

from terraform-hetzner-nomad-consul-module.

vorillaz avatar vorillaz commented on August 30, 2024

Hey @wenzel-felix what do you mean?
What's the default path for the key?

from terraform-hetzner-nomad-consul-module.

wenzel-felix avatar wenzel-felix commented on August 30, 2024

If you no longer have the state file from the apply yesterday (basically if you are unable to "terraform destroy" yesterday's setup), please remove the ssh key manually in the Hetzner Cloud panel.

from terraform-hetzner-nomad-consul-module.

vorillaz avatar vorillaz commented on August 30, 2024

@wenzel-felix Gotcha, now there is another error popping:

null_resource.fetch_nomad_token (local-exec): 100    44  100    44    0     0  14666      0 --:--:-- --:--:-- --:--:-- 14666
╷
│ Error: local-exec provisioner error
│
│   with null_resource.fetch_nomad_token,
│   on hcloud_server.tf line 77, in resource "null_resource" "fetch_nomad_token":
│   77:   provisioner "local-exec" {
│
│ Error running command '      for i in 95.216.215.219 65.108.223.157 135.181.254.157
│       do
│         ssh -i ./certs/machines.pem -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" root@$i curl --request POST http://localhost:4646/v1/acl/bootstrap | jq -r -R 'fromjson? | .SecretID?' >> ./certs/nomad_token
│       done
│ ': exit status 127. Output: /bin/sh: line 2: jq: command not found
│ Warning: Permanently added '95.216.215.219' (ECDSA) to the list of known hosts.
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
100   364  100   364    0     0  72800      0 --:--:-- --:--:-- --:--:-- 72800
│ /bin/sh: line 2: jq: command not found
│ Warning: Permanently added '65.108.223.157' (ECDSA) to the list of known hosts.
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
100    44  100    44    0     0  14666      0 --:--:-- --:--:-- --:--:-- 14666
│ /bin/sh: line 2: jq: command not found
│ Warning: Permanently added '135.181.254.157' (ECDSA) to the list of known hosts.
│   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
│                                  Dload  Upload   Total   Spent    Left  Speed
100    44  100    44    0     0  14666      0 --:--:-- --:--:-- --:--:-- 14666
│
╵

from terraform-hetzner-nomad-consul-module.

wenzel-felix avatar wenzel-felix commented on August 30, 2024

@vorillaz you need to install jq

from terraform-hetzner-nomad-consul-module.

vorillaz avatar vorillaz commented on August 30, 2024

Snaps, you're right. Thanks!

from terraform-hetzner-nomad-consul-module.

Related Issues (17)

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.