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

Nomad doesn't stop allocations sometimes #2779

Closed
tantra35 opened this issue Jul 5, 2017 · 15 comments
Closed

Nomad doesn't stop allocations sometimes #2779

tantra35 opened this issue Jul 5, 2017 · 15 comments

Comments

@tantra35
Copy link
Contributor

tantra35 commented Jul 5, 2017

Nomad version

Nomad v0.6.0-dev (52ffc01+CHANGES)

we try to stop one job with nomad stop Grafana and job allocaions doesn't stop

root@social:/home/nomad# nomad status Grafana
ID            = Grafana
Name          = Grafana
Type          = service
Priority      = 50
Datacenters   = test
Status        = dead (stopped)
Periodic      = false
Parameterized = false

Summary
Task Group  Queued  Starting  Running  Failed  Complete  Lost
Grafana     0       0         1        1       9         0

Allocations
ID        Eval ID   Node ID   Task Group  Desired  Status   Created At
07140d4c  f6fd8136  e47c7718  Grafana     stop     failed   07/05/17 23:50:19 MSK
9264da61  233032d5  80a8ab8d  Grafana     stop     running  07/05/17 19:53:50 MSK

Also we see follow running allocation status:

root@social:/home/nomad# nomad alloc-status 9264da61
ID                  = 9264da61
Eval ID             = 233032d5
Name                = Grafana.Grafana[0]
Node ID             = 80a8ab8d
Job ID              = Grafana
Client Status       = running
Client Description  = <none>
Desired Status      = stop
Desired Description = alloc is being updated due to job update
Created At          = 07/05/17 19:53:50 MSK

Task "Grafana" is "running"
Task Resources
CPU        Memory           Disk     IOPS  Addresses
1/300 MHz  568 MiB/700 MiB  300 MiB  0

Recent Events:
Time                   Type                   Description
07/05/17 19:54:58 MSK  Started                Task started by client
07/05/17 19:53:53 MSK  Downloading Artifacts  Client is downloading artifacts
07/05/17 19:53:53 MSK  Task Setup             Building Task Directory
07/05/17 19:53:53 MSK  Received               Task received by client

And we concluded that nomad client didn't even a try to stop allocation. And what we can do now? How we can stop this buggy allocation? We try simple kill nomad watch dog process for allocation but it created again

@schmichael
Copy link
Member

