flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Setting secrets doesn't work when a shell machine is created before app machines

Open benbjohnson opened this issue 1 year ago • 1 comments

Per @lillianberryfly:

$ fly secrets import <secrets
Secrets are staged for the first deployment
$ fly m run --shell [...]
[...]
$ fly secrets import <.env.production 
[WARNING] Your app doesn't have any Fly Launch machines, so we'll create one now. Learn more at 
https://fly.io/docs/apps/deploy/#machines-not-managed-by-fly-launch

Error: could not find image to use for deployment; backend error was: current release not found for app X

benbjohnson avatar Feb 08 '24 19:02 benbjohnson

I wasn't able to reproduce this but what I found out is the shell machine doesn't have any of the app's set secrets.

rugwirobaker avatar Feb 21 '24 18:02 rugwirobaker