# Self-hosted : Get full debug logs from a docker

**URL:** <https://community.nocodb.com/t/self-hosted-get-full-debug-logs-from-a-docker/1268>\
**Category:** Self-Host\
**Created:** [July 12, 2024, 1:24pm UTC](https://community.nocodb.com/t/self-hosted-get-full-debug-logs-from-a-docker/1268 "2024-07-12T13:24:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@Valentin](https://community.nocodb.com/u/Valentin)\
**Post date:** [July 12, 2024, 1:24pm UTC](https://community.nocodb.com/t/self-hosted-get-full-debug-logs-from-a-docker/1268/1 "2024-07-12T13:24:34Z")

</div>

Hi, Do you know how to get all the logs from NocoDB on Docker as we can see them on the NocoDB development version?

We use NocoDB on AWS Fargate and encounter a problem with a 503 error “some internal error occurred”. In order to analyze , we’d like to access the detailed logs, but the docker only sends logs until the end of Nest loading, i.e. the first minute of docker activity (only certain login errors are then sent). I tried to reroute stdout without success. Any ideas?

---

<div class="post-metadata">

**Author:** ![danielholm](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.nocodb.com/danielholm/32/647_2.png) [@danielholm](https://community.nocodb.com/u/danielholm)\
**Post date:** [March 20, 2025, 5:50pm UTC](https://community.nocodb.com/t/self-hosted-get-full-debug-logs-from-a-docker/1268/2 "2025-03-20T17:50:13Z")

</div>

Did you find a way of getting debug logs? And find anything about how to accomplish the same.

---

<div class="post-metadata">

**Author:** ![pranavxc](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@pranavxc](https://community.nocodb.com/u/pranavxc)\
**Post date:** [March 20, 2025, 6:50pm UTC](https://community.nocodb.com/t/self-hosted-get-full-debug-logs-from-a-docker/1268/3 "2025-03-20T18:50:58Z")

</div>

@danielholm

You can enable debug logs by adding the following environment variable:

```auto
DEBUG=nc:*

```

Note that debug logging is not fully added in the app yet.

**Knex Debugging:**

Internally we are using Knex for query building and to enable SQL query logging (Knex), add this environment variable:

```auto
DEBUG=knex:*

```

**For Backend Errors:**

Error details are logged in the server logs. If you’re using Docker, check the Docker logs to view them.

To help us assist you better, please share more details about the issue you’re facing.

* * *

@Valentin: In your case, it looks like a Fargate configuration issue (503 - Service Unavailable). Please check the health check endpoint and the mapped port.
