Debugging Uptrace issues

Uptrace version

Before trying anything else, make sure you have the latest Uptrace version. To see the installed version:

  1. uptrace version

Then check the latest available version at GitHub ReleasesDebugging issues - 图1open in new window.

Logging

You can see Uptrace logs using journalctl command:

  1. sudo journalctl -u uptrace -f

By default, Uptrace only logs failed HTTP requests and ClickHouse queries. You can configure Uptrace to log all requests and queries by changing the config at /etc/uptrace/uptrace.yml:

  1. # Enable to log HTTP requests and ClickHouse queries.
  2. debug: true

Or changing DEBUG environment variable in /etc/uptrace/uptrace.conf:

  1. # Configures Uptrace logging level.
  2. # - 0 - disable logging
  3. # - 1 - log failed requests and queries
  4. # - 2 - log all requests and queries
  5. DEBUG=2

Don’t forget to restart Uptrace:

  1. sudo systemctl restart uptrace

And check the status of the service:

  1. sudo systemctl status uptrace

Resetting ClickHouse schema

If ClickHouse queries are failing, you may want to reset database schema:

  1. uptrace ch reset

The check the database status:

  1. uptrace ch status