superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.4k stars 235 forks source link

Unable to login on termux (Android) #1404

Open pSnehanshu opened 1 year ago

pSnehanshu commented 1 year ago

Describe the bug I am unable to login in termux on a Android phone

Screenshot_20221023-110207_Termux

WARN failed querying for new release: Get "https://api.fly.io/app/flyctl_releases/linux/arm64/latest": dial tcp: lookup api.fly.io on [::1]:53: read udp [::1]:51735->[::1]:53: read: connection refused
Error Post "https://api.fly.io/api/v1/cli_sessions": dial tcp: lookup api.fly.io on [::1]:53: read udp [::1]:51735->[::1]:53: read: connection refused

I tried hitting one of the endpoints directly, and it does work.

Screenshot_20221023-110808_Termux

samarth261 commented 1 year ago

I think this is because there is no DNS server specified so it's looking for a dns server on localhost. I'm facing this issue too

pSnehanshu commented 1 year ago

@samarth261 Check the second screenshot, I am able to hit the server using CURL. The problem is with the flyctl.

redjonzaci commented 1 year ago

Hey @pSnehanshu, do you still need this?

pSnehanshu commented 1 year ago

I don't need it at the moment, but I think it will be nice to be able to manage apps through mobile.

redjonzaci commented 1 year ago

Thanks for the response! I don't work for Fly.io and I am not sure what the actual issue with that was, but I think this might get more attention / priority once there are more people asking for it.

darkcheftar commented 1 year ago

Hey I was getting the same issue, but was able to build it on my termux and its working now

If you want I can share the binaries.

you can also do it yourself.


Install golang

pkg install golang

Clone the repo and change into directory

git clone https://github.com/superfly/flyctl.git && cd flyctl

Build

go build -o fly

A binary named fly will be created

moomcakesleep commented 2 months ago

Hey I was getting the same issue, but was able to build it on my termux and its working now

If you want I can share the binaries.

you can also do it yourself.

Install golang

pkg install golang

Clone the repo and change into directory

git clone https://github.com/superfly/flyctl.git && cd flyctl

Build

go build -o fly

A binary named fly will be created

Thank you,im using it now