puma / puma-dev

A tool to manage rack apps in development with puma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacOS M1 Arm problem

resistorsoftware opened this issue · comments

I installed via Homebrew in a terminal where I see the compilation was for Apple, so M1, not Rosetta.

Puma-dev seems to work somewhat with dot test domain, but fails with grok tunnels. For example, if I call up ngrok.com and see my endpoints for my App fizzbuzz.ngrok.io, that URL never works. Ngrok complains both the HTTP and HTTPS endpoints are not responding. So that is weird.

If I just do my https://fizzbuzz.test in my browser, the App, it works fine.

What am I forgetting to do to get Puma Dev working on a new M1 machine? For some reason it is blocking ports or something?

When I do start my App, I see puma-dev is working, but the logs show no entry such as this, from my working Intel machine. The M1 logs remain empty of these notes? My PORT is set to 3145 for the file fizzbuzz in the ~/.puma-dev directory.

So if this entry is missing, what is that telling me?

End result, any access to the .test domains from my ngrok tunnel results in this? No ideas. My older Intel machine with Puma Dev does not suffer from this!
ngrok_io

I installed via Homebrew in a terminal where I see the compilation was for Apple, so M1, not Rosetta.

FWIW the current homebrew formula doesn't install the M1 binary. That's still a work in progress. You can download the M1 build manually, but it won't automatically install via brew (as of 2021-05-31).

I'm not very familiar with how ngrok works, but, from the error message, it looks like it's trying to do DNS lookup on :53. But, by default, puma-dev serves its DNS on :9253.

You can use scutil --dns to verify the DNS settings your machine is using, and check in /etc/resolver/* to see if puma-dev's resolvers have been installed correctly.

$ cat /etc/resolver/test
# Generated by puma-dev
nameserver 127.0.0.1
port 9253

Thanks for the tips. I wonder how the build proceeded from Homebrew, without incident, and shows up in Activity monitor as Apple and not Intel?

Yeah, that's puzzling. You can use file path/to/puma-dev to inspect the binary's contents, and I expect it will return Mach-O 64-bit executable x86_64.

That is exactly the result!

arm64 build is now available in Homebrew.