# Main child exited normally with code: 0

**URL:** <https://community.fly.io/t/main-child-exited-normally-with-code-0/15944>\
**Category:** Questions / Help\
**Tags:** login-only\
**Created:** [October 17, 2023, 9:29am UTC](https://community.fly.io/t/main-child-exited-normally-with-code-0/15944 "2023-10-17T09:29:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tansan](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tansan](https://community.fly.io/u/tansan)\
**Post date:** [October 17, 2023, 9:29am UTC](https://community.fly.io/t/main-child-exited-normally-with-code-0/15944/1 "2023-10-17T09:29:08Z")

</div>

Does anyone know how to fix this? I have a Dockerfile that starts a websocket client on the last CMD.

---

<div class="post-metadata">

**Author:** ![brian](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/brian/32/15488_2.png) [@brian](https://community.fly.io/u/brian)\
**Post date:** [October 17, 2023, 11:20am UTC](https://community.fly.io/t/main-child-exited-normally-with-code-0/15944/2 "2023-10-17T11:20:51Z")

</div>

Hmm, this is a bit vague. Is there more information and/or logs you can provide? Off the top of my head, maybe the WebSocket client occasionally raises an exception, causing an exit? Do you have any error handling built in to handle exceptions and reconnections if necessary?

---

<div class="post-metadata">

**Author:** ![tansan](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@tansan](https://community.fly.io/u/tansan)\
**Post date:** [October 17, 2023, 12:37pm UTC](https://community.fly.io/t/main-child-exited-normally-with-code-0/15944/3 "2023-10-17T12:37:26Z")

</div>

Here is more of the log. I really don’t understand why it’s sig terming. I assume it’s because I have no endpoint for health check (not an HTTP server), so I thought it might be my fly.toml config.

```auto

2023-10-17T07:58:59.004 app[e286009c7d3e86] nrt [info] INFO Main child exited normally with code: 0

2023-10-17T07:58:59.005 app[e286009c7d3e86] nrt [info] INFO Starting clean up.

2023-10-17T07:58:59.005 app[e286009c7d3e86] nrt [info] WARN hallpass exited, pid: 315, status: signal: 15 (SIGTERM)

```

Here’s my config based on some other relevant posts and solutions in the forum:

> [@Is there a way to disable health checks?](https://community.fly.io/t/is-there-a-way-to-disable-health-checks/5858):
>
> Hi. I need to make some tests on a library that requires access to the [Fly.io](http://Fly.io) environment (env variables and internal DNS), currently I would just like to manually run the tests using a SSH connection to my instance. I was wondering if there would be a way to deploy an app even if it doesn’t create a server to respond to health checks? Thank you

I am sure I made a mistake somewhere. I just can’t figure out what’s causing it.

```auto
[build]

[[services]]
  internal_port = 8080
  protocol = "tcp"
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 1

```

---

<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:** [October 24, 2023, 12:37pm UTC](https://community.fly.io/t/main-child-exited-normally-with-code-0/15944/4 "2023-10-24T12:37:46Z")

</div>

Closed on October 24, 2023, 12:37pm UTC

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