-
Notifications
You must be signed in to change notification settings - Fork 107
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
touch tmp/restart.txt always leads to connection refused #59
Comments
@paulca What is happening in the browser when you're restarting? touching |
@evanphx It just goes white (Chrome anyway). Super weird. I did just try it there and it did eventually restart after coming back to the computer after a while. |
@paulca That's odd. Would you be available to a screensharing session sometime so that I could see it in action? |
Yep. It still seems to be happening with 0.9. Almost brand new Rails 5 apps. On Wed, Aug 17, 2016 at 1:00 AM Evan Phoenix notifications@github.com
|
(can do on screensharing) |
I am using |
I can replicate this issue. App is working fine:
I restart puma with
Then I try to hit my app again:
And the logs only state I then run
Then the app restarts as expected. The difference appears to be that the app never "shuts down and cleans up" when it's touched. Only when EDIT: More debugging info from
Whereas
|
I just experienced this for the first time. I wonder if it's some sort of timestamp issue with the |
I can confirm that |
This is still happening, both the bug and the workaround. |
Thanks @firedev, your way works. |
I am having the same issue. @evanphx we can screenshare if that helps. my go-fu is limited but am keen to learn to be able to help out. |
I am seeing exactly the same issue, and can confirm that the @firedev's workaround is working as expected. |
I was using puma-dev happily, until couple weeks ago, when I started getting this bug. I think it started right after upgrade from El Capitan to High Sierra — this might be a clue. |
I experienced the same issue on High Sierra with a Rails 5 app, and the above fix of |
What also worked for me was doing a |
I just want to report that I'm no longer having this issue on High Sierra. Was fixed by one of puma-dev updates, I guess. |
I'm still experiencing this issue with puma-dev version: 0.11 (go1.9.1) – installed via homebrew. macOS 10.13.3. |
I get the same error and in the logs shows 10x: 2018/08/07 09:30:05 http: proxy error: dial unix /Users/xx/.puma-dev/nordplaner/tmp/puma-dev-82192.sock: connect: connection refused When I do a ls /Users/xx/.puma-dev/nordplaner/tmp/puma-dev-82192.sock the file is gone I started puma-dev like this: |
What I have personally seen so far is that hitting an app (via an HTTP request for example) straight after |
Please reopen this if it's still an issue! |
This is still an issue: Way to reproduce:
Wait 30 minutes..and you get the connection refused:
|
@evanphx Can you please reopen this? It is definitely still happening with the latest version (v0.12) on High Sierra (10.13.6). I am also seeing the "proxy error" when using
then when I try to hit the app again, I get the "connection refused" error:
and then the app reboots properly. Notice how when using In case it helps:
|
@yemartin @bjensen are you able to try to reproduce with the latest master @ 338eacc ? i've been unable to reproduce on a number of ruby and puma versions on macOS 10.14.6. see steps i used to attempt to reproduce here: #175 (comment) |
Please try to reproduce with the latest v0.13 and see if you're still seeing an issue. I believe updates to vendored dependencies addressed this. |
Unfortunately, just happened on puma-dev Version: 0.14 (go1.14.3) for me (installed via brew on macOS 10.15.7) |
@uson1x Could you please try updating to If that doesn't fix the issue, please provide the output of |
I am still having this issue, and none of the above workarounds are working. Output from above: Version: 0.15.2 (go1.15.3) |
A while ago, I had a patch up to ensure we remove apps from the pool correctly, but I wasn't able to reliably reproduce the issue. I will post a build with that patch for testing this week. |
As a follow-up, the only way I can get puma working again after this happens is like so:
|
That's consistent with my understanding of the issue. |
Resolved with https://github.com/puma/puma-dev/releases/tag/v0.16.0 |
Just fyi, this issue is still happening till now unfortunately...
This doesn't happen if I am using normal Puma instead of Puma-dev The hack above (#59 (comment)) seems to work, showing( app "app_name" shutdown and cleaned up) puma-dev -V |
I haven't been able to use
touch/tmp/restart.txt
with the latest release...Here's what happens in the logs:
In the browser, the viewport just goes blank white.
unload/reload via launchctl works and is fast enough for me for now.
The text was updated successfully, but these errors were encountered: