-
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
OSX High Sierra: can't listen on port 80 #138
Comments
Mine consistently stops working and is fixed temporarily by running |
Glad it's not just me. I can't figure out why this one piece of software would have trouble listening only on one particular port. (after confirming nothing else is listening on that port.) |
Me too. Working in Chrome but not is Safari. |
Well that might be a different problem then. In my case puma-dev can't listen on the port so it has nothing to do with what browser you're trying to use. |
We're seeing this on one machine and not on another, both on High Sierra. On both machines, |
Just to note, this isn't limited to High Sierra. I am on Sierra 10.12.6 (16G1114) and have to use port 81 |
Chrome is now forcing all Don't know if there's a quick fix to this other than changing your local domain ext from |
@Cian911 this has nothing to do with Chrome. It does not work with curl or Firefox or telnet either. In fact it has nothing to do with the browser because the problem it's that puma-dev doesn't appear to ever listen on port 80. Yes there's a problem with .dev and preloaded HSTS on Chrome but that's not the issue being described here. |
@Cian911 @thom-nic It seems this has been happening since the latest High Sierra update (http://blokspeed.net/2017/high-sierra-1032-forces-local-dev-sites-use-https). I spend some time trying to fix this but the easiest way is to just change your local domain ext. |
I feel like I'm taking crazy pills because I keep saying this has nothing to do with .dev/ HSTS and then another person comments saying essentially "it doesn't work with .dev because HSTS." So I did another sanity check. In one terminal:
Another terminal, note use of
I'm 99.9999999998% sure this has nothing to do with HSTS. |
Ok so here's something: https://superuser.com/a/598287/220180 launchd listens on port 80, as evidenced by:
And puma-dev is designed to have port 80 "handed off" from launchd a la xinetd. However unlike in the SO thread, I'm not and have never run apache httpd on this machine. It got me thinking,
When I ran @bpollack @bullfight since you sound like you're actually experiencing the same problem I was, suggest investigating whether any trace of pow remains on affected machine(s). |
This might be related to #66 ? I remember having to run |
@thom-nic I did previously have pow installed and I think that may have been the source of my problems After running your suggested code to remove pow
I was able to get puma dev to start working on port 80. |
@thom-nic If puma uses eventmachine also this could help. |
@dmc2015 Interesting thought on whether the change in |
The same in 10.13.3. Just upgraded to 10.13.4 and the problem is gone |
Works now flawlessly on OS X 10.13.4 |
Does not work on a new computer with OS X 10.13.4 for me. |
I tried everything to get this to work that I could find discussing this issue. No matter what I did I could not get puma-dev to listen on port 80. I did manage to get pow working with .test. I guess I'll have to use that for now. |
@mrsweaters what is in your /etc/hosts file ? what error do you get ? |
/etc/hosts:
Something I tried returned a Connection Refused. Which is strange because I don't appear to have anything currently listening on port 80. No output from Also the launch process refuses to run on the new computer. This was very different on a computer that I had upgraded from Sierra to High Sierra that previously had .pow installed. That computer worked great. I'm not sure what is different here. |
I also have this exact issue. @thom-nic did you manage to get it working? |
@bjensen yes, after going through the pow uninstall as I mentioned in my last comment, puma-dev seems happy now. |
Hi folks, be sure that pow is fully uninstalled. I'm going to see if there is a way to detect and report on this issue when |
+1 on reopen. I uninstalled pow ages ago and have just accepted that
puma-dev is broken 👎
On Tue, 21 Aug 2018 at 06.41, Evan Phoenix ***@***.***> wrote:
Hi folks, be sure that pow is fully uninstalled. I'm going to see if there
is a way to detect and report on this issue when -install is called.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#138 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AADSaQdk6QHk9RVdoZsIwozgZta0X93Cks5uS49qgaJpZM4QsEgn>
.
--
Mvh
Brian Jensen
Nordplaner
+45 607 12000
brianj@itnord.net
|
The solution @bullfight shared worked for me! |
Yes @bullfight's solution works for me as well, but then after maybe 30 minutes I stuck with the same error again.... |
Um why do you not get a permission error like me when trying to install without sudo?
|
See accepted answer for cleaning up old pow installations. As pow's been deco'd for some time now, closing this issue. |
Why puma-dev permission denied? Command: puma-dev -dir /home/teknuk/.puma-dev --http-port 80 --https-port 443 -d test:localhost -timeout 15m0s 2022/06/21 12:15:59 Existing valid puma-dev CA keypair found. Assuming previously trusted. |
Why Connect Reset by peer occur? Command: puma-dev -dir /home/teknuk/.puma-dev Error in terminal when refresh page: httputil: ReverseProxy read error during body copy: read tcp 127.0.0.1:49530->127.0.0.1:9283: read: connection reset by peer |
I'm not sure what I'm doing wrong but puma-dev works fine on any port except for port 80:
This works as expected:
This does not:
I get "connection refused":
lsof
tells me nothing is listening on port 80 except forpuma-dev
:The text was updated successfully, but these errors were encountered: