{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/993","repository_url":"https://api.github.com/repos/cloudfoundry/bosh","labels_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/993/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/993/comments","events_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/993/events","html_url":"https://github.com/cloudfoundry/bosh/issues/993","id":112950521,"number":993,"title":"Error on running errand","user":{"login":"kei-yamazaki","id":1715090,"avatar_url":"https://avatars.githubusercontent.com/u/1715090?v=3","gravatar_id":"","url":"https://api.github.com/users/kei-yamazaki","html_url":"https://github.com/kei-yamazaki","followers_url":"https://api.github.com/users/kei-yamazaki/followers","following_url":"https://api.github.com/users/kei-yamazaki/following{/other_user}","gists_url":"https://api.github.com/users/kei-yamazaki/gists{/gist_id}","starred_url":"https://api.github.com/users/kei-yamazaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kei-yamazaki/subscriptions","organizations_url":"https://api.github.com/users/kei-yamazaki/orgs","repos_url":"https://api.github.com/users/kei-yamazaki/repos","events_url":"https://api.github.com/users/kei-yamazaki/events{/privacy}","received_events_url":"https://api.github.com/users/kei-yamazaki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cloudfoundry/bosh/labels/planned-enhancement","name":"planned-enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-23T04:42:50Z","updated_at":"2016-05-06T23:31:49Z","closed_at":null,"body":"Encountered following error when running errand using bosh v216.\r\n```\r\n$ bosh run errand diego-acceptance-tests\r\nActing as user 'admin' on deployment 'diego-openstack' on 'bosh'\r\n\r\nDirector task 3910\r\n  Started unknown\r\n  Started unknown > Binding deployment. Done (00:00:00)\r\n\r\n  Started preparing deployment\r\n  Started preparing deployment > Binding releases. Done (00:00:00)\r\n  Started preparing deployment > Binding existing deployment. Done (00:00:00)\r\n  Started preparing deployment > Binding resource pools. Done (00:00:00)\r\n  Started preparing deployment > Binding stemcells. Done (00:00:00)\r\n  Started preparing deployment > Binding templates. Done (00:00:00)\r\n  Started preparing deployment > Binding properties. Done (00:00:00)\r\n  Started preparing deployment > Binding unallocated VMs. Done (00:00:00)\r\n  Started preparing deployment > Binding instance networks. Done (00:00:00)\r\n\r\n  Started preparing package compilation > Finding packages to compile. Done (00:00:00)\r\n\r\n  Started preparing dns > Binding DNS. Done (00:00:00)\r\n\r\nError 100: undefined method `cid' for nil:NilClass\r\n\r\nTask 3910 error\r\n\r\nErrand `diego-acceptance-tests' did not complete\r\n\r\nFor a more detailed error report, run: bosh task 3910 --debug\r\n```\r\n\r\nFollowing more detailed logs.\r\n```\r\nD, [2015-10-23 04:15:33 #5093] [] DEBUG -- DirectorJobRunner: Worker thread raised exception: undefined method `cid' for nil:NilClass - /var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3112.0/lib/bosh/director/instance_deleter.rb:31:in `delete_instance'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3112.0/lib/bosh/director/instance_deleter.rb:21:in `block (3 levels) in delete_instances'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_common-1.3112.0/lib/common/thread_pool.rb:77:in `call'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_common-1.3112.0/lib/common/thread_pool.rb:77:in `block (2 levels) in create_thread'\r\n/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_common-1.3112.0/lib/c\r\n```"},"comment":{"url":"https://api.github.com/repos/cloudfoundry/bosh/issues/comments/217587221","html_url":"https://github.com/cloudfoundry/bosh/issues/993#issuecomment-217587221","issue_url":"https://api.github.com/repos/cloudfoundry/bosh/issues/993","id":217587221,"user":{"login":"dpb587-pivotal","id":16127344,"avatar_url":"https://avatars.githubusercontent.com/u/16127344?v=3","gravatar_id":"","url":"https://api.github.com/users/dpb587-pivotal","html_url":"https://github.com/dpb587-pivotal","followers_url":"https://api.github.com/users/dpb587-pivotal/followers","following_url":"https://api.github.com/users/dpb587-pivotal/following{/other_user}","gists_url":"https://api.github.com/users/dpb587-pivotal/gists{/gist_id}","starred_url":"https://api.github.com/users/dpb587-pivotal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpb587-pivotal/subscriptions","organizations_url":"https://api.github.com/users/dpb587-pivotal/orgs","repos_url":"https://api.github.com/users/dpb587-pivotal/repos","events_url":"https://api.github.com/users/dpb587-pivotal/events{/privacy}","received_events_url":"https://api.github.com/users/dpb587-pivotal/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T23:31:49Z","updated_at":"2016-05-06T23:31:49Z","body":"Closing - the VM-management work was released in v241 and this should be fixed now. Feel free to open a new issue with new stacktrace/details if you see it on newer versions of bosh."}}