{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/545","repository_url":"https://api.github.com/repos/chef-cookbooks/jenkins","labels_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/545/comments","events_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/545/events","html_url":"https://github.com/chef-cookbooks/jenkins/issues/545","id":194187363,"number":545,"title":"Error executing action `create` on resource 'jenkins_jnlp_slave[builder]' Jenkins::Helper::JenkinsNotReady","user":{"login":"lioramilbaum","id":7271026,"avatar_url":"https://avatars2.githubusercontent.com/u/7271026?v=3","gravatar_id":"","url":"https://api.github.com/users/lioramilbaum","html_url":"https://github.com/lioramilbaum","followers_url":"https://api.github.com/users/lioramilbaum/followers","following_url":"https://api.github.com/users/lioramilbaum/following{/other_user}","gists_url":"https://api.github.com/users/lioramilbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/lioramilbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lioramilbaum/subscriptions","organizations_url":"https://api.github.com/users/lioramilbaum/orgs","repos_url":"https://api.github.com/users/lioramilbaum/repos","events_url":"https://api.github.com/users/lioramilbaum/events{/privacy}","received_events_url":"https://api.github.com/users/lioramilbaum/received_events","type":"User","site_admin":false},"labels":[{"id":418400090,"url":"https://api.github.com/repos/chef-cookbooks/jenkins/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T22:16:15Z","updated_at":"2017-05-16T14:29:00Z","closed_at":null,"body":"### Cookbook version\r\n4.1.2\r\n\r\n### Chef-client version\r\nchef-client version: 12.16.42\r\n\r\n### Platform Details\r\n\r\nUbuntu 14.04 on EC2\r\n\r\n### Scenario:\r\nSetting up a Jenkins node on a different instance than the Jenkins master. So, localhost for master is not correct.\r\n\r\n### Steps to Reproduce:\r\nMy node recipe:\r\nrecipes/node.rb\r\n\r\n**jenkins_jnlp_slave 'builder' do\r\n  description 'A generic slavee builder'\r\n  remote_fs   '/home/jenkins'\r\n  labels      ['builder']\r\nend**\r\n\r\n### Expected Result:\r\nJenkins node/slave configured to work with Jenkins master\r\n\r\n### Actual Result:\r\n    ================================================================================\r\n    Error executing action `create` on resource 'jenkins_jnlp_slave[builder]'\r\n    ================================================================================\r\n    \r\n    Jenkins::Helper::JenkinsNotReady\r\n    --------------------------------\r\n    The Jenkins master at `http://localhost:8080' did not become ready within 60\r\n    seconds. On large Jenkins instances, you may need to increase the timeout to\r\n    240 seconds. Alternatively, Jenkins may have failed to start.\r\n    Jenkins can fail to start if:\r\n    \r\n      - a configuration file is invalid\r\n      - a plugin is only partially installed\r\n      - a plugin's dependencies are not installed\r\n    \r\n    If this problem persists, check your Jenkins log files.\r\n    \r\n    Cookbook Trace:\r\n    ---------------\r\n    /var/chef/cache/cookbooks/jenkins/libraries/_helper.rb:425:in `rescue in wait_until_ready!'\r\n    /var/chef/cache/cookbooks/jenkins/libraries/_helper.rb:405:in `wait_until_ready!'\r\n    /var/chef/cache/cookbooks/jenkins/libraries/_helper.rb:61:in `executor'\r\n    /var/chef/cache/cookbooks/jenkins/libraries/slave.rb:325:in `current_slave'\r\n    /var/chef/cache/cookbooks/jenkins/libraries/slave.rb:126:in `load_current_resource'\r\n    /var/chef/cache/cookbooks/jenkins/libraries/slave_jnlp.rb:50:in `load_current_resource'\r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cache/cookbooks/lmb-jenkins/recipes/node.rb\r\n    \r\n      5: jenkins_jnlp_slave 'builder' do\r\n      6:   description 'A generic slavee builder'\r\n      7:   remote_fs   '/home/jenkins'\r\n      8:   labels      ['builder']\r\n      9: end\r\n    \r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cache/cookbooks/lmb-jenkins/recipes/node.rb:5:in `from_file'\r\n    \r\n    jenkins_jnlp_slave(\"builder\") do\r\n      action [:create]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      declared_type :jenkins_jnlp_slave\r\n      cookbook_name \"lmb-jenkins\"\r\n      recipe_name \"node\"\r\n      description \"A generic slavee builder\"\r\n      remote_fs \"/home/jenkins\"\r\n      labels [\"builder\"]\r\n    end\r\n    \r\n    Platform:\r\n    ---------\r\n    x86_64-linux\r\n    \r\n\r\nRunning handlers:\r\n[2016-12-07T21:49:43+00:00] ERROR: Running exception handlers\r\nRunning handlers complete\r\n[2016-12-07T21:49:43+00:00] ERROR: Exception handlers complete\r\nChef Client failed. 4 resources updated in 01 minutes 13 seconds\r\n[2016-12-07T21:49:44+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\n[2016-12-07T21:49:44+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n[2016-12-07T21:49:44+00:00] ERROR: undefined method `failed' for nil:NilClass\r\nDid you mean?  fail\r\n[2016-12-07T21:49:44+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/comments/301800274","html_url":"https://github.com/chef-cookbooks/jenkins/issues/545#issuecomment-301800274","issue_url":"https://api.github.com/repos/chef-cookbooks/jenkins/issues/545","id":301800274,"user":{"login":"chazzly","id":7253095,"avatar_url":"https://avatars2.githubusercontent.com/u/7253095?v=3","gravatar_id":"","url":"https://api.github.com/users/chazzly","html_url":"https://github.com/chazzly","followers_url":"https://api.github.com/users/chazzly/followers","following_url":"https://api.github.com/users/chazzly/following{/other_user}","gists_url":"https://api.github.com/users/chazzly/gists{/gist_id}","starred_url":"https://api.github.com/users/chazzly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chazzly/subscriptions","organizations_url":"https://api.github.com/users/chazzly/orgs","repos_url":"https://api.github.com/users/chazzly/repos","events_url":"https://api.github.com/users/chazzly/events{/privacy}","received_events_url":"https://api.github.com/users/chazzly/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T14:29:00Z","updated_at":"2017-05-16T14:29:00Z","body":"+1\r\nExact same problem.\r\nI was assuming that node['jenkins']['master']['host'] needed to be set, but that didn't help.\r\n\r\nWhat am I doing wrong?\r\n"}}
{"actor":{"display_login":"chazzly"}}