{"action":"created","issue":{"url":"https://api.github.com/repos/someara/chef-docker/issues/525","labels_url":"https://api.github.com/repos/someara/chef-docker/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/someara/chef-docker/issues/525/comments","events_url":"https://api.github.com/repos/someara/chef-docker/issues/525/events","html_url":"https://github.com/someara/chef-docker/issues/525","id":112367343,"number":525,"title":"docker service failure with error 'ERROR: DockerService is not a class'","user":{"login":"avinashkolluru","id":1053920,"avatar_url":"https://avatars.githubusercontent.com/u/1053920?v=3","gravatar_id":"","url":"https://api.github.com/users/avinashkolluru","html_url":"https://github.com/avinashkolluru","followers_url":"https://api.github.com/users/avinashkolluru/followers","following_url":"https://api.github.com/users/avinashkolluru/following{/other_user}","gists_url":"https://api.github.com/users/avinashkolluru/gists{/gist_id}","starred_url":"https://api.github.com/users/avinashkolluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinashkolluru/subscriptions","organizations_url":"https://api.github.com/users/avinashkolluru/orgs","repos_url":"https://api.github.com/users/avinashkolluru/repos","events_url":"https://api.github.com/users/avinashkolluru/events{/privacy}","received_events_url":"https://api.github.com/users/avinashkolluru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-20T13:21:11Z","updated_at":"2015-10-20T15:14:43Z","closed_at":null,"body":"I have a simple recipe which does:\r\n\r\n```\r\ndocker_service 'default' do\r\n  \t\taction [:create, :start]\r\n\tend\r\n```\r\n\r\nI see the following error:\r\n\r\n```\r\nGenerated at 2015-10-20 13:13:41 +0000\r\nTypeError: DockerService is not a class\r\n/var/chef/cache/cookbooks/docker/libraries/provider_docker_service.rb:3:in `<class:Provider>'\r\n/var/chef/cache/cookbooks/docker/libraries/provider_docker_service.rb:2:in `<class:Chef>'\r\n/var/chef/cache/cookbooks/docker/libraries/provider_docker_service.rb:1:in `<top (required)>'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:191:in `load'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:191:in `block in load_libraries_from_cookbook'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:188:in `each'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:188:in `load_libraries_from_cookbook'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:99:in `block in compile_libraries'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:98:in `each'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:98:in `compile_libraries'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context/cookbook_compiler.rb:71:in `compile'\r\n/opt/chef/embedded/apps/chef/lib/chef/run_context.rb:97:in `load'\r\n/opt/chef/embedded/apps/chef/lib/chef/policy_builder/expand_node_object.rb:87:in `setup_run_context'\r\n/opt/chef/embedded/apps/chef/lib/chef/client.rb:486:in `setup_run_context'\r\n/opt/chef/embedded/apps/chef/lib/chef/client.rb:266:in `run'\r\n/opt/chef/embedded/apps/chef/lib/chef/application.rb:270:in `block in fork_chef_client'\r\n/opt/chef/embedded/apps/chef/lib/chef/application.rb:258:in `fork'\r\n/opt/chef/embedded/apps/chef/lib/chef/application.rb:258:in `fork_chef_client'\r\n/opt/chef/embedded/apps/chef/lib/chef/application.rb:224:in `block in run_chef_client'\r\n/opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:39:in `with_server_connectivity'\r\n/opt/chef/embedded/apps/chef/lib/chef/application.rb:212:in `run_chef_client'\r\n/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:402:in `block in interval_run_chef_client'\r\n/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `loop'\r\n/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:392:in `interval_run_chef_client'\r\n/opt/chef/embedded/apps/chef/lib/chef/application/client.rb:382:in `run_application'\r\n/opt/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'\r\n/opt/chef/embedded/apps/chef/bin/chef-client:26:in `<top (required)>'\r\n/bin/chef-client:55:in `load'\r\n/bin/chef-client:55:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/someara/chef-docker/issues/comments/149597489","html_url":"https://github.com/someara/chef-docker/issues/525#issuecomment-149597489","issue_url":"https://api.github.com/repos/someara/chef-docker/issues/525","id":149597489,"user":{"login":"avinashkolluru","id":1053920,"avatar_url":"https://avatars.githubusercontent.com/u/1053920?v=3","gravatar_id":"","url":"https://api.github.com/users/avinashkolluru","html_url":"https://github.com/avinashkolluru","followers_url":"https://api.github.com/users/avinashkolluru/followers","following_url":"https://api.github.com/users/avinashkolluru/following{/other_user}","gists_url":"https://api.github.com/users/avinashkolluru/gists{/gist_id}","starred_url":"https://api.github.com/users/avinashkolluru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinashkolluru/subscriptions","organizations_url":"https://api.github.com/users/avinashkolluru/orgs","repos_url":"https://api.github.com/users/avinashkolluru/repos","events_url":"https://api.github.com/users/avinashkolluru/events{/privacy}","received_events_url":"https://api.github.com/users/avinashkolluru/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T15:14:43Z","updated_at":"2015-10-20T15:14:43Z","body":"@someara \r\nDont think so. Because the following file \r\n/var/chef/cache/cookbooks/docker/CHANGELOG.md has the following content\r\n\r\n```\r\nv2.1.2\r\n--------------------\r\n- Adding why_run support\r\n\r\nv2.1.1\r\n--------------------\r\n#511 - fix container wait state checking\r\n#512 - wait for registry ports to be open in test recipe\r\n#519 - updating README to include labels#511 - fix container\r\n...\r\n```"}}