flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Flyctl stopped working

Open boriskogan81 opened this issue 1 year ago • 1 comments

Describe the bug I have an app deployed and running. I was using flyctl with no issues. I came back after about a week and attempted to run fly deploy and got this error message:

Program ‘fly.exe’ failed to run: Access is deniedAt line:1 char:1

fly deploy At line:1 char:1

fly deploy

  • CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
  • FullyQualifiedErrorId : NativeCommandFailed

I am running this on a Windows machine, have tried with administrator Powershell, have tried updating flyctl via pwsh -Command "iwr https://fly.io/install.ps1 -useb | iex" and restarting my machine. I have checked my PATH and C:\Users%USER%.fly\bin is in there.

  • Operating system

Windows 10

  • fly version

** Paste your fly.toml

# fly.toml app configuration file generated for ofanymfrontend on 2024-02-05T17:28:12+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'ofanymfrontend'
primary_region = 'ams'

[build]

[env]
  PORT = '8080'

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 1024

boriskogan81 avatar Feb 29 '24 16:02 boriskogan81

Running fly auth login fixed this.

Suggestion: if the app doesn't have an auth token, or its auth token is invalid, it should either prompt the user to login or at least provide an informative error that doesn't make it look like the app has failed to run due to host authorization issues.

boriskogan81 avatar Mar 04 '24 07:03 boriskogan81

This has been implemented: https://github.com/superfly/flyctl/pull/3416.

clouvet avatar Jul 09 '24 14:07 clouvet