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

Retry periodically for 60s if syslog setup fails #2455

Merged
merged 1 commit into from
Nov 1, 2016
Merged

Conversation

kyhavlov
Copy link
Contributor

@kyhavlov kyhavlov commented Nov 1, 2016

Fixes #1610

@slackpad slackpad merged commit e1f8a41 into master Nov 1, 2016
@slackpad slackpad deleted the f-syslog-retry branch November 1, 2016 00:24
@slackpad
Copy link
Contributor

slackpad commented Nov 1, 2016

LGTM

@DamionWaltermeyer
Copy link

This seems to still exist in 0.7.2.

Never actually finds syslog and exits.

==> Syslog setup error: Unix syslog delivery error
==> Retrying syslog setup in 5s...
==> Syslog setup error: Unix syslog delivery error
==> Syslog setup did not succeed within timeout (1m0s).

@slackpad
Copy link
Contributor

slackpad commented Jan 6, 2017

Hi @DamionWaltermeyer is that reproducible for you or do you just see that occasionally?

@DamionWaltermeyer
Copy link

DamionWaltermeyer commented Jan 6, 2017

Very reproducible. I'm using your dockerfile, If I don't declare -dev, it happens.

I've been giving it a shot adding and removing bits of CMD, but right now:
CMD ["agent", "-dev", "-ui", "-client=0.0.0.0", "-bind=0.0.0.0", "-server","-datacenter=OurDataCenterName","-encrypt=myKeyData=="]

I'm trying to pair it with nginx-proxy and docker-gen to handle the ssl traffic, so I'm creating the container with this following.

docker create --name consul-server -e VIRTUAL_HOST=OurVirtualHostName -e VIRTUAL_PORT=8500 consul-server
I had some volumes at one point, but it didn't seem to make any difference in the troubleshooting of the issue.

I tried declaring things through the commandline, but they didn't seem to take, we have consul running as our central server/ui well on the host using a config file that meets our needs, but I'm having trouble getting it running in the container, I think if I could get past the syslog part, and figure out how to properly declare the IP for inside the container so other instances would know how to reach out to it's api, I'd be all set.

Ubuntu 14.04 is the host system
Docker
Server Version: 1.12.5
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 64
Dirperm1 Supported: false
Logging Driver: syslog

@kyhavlov
Copy link
Contributor Author

@DamionWaltermeyer If you're running Consul inside a container, you probably don't want to enable syslog; it won't work unless you set up one inside the same container, which is more complicated than having docker itself send the container's logs to syslog: https://docs.docker.com/engine/admin/logging/overview/#/syslog-options.

For your second point about IPs, you probably want to look into the --link option or docker's network stuff, depending on your case.

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

Successfully merging this pull request may close these issues.

3 participants