Back up your config files
For root users:
Make a backup folder called configbackup
mkdir configbackup
Copy your config file to this folder
cp /root/joystream/distributor-node/config.yml /root/configbackup
You can also backup .env file
cp /root/joystream/.env /root/configbackup
Stop argus
systemctl stop distributor-node
Pull the lastest repo(master) which contains argus update
cd ~/joystream
git stash
git pull
git stash pop
Update the .env file.
cd ~/joystream
nano .env
Change the line:
JOYSTREAM_NODE_WS=ws://joystream-node:9944/
to
JOYSTREAM_NODE_WS=wss://your.cool.url/rpc
Note: don't forget to change your.cool.url
to your domain.
Save(ctrl + x, y, enter)
- Run the setup script
cd ~/joystream
./setup.sh
Close current window(shell)and open a new one
- Build Packages
cd ~/joystream
./build-packages.sh
Once completed, update the config file as required by the group leader
nano /root/joystream/distributor-node/config.yml
Change the following.
id: test-node
// change to your node name.
queryNode: http://localhost:8081/graphql
// change http://localhost:8081/graphql
to a working QN. You can use https://query.joystream.org/graphql
elastic:
level: http
endpoint: https://joystream.koalva.io/operator-elastic
// Change https://joystream.koalva.io/operator-elastic
to https://monitoring.joyutils.org/elastic
maxCachedItemSize:1G
//Change 1G
to 60G
Check if the the following are the same as in your backup file
hmacSecret: <your-hma-secret>
- keyfile: "/root/keys/distributor-role-key.json"
worker id: <your-worker-id>
- Start argus
systemctl start distributor-node
Check the status of the service
systemctl status distributor-node
Check the logs for errors.
journalctl -f -n 200 -u distributor-node
If no errors found, you are good.
- Reset the processor
cd ~/joystream
./query-node/reset-processor.sh
Check if the processor is synching
docker logs -f -n 100 processor
Check if everything is fine
https://<your.cool.url>/distributor/api/v1/status
Note, after the processor is fully synched(which takes approximately 1 day. You can leave up to 48hrs if you are unsure about the synch status of your QN), you would need to login back and change the QN you used in the config file.
Updating the QN after synched
First, check if there are no downloads in progress using https://<your.cool.url>/distributor/api/v1/status
- Login to the server
nano /root/joystream/distributor-node/config.yml
In line,
queryNode: https://query.joystream.org/graphql
change https://query.joystream.org/graphql
to http://localhost:8081/graphql
save file and start argus
systemctl start distributor-node