-
Notifications
You must be signed in to change notification settings - Fork 705
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
Some people running the Valet v4 beta get ERR_NGROK_8012
when trying to share with ngrok
#1374
Comments
We've kicked this around internally to track it down. Basically, ERR_NGROK_8012 means the local ngrok agent started successfully but can't connect to the service you assigned it. Most commonly this happens because:
I'd start with the DNS entry. As a test, you could set it in If it's the local proxy - nginx, I assume? - I'd check the sites-enabled folder to make sure that the url is set and the proxy is properly configured. |
Okay, so the tunnel works when I add a reference to my This is the line I added to the hosts file And this is to be expected but I also had to add the following to my APP_URL=https://cb32-216-205-160-212.eu.ngrok.io
ASSET_URL="${APP_URL}" |
The local proxy is nginx (and dnsmasq). But we don't add the sites to The individual sites where we've done custom config (e.g.
Their config files are built from one of these stubs:
Then we publish one master Nginx configuration file to https://github.com/laravel/valet/blob/master/cli/stubs/nginx.conf |
@laytan would you mind double checking something for me? I don't think I've made any changes to Nginx lately, but would you mind running Thanks! |
@laytan oo also--would you try securing a site and make sure it also has the same problem? Thanks! |
@mattstauffer were those messages intended for me? Either way, I tested them. After a valet install, the same issue occurs. I have removed the |
@mattstauffer Wrong tag I think, I haven't been part of this issue. |
@ashleyshenton and @laytan lol... i'm so sorry... been chatting with @laytan on a different issue and just got y'all mixed up. @ashleyshenton Thanks so much for running those checks! |
I tried as hard as I could to break my setup and reproduce this but haven't been able to so far. Anyone have any ideas about next steps? Is anyone having this issue available to possibly meet up with @caseysoftware or anyone on the ngrok team to help them debug it with you? |
I was able to fix this by going into my network connection in System Settings (System Preferences on Monterey and earlier), and adding 127.0.0.1 to my DNS servers so Basically, I read the explanation here and applied the same logic to my local networking setup. Without specifying 127.0.0.1 as the DNS server I did not get this working before, with or without other custom DNS servers. (I usually use Cloudflare's DNS server instead of my ISP's.) |
So "it's always DNS" strikes again :| |
I can confirm that after making the changes suggested by @nicoverbruggen that this also works for me now. |
I've been messing around with this one too and got the same result. DNS resolution has to start with dnsmasq or it's going to go out to a general one and not find the underlying server. Is there a way to force 127.0.0.1 into the order without a manual step? At present, this is outside of ngrok but happy to brainstorm on approaches and debugging. |
@caseysoftware Thanks so much! I'm not sure, but I am surprised this is new in this release of Valet. Is there any chance your team knows about any changes that have been made to ngrok since the version we were shipping before that may have introduced this? It's totally fine if so, but would at least give me some peace that i didnt' accidentally introduce this issue. |
Just came here to say @nicoverbruggen's solution works. Should've checked this issue earlier, spent an hour trying to figure out what went wrong with my setup 😂 |
We dug into this one again from our side and found an issue with macOS arm64. It's resolved in v3.2.1 of the ngrok agent and since you install ngrok via Brew, this issue should go away completely. Thanks for all your hard work @mattstauffer! |
And another followup.. In v3.3.0 of the ngrok agent last month, we expanded Thanks again for highlighting it! |
Thanks for reports from @nicoverbruggen, @dcblogdev, @ashleyshenton.
Hoping @caseysoftware can help me debug this!
The text was updated successfully, but these errors were encountered: