Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flyctl stopped working #3333

Open
boriskogan81 opened this issue Feb 29, 2024 · 1 comment
Open

Flyctl stopped working #3333

boriskogan81 opened this issue Feb 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@boriskogan81
Copy link

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 boriskogan81 added the bug Something isn't working label Feb 29, 2024
@boriskogan81
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant