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

ignore runtime premeption signals, SIGURG (was: receiving signal "urgent I/O condition") #1486

Closed
MikeVL opened this issue Jun 17, 2021 · 1 comment · Fixed by #1487
Closed
Labels
Milestone

Comments

@MikeVL
Copy link

MikeVL commented Jun 17, 2021

Consul Template version

v0.26.0

Configuration

consul {
  address = "consul.service.consul:8500"
}

log_level = "info"

vault {
  address = "http://active.vault.service.consul:8200"
}

exec {
  command = "consul/uwsgi.sh"
  splay = "30s"

  env {
    custom = [
      "DJANGO_CONF=consul/django.conf.py",
    ]
  }

  reload_signal = "SIGHUP"
  kill_signal = "SIGTERM"
}

template {
  source = "consul/django.conf.ctmpl"
  destination = "consul/django.conf.py"
  error_on_missing_key = true
  backup = true

  wait {
    min = "5s"
  }
}

Command

# consul/uwsgi.sh

if [[ -f "${DJANGO_CONF}.bak" ]]; then
    diff --color=always ${DJANGO_CONF}.bak ${DJANGO_CONF} > /dev/stdout
fi

exec uwsgi --ini uwsgi.ini ${UWSGI_EXTRA_ARGS}

Nomad console log

Снимок экрана 2021-06-17 в 17 15 52

@eikenb eikenb added the bug label Jun 21, 2021
@eikenb
Copy link
Contributor

eikenb commented Jun 22, 2021

Hey @MikeVL, thanks for taking the time to file an issue.

I'm pretty sure you are seeing this due to changes in the Go runtime. I'm going to convert this to a feature request to have consul-template handle the SIGURG signals and ignore them.

Some context on the Go runtime change.

The proposal and ticket for the change.

A ticket to have the runtime mask the SIGURG signals from the rutime.

@eikenb eikenb changed the title receiving signal "urgent I/O condition" ignore runtime premeption signals, SIGURG (was: receiving signal "urgent I/O condition") Jun 22, 2021
@eikenb eikenb added this to the 0.26.1 milestone Jun 23, 2021
@eikenb eikenb added bug and removed enhancement labels Jun 23, 2021
bubtheengineer added a commit to bubtheengineer/cloudkey that referenced this issue May 24, 2024
SIGURG is causing constant exits
See here: hashicorp/consul-template#1486
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants