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

Temporary docker failure - is unrecoverable error #2014

Closed
kak-tus opened this issue Nov 20, 2016 · 2 comments
Closed

Temporary docker failure - is unrecoverable error #2014

kak-tus opened this issue Nov 20, 2016 · 2 comments

Comments

@kak-tus
Copy link

kak-tus commented Nov 20, 2016

Nomad version

Nomad v0.5.0

Operating system and Environment details

Ubuntu server 16.04
Docker 1.12.3

Issue

Temporary docker failure - is unrecoverable error for nomad.

Reproduction steps

No.

Nomad Server logs (if appropriate)

Docker

2016-11-20 12:53:28 c1 [docker 27877]  time="2016-11-20T12:53:28.710121858+03:00" level=error msg="Handler for POST /containers/create returned error: No such image: kaktuss/nginx-frontend:0.15"

Nomad

2016-11-20 12:53:28 c1 [nomad 16781]      2016/11/20 12:53:28.711646 [ERR] driver.docker: failed to create container: no such image
2016-11-20 12:53:28 c1 [nomad 16781]  driver.docker: failed to create container: no such image
2016-11-20 12:53:28 c1 [nomad 16781]      2016/11/20 12:53:28.714431 [INFO] client: failed to start task 'nginx' for alloc '4a9b5678-7e74-fd65-4e36-80d44013edeb': Failed to create container: no such image
2016-11-20 12:53:28 c1 [nomad 16781]  client: failed to start task 'nginx' for alloc '4a9b5678-7e74-fd65-4e36-80d44013edeb': Failed to create container: no such image
2016-11-20 12:53:28 c1 [nomad 16781]      2016/11/20 12:53:28.714987 [INFO] client: Not restarting task: nginx for alloc: 4a9b5678-7e74-fd65-4e36-80d44013edeb
2016-11-20 12:53:28 c1 [nomad 16781]  client: Not restarting task: nginx for alloc: 4a9b5678-7e74-fd65-4e36-80d44013edeb

Nomad Client logs (if appropriate)

nomad alloc-status 4a9b5678
ID                 = 4a9b5678
Eval ID            = 9fc2c79d
Name               = nginx-frontend.nginx-frontend[0]
Node ID            = d0eead01
Job ID             = nginx-frontend
Client Status      = failed
Client Description = <none>
Created At         = 11/20/16 12:53:22 MSK

Task "nginx" is "dead"
Task Resources
CPU      Memory  Disk  IOPS  Addresses
100 MHz  64 MiB  0 B   0     http: some ip:80
                             https: some ip:443

Recent Events:
Time                   Type            Description
11/20/16 12:53:28 MSK  Not Restarting  Error was unrecoverable
11/20/16 12:53:28 MSK  Driver Failure  failed to start task 'nginx' for alloc '4a9b5678-7e74-fd65-4e36-80d44013edeb': Failed to create container: no such image
11/20/16 12:53:27 MSK  Received        Task received by client

Job file (if appropriate)

job "nginx-frontend" {
  region = "europe"
  datacenters = ["dc-firstbyte", "dc-vmland"]
  type = "system"

  group "nginx-frontend" {

    restart {
      interval = "1m"
      attempts = 2
      delay = "15s"
      mode = "delay"
    }

    task "nginx" {
      driver = "docker"

      config {
        image = "kaktuss/nginx-frontend:0.15"
        hostname = "nginx-frontend.weave.local"
        port_map {
          http = 80
          https = 443
        }
        dns_servers = ["172.18.0.1"]
        network_mode = "host"
        tty = true
        logging = {
          type = "syslog"
          config = {
            syslog-facility = "daemon"
            tag = "nginx"
          }
        }
      }

      service {
        name = "nginx-frontend"
        port = "http"
        check {
          type = "tcp"
          interval = "10s"
          timeout = "2s"
        }
      }

      env {
        CONSUL_HTTP_ADDR = "consul.service.consul:8500"
        CONSUL_TOKEN = "..."
        VAULT_ADDR = "http://vault.service.consul:8200/"
        VAULT_TOKEN = "..."
      }

      resources {
        cpu = 100
        memory = 64
        network {
          mbits = 1
          port "http" {
            static = 80
          }
          port "https" {
            static = 443
          }
        }
      }
    }

  }
}
@camerondavison
Copy link
Contributor

Makes me happy to see this labeled as a bug. Maybe we are getting closer to something that will also fix #1406 (where we have different opinions about what is considered a recoverable error)

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants