{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/512","repository_url":"https://api.github.com/repos/chef-cookbooks/jenkins","labels_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/512/comments","events_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/512/events","html_url":"https://github.com/chef-cookbooks/jenkins/issues/512","id":178126981,"number":512,"title":"Fetching Jenkins CLI jar","user":{"login":"ericgoedtel","id":3443258,"avatar_url":"https://avatars.githubusercontent.com/u/3443258?v=3","gravatar_id":"","url":"https://api.github.com/users/ericgoedtel","html_url":"https://github.com/ericgoedtel","followers_url":"https://api.github.com/users/ericgoedtel/followers","following_url":"https://api.github.com/users/ericgoedtel/following{/other_user}","gists_url":"https://api.github.com/users/ericgoedtel/gists{/gist_id}","starred_url":"https://api.github.com/users/ericgoedtel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericgoedtel/subscriptions","organizations_url":"https://api.github.com/users/ericgoedtel/orgs","repos_url":"https://api.github.com/users/ericgoedtel/repos","events_url":"https://api.github.com/users/ericgoedtel/events{/privacy}","received_events_url":"https://api.github.com/users/ericgoedtel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-20T17:42:02Z","updated_at":"2016-10-17T14:07:19Z","closed_at":null,"body":"### Cookbook version\r\n2.6.0\r\n\r\n### Chef-client version\r\nChef 12.13.37\r\n\r\n### Platform Details\r\nUbuntu 14.04 on AWS EC2\r\n\r\n### Scenario:\r\nConfiguring a Jenkins user through the jenkins_user resource\r\n\r\n### Steps to Reproduce:\r\nStart with the following recipe:\r\n```\r\ninclude_recipe 'jenkins::master'\r\njenkins_user 'grumpy' do\r\n  full_name    'Grumpy Dwarf'\r\n  email        'grumpy@example.com'\r\n  public_keys  ['ssh-rsa ...']\r\nend\r\n```\r\nExecute the recipe\r\n\r\n### Expected Result:\r\nA user is created in Jenkins\r\n\r\n### Actual Result:\r\nAn HTTP 503 occurs when attempting to download the Jenkins CLI jar:\r\n```\r\nNet::HTTPFatalError\r\n-------------------\r\nremote_file[/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/jenkins-cli.jar] (dynamically defined) had an error: Net::HTTPFatalError: 503 \"Service Unavailable\"\r\n\r\nCookbook Trace:\r\n---------------\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/jenkins/libraries/_helper.rb:436:in `ensure_cli_present!'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/jenkins/libraries/_helper.rb:62:in `executor'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/jenkins/libraries/user.rb:142:in `current_user'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/jenkins/libraries/user.rb:75:in `load_current_resource'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'\r\n/var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'\r\n\r\nResource Declaration:\r\n---------------------\r\n# In /var/chef/runs/72ca5285-ea20-48da-9628-a95b97fb2800/local-mode-cache/cache/cookbooks/jenkins-layer/recipes/setup.rb\r\n\r\n67 jenkins_user 'grumpy' do\r\n68   full_name    'Grumpy Dwarf'\r\n69   email        'grumpy@example.com'\r\n70   public_keys  ['ssh-rsa ...']\r\n71 end\r\n```\r\n\r\nSubsequent runs result in this working--so the problem seems to be that Jenkins is starting too slowly for the Chef recipe. It seems like the resource is hitting `remote_file` and it does not have any retries configured."},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/comments/254217435","html_url":"https://github.com/chef-cookbooks/jenkins/issues/512#issuecomment-254217435","issue_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/512","id":254217435,"user":{"login":"iennae","id":1592404,"avatar_url":"https://avatars.githubusercontent.com/u/1592404?v=3","gravatar_id":"","url":"https://api.github.com/users/iennae","html_url":"https://github.com/iennae","followers_url":"https://api.github.com/users/iennae/followers","following_url":"https://api.github.com/users/iennae/following{/other_user}","gists_url":"https://api.github.com/users/iennae/gists{/gist_id}","starred_url":"https://api.github.com/users/iennae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iennae/subscriptions","organizations_url":"https://api.github.com/users/iennae/orgs","repos_url":"https://api.github.com/users/iennae/repos","events_url":"https://api.github.com/users/iennae/events{/privacy}","received_events_url":"https://api.github.com/users/iennae/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T14:07:19Z","updated_at":"2016-10-17T14:07:19Z","body":"I believe this is related to using Jenkins 2.0 or later. We are still working on making this cookbook Jenkins 2.0 compatible. If you try setting the attribute  to something that is pre 2.0, for example master['version'] = '1.658' do you still see the issue?"}}
{"actor":{"display_login":"iennae"}}