> For the complete documentation index, see [llms.txt](https://docs.ravenode.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ravenode.xyz/testnet/analog/update-timechain-node.md).

# Update Timechain Node

## Download the snapshot

```
curl -O https://analog-public.s3.amazonaws.com/backup/testnet-backup.tar.gz
```

## Pull the latest Analog Docker Image

```
docker pull analoglabs/timenode-test:latest
```

## Stop the node

```
docker ps
docker stop CONTAINERID && docker rm CONTAINERID
```

{% hint style="danger" %}
Change **CONTAINERID** with your docker container id
{% endhint %}

## Delete the old Analog node database folder

```
cd .analog
rm -rf ./chains/analogcc1/paritydb/full
```

## Extract the snapshot file

Make sure you are in the /.analog path directory before running this command

```
tar -xvzf ~/testnet-backup.tar.gz -C .
```

## Restart the node

```
docker run -d --name analog -p 9944:9944 -p 30303:30303 -v $(pwd)/.analog:/.analog analoglabs/timenode-test \
    --base-path /.analog \
    --rpc-external \
    --unsafe-rpc-external \
    --rpc-cors all \
    --name YourMoniker \
    --telemetry-url="wss://telemetry.analog.one/submit 9" \
    --rpc-methods Unsafe
```

{% hint style="danger" %}
Change **YourMoniker** to your node name
{% endhint %}

## Check node logs

```
docker logs -f analog
```

If you see an error in the initial logs like below, just wait until it syncs normally again:

{% hint style="info" %}
2024-07-16 05:14:01 panicked at /build/runtime/src/lib.rs:1050:1: Bad input data provided to validate\_transaction: Codec error
{% endhint %}

## Generate new session key and update it on the Analog Polkadot.js Portal

```
echo '{"id":1,"jsonrpc":"2.0","method":"author_rotateKeys","params":[]}' | websocat -n1 -B 99999999 ws://127.0.0.1:9944
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.ravenode.xyz/testnet/analog/update-timechain-node.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.
