500 error creating machine in SJC

I’ve been getting errors when trying to launch Fly Machines; however, the service health dashboard shows that there are no outages. Anyone else experiencing this? Wondering if the SHD is just taking a while to catch up.

&{500 Internal Server Error 500 HTTP/1.1 1 1 map[Content-Length:[84] Content-Type:[application/json; charset=utf-8] Date:[Thu, 02 Mar 2023 14:18:36 GMT] Fly-Trace-Id:[7cbd63da47469223630c6dc24c79f5ca]] {{"error":"You hit a Fly API error with request ID: 01GTHB0TQF96Y1WQRCQ8XA5KX8-sjc"}

Hi @jessie, there’s no outage in sjc. The error indicates we were unable to process the provided machine config. Would you mind sharing the config being sent in the request?

Sure thing:

{"name":"01gthkgddv0snz25hgr96gk769","config":{"image":"registry.fly.io/cakework-images:01GTHAWVQCXEGAQKG251AVFGTX","guest":{"cpu_kind":"shared","cpus":1,"memory_mb":256},"restart":{"policy":"yes"},"auto_destroy":false,"services":[{"ports":[{"handlers":["tls","http"],"port":443},{"handlers":["http"],"port":80}],"protocol":"tcp"}]}} 
&{500 Internal Server Error 500 HTTP/1.1 1 1 map[Content-Length:[84] Content-Type:[application/json; charset=utf-8] Date:[Thu, 02 Mar 2023 16:47:23 GMT] Fly-Trace-Id:[9c6e8f06f01cc0aefe8006e71068e497]] {{"error":"You hit a Fly API error with request ID: 01GTHKH9462BCV5REE6K5E2VHQ-sjc"}
INFO[3127] POST /v1/apps/01gthkg3b6ejzynjffzwqe24qy/machines HTTP/1.1
Host: 127.0.0.1:4280
User-Agent: Go-http-client/1.1
Content-Length: 333
Authorization: Bearer xxxxxxxxxxx
Content-Type: application/json
Accept-Encoding: gzip

"restart":{"policy":"yes"} This is it, "yes" is not a validate policy. One of the following are supported:

no
on-failure
always
1 Like

Thank you! I had toggled from “no” to “yes”.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.