{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/2560","repository_url":"https://api.github.com/repos/hashicorp/nomad","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/2560/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/2560/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/2560/events","html_url":"https://github.com/hashicorp/nomad/issues/2560","id":221599159,"node_id":"MDU6SXNzdWUyMjE1OTkxNTk=","number":2560,"title":"Nomad Client crashes on startup failing to restore allocations with empty state files","user":{"login":"Ashald","id":397987,"node_id":"MDQ6VXNlcjM5Nzk4Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/397987?v=4","gravatar_id":"","url":"https://api.github.com/users/Ashald","html_url":"https://github.com/Ashald","followers_url":"https://api.github.com/users/Ashald/followers","following_url":"https://api.github.com/users/Ashald/following{/other_user}","gists_url":"https://api.github.com/users/Ashald/gists{/gist_id}","starred_url":"https://api.github.com/users/Ashald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ashald/subscriptions","organizations_url":"https://api.github.com/users/Ashald/orgs","repos_url":"https://api.github.com/users/Ashald/repos","events_url":"https://api.github.com/users/Ashald/events{/privacy}","received_events_url":"https://api.github.com/users/Ashald/received_events","type":"User","site_admin":false},"labels":[{"id":218895783,"node_id":"MDU6TGFiZWwyMTg4OTU3ODM=","url":"https://api.github.com/repos/hashicorp/nomad/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":321148368,"node_id":"MDU6TGFiZWwzMjExNDgzNjg=","url":"https://api.github.com/repos/hashicorp/nomad/labels/client","name":"client","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2017-04-13T15:30:25Z","updated_at":"2018-06-20T10:57:20Z","closed_at":null,"author_association":"NONE","body":"### Nomad version\r\n`0.5.6`\r\n\r\n### Operating system and Environment details\r\n`Centos 7`\r\n\r\n### Issue\r\nNomad agent crashes on startup after the reboot say it cannot restore some allocations.\r\n\r\n### Nomad Client logs (if appropriate)\r\n```\r\nApr 13 11:27:01 nomad-agent-02 nomad[1657]: client: failed to restore state for alloc 48a4b655-d25c-21e5-4dce-a2f03d610a43: failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad[1657]: client: failed to restore state for alloc 6a25c5d7-d4a7-3ef3-df2a-1ca60eeab51d: failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad[1657]: client: failed to restore state for alloc a95c1022-9a70-62a4-b440-76ea711d86ab: failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad[1657]: client: failed to restore state for alloc c6785f33-9f18-095b-3682-6962c2b1157d: failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad: ==> Error starting agent: client setup failed: failed to restore state: 4 error(s) occurred:\r\nApr 13 11:27:01 nomad-agent-02 nomad: * failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad: * failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad: * failed to decode state: unexpected end of JSON input\r\nApr 13 11:27:01 nomad-agent-02 nomad: * failed to decode state: unexpected end of JSON input\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/398709385","html_url":"https://github.com/hashicorp/nomad/issues/2560#issuecomment-398709385","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/2560","id":398709385,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODcwOTM4NQ==","user":{"login":"momania","id":66616,"node_id":"MDQ6VXNlcjY2NjE2","avatar_url":"https://avatars0.githubusercontent.com/u/66616?v=4","gravatar_id":"","url":"https://api.github.com/users/momania","html_url":"https://github.com/momania","followers_url":"https://api.github.com/users/momania/followers","following_url":"https://api.github.com/users/momania/following{/other_user}","gists_url":"https://api.github.com/users/momania/gists{/gist_id}","starred_url":"https://api.github.com/users/momania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momania/subscriptions","organizations_url":"https://api.github.com/users/momania/orgs","repos_url":"https://api.github.com/users/momania/repos","events_url":"https://api.github.com/users/momania/events{/privacy}","received_events_url":"https://api.github.com/users/momania/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T10:57:20Z","updated_at":"2018-06-20T10:57:20Z","author_association":"NONE","body":"I'm getting this too on v0.8.4\r\nAllocation ids that it tries to recover don't match with the ids found in `/var/lib/nomad/alloc`"}}
{"actor":{"display_login":"momania"}}