Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method 'success?' for nil:NilClass (NoMethodError) #1

Open
dentarg opened this issue Jan 16, 2024 · 1 comment
Open

undefined method 'success?' for nil:NilClass (NoMethodError) #1

dentarg opened this issue Jan 16, 2024 · 1 comment

Comments

@dentarg
Copy link
Member

dentarg commented Jan 16, 2024

I see this issue from time to time

$ rerun -x -c -- bundle e puma --log-requests -p 31337

12:05:23 [rerun] Rack-3 launched
12:05:23 [rerun] Rerun (3697) running Rack-3 (3705)
Puma starting in single mode...
* Puma version: 6.4.2 (ruby 3.2.2-p53) ("The Eagle of Durango")
*  Min threads: 0
*  Max threads: 5
*  Environment: development
*          PID: 3705
* Listening on https://0.0.0.0:31337
Use Ctrl-C to stop
127.0.0.1 - - [16/Jan/2024:12:05:36 +0100] "GET / HTTP/1.1" 200 2 0.0137
r12:09:15 [rerun] Restarting
- Gracefully stopping, waiting for requests to finish
/Users/dentarg/.rubies/3.2.2/lib/ruby/gems/3.2.0/gems/rerun-0.14.0/lib/rerun/runner.rb:185:in `start': undefined method `success?' for nil:NilClass (NoMethodError)

        if status.success?
                 ^^^^^^^^^
	from /Users/dentarg/.rubies/3.2.2/lib/ruby/gems/3.2.0/gems/rerun-0.14.0/lib/rerun/runner.rb:12:in `keep_running'
	from /Users/dentarg/.rubies/3.2.2/lib/ruby/gems/3.2.0/gems/rerun-0.14.0/bin/rerun:18:in `<top (required)>'
	from /Users/dentarg/.rubies/3.2.2/bin/rerun:25:in `load'
	from /Users/dentarg/.rubies/3.2.2/bin/rerun:25:in `<main>'
@dentarg
Copy link
Member Author

dentarg commented Jan 16, 2024

I should not start puma with -x as puma doesn't exit, so that could be a clue (but I think I've seen this in other situations too)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant