diff --git a/documents/resources/wallet-server.md b/documents/resources/wallet-server.md index d4033eb..bf05ffa 100644 --- a/documents/resources/wallet-server.md +++ b/documents/resources/wallet-server.md @@ -137,9 +137,13 @@ docker-compose up --detach ``` ### Resyncing +From time to time, we'll release an update that requires recreating one of the databases from scratch. Most of the time we will try to ensure there is an automatic migration, but even then, if you think the server has invalid data you can also try a resync. + +The process is similar to an update, but causes the server to be down for much longer. + +#### Main database +Holds the raw blockchain data and takes many hours (can take a day or two) to resync from scratch, so be sure to have a snapshot or try that last. -From time to time, we'll release an update that requires erasing the wallet server database and recreating it from scratch. The process is -similar to an update, but causes the server to be down for much longer. Here's how to do it: ``` docker pull lbry/wallet-server:latest-release docker-compose down @@ -147,6 +151,17 @@ docker volume rm "$(whoami)_wallet_server" WALLET_SERVER_SNAPSHOT_URL= docker-compose up --detach ``` +#### Elasticsearch +ES does the indexing of claims from the main database. It should take around 30 minutes to resync on a fast machine. + + +``` +docker pull lbry/wallet-server:latest-release +docker-compose down +docker volume rm "$(whoami)_es01" +docker-compose up --detach +``` + ## Get in touch Whether you got to the end without a hiccup or you got stuck along the way, we want to hear from you. [Join our Discord](https://discord.gg/y3W9JuS) to get help, stay updated, and talk to other wallet server operators.