Self-hosted : Get full debug logs from a docker

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?

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

@danielholm

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

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:

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.