{"action":"created","issue":{"url":"https://api.github.com/repos/puma/puma/issues/1101","repository_url":"https://api.github.com/repos/puma/puma","labels_url":"https://api.github.com/repos/puma/puma/issues/1101/labels{/name}","comments_url":"https://api.github.com/repos/puma/puma/issues/1101/comments","events_url":"https://api.github.com/repos/puma/puma/issues/1101/events","html_url":"https://github.com/puma/puma/issues/1101","id":178821011,"number":1101,"title":"Nginx (111: Connection refused) error when upgrading to 3.x","user":{"login":"ckuwanoe","id":161009,"avatar_url":"https://avatars.githubusercontent.com/u/161009?v=3","gravatar_id":"","url":"https://api.github.com/users/ckuwanoe","html_url":"https://github.com/ckuwanoe","followers_url":"https://api.github.com/users/ckuwanoe/followers","following_url":"https://api.github.com/users/ckuwanoe/following{/other_user}","gists_url":"https://api.github.com/users/ckuwanoe/gists{/gist_id}","starred_url":"https://api.github.com/users/ckuwanoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckuwanoe/subscriptions","organizations_url":"https://api.github.com/users/ckuwanoe/orgs","repos_url":"https://api.github.com/users/ckuwanoe/repos","events_url":"https://api.github.com/users/ckuwanoe/events{/privacy}","received_events_url":"https://api.github.com/users/ckuwanoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-23T08:56:35Z","updated_at":"2016-09-23T19:49:04Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1) Attempted to upgrade to 3.6 today (also tried 3.0 and 3.1) from 2.16.0, however I am receiving a connection refused error on the socket. Am I missing a breaking change from 2.x to 3.x? I read through the docs and couldn't find any. \r\n\r\n```\r\n*4826 connect() to unix:///home/deployer/apps/blocks/shared/tmp/sockets/puma.sock failed (111: Connection refused) while connecting to upstream\r\n```\r\n\r\n### Expected behavior\r\n\r\nSetup is working fine with 2.16.0, reverted back.\r\n\r\npuma.rb file\r\n```\r\n# config/puma.rb\r\nthreads 1,4\r\nworkers 8\r\n\r\napp_dir = File.expand_path(\"../..\", __FILE__)\r\nshared_dir = \"/home/deployer/apps/blocks/shared\"\r\n\r\n# Default to production\r\nrails_env = ENV['RAILS_ENV'] || \"production\"\r\nenvironment rails_env\r\n\r\n# Set up socket location\r\nbind \"unix://#{shared_dir}/tmp/sockets/puma.sock\"\r\n\r\n# Logging\r\nstdout_redirect \"#{shared_dir}/log/puma.stdout.log\", \"#{shared_dir}/log/puma.stderr.log\", true\r\n\r\n# Set master PID and state locations\r\npidfile \"#{shared_dir}/pids/puma.pid\"\r\nstate_path \"#{shared_dir}/pids/puma.state\"\r\nactivate_control_app\r\n\r\non_worker_boot do\r\n  require \"active_record\"\r\n  ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished\r\n  ActiveRecord::Base.establish_connection(YAML.load_file(\"#{app_dir}/config/database.yml\")[rails_env])\r\nend\r\n\r\nprune_bundler\r\n```\r\n\r\nnginx.conf (upstream config)\r\n```\r\nupstream app {\r\n  server unix:///home/deployer/apps/blocks/shared/tmp/sockets/puma.sock fail_timeout=0;\r\n}\r\n```\r\n\r\nThere were no errors in the error log and the processes were all running. However I did notice that  the process looked slightly different as it's missing the unix socket when started up under 3.6.0.\r\n\r\n```\r\ndeployer  3648  2.9  0.1 357488 32368 ?        Ssl  04:02   0:00 puma 3.6.0 (tcp://0.0.0.0:5000) [342]\r\ndeployer  4225 26.2  0.8 1571232 209220 ?      Sl   04:02   0:07 puma: cluster worker 0: 3648 [342]\r\ndeployer  4229 26.3  0.9 1664092 236596 ?      Sl   04:02   0:07 puma: cluster worker 1: 3648 [342]\r\ndeployer  4233 26.9  0.8 1572316 210116 ?      Sl   04:02   0:07 puma: cluster worker 2: 3648 [342]\r\ndeployer  4237 27.2  0.8 1571188 209260 ?      Sl   04:02   0:07 puma: cluster worker 3: 3648 [342]\r\ndeployer  4241 27.2  0.8 1636684 209144 ?      Sl   04:02   0:07 puma: cluster worker 4: 3648 [342]\r\ndeployer  4245 26.1  0.9 1598528 236604 ?      Sl   04:02   0:07 puma: cluster worker 5: 3648 [342]\r\ndeployer  4248 27.3  0.9 1598412 236528 ?      Sl   04:02   0:07 puma: cluster worker 6: 3648 [342]\r\ndeployer  4253 26.8  0.9 1586620 224912 ?      Sl   04:02   0:07 puma: cluster worker 7: 3648 [342]\r\ndeployer  4767  0.0  0.0  11752  2164 pts/4    S+   04:02   0:00 grep puma\r\n```\r\n\r\nVersus what it looks like on 2.16.0\r\n\r\n```\r\ndeployer 25153  0.0  0.0 336592 21808 ?        Ssl  04:57   0:01 puma 2.16.0 (tcp://0.0.0.0:5000,unix:///home/deployer/apps/blocks/shared/tmp/sockets/puma.sock) [350]\r\ndeployer 25309  0.4  1.0 1668820 252488 ?      Sl   04:57   0:08 puma: cluster worker 0: 25153 [350]\r\ndeployer 25313  0.5  1.1 1845660 282608 ?      Sl   04:57   0:10 puma: cluster worker 1: 25153 [350]\r\ndeployer 25317  0.4  0.9 1646004 238760 ?      Sl   04:57   0:08 puma: cluster worker 2: 25153 [350]\r\ndeployer 25321  0.4  0.9 1643168 226116 ?      Sl   04:57   0:08 puma: cluster worker 3: 25153 [350]\r\ndeployer 25325  0.5  1.0 1709296 265708 ?      Sl   04:57   0:10 puma: cluster worker 4: 25153 [350]\r\ndeployer 25329  0.5  1.0 1775376 265732 ?      Sl   04:57   0:10 puma: cluster worker 5: 25153 [350]\r\ndeployer 25333  0.4  0.9 1709444 232764 ?      Sl   04:57   0:08 puma: cluster worker 6: 25153 [350]\r\ndeployer 25337  0.5  1.1 1710604 273184 ?      Sl   04:57   0:10 puma: cluster worker 7: 25153 [350]\r\ndeployer 31886  0.0  0.0  11752  2140 pts/4    S+   05:29   0:00 grep puma\r\n```\r\n\r\n### System configuration\r\n\r\n**Ruby version**: 2.1.2\r\n**Rails version**: 4.1.9\r\nUbuntu 14.04\r\nrbenv 0.4.0-97-gfe0b243"},"comment":{"url":"https://api.github.com/repos/puma/puma/issues/comments/249286018","html_url":"https://github.com/puma/puma/issues/1101#issuecomment-249286018","issue_url":"https://api.github.com/repos/puma/puma/issues/1101","id":249286018,"user":{"login":"evanphx","id":7,"avatar_url":"https://avatars.githubusercontent.com/u/7?v=3","gravatar_id":"","url":"https://api.github.com/users/evanphx","html_url":"https://github.com/evanphx","followers_url":"https://api.github.com/users/evanphx/followers","following_url":"https://api.github.com/users/evanphx/following{/other_user}","gists_url":"https://api.github.com/users/evanphx/gists{/gist_id}","starred_url":"https://api.github.com/users/evanphx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanphx/subscriptions","organizations_url":"https://api.github.com/users/evanphx/orgs","repos_url":"https://api.github.com/users/evanphx/repos","events_url":"https://api.github.com/users/evanphx/events{/privacy}","received_events_url":"https://api.github.com/users/evanphx/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T19:49:04Z","updated_at":"2016-09-23T19:49:04Z","body":"How are you starting puma? It appears that the bind param in the config file isn't being picked up..."}}
{"actor":{"display_login":"evanphx"}}