flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Undeployed app 'app-name' has no platform version set

Open imorph opened this issue 3 years ago • 3 comments

Describe the bug Hi!

May be this is not a bug, but known behavior?

Following sequence of commands breaks with error Undeployed app 'app-name' has no platform version set:

flyctl apps create --org personal something-something-client
flyctl deploy -i flyio/something-something:latest -a something-something-client 

Output:

flyctl deploy -i flyio/something-something:latest -a something-something-client                                                                                                              ✔  9s  
==> Verifying app config
Error Undeployed app 'something-something-client' has no platform version set

adding --nomad to create or --force-nomad to deploy does not change a thing

Newly created app indeed does not have defined platform attribute:

fly apps list 

NAME                      	OWNER   	STATUS 	PLATFORM	LATEST DEPLOY        
something-something-client	personal	pending	       	                   

That is why deploy breaks here (I suppose)

Workaround is to have minimal valid fly.toml for application, this way deployment is successful.

app = "something-something-client"
kill_signal = "SIGINT"
kill_timeout = 5
primary_region = "sin"
processes = []

[build]
  image = "flyio/something-something:latest"

Operating system

uname -a
Linux morph7 5.15.94-1-MANJARO #1 SMP PREEMPT Tue Feb 14 19:45:58 UTC 2023 x86_64 GNU/Linux

fly version

fly version
flyctl v0.0.486 linux/amd64 Commit: d960682f BuildDate: 2023-03-14T10:37:57Z

imorph avatar Mar 14 '23 12:03 imorph

Ha, interesting. "No platform version set" isn't the right error for a user to see in this situation, but otherwise the behaviour is as I'd expect.

fly apps create is really only for a very manual process; you'd expect to supply fly.toml yourself or just start Machines individually. fly launch is the normal way to initialize a new app, and it generates a fly.toml to start you off with.

catflydotio avatar Mar 14 '23 15:03 catflydotio

@catflydotio any action item for this issue?

redjonzaci avatar Sep 10 '23 14:09 redjonzaci

Thanks for reporting this. #3256 removed the old platform-version selection checks that produced this error, and current deploys go directly through Machines. I am going to close this as obsolete. Please reopen if a newly created app still fails this way on the latest flyctl.

tomr-fly avatar Aug 02 '26 18:08 tomr-fly