# Troubleshooting

### How do I know whether my node is synchronized?&#x20;

If your node is not synchronized, you may see logs similar to the following:&#x20;

```
INFO [12-07|10:04:51.115] Imported new chain segment       .... age=10d10h
```

The `age=10d10h` part shows that this node is still processing a block from 10 days ago.&#x20;

If your node is well synchronized, you will still see logs starting with "Imported new chain segment", but there will be nothing like `age=xxx` in those lines.  &#x20;

### Why is my node stuck after restarting from crash?&#x20;

Sometimes, if your node exits unexpectedly, you may see logs like the following:&#x20;

```
WARN [12-07|10:04:51.115] Head state missing, repairing  
```

In most cases, you must wait a little longer for it to recover. If you are not running an archive node, the state in the memory is occasionally flushed to the disk. If the state in the memory is not flushed to the disk yet, an unexpected exit will cause the missing state. Don't worry. The node will try to replay some blocks and recover the state automatically.&#x20;

### Why cannot my node connect to any peers?&#x20;

If you see logs like the following, your node is not connected to any other nodes (peers):

```
INFO [12-07|10:04:51.115] Looking for peers                        peercount=0 tried=20 static=0
```

The `peercount=0` signals that your node is not connected to any other nodes. The underlying wire protocol is TCP based. You should check your network and see if it can connect to another network peer that listens on port 30303/TCP.&#x20;


---

# 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.kcc.io/developers/run-a-node/troubleshooting.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.
