Hi,
It would be a strange error to get for this cause but one definite problem you'll be having there is that you're using an HTTPS Vault address on the client but TLS is disabled. You should use -address or set VAULT_ADDR to fix that.
Best,
Jeff
--
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/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/ad378dc9-105e-4319-8922-a6713da035ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
As a first order I suggest connecting with telnet to verify that it's actually listening on localhost; your system may be doing weird things with 0.0.0.0. You could try just making the listener explicitly set to 127.0.0.1 as well.
Best,
Jeff
--
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/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/f94b8d7b-8a4e-41e9-89c0-a4cd487d02ed%40googlegroups.com.
Hi Jeff,
[vagrant@localhost ~]$ telnet localhost 8200Trying ::1...telnet: connect to address ::1: Connection refusedTrying 127.0.0.1...telnet: connect to address 127.0.0.1: Connection refused
What does netstat -tln say?
The server is on the same machine as the client right?
Best,
Jeff
--
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/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/ebb85b4d-487f-4c5a-9c6c-b807a12bfb5c%40googlegroups.com.
Yes i am using the same machine for the client and the server.
[vagrant@localhost ~]$ netstat -tlnActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 0.0.0.0:111 0.0.0.0:* LISTENtcp 0 0 0.0.0.0:22 0.0.0.0:* LISTENtcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTENtcp 0 0 127.0.0.1:25 0.0.0.0:* LISTENtcp6 0 0 :::111 :::* LISTENtcp6 0 0 :::22 :::* LISTENtcp6 0 0 ::1:5432 :::* LISTENtcp6 0 0 ::1:25 :::* LISTEN
Vault is, indeed, not listening... it'd be on port 8200.
I'm not sure what to tell you unfortunately. This feels like some issue with your machine or you think you're on the same machine but aren't, or some similar thing.
What happens if you launch the Vault server, Ctrl+Z to put it in the background (or run with &), and run that netstat command within that terminal?
Best,
Jeff
--
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/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/9786295e-a365-4c70-9feb-4efc8ceb8307%40googlegroups.com.
[vagrant@localhost ~]$ vault server -config myvault.hcl
==> Vault server configuration:Backend: postgresql
Listener 1: tcp (addr: "127.0.0.1:8200", cluster address: "", tls: "disabled")
Log Level: infoMlock: supported: true, enabled: falseVersion: Vault v0.6.2==> Vault server started! Log data will stream in below:
^Z[1]+ Stopped vault server -config myvault.hcl
[vagrant@localhost ~]$ netstat -tlnActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address Statetcp 0 0 0.0.0.0:111 0.0.0.0:* LISTENtcp 0 0 0.0.0.0:22 0.0.0.0:* LISTENtcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTENtcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8200 0.0.0.0:* LISTEN
tcp6 0 0 :::111 :::* LISTENtcp6 0 0 :::22 :::* LISTENtcp6 0 0 ::1:5432 :::* LISTENtcp6 0 0 ::1:25 :::* LISTEN
[vagrant@localhost ~]$ vault initError initializing Vault: Put http://127.0.0.1:8200/v1/sys/init: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Ok, so if i have to list my steps that i took :
Thanks for all the help Jeff, Appreciate it.