# 500 error creating machine in SJC

**URL:** <https://community.fly.io/t/500-error-creating-machine-in-sjc/11172>\
**Category:** General\
**Tags:** login-only\
**Created:** [March 2, 2023, 2:22pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172 "2023-03-02T14:22:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jessie](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jessie/32/8723_2.png) [@jessie](https://community.fly.io/u/jessie)\
**Post date:** [March 2, 2023, 2:22pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/1 "2023-03-02T14:22:20Z")

</div>

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"}`

---

<div class="post-metadata">

**Author:** ![JP\_Phillips](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jp_phillips/32/18337_2.png) [@JP\_Phillips](https://community.fly.io/u/JP_Phillips)\
**Post date:** [March 2, 2023, 4:37pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/2 "2023-03-02T16:37:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jessie](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jessie/32/8723_2.png) [@jessie](https://community.fly.io/u/jessie)\
**Post date:** [March 2, 2023, 5:02pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/3 "2023-03-02T17:02:01Z")

</div>

Sure thing:

```auto
{"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"}

```

---

<div class="post-metadata">

**Author:** ![jessie](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jessie/32/8723_2.png) [@jessie](https://community.fly.io/u/jessie)\
**Post date:** [March 2, 2023, 5:02pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/4 "2023-03-02T17:02:40Z")

</div>

```auto
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

```

---

<div class="post-metadata">

**Author:** ![JP\_Phillips](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jp_phillips/32/18337_2.png) [@JP\_Phillips](https://community.fly.io/u/JP_Phillips)\
**Post date:** [March 2, 2023, 5:14pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/5 "2023-03-02T17:14:01Z")

</div>

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

```auto
no
on-failure
always

```

---

<div class="post-metadata">

**Author:** ![jessie](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jessie/32/8723_2.png) [@jessie](https://community.fly.io/u/jessie)\
**Post date:** [March 2, 2023, 5:17pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/6 "2023-03-02T17:17:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [March 9, 2023, 5:18pm UTC](https://community.fly.io/t/500-error-creating-machine-in-sjc/11172/7 "2023-03-09T17:18:25Z")

</div>

Closed on March 9, 2023, 5:18pm UTC

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