Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consul template writes garbage to templates (rpc error: unexpected EOF) #338

Closed
jnsaff opened this issue Jul 16, 2015 · 4 comments
Closed

Comments

@jnsaff
Copy link

jnsaff commented Jul 16, 2015

When Consul is having trouble Consul Template writes error messages into the template outputs. In my case it's "rpc error: unexpected EOF". Having garbage written into configuration files for applications is worse then writing anything at all or keeping previous good file.

@sethvargo
Copy link
Contributor

Hi @jnsaff

That seems like a bad thing - can you please share your configuration file and the command you are running?

@jnsaff
Copy link
Author

jnsaff commented Jul 24, 2015

This was not a consultemplate problem after all. We downloaded the templates via curl from consul to be used by consultemplate. Consul itself gave 200 response to a failing request and this content. So this is a problem with Consul and/or how our workflow is set up. Sorry about crying wolf without understanding the issue.

@jnsaff jnsaff closed this as completed Jul 24, 2015
@sflint
Copy link

sflint commented Nov 26, 2015

I am having a similar issue :

==> WARNING: LAN keyring exists but -encrypt given, using keyring
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Joining cluster...
==> EOF

This is what I get when trying to connect to a cluster with a client agent

Config file :
{
"server": false,
"datacenter": "nyc2",
"data_dir": "/var/consul",
"ui_dir": "/home/consul/dist",
"encrypt": "F5dVJ1T1JXKKdUDlKOTkBw==",
"log_level": "INFO",
"enable_syslog": true,
"start_join" : ["192.186.2.44","192.168.2.45","192.168.2.46"],
"bind_addr" : "192.168.2.47",
"node_name" : "192.168.2.47"
}

@sflint
Copy link

sflint commented Nov 26, 2015

I think I found what the issue is : hashicorp/consul#1013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants