{"action":"created","issue":{"url":"https://api.github.com/repos/puma/puma/issues/1361","repository_url":"https://api.github.com/repos/puma/puma","labels_url":"https://api.github.com/repos/puma/puma/issues/1361/labels{/name}","comments_url":"https://api.github.com/repos/puma/puma/issues/1361/comments","events_url":"https://api.github.com/repos/puma/puma/issues/1361/events","html_url":"https://github.com/puma/puma/issues/1361","id":241883173,"node_id":"MDU6SXNzdWUyNDE4ODMxNzM=","number":1361,"title":"LoadError: cannot load such file -- puma/state_file ","user":{"login":"ramakuka","id":1012592,"node_id":"MDQ6VXNlcjEwMTI1OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1012592?v=4","gravatar_id":"","url":"https://api.github.com/users/ramakuka","html_url":"https://github.com/ramakuka","followers_url":"https://api.github.com/users/ramakuka/followers","following_url":"https://api.github.com/users/ramakuka/following{/other_user}","gists_url":"https://api.github.com/users/ramakuka/gists{/gist_id}","starred_url":"https://api.github.com/users/ramakuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramakuka/subscriptions","organizations_url":"https://api.github.com/users/ramakuka/orgs","repos_url":"https://api.github.com/users/ramakuka/repos","events_url":"https://api.github.com/users/ramakuka/events{/privacy}","received_events_url":"https://api.github.com/users/ramakuka/received_events","type":"User","site_admin":false},"labels":[{"id":485418725,"node_id":"MDU6TGFiZWw0ODU0MTg3MjU=","url":"https://api.github.com/repos/puma/puma/labels/bug","name":"bug","color":"d93f0b","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-10T23:42:00Z","updated_at":"2019-08-25T00:54:56Z","closed_at":"2019-07-28T00:43:30Z","author_association":"NONE","body":"Puma 3.9.1 Ruby 2.4.1p111  Rails 4.2.8\r\nTrying to start Puma and I keep getting \r\n```\r\nbundler: failed to load command: pumactl (/app/vendor/bundle/ruby/2.4.0/bin/pumactl)\r\nLoadError: cannot load such file -- puma/state_file\r\n  /app/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/lib/puma/launcher.rb:108:in `write_state'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/lib/puma/cluster.rb:439:in `run'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/lib/puma/launcher.rb:174:in `run'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/lib/puma/cli.rb:77:in `run'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/lib/puma/control_cli.rb:259:in `start'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/lib/puma/control_cli.rb:223:in `run'\r\n  /app/vendor/bundle/ruby/2.4.0/gems/puma-3.9.1/bin/pumactl:8:in `<top (required)>'\r\n  /app/vendor/bundle/ruby/2.4.0/bin/pumactl:22:in `load'\r\n  /app/vendor/bundle/ruby/2.4.0/bin/pumactl:22:in `<top (required)>'\r\n```\r\nit looks like an issue with `require 'puma/state_file'` for some reason it cannot be found.\r\nI can see that in [PR 1083](https://github.com/puma/puma/commit/ea22ade35270eaefdfaf53b2f86a2eb6259c60a3) @frodsan moved the require to the `write_state` method for better memory allocation.\r\nI was able to start Puma when I tried to move the `require 'puma/state_file'` to where it was originally (outside the method scope).\r\nCan anyone shade light on what might be the issue with the require? any ideas on what we can do to fix it?"},"comment":{"url":"https://api.github.com/repos/puma/puma/issues/comments/524591375","html_url":"https://github.com/puma/puma/issues/1361#issuecomment-524591375","issue_url":"https://api.github.com/repos/puma/puma/issues/1361","id":524591375,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNDU5MTM3NQ==","user":{"login":"msuzoagu","id":5686704,"node_id":"MDQ6VXNlcjU2ODY3MDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5686704?v=4","gravatar_id":"","url":"https://api.github.com/users/msuzoagu","html_url":"https://github.com/msuzoagu","followers_url":"https://api.github.com/users/msuzoagu/followers","following_url":"https://api.github.com/users/msuzoagu/following{/other_user}","gists_url":"https://api.github.com/users/msuzoagu/gists{/gist_id}","starred_url":"https://api.github.com/users/msuzoagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msuzoagu/subscriptions","organizations_url":"https://api.github.com/users/msuzoagu/orgs","repos_url":"https://api.github.com/users/msuzoagu/repos","events_url":"https://api.github.com/users/msuzoagu/events{/privacy}","received_events_url":"https://api.github.com/users/msuzoagu/received_events","type":"User","site_admin":false},"created_at":"2019-08-25T00:54:56Z","updated_at":"2019-08-25T00:54:56Z","author_association":"NONE","body":"@nafaabout I am currently running into this issue:  \r\n\r\n```\r\n/usr/local/bundle/gems/puma-4.0.1/lib/puma/launcher.rb:111:in `require': cannot load such file -- puma/state_file (LoadError)\r\n\tfrom /usr/local/bundle/gems/puma-4.0.1/lib/puma/launcher.rb:111:in `write_state'\r\n\tfrom /usr/local/bundle/gems/puma-4.0.1/lib/puma/single.rb:103:in `run'\r\n\tfrom /usr/local/bundle/gems/puma-4.0.1/lib/puma/launcher.rb:186:in `run'\r\n\tfrom /usr/local/bundle/gems/puma-4.0.1/lib/puma/cli.rb:80:in `run'\r\n\tfrom /usr/local/bundle/gems/puma-4.0.1/bin/puma:10:in `<top (required)>'\r\n\tfrom /usr/local/bundle/bin/puma:23:in `load'\r\n\tfrom /usr/local/bundle/bin/puma:23:in `<main>'\r\n```\r\n\r\nwas the bug resolved? Any tips on how to debug it?"}}
{"actor":{"display_login":"msuzoagu"}}