The fly auth login command isn't recognized on Ubuntu 20.04.5 LTS

I use the Ubuntu 20.04.5 LTS distro, however, I cannot use the fly auth signup and fly auth login commands. Could someone please tell me which commands I use in the terminal to authenticate Fly.io?

Those are the right commands. What happens when you try using them? Does it show an error message?

set channel to shell
flyctl was installed successfully to /home/user/.fly/bin/flyctl
Manually add the directory to your $HOME/.bash_profile (or similar)
  export FLYCTL_INSTALL="/home/user/.fly"
  export PATH="$FLYCTL_INSTALL/bin:$PATH"
Run '/home/user.fly/bin/flyctl --help' to get started

Hey could you paste how you installed flyctl?

It looks like rather than flyctl it’s rerunning the install script for some reason.

something’s a little weird with that output too. What happens if you run each of:

/home/user.fly/bin/flyctl --help

or

/home/user/.fly/bin/flyctl --help

Here’s what I see on an Ubuntu 20.04.5 machine:

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
$ curl -L https://fly.io/install.sh | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1475    0  1475    0     0   5422      0 --:--:-- --:--:-- --:--:--  5422
######################################################################## 100.0%
set channel to shell
flyctl was installed successfully to /home/rubys/.fly/bin/flyctl
Manually add the directory to your $HOME/.bash_profile (or similar)
  export FLYCTL_INSTALL="/home/rubys/.fly"
  export PATH="$FLYCTL_INSTALL/bin:$PATH"
Run '/home/rubys/.fly/bin/flyctl --help' to get started
$   export FLYCTL_INSTALL="/home/rubys/.fly"
$   export PATH="$FLYCTL_INSTALL/bin:$PATH"
$ flyctl version
flyctl v0.0.504 linux/amd64 Commit: 603f2b76 BuildDate: 2023-04-03T19:20:22Z
$ fly auth signup
Opening https://fly.io/app/auth/cli/0855387522484e998a20960c0e140a2e ...

Waiting for session...⣽
2 Likes

@rubys , thanks a lot! Fixed it with the flyctl version and fly auth signup . It authenticated the deploy in cloud .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.