Hi! Thanks for testing master. Sorry you hit a bug. Any chance you could post your client logs (you can attach a file as a comment or use gist.github.com if they're long)? You could even grep by that allocation ID if you wanted to post a minimal set, but that might miss some relevant lines.

@schmichael
Copy link
Member

The <state_dir>/state.db file would be helpful, but since it contains all of your job definitions you might want to email me directly instead of posting it publicly (unless there's nothing secret in it): schmichael@hashicorp.com

As for how to recover simply restarting the nomad client daemon should get things back into a clean state. Worst case scenario this should get you back to a clean slate:

  • node-drain
  • shutdown the daemon
  • manually kill any orphaned task processes if nomad couldn't
  • remove nomad's state_dir and alloc_dirs
  • restart the daemon

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 6, 2017

As it turned out, nomad agent can't stop allocations placed on it(is simple ignores desired state, and not even tried anything to do with allocations which was placed on the node

Allocations
ID        Eval ID   Job ID                                            Task Group                    Desired Status  Client Status
a05f6f12  dfe6dd42  dynamoDBLocal                                     dynamoDBLocal                 run             pending
7cb06349  0c5f607d  MansionMakeover                                   MansionMakeover               run             pending
b0b74324  3fe70ab0  githubproxy-simple                                githubproxy-simple            run             pending
d318cf9e  0f6f459a  dynamoDBLocal                                     dynamoDBLocal                 stop            <none>
78025098  954b1ff5  dynamoDBLocal                                     dynamoDBLocal                 stop            <none>
0cd6a98d  6fcc6a0f  zabbixremoveawsautoscaleCron/periodic-1499278560  zabbixremoveawsautoscaleCron  stop            <none>
ce3cd7ce  025b5bfa  carbon                                            carbon-a                      stop            running
5aa856df  a43528ce  dynamoDBLocal                                     dynamoDBLocal                 stop            running
0540ac6c  7378c5aa  zabbixfrontend                                    zabbixfrontend                stop            running
d874e7df  1aaaac88  githubproxy-simple                                githubproxy-simple            stop            running
10092198  a1c82e11  S3apiCacheCron/periodic-1498608000                S3apiCacheCron                stop            running
08d71e6d  d246e800  MansionMakeover                                   MansionMakeover               stop            running

)

So we tried to restart nomad agent. Before we restart nomad we see follow in logs:

root@vol-h-docker-04:/home/ruslan# journalctl -u nomad -S "today"  --no-pager
-- Logs begin at Thu 2017-06-29 23:25:16 MSK, end at Thu 2017-07-06 17:20:53 MSK. --
Jul 06 10:54:16 vol-h-docker-04 nomad[3112]:     2017/07/06 10:54:16.461504 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:54:20 vol-h-docker-04 nomad[3112]:     2017/07/06 10:54:20.400322 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:54:21 vol-h-docker-04 nomad[3112]:     2017/07/06 10:54:21.789603 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:54:22 vol-h-docker-04 nomad[3112]:     2017/07/06 10:54:22.831213 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:54:24 vol-h-docker-04 nomad[3112]:     2017/07/06 10:54:24.591991 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:54:44 vol-h-docker-04 nomad[3112]:     2017/07/06 10:54:44.904505 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:55:04 vol-h-docker-04 nomad[3112]:     2017/07/06 10:55:04.002169 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:55:08 vol-h-docker-04 nomad[3112]:     2017/07/06 10:55:08.274312 [ERR] http: Request /v1/client/allocation/78025098-9fb2-667a-32a0-9618853e8d03/stats, error: unknown allocation ID "78025098-9fb2-667a-32a0-9618853e8d03"
Jul 06 10:55:37 vol-h-docker-04 nomad[3112]:     2017/07/06 10:55:37.808305 [ERR] http: Request /v1/client/allocation/d318cf9e-9950-dd2d-eadc-77e6f7e30fcf/stats, error: unknown allocation ID "d318cf9e-9950-dd2d-eadc-77e6f7e30fcf"
Jul 06 11:01:43 vol-h-docker-04 nomad[3112]:     2017/07/06 11:01:43.015005 [ERR] http: Request /v1/client/allocation/d318cf9e-9950-dd2d-eadc-77e6f7e30fcf/stats, error: unknown allocation ID "d318cf9e-9950-dd2d-eadc-77e6f7e30fcf"
Jul 06 11:01:43 vol-h-docker-04 nomad[3112]:     2017/07/06 11:01:43.964660 [ERR] http: Request /v1/client/allocation/d318cf9e-9950-dd2d-eadc-77e6f7e30fcf/stats, error: unknown allocation ID "d318cf9e-9950-dd2d-eadc-77e6f7e30fcf"
Jul 06 11:01:44 vol-h-docker-04 nomad[3112]:     2017/07/06 11:01:44.486916 [ERR] http: Request /v1/client/allocation/d318cf9e-9950-dd2d-eadc-77e6f7e30fcf/stats, error: unknown allocation ID "d318cf9e-9950-dd2d-eadc-77e6f7e30fcf"
Jul 06 11:01:44 vol-h-docker-04 nomad[3112]:     2017/07/06 11:01:44.991923 [ERR] http: Request /v1/client/allocation/d318cf9e-9950-dd2d-eadc-77e6f7e30fcf/stats, error: unknown allocation ID "d318cf9e-9950-dd2d-eadc-77e6f7e30fcf"
Jul 06 11:03:03 vol-h-docker-04 systemd[1]: Stopping Nomad agent...

after that we try to restart nomad agent we see follow:

Jul 06 11:03:03 vol-h-docker-04 nomad[3112]: ==> Caught signal: interrupt
Jul 06 11:03:04 vol-h-docker-04 nomad[3112]:     2017/07/06 11:03:04.161191 [ERR] client: failed to save state of Task Runner for task "zabbixremoveawsautoscaleCron": database not open
Jul 06 11:03:04 vol-h-docker-04 nomad[3112]:     2017/07/06 11:03:04.161231 [ERR] client: failed to save state of Task Runner for task "Grafana": database not open
Jul 06 11:03:04 vol-h-docker-04 nomad[3112]:     2017/07/06 11:03:04.171325 [ERR] client: failed to save state of Task Runner for task "Grafana": database not open
Jul 06 11:03:04 vol-h-docker-04 nomad[3112]:     2017/07/06 11:03:04.228776 [ERR] client: failed to destroy state for alloc 'fca445cd-282d-2350-5a0a-7e35cdf20bac': database not open
Jul 06 11:03:04 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 11:03:04 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:04 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:04 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:04 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:04 vol-h-docker-04 nomad[30818]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:04 vol-h-docker-04 nomad[30818]: ==> Starting Nomad agent...
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: goroutine 1 [running]:
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4206d6a20, 0xc42047ea20, 0xc42061d4c8)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc420132580, 0x0, 0x0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/client.NewClient(0xc4201322c0, 0x1aaba60, 0xc42000e028, 0x1aaeb20, 0xc4201402d0, 0xc4204667d0, 0xc42047e960, 0xc42047e930, 0xc42047e900)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420418e00, 0x0, 0x0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4201338c0, 0x1aa77a0, 0xc4204724a0, 0x0, 0x0, 0x0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203c5860, 0xc4201338c0, 0x1aa77a0, 0xc4204724a0, 0x1, 0xc420417f80)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203c5860, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42013ec00, 0xc42013ec00, 0x1e, 0xc4203dcca0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203c31d0, 0x0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]: main.main()
Jul 06 11:03:09 vol-h-docker-04 nomad[30818]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:09 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:09 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:09 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:09 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:09 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:09 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:09 vol-h-docker-04 nomad[30913]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:09 vol-h-docker-04 nomad[30913]: ==> Starting Nomad agent...
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: goroutine 1 [running]:
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420708000, 0xc4202388d0, 0xc4206274c8)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc42013ac60, 0x0, 0x0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/client.NewClient(0xc42013a580, 0x1aaba60, 0xc42000e050, 0x1aaeb20, 0xc420413320, 0xc4204020f0, 0xc420238810, 0xc4202387e0, 0xc4202387b0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420050000, 0x0, 0x0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4204366e0, 0x1aa77a0, 0xc4204ce720, 0x0, 0x0, 0x0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc420416280, 0xc4204366e0, 0x1aa77a0, 0xc4204ce720, 0x1, 0xc420122a50)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc420416280, 0xc42005e110, 0x1, 0x1, 0x0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4204140c0, 0xc4204140c0, 0x1e, 0xc4204081e0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: main.RunCustom(0xc42005e100, 0x2, 0x2, 0xc42035e390, 0x0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: main.Run(0xc42005e100, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]: main.main()
Jul 06 11:03:13 vol-h-docker-04 nomad[30913]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:13 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:13 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:13 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:14 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:14 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:14 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:14 vol-h-docker-04 nomad[31243]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:14 vol-h-docker-04 nomad[31243]: ==> Starting Nomad agent...
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: goroutine 1 [running]:
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc42071fd40, 0xc4201372f0, 0xc4204b74c8)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4201822c0, 0x0, 0x0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/client.NewClient(0xc420182160, 0x1aaba60, 0xc42013a030, 0x1aaeb20, 0xc4201583f0, 0xc42041c2d0, 0xc420137230, 0xc420137200, 0xc4201371d0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc4204120e0, 0x0, 0x0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc42009d1e0, 0x1aa77a0, 0xc4204280c0, 0x0, 0x0, 0x0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc42008b7c0, 0xc42009d1e0, 0x1aa77a0, 0xc4204280c0, 0x1, 0xc42047e150)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc42008b7c0, 0xc42005e110, 0x1, 0x1, 0x0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200de240, 0xc4200de240, 0x1e, 0xc4200cfaa0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: main.RunCustom(0xc42005e100, 0x2, 0x2, 0xc420122420, 0x0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: main.Run(0xc42005e100, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]: main.main()
Jul 06 11:03:18 vol-h-docker-04 nomad[31243]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:18 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:18 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:18 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:18 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:18 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:18 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:18 vol-h-docker-04 nomad[31316]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:18 vol-h-docker-04 nomad[31316]: ==> Starting Nomad agent...
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: goroutine 1 [running]:
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4206f2900, 0xc420108de0, 0xc4206374c8)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc42008a9a0, 0x0, 0x0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/client.NewClient(0xc42008a840, 0x1aaba60, 0xc420126058, 0x1aaeb20, 0xc4203ef440, 0xc42047e410, 0xc420108c30, 0xc420108ae0, 0xc420108a80)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420425490, 0x0, 0x0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4204106e0, 0x1aa77a0, 0xc42045baa0, 0x0, 0x0, 0x0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203f2280, 0xc4204106e0, 0x1aa77a0, 0xc42045baa0, 0x1, 0xc420445620)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203f2280, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4203f00c0, 0xc4203f00c0, 0x1e, 0xc4201282a0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc420122870, 0x0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]: main.main()
Jul 06 11:03:22 vol-h-docker-04 nomad[31316]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:22 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:22 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:22 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:22 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:22 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:22 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:22 vol-h-docker-04 nomad[31345]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:22 vol-h-docker-04 nomad[31345]: ==> Starting Nomad agent...
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: goroutine 1 [running]:
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4206d8ea0, 0xc420120db0, 0xc4201cf4c8)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4204986e0, 0x0, 0x0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/client.NewClient(0xc420498580, 0x1aaba60, 0xc420126050, 0x1aaeb20, 0xc4204e6120, 0xc42042d090, 0xc420120cf0, 0xc420120cc0, 0xc420120c90)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc4204007e0, 0x0, 0x0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4203f6420, 0x1aa77a0, 0xc42043bdc0, 0x0, 0x0, 0x0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203d6d20, 0xc4203f6420, 0x1aa77a0, 0xc42043bdc0, 0x1, 0xc42041db90)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203d6d20, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200c8d80, 0xc4200c8d80, 0x1e, 0xc4203e25c0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203ccde0, 0x0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]: main.main()
Jul 06 11:03:26 vol-h-docker-04 nomad[31345]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:26 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:26 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:26 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:26 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:26 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:26 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:26 vol-h-docker-04 nomad[31390]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:26 vol-h-docker-04 nomad[31390]: ==> Starting Nomad agent...
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: goroutine 1 [running]:
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420736a20, 0xc420126f90, 0xc4202954c8)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4204fa6e0, 0x0, 0x0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/client.NewClient(0xc4204fa580, 0x1aaba60, 0xc420130040, 0x1aaeb20, 0xc4201543f0, 0xc420460eb0, 0xc420126ed0, 0xc420126ea0, 0xc420126e70)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420428e70, 0x0, 0x0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4200991e0, 0x1aa77a0, 0xc4204713a0, 0x0, 0x0, 0x0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc420087860, 0xc4200991e0, 0x1aa77a0, 0xc4204713a0, 0x1, 0xc420451650)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc420087860, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200d6240, 0xc4200d6240, 0x1e, 0xc4200c9ba0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4201168a0, 0x0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]: main.main()
Jul 06 11:03:30 vol-h-docker-04 nomad[31390]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:30 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:30 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:30 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:31 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:31 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:31 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:31 vol-h-docker-04 nomad[31428]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:31 vol-h-docker-04 nomad[31428]: ==> Starting Nomad agent...
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: goroutine 1 [running]:
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420673320, 0xc420123860, 0xc4204b74c8)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc420440840, 0x0, 0x0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/client.NewClient(0xc420440580, 0x1aaba60, 0xc420128070, 0x1aaeb20, 0xc420419320, 0xc4204005f0, 0xc4201237a0, 0xc420123770, 0xc420123740)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc42015c070, 0x0, 0x0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4204406e0, 0x1aa77a0, 0xc4203fc7e0, 0x0, 0x0, 0x0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc420420280, 0xc4204406e0, 0x1aa77a0, 0xc4203fc7e0, 0x1, 0xc420386900)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc420420280, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42041a0c0, 0xc42041a0c0, 0x1e, 0xc4204081e0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203561e0, 0x0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]: main.main()
Jul 06 11:03:35 vol-h-docker-04 nomad[31428]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:35 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:35 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:35 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:35 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:35 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:35 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:35 vol-h-docker-04 nomad[31470]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:35 vol-h-docker-04 nomad[31470]: ==> Starting Nomad agent...
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: goroutine 1 [running]:
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420726ea0, 0xc420386930, 0xc4201e14c8)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4204969a0, 0x0, 0x0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/client.NewClient(0xc420496840, 0x1aaba60, 0xc4204a4020, 0x1aaeb20, 0xc420140360, 0xc42046e690, 0xc420386870, 0xc420386840, 0xc420386810)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc42041d110, 0x0, 0x0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4201338c0, 0x1aa77a0, 0xc4204784c0, 0x0, 0x0, 0x0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203c9860, 0xc4201338c0, 0x1aa77a0, 0xc4204784c0, 0x1, 0xc42042bcb0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203c9860, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42013ec00, 0xc42013ec00, 0x1e, 0xc4203e0cc0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203d4f00, 0x0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]: main.main()
Jul 06 11:03:39 vol-h-docker-04 nomad[31470]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:39 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:39 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:39 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:39 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:39 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:39 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:39 vol-h-docker-04 nomad[31515]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:39 vol-h-docker-04 nomad[31515]: ==> Starting Nomad agent...
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: goroutine 1 [running]:
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420719200, 0xc420108d50, 0xc4206394c8)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc42008a9a0, 0x0, 0x0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/client.NewClient(0xc42008a840, 0x1aaba60, 0xc420126048, 0x1aaeb20, 0xc4200ec3f0, 0xc420434f00, 0xc420108ba0, 0xc420108a50, 0xc4201089f0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420400770, 0x0, 0x0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4203f6420, 0x1aa77a0, 0xc42043bd00, 0x0, 0x0, 0x0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203d4e60, 0xc4203f6420, 0x1aa77a0, 0xc42043bd00, 0x1, 0xc42041fa10)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203d4e60, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200c8d80, 0xc4200c8d80, 0x1e, 0xc4203e0500)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203cac60, 0x0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]: main.main()
Jul 06 11:03:43 vol-h-docker-04 nomad[31515]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:43 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:43 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:43 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:43 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:43 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:43 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:43 vol-h-docker-04 nomad[31600]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:43 vol-h-docker-04 nomad[31600]: ==> Starting Nomad agent...
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: goroutine 1 [running]:
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4206fc240, 0xc4201a3c80, 0xc4205154c8)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4200889a0, 0x0, 0x0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/client.NewClient(0xc420088840, 0x1aaba60, 0xc420136020, 0x1aaeb20, 0xc4203c4480, 0xc4200151d0, 0xc4201a3bc0, 0xc4201a3b90, 0xc4201a3b60)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420050070, 0x0, 0x0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4204426e0, 0x1aa77a0, 0xc42013e600, 0x0, 0x0, 0x0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc420422280, 0xc4204426e0, 0x1aa77a0, 0xc42013e600, 0x1, 0xc420109080)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc420422280, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42041c0c0, 0xc42041c0c0, 0x1e, 0xc4204181a0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc42040a1b0, 0x0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]: main.main()
Jul 06 11:03:47 vol-h-docker-04 nomad[31600]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:47 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:47 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:47 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:48 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:48 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:48 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:48 vol-h-docker-04 nomad[31699]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:48 vol-h-docker-04 nomad[31699]: ==> Starting Nomad agent...
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: goroutine 1 [running]:
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4206f5b00, 0xc420341c80, 0xc4206574c8)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4203d0420, 0x0, 0x0)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/client.NewClient(0xc4203d0160, 0x1aaba60, 0xc42035c018, 0x1aaeb20, 0xc4203b8480, 0xc420419d10, 0xc420341bc0, 0xc420341b90, 0xc420341b60)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc42041fb20, 0x0, 0x0)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc420422000, 0x1aa77a0, 0xc420482100, 0x0, 0x0, 0x0)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc42033dea0, 0xc420422000, 0x1aa77a0, 0xc420482100, 0x1, 0xc420441c50)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc42033dea0, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4200c8b40, 0xc4200c8b40, 0x1e, 0xc420344900)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc420340ea0, 0x0)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]: main.main()
Jul 06 11:03:52 vol-h-docker-04 nomad[31699]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:52 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:52 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:52 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:52 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:52 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:52 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:52 vol-h-docker-04 nomad[31756]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:52 vol-h-docker-04 nomad[31756]: ==> Starting Nomad agent...
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: goroutine 1 [running]:
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4207238c0, 0xc42020bd70, 0xc4204bf4c8)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc42008a9a0, 0x0, 0x0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/client.NewClient(0xc42008a840, 0x1aaba60, 0xc42000e038, 0x1aaeb20, 0xc4201403f0, 0xc4204d2190, 0xc42020bcb0, 0xc42020bc80, 0xc42020bc50)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420250000, 0x0, 0x0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4204366e0, 0x1aa77a0, 0xc4204879e0, 0x0, 0x0, 0x0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc420416280, 0xc4204366e0, 0x1aa77a0, 0xc4204879e0, 0x1, 0xc420483140)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc420416280, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4204140c0, 0xc4204140c0, 0x1e, 0xc4204081e0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc420384390, 0x0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]: main.main()
Jul 06 11:03:56 vol-h-docker-04 nomad[31756]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:03:56 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:03:56 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:03:56 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:03:56 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:03:56 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:03:56 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:03:56 vol-h-docker-04 nomad[31813]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:03:56 vol-h-docker-04 nomad[31813]: ==> Starting Nomad agent...
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: goroutine 1 [running]:
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420691200, 0xc420132e10, 0xc42066d4c8)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4200889a0, 0x0, 0x0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/client.NewClient(0xc420088840, 0x1aaba60, 0xc42000e040, 0x1aaeb20, 0xc4201503f0, 0xc4203fc0f0, 0xc420132d50, 0xc420132cf0, 0xc420132c30)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420384000, 0x0, 0x0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4204346e0, 0x1aa77a0, 0xc4203ef100, 0x0, 0x0, 0x0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc420416280, 0xc4204346e0, 0x1aa77a0, 0xc4203ef100, 0x1, 0xc4203f2cf0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc420416280, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc4204140c0, 0xc4204140c0, 0x1e, 0xc420128340)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc420122b70, 0x0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]: main.main()
Jul 06 11:04:00 vol-h-docker-04 nomad[31813]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:04:00 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:04:00 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:04:00 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:04:00 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:04:00 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:04:00 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:04:00 vol-h-docker-04 nomad[31873]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:04:00 vol-h-docker-04 nomad[31873]: ==> Starting Nomad agent...
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: goroutine 1 [running]:
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420717d40, 0xc4203848a0, 0xc42062f4c8)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc420492840, 0x0, 0x0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/client.NewClient(0xc420492160, 0x1aaba60, 0xc4204ac020, 0x1aaeb20, 0xc420140360, 0xc420474500, 0xc4203847e0, 0xc4203847b0, 0xc420384780)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc42041ae00, 0x0, 0x0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4201318c0, 0x1aa77a0, 0xc42047a3e0, 0x0, 0x0, 0x0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203c99a0, 0xc4201318c0, 0x1aa77a0, 0xc42047a3e0, 0x1, 0xc42043d8c0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203c99a0, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42013ec00, 0xc42013ec00, 0x1e, 0xc4203debe0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203e4b10, 0x0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]: main.main()
Jul 06 11:04:04 vol-h-docker-04 nomad[31873]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:04:04 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:04:04 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:04:04 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:04:05 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:04:05 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:04:05 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:04:05 vol-h-docker-04 nomad[31919]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:04:05 vol-h-docker-04 nomad[31919]: ==> Starting Nomad agent...
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: goroutine 1 [running]:
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc420741200, 0xc4204a0870, 0xc4206454c8)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc4204a22c0, 0x0, 0x0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/client.NewClient(0xc4204a2160, 0x1aaba60, 0xc4204fe020, 0x1aaeb20, 0xc42049c240, 0xc420466780, 0xc4204a07b0, 0xc4204a0780, 0xc4204a0750)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420418e70, 0x0, 0x0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4201338c0, 0x1aa77a0, 0xc4204704e0, 0x0, 0x0, 0x0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203c5b80, 0xc4201338c0, 0x1aa77a0, 0xc4204704e0, 0x1, 0xc42041bef0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203c5b80, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42013ec00, 0xc42013ec00, 0x1e, 0xc4203dcce0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203cb140, 0x0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]: main.main()
Jul 06 11:04:09 vol-h-docker-04 nomad[31919]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:04:09 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:04:09 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:04:09 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:04:09 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:04:09 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 06 11:04:09 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 06 11:04:09 vol-h-docker-04 nomad[31996]:     Loaded configuration from /etc/nomad/nomad.json
Jul 06 11:04:09 vol-h-docker-04 nomad[31996]: ==> Starting Nomad agent...
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: panic: runtime error: invalid memory address or nil pointer dereference
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xe6cbca]
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: goroutine 1 [running]:
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/client.(*AllocRunner).RestoreState(0xc4206f6d80, 0xc42021bf50, 0xc42063b4c8)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/alloc_runner.go:275 +0x5ea
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/client.(*Client).restoreState(0xc420514420, 0x0, 0x0)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:659 +0x47c
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/client.NewClient(0xc4205142c0, 0x1aaba60, 0xc4204be048, 0x1aaeb20, 0xc4204ea2d0, 0xc420476690, 0xc42021be90, 0xc42021be60, 0xc42021be30)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/client/client.go:301 +0xade
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/command/agent.(*Agent).setupClient(0xc420426e70, 0x0, 0x0)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:459 +0x14a
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/command/agent.NewAgent(0xc4201438c0, 0x1aa77a0, 0xc420482480, 0x0, 0x0, 0x0)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/agent.go:86 +0x21c
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/command/agent.(*Command).setupAgent(0xc4203d3860, 0xc4201438c0, 0x1aa77a0, 0xc420482480, 0x1, 0xc420435d40)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:338 +0x89
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/command/agent.(*Command).Run(0xc4203d3860, 0xc420010170, 0x1, 0x1, 0x0)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/command/agent/command.go:446 +0x3ec
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42014ec00, 0xc42014ec00, 0x1e, 0xc4203eac80)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:154 +0x1a8
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: main.RunCustom(0xc420010160, 0x2, 0x2, 0xc4203def90, 0x0)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:57 +0xa5a
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: main.Run(0xc420010160, 0x2, 0x2, 0xc4200001a0)
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:20 +0x56
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]: main.main()
Jul 06 11:04:13 vol-h-docker-04 nomad[31996]:         /home/ruslan/build/go/src/github.com/hashicorp/nomad/main.go:16 +0x64
Jul 06 11:04:13 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 06 11:04:13 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 06 11:04:13 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 06 11:04:13 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 06 11:04:13 vol-h-docker-04 systemd[1]: Stopped Nomad agent.

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 6, 2017

