I have a ubuntu machine and I am trying to deploy the application using the instructions at Install flyctl · Fly Docs and I am getting the following error.
Warning: Failed to open the file /home/ajitgoel/.fly/bin/flyctl.tar.gz:
Warning: Permission denied
0.0%curl: (23) Failure writing output to destination
I see no files have been written to /home/ajitgoel/.fly/bin/. Is there a way to manually install the fly.io cli?
WARN failed loading cache file from /root/.fly/state.yml: open /tmp/flyctl.cache.lock: permission denied Error open /tmp/flyctl.config.lock: permission denied. Why does this have to be so hard?
That doesn’t match the instructions I see on that page. Using sudo will mean that the files are owned by root, and this will prevent you from updating them.
I would suggest running sudo bash and from there delete the .fly directory and /tmp/fly*.
weird. But you should now have a tar file. Let’s unpack and run the executable:
rubys@rubixlab:~$ tar xzf flyctl.tar.gz
rubys@rubixlab:~$ ./flyctl
This is flyctl, the Fly.io command line interface.
It doesn't look like you're logged in. Try "flyctl auth signup" to create an account,
or "flyctl auth login" to log in to an existing account.
Here's a few commands to get you started:
fly launch Launch a new application
fly apps Create and manage apps
fly postgres Create and manage Postgres databases
fly redis Create and manage Redis databases
fly machines Create and manage individual Fly.io machines
If you need help along the way:
fly help Display a complete list of commands
fly help <command> Display help for a specific command, e.g. 'fly help launch'
Visit https://fly.io/docs for additional documentation & guides