Skip to content

Consul service panics on journalctl restart #2404

Closed
@xytis

Description

@xytis

The same vulnerability as with docker: moby/moby#19728

consul version for Client

Client: Consul v0.6.3

consul info for Client

Client:

agent:
    check_monitors = 0
    check_ttls = 0
    checks = 1
    services = 1
build:
    prerelease =
    revision = c933efde
    version = 0.6.3
consul:
    known_servers = 5
    server = false
runtime:
    arch = amd64
    cpu_count = 24
    goroutines = 48
    max_procs = 2
    os = linux
    version = go1.5.3
serf_lan:
    encrypted = false
    event_queue = 0
    event_time = 62
    failed = 0
    intent_queue = 0
    left = 0
    member_time = 601
    members = 34
    query_queue = 0
    query_time = 1

Description of the Issue (and unexpected/desired result)

consul daemon restarts when journald is restarted

Reproduction steps

systemctl restart systemd-journald.service

Activity

rbjorklin

rbjorklin commented on Oct 31, 2016

@rbjorklin

We've also encountered this problem. Not sure if it matters but we've been running consul as a service too.

[Unit]
Description=replicated key—value store
After=network-online.target
[Service]
User=consul
ExecStart=/usr/local/bin/consul agent -config-file /etc/consul.d/config.json
KillSignal=SIGINT
[Install]
WantedBy=default.target

EDIT:

# /usr/local/bin/consul version
Consul v0.6.4
Consul Protocol: 3 (Understands back to: 1)
rbjorklin

rbjorklin commented on Oct 31, 2016

@rbjorklin

Reading through the thread over at the Docker project this issue might have been resolved in Consul >= 0.7.0 because Consul was built with golang >= 1.6. #1963

Will try this out and report back.

xytis

xytis commented on Oct 31, 2016

@xytis
Author

In addition to golang update such line has to exist:
hashicorp/nomad#1798
(hashicorp/nomad@3a4bb56)

added
type/crashThe issue description contains a golang panic and stack trace
type/bugFeature does not function as expected
on Nov 30, 2016
added this to the 0.7.2 milestone on Nov 30, 2016
mckennajones

mckennajones commented on Nov 30, 2016

@mckennajones
Contributor

Was unable to reproduce the issue on consul version 0.7.0. However, it still seems like a good idea to add the code that ignores sigpipe signals, so I created a quick PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugFeature does not function as expectedtype/crashThe issue description contains a golang panic and stack trace

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @xytis@slackpad@rbjorklin@mckennajones

        Issue actions

          Consul service panics on journalctl restart · Issue #2404 · hashicorp/consul