Then we simple cleanup all nomad state, remove nomad's state_dir and alloc_dirs and launched it with a clean slate

@schmichael
Copy link
Member

I just noticed you're using an older version of master. Mind testing with the attached?

linux_amd64.zip

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 7, 2017

Sorry but the problem is the same we make nomad node-darin to stop all allocations and they removed from node, the we stop nomad, then upgrade it binary with that you attach to this issue, and start nomad, and it can't start

Jul 07 20:34:48 vol-h-docker-04 nomad[19011]:     2017/07/07 20:34:48.686634 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
Jul 07 20:34:48 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 20:34:48 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 07 20:34:48 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 07 20:34:48 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 07 20:34:48 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 07 20:34:48 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 07 20:34:48 vol-h-docker-04 nomad[19048]:     Loaded configuration from /etc/nomad/nomad.json
Jul 07 20:34:48 vol-h-docker-04 nomad[19048]: ==> Starting Nomad agent...
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: ==> Error starting agent: client setup failed: failed to restore state
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.925804 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926647 [ERR] client: failed to restore state for alloc 0484dced-b1da-cdb9-f3e4-aa43fa4c82a0: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926665 [ERR] client: failed to restore state for alloc 0dfed739-0650-c4de-c8ae-b401d6c0ce34: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926678 [ERR] client: failed to restore state for alloc 250658f8-1369-5a2e-0dd2-0104407d4c57: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926693 [ERR] client: failed to restore state for alloc 38317334-3b70-0382-65fb-6069d9744611: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926705 [ERR] client: failed to restore state for alloc 3a76a645-8628-afd6-1d0b-fc84a936df85: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926723 [ERR] client: failed to restore state for alloc 477607ad-1a69-4c50-63af-6d0610543476: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926736 [ERR] client: failed to restore state for alloc 56507088-bb2e-4fcf-826f-5dd6f3641abb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926747 [ERR] client: failed to restore state for alloc 9cfde921-6f78-8494-2ee1-b327e2a450eb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926761 [ERR] client: failed to restore state for alloc 9e90e991-7366-26f6-a0c0-c09028481c38: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926774 [ERR] client: failed to restore state for alloc b6dfe4fb-01c4-5ab5-d5b2-4652b43f4288: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926784 [ERR] client: failed to restore state for alloc c31ee8ff-1aa8-8574-2632-9d6ff2625391: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926799 [ERR] client: failed to restore state for alloc eed89e09-743f-9616-71be-d1e94df33d22: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926818 [ERR] client: failed to restore state: 12 error(s) occurred:
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926826 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc (%!d(string=/var/lib/nomad/alloc)) directories before restarting. Lost allocations will be rescheduled.
Jul 07 20:34:52 vol-h-docker-04 nomad[19048]:     2017/07/07 20:34:52.926829 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
Jul 07 20:34:52 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 20:34:52 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 07 20:34:52 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 07 20:34:53 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 07 20:34:53 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 07 20:34:53 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 07 20:34:53 vol-h-docker-04 nomad[19075]:     Loaded configuration from /etc/nomad/nomad.json
Jul 07 20:34:53 vol-h-docker-04 nomad[19075]: ==> Starting Nomad agent...
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: ==> Error starting agent: client setup failed: failed to restore state
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183443 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183605 [ERR] client: failed to restore state for alloc 0484dced-b1da-cdb9-f3e4-aa43fa4c82a0: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183618 [ERR] client: failed to restore state for alloc 0dfed739-0650-c4de-c8ae-b401d6c0ce34: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183625 [ERR] client: failed to restore state for alloc 250658f8-1369-5a2e-0dd2-0104407d4c57: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183648 [ERR] client: failed to restore state for alloc 38317334-3b70-0382-65fb-6069d9744611: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183659 [ERR] client: failed to restore state for alloc 3a76a645-8628-afd6-1d0b-fc84a936df85: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183666 [ERR] client: failed to restore state for alloc 477607ad-1a69-4c50-63af-6d0610543476: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183672 [ERR] client: failed to restore state for alloc 56507088-bb2e-4fcf-826f-5dd6f3641abb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183682 [ERR] client: failed to restore state for alloc 9cfde921-6f78-8494-2ee1-b327e2a450eb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183690 [ERR] client: failed to restore state for alloc 9e90e991-7366-26f6-a0c0-c09028481c38: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183696 [ERR] client: failed to restore state for alloc b6dfe4fb-01c4-5ab5-d5b2-4652b43f4288: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183703 [ERR] client: failed to restore state for alloc c31ee8ff-1aa8-8574-2632-9d6ff2625391: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183709 [ERR] client: failed to restore state for alloc eed89e09-743f-9616-71be-d1e94df33d22: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183718 [ERR] client: failed to restore state: 12 error(s) occurred:
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183721 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc (%!d(string=/var/lib/nomad/alloc)) directories before restarting. Lost allocations will be rescheduled.
Jul 07 20:34:57 vol-h-docker-04 nomad[19075]:     2017/07/07 20:34:57.183724 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
Jul 07 20:34:57 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 07 20:34:57 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 07 20:34:57 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 07 20:34:57 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 07 20:34:57 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 07 20:34:57 vol-h-docker-04 nomad[19124]:     Loaded configuration from /etc/nomad/nomad.json
Jul 07 20:34:57 vol-h-docker-04 nomad[19124]: ==> Starting Nomad agent...
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: ==> Error starting agent: client setup failed: failed to restore state
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.436999 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437547 [ERR] client: failed to restore state for alloc 0484dced-b1da-cdb9-f3e4-aa43fa4c82a0: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437558 [ERR] client: failed to restore state for alloc 0dfed739-0650-c4de-c8ae-b401d6c0ce34: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437566 [ERR] client: failed to restore state for alloc 250658f8-1369-5a2e-0dd2-0104407d4c57: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437579 [ERR] client: failed to restore state for alloc 38317334-3b70-0382-65fb-6069d9744611: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437586 [ERR] client: failed to restore state for alloc 3a76a645-8628-afd6-1d0b-fc84a936df85: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437593 [ERR] client: failed to restore state for alloc 477607ad-1a69-4c50-63af-6d0610543476: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437603 [ERR] client: failed to restore state for alloc 56507088-bb2e-4fcf-826f-5dd6f3641abb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437609 [ERR] client: failed to restore state for alloc 9cfde921-6f78-8494-2ee1-b327e2a450eb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437619 [ERR] client: failed to restore state for alloc 9e90e991-7366-26f6-a0c0-c09028481c38: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437627 [ERR] client: failed to restore state for alloc b6dfe4fb-01c4-5ab5-d5b2-4652b43f4288: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437633 [ERR] client: failed to restore state for alloc c31ee8ff-1aa8-8574-2632-9d6ff2625391: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437640 [ERR] client: failed to restore state for alloc eed89e09-743f-9616-71be-d1e94df33d22: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437653 [ERR] client: failed to restore state: 12 error(s) occurred:
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437658 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc (%!d(string=/var/lib/nomad/alloc)) directories before restarting. Lost allocations will be rescheduled.
Jul 07 20:35:01 vol-h-docker-04 nomad[19124]:     2017/07/07 20:35:01.437661 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
Jul 07 20:35:01 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 20:35:01 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 07 20:35:01 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 07 20:35:01 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 07 20:35:01 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 07 20:35:01 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 07 20:35:01 vol-h-docker-04 nomad[19292]:     Loaded configuration from /etc/nomad/nomad.json
Jul 07 20:35:01 vol-h-docker-04 nomad[19292]: ==> Starting Nomad agent...
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: ==> Error starting agent: client setup failed: failed to restore state
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679423 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679637 [ERR] client: failed to restore state for alloc 0484dced-b1da-cdb9-f3e4-aa43fa4c82a0: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679653 [ERR] client: failed to restore state for alloc 0dfed739-0650-c4de-c8ae-b401d6c0ce34: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679676 [ERR] client: failed to restore state for alloc 250658f8-1369-5a2e-0dd2-0104407d4c57: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679688 [ERR] client: failed to restore state for alloc 38317334-3b70-0382-65fb-6069d9744611: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679698 [ERR] client: failed to restore state for alloc 3a76a645-8628-afd6-1d0b-fc84a936df85: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679714 [ERR] client: failed to restore state for alloc 477607ad-1a69-4c50-63af-6d0610543476: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679726 [ERR] client: failed to restore state for alloc 56507088-bb2e-4fcf-826f-5dd6f3641abb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679736 [ERR] client: failed to restore state for alloc 9cfde921-6f78-8494-2ee1-b327e2a450eb: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679753 [ERR] client: failed to restore state for alloc 9e90e991-7366-26f6-a0c0-c09028481c38: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679765 [ERR] client: failed to restore state for alloc b6dfe4fb-01c4-5ab5-d5b2-4652b43f4288: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679795 [ERR] client: failed to restore state for alloc c31ee8ff-1aa8-8574-2632-9d6ff2625391: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679807 [ERR] client: failed to restore state for alloc eed89e09-743f-9616-71be-d1e94df33d22: failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679827 [ERR] client: failed to restore state: 12 error(s) occurred:
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]: * failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679836 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc (%!d(string=/var/lib/nomad/alloc)) directories before restarting. Lost allocations will be rescheduled.
Jul 07 20:35:05 vol-h-docker-04 nomad[19292]:     2017/07/07 20:35:05.679842 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
Jul 07 20:35:05 vol-h-docker-04 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 20:35:05 vol-h-docker-04 systemd[1]: nomad.service: Unit entered failed state.
Jul 07 20:35:05 vol-h-docker-04 systemd[1]: nomad.service: Failed with result 'exit-code'.
Jul 07 20:35:05 vol-h-docker-04 systemd[1]: nomad.service: Service hold-off time over, scheduling restart.
Jul 07 20:35:05 vol-h-docker-04 systemd[1]: Stopped Nomad agent.
Jul 07 20:35:05 vol-h-docker-04 systemd[1]: Started Nomad agent.
Jul 07 20:35:05 vol-h-docker-04 nomad[19310]:     Loaded configuration from /etc/nomad/nomad.json
Jul 07 20:35:05 vol-h-docker-04 nomad[19310]: ==> Starting Nomad agent...

