{"action":"created","issue":{"url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/370","repository_url":"https://api.github.com/repos/aws/opsworks-cookbooks","labels_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/370/comments","events_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/370/events","html_url":"https://github.com/aws/opsworks-cookbooks/issues/370","id":136914820,"number":370,"title":"Rails App setup fails with latest OpsWorks Agent version","user":{"login":"spickermann","id":393096,"avatar_url":"https://avatars.githubusercontent.com/u/393096?v=3","gravatar_id":"","url":"https://api.github.com/users/spickermann","html_url":"https://github.com/spickermann","followers_url":"https://api.github.com/users/spickermann/followers","following_url":"https://api.github.com/users/spickermann/following{/other_user}","gists_url":"https://api.github.com/users/spickermann/gists{/gist_id}","starred_url":"https://api.github.com/users/spickermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spickermann/subscriptions","organizations_url":"https://api.github.com/users/spickermann/orgs","repos_url":"https://api.github.com/users/spickermann/repos","events_url":"https://api.github.com/users/spickermann/events{/privacy}","received_events_url":"https://api.github.com/users/spickermann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-27T12:42:59Z","updated_at":"2016-02-27T14:33:35Z","closed_at":"2016-02-27T14:33:35Z","body":"Rails App server setup fails. \r\n\r\nUpdating to the newest OpsWorks Agent version (like it was recommended on the OpsWorks dashboard) does not help. I also tried several different combinations of OpsWorks Agent versions and desired Ruby Gem versions. \r\n\r\nThe error log looks like this:\r\n\r\n```\r\n[2016-02-27T12:23:12+00:00] INFO: Processing template[/etc/sudoers.d/opsworks] action create (ssh_users::default line 41)\r\n[2016-02-27T12:23:12+00:00] INFO: Processing remote_file[/tmp/rubygems-2.5.2.tgz] action create (opsworks_rubygems::default line 1)\r\n[2016-02-27T12:23:12+00:00] INFO: remote_file[/tmp/rubygems-2.5.2.tgz] created file /tmp/rubygems-2.5.2.tgz\r\n[2016-02-27T12:23:12+00:00] WARN: remote_file[/tmp/rubygems-2.5.2.tgz] cannot be downloaded from http://production.cf.rubygems.org/rubygems/rubygems-2.5.2.tgz: Error connecting to http://production.cf.rubygems.org/rubygems/rubygems-2.5.2.tgz - getaddrinfo: Name or service not known\r\n \r\n================================================================================\r\nError executing action `create` on resource 'remote_file[/tmp/rubygems-2.5.2.tgz]'\r\n================================================================================\r\n \r\n \r\nSocketError\r\n-----------\r\nError connecting to http://production.cf.rubygems.org/rubygems/rubygems-2.5.2.tgz - getaddrinfo: Name or service not known\r\n \r\n \r\nResource Declaration:\r\n---------------------\r\n# In /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_rubygems/recipes/default.rb\r\n \r\n1: remote_file \"/tmp/rubygems-#{node[:opsworks_rubygems][:version]}.tgz\" do\r\n2:   source \"http://production.cf.rubygems.org/rubygems/rubygems-#{node[:opsworks_rubygems][:version]}.tgz\"\r\n3:   not_if do\r\n4:     ::File.exists?('/usr/local/bin/gem') && `/usr/local/bin/gem -v`.strip == node[:opsworks_rubygems][:version]\r\n5:   end\r\n6: end\r\n7: \r\n \r\n \r\n \r\nCompiled Resource:\r\n------------------\r\n# Declared in /var/lib/aws/opsworks/cache.stage2/cookbooks/opsworks_rubygems/recipes/default.rb:1:in `from_file'\r\n \r\nremote_file(\"/tmp/rubygems-2.5.2.tgz\") do\r\nprovider Chef::Provider::RemoteFile\r\naction \"create\"\r\nretries 0\r\nretry_delay 2\r\npath \"/tmp/rubygems-2.5.2.tgz\"\r\nbackup 5\r\natomic_update true\r\nsource [\"http://production.cf.rubygems.org/rubygems/rubygems-2.5.2.tgz\"]\r\nuse_etag true\r\nuse_last_modified true\r\ncookbook_name \"opsworks_rubygems\"\r\nrecipe_name \"default\"\r\nnot_if { #code block }\r\nend\r\n \r\n \r\n \r\n[2016-02-27T12:23:12+00:00] INFO: Running queued delayed notifications before re-raising exception\r\n[2016-02-27T12:23:12+00:00] ERROR: Running exception handlers\r\n[2016-02-27T12:23:12+00:00] ERROR: Exception handlers complete\r\n[2016-02-27T12:23:12+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.stage2/chef-stacktrace.out\r\n[2016-02-27T12:23:13+00:00] ERROR: remote_file[/tmp/rubygems-2.5.2.tgz] (opsworks_rubygems::default line 1) had an error: SocketError: Error connecting to http://production.cf.rubygems.org/rubygems/rubygems-2.5.2.tgz - getaddrinfo: Name or service not known\r\n[2016-02-27T12:23:13+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/comments/189652495","html_url":"https://github.com/aws/opsworks-cookbooks/issues/370#issuecomment-189652495","issue_url":"https://api.github.com/repos/aws/opsworks-cookbooks/issues/370","id":189652495,"user":{"login":"spickermann","id":393096,"avatar_url":"https://avatars.githubusercontent.com/u/393096?v=3","gravatar_id":"","url":"https://api.github.com/users/spickermann","html_url":"https://github.com/spickermann","followers_url":"https://api.github.com/users/spickermann/followers","following_url":"https://api.github.com/users/spickermann/following{/other_user}","gists_url":"https://api.github.com/users/spickermann/gists{/gist_id}","starred_url":"https://api.github.com/users/spickermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spickermann/subscriptions","organizations_url":"https://api.github.com/users/spickermann/orgs","repos_url":"https://api.github.com/users/spickermann/repos","events_url":"https://api.github.com/users/spickermann/events{/privacy}","received_events_url":"https://api.github.com/users/spickermann/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T14:33:35Z","updated_at":"2016-02-27T14:33:35Z","body":"I can confirm that it is possible to deploy again. The problem is solved. Thanks for looking into it."}}