# Failed to parse duration

### Error

{% code overflow="wrap" %}

```bash
message=Started web services thread 'main' (1) panicked at crates/defguard_core/src/db/models/wireguard_peer_stats.rs:83:54: Failed to parse duration: OutOfRangeError(()) stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. 
```

{% endcode %}

### Cause

This error occurs due to a time desynchronization between the machines or containers running Defguard components.

### Solution

Ensure that the system time is synchronized across all servers running Defguard. It is highly recommended to enable and correctly configure an NTP (Network Time Protocol) service on all your host machines to prevent clock drift.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.defguard.net/2.1/support-1/troubleshooting-guides/core/failed-to-parse-duration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