is is the same as #2715. So for now nomad restart operation is very veryy unstable

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 7, 2017

Also when it stop it doens't umount secrets folders from allocations

@schmichael
Copy link
Member

@tantra35 I'm afraid there are incompatible changes between the two custom builds you're using. You'll have to remove your state_dir before testing the new binary.

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 7, 2017

@schmichael Sorry but seems i can't see any commits between 52ffc01(our old version) and d80aee0(version that you post in this issue) which can improve situation with nomad restart behaivour and also there is no any changes that can change binary format of the state nomad file

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 7, 2017

Also seems that if we simple kill nomad with SIGKILL it also can't start, but to clarify this thesis i must to check it on our test stand

@tantra35
Copy link
Contributor Author

tantra35 commented Jul 10, 2017

@schmichael Just test on test stand(3 virtual machines) with nomad rc1, and got restart error again

.....................................................................................................................................alive: consulnomad1.global 192.168.142.51:4648
    2017/07/10 19:37:10 [WARN] memberlist: Refuting an alive message
    2017/07/10 19:37:10.203505 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
    2017/07/10 19:37:10.203860 [ERR] client: failed to restore state for alloc "bfbd7341-cbd2-3f92-bf9f-af60df99e3f9": failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
    2017/07/10 19:37:10.203991 [ERR] client: failed to restore state: 1 error(s) occurred:

* failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
    2017/07/10 19:37:10.204032 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc ("/var/lib/nomad
/alloc") directories before restarting. Lost allocations will be rescheduled.
    2017/07/10 19:37:10.204064 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
    Loaded configuration from /etc/nomad/nomad.json
==> Starting Nomad agent...
==> Error starting agent: client setup failed: failed to restore state
    2017/07/10 19:37:10 [WARN] serf: Unrecognized snapshot line: .............................................................................................................................................................................
.....................................................................................................................................alive: consulnomad1.global 192.168.142.51:4648
    2017/07/10 19:37:10 [WARN] memberlist: Refuting an alive message
    2017/07/10 19:37:10.247096 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
    2017/07/10 19:37:10.249581 [ERR] client: failed to restore state for alloc "bfbd7341-cbd2-3f92-bf9f-af60df99e3f9": failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
    2017/07/10 19:37:10.249710 [ERR] client: failed to restore state: 1 error(s) occurred:

* failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
    2017/07/10 19:37:10.249756 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc ("/var/lib/nomad
/alloc") directories before restarting. Lost allocations will be rescheduled.
    2017/07/10 19:37:10.249790 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues
    Loaded configuration from /etc/nomad/nomad.json
==> Starting Nomad agent...
==> Error starting agent: client setup failed: failed to restore state
    2017/07/10 19:37:10 [WARN] serf: Unrecognized snapshot line: .............................................................................................................................................................................
.....................................................................................................................................alive: consulnomad1.global 192.168.142.51:4648
    2017/07/10 19:37:10 [WARN] memberlist: Refuting an alive message
    2017/07/10 19:37:10.320841 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
    2017/07/10 19:37:10.321258 [ERR] client: failed to restore state for alloc "bfbd7341-cbd2-3f92-bf9f-af60df99e3f9": failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
    2017/07/10 19:37:10.321308 [ERR] client: failed to restore state: 1 error(s) occurred:

* failed to read allocation state: failed to read alloc runner alloc state: no data at key alloc
    2017/07/10 19:37:10.321344 [ERR] client: Nomad is unable to start due to corrupt state. The safest way to proceed is to manually stop running task processes and remove Nomad's state ("/var/lib/nomad/client") and alloc ("/var/lib/nomad
/alloc") directories before restarting. Lost allocations will be rescheduled.
    2017/07/10 19:37:10.321374 [ERR] client: Corrupt state is often caused by a bug. Please report as much information as possible to https://github.com/hashicorp/nomad/issues

What i do multiple times call restart nomad and nomad again can't start

Here is our upstart script:

description "Nomad daemon"

start on (started docker and started consul)
stop on runlevel [!2345]

respawn
kill timeout 10

pre-start script
    if [ -d "/var/lib/nomad/" ]; then
        chmod 0755 /var/lib/nomad/
        exit 0
    fi

    mkdir /var/lib/nomad/
    chmod 0755 /var/lib/nomad/
end script

script
    cd /opt/nomad/
    l_bindip=192.168.142.51
    exec /opt/nomad/nomad agent -config=/etc/nomad/nomad.json -bind=$l_bindip
end script

On test stand we have simple one job:

root@consulnomad3:/home/ruslan# nomad status
ID    Type     Priority  Status   Submit Date
test  service  50        running  01/01/70 03:00:00 MSK
root@consulnomad3:/home/ruslan# nomad inspect test
{
    "Job": {
        "AllAtOnce": false,
        "Constraints": [
            {
                "LTarget": "${attr.kernel.name}",
                "Operand": "=",
                "RTarget": "linux"
            },
            {
                "LTarget": "",
                "Operand": "distinct_hosts",
                "RTarget": ""
            }
        ],
        "CreateIndex": 71,
        "Datacenters": [
            "test"
        ],
        "ID": "test",
        "JobModifyIndex": 123,
        "Meta": null,
        "ModifyIndex": 474,
        "Name": "test",
        "ParameterizedJob": null,
        "ParentID": "",
        "Payload": null,
        "Periodic": null,
        "Priority": 50,
        "Region": "global",
        "Stable": true,
        "Status": "running",
        "StatusDescription": "",
        "Stop": false,
        "SubmitTime": 0,
        "TaskGroups": [
            {
                "Constraints": null,
                "Count": 2,
                "EphemeralDisk": {
                    "Migrate": false,
                    "SizeMB": 300,
                    "Sticky": false
                },
                "Meta": null,
                "Name": "test",
                "RestartPolicy": {
                    "Attempts": 2,
                    "Delay": 15000000000,
                    "Interval": 60000000000,
                    "Mode": "delay"
                },
                "Tasks": [
                    {
                        "Artifacts": null,
                        "Config": {
                            "command": "sleep",
                            "args": [
                                "600"
                            ]
                        },
                        "Constraints": null,
                        "DispatchPayload": null,
                        "Driver": "exec",
                        "Env": null,
                        "KillTimeout": 5000000000,
                        "Leader": false,
                        "LogConfig": {
                            "MaxFileSizeMB": 10,
                            "MaxFiles": 3
                        },
                        "Meta": null,
                        "Name": "sleep",
                        "Resources": {
                            "CPU": 300,
                            "DiskMB": 0,
                            "IOPS": 0,
                            "MemoryMB": 512,
                            "Networks": null
                        },
                        "Services": null,
                        "Templates": null,
                        "User": "",
                        "Vault": null
                    }
                ],
                "Update": {
                    "AutoRevert": false,
                    "Canary": 0,
                    "HealthCheck": "checks",
                    "HealthyDeadline": 300000000000,
                    "MaxParallel": 1,
                    "MinHealthyTime": 10000000000,
                    "Stagger": 30000000000
                }
            }
        ],
        "Type": "service",
        "Update": {
            "AutoRevert": false,
            "Canary": 0,
            "HealthCheck": "",
            "HealthyDeadline": 0,
            "MaxParallel": 1,
            "MinHealthyTime": 0,
            "Stagger": 10000000000
        },
        "VaultToken": "",
        "Version": 2
    }
}

@tantra35
Copy link
Contributor Author

@schmichael we got this error on rc1

-- Logs begin at Wed 2017-07-12 16:35:04 MSK, end at Wed 2017-07-19 14:15:47 MSK. --
Jul 19 12:58:45 vol-v-docker-03 systemd[1]: Stopping Nomad agent...
Jul 19 12:58:45 vol-v-docker-03 systemd[1]: nomad.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jul 19 12:58:45 vol-v-docker-03 systemd[1]: Stopped Nomad agent.
Jul 19 12:58:45 vol-v-docker-03 systemd[1]: nomad.service: Unit entered failed state.
Jul 19 12:58:45 vol-v-docker-03 systemd[1]: nomad.service: Failed with result 'exit-code'.
-- Reboot --
Jul 19 13:00:58 vol-v-docker-03 systemd[1]: Started Nomad agent.
Jul 19 13:01:02 vol-v-docker-03 nomad[1885]:     Loaded configuration from /etc/nomad/nomad.json
Jul 19 13:01:02 vol-v-docker-03 nomad[1885]: ==> Starting Nomad agent...
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]: ==> Error starting agent: client setup failed: failed to restore state
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.911618 [INFO] client: using state directory /var/lib/nomad/client
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.916772 [INFO] client: using alloc directory /var/lib/nomad/alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.945243 [DEBUG] client: built-in fingerprints: [arch cgroup consul cpu host memory network nomad signal storage vault env_aws env_gce]
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.945517 [INFO] fingerprint.cgroups: cgroups are available
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.947261 [INFO] fingerprint.consul: consul agent is available
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.947737 [DEBUG] fingerprint.cpu: frequency: 2933 MHz
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.947746 [DEBUG] fingerprint.cpu: core count: 4
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.949459 [DEBUG] client: fingerprinting cgroup every 15s
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:02.949459 [DEBUG] client: fingerprinting consul every 15s
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:03.021273 [WARN] fingerprint.network: Unable to parse Speed in output of '/sbin/ethtool ens20.109'
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:03.021398 [DEBUG] fingerprint.network: Unable to parse link speed from /sys/class/net/ens20.109/speed
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:03.021404 [DEBUG] fingerprint.network: link speed could not be detected and no speed specified by user. Defaulting to 1000
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:03.021512 [DEBUG] fingerprint.network: Detected interface ens20.109 with IP: 172.16.9.32
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:03.046475 [DEBUG] client: fingerprinting vault every 15s
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:05.044264 [DEBUG] fingerprint.env_aws: Error querying AWS Metadata URL, skipping
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.044532 [DEBUG] fingerprint.env_gce: Could not read value for attribute "machine-type"
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.044548 [DEBUG] fingerprint.env_gce: Error querying GCE Metadata URL, skipping
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.044566 [DEBUG] client: applied fingerprints [arch cgroup consul cpu host memory network nomad signal storage]
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.044602 [DEBUG] driver.docker: using client connection initialized from environment
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.564026 [DEBUG] driver.exec: exec driver is enabled
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.564047 [WARN] driver.raw_exec: raw exec is enabled. Only enable if needed
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.564101 [DEBUG] client: fingerprinting docker every 15s
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.564178 [DEBUG] client: fingerprinting exec every 15s
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.564376 [DEBUG] client: available drivers [docker exec raw_exec]
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.564511 [DEBUG] client: fingerprinting rkt every 15s
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.577079 [ERR] client: failed to restore state for alloc "097de0c2-6c1e-1ecb-7662-b7958f152ffe": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.577450 [ERR] client: failed to restore state for alloc "0a7dbe2e-6ad3-fd96-8583-80ebb8deef19": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.822832 [DEBUG] client.consul: bootstrap contacting following Consul DCs: ["test"]
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:07.827097 [INFO] client.consul: discovered following Servers: 172.16.9.87:4647,172.16.9.89:4647,172.16.9.35:4647
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:09.430816 [DEBUG] client: alloc "113af46f-5ce7-c8fd-4694-c7af75a8991c" in terminal status, waiting for destroy
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:09.430855 [INFO] client: marking allocation 113af46f-5ce7-c8fd-4694-c7af75a8991c for GC
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.350678 [ERR] client: failed to restore state for alloc "1bc05e46-0678-1981-f789-bf2daed097a3": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.351074 [ERR] client: failed to restore state for alloc "1be7a8c6-29bf-3575-82c7-27fa3846520d": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.352582 [DEBUG] client: alloc "1df57b55-a37c-8adb-431e-afa96de7b22b" in terminal status, waiting for destroy
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.352590 [ERR] client: failed to restore state for alloc "25ee42ae-07e3-fd1f-e170-84ed3d3d9e8b": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.352664 [INFO] client: marking allocation 1df57b55-a37c-8adb-431e-afa96de7b22b for GC
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.352832 [ERR] client: failed to restore state for alloc "2bc26a66-b59d-12f0-c03c-003b4f54b6e1": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 systemd[1]: nomad.service: Main process exited, code=exited, status=1/FAILURE
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.354589 [ERR] client: failed to find task dir metadata for alloc "2f10cee5-f9c6-3f1f-2909-e69880430eb6" task "fishdomDDDynamoNode"
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.354599 [ERR] client: failed to restore state for alloc "2f10cee5-f9c6-3f1f-2909-e69880430eb6": failed to find task dir metadata for alloc "2f10cee5-f9c6-3f1f-2909-e69880
430eb6" task "fishdomDDDynamoNode"
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.354859 [ERR] client: failed to restore state for alloc "3287f718-8220-b916-972b-6a1996ed24f7": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc
Jul 19 13:01:11 vol-v-docker-03 nomad[1885]:     2017/07/19 13:01:10.355277 [ERR] client: failed to restore state for alloc "37756453-8336-ebb5-e22a-1d19d5327e1d": failed to read allocation state: failed to read alloc runner alloc state:
no data at key alloc

@tantra35
Copy link
Contributor Author

@schmichael maybe I was misled, I meant that nomad after the restart corrupts its state

@schmichael
Copy link
Member

@tantra35 Sorry for the delayed response! This should be fixed in #2878 and was released in 0.6rc2.

Please don't hesitate to reopen if the bug still exists!

@schmichael schmichael added this to the v0.6.0 milestone Jul 21, 2017
@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 Dec 11, 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

2 participants