Upgrade DSP Node
For all new releases, please test on the Kylin testnet for at least one week before deploying to a production environment.
Link: sample-config.toml​
1
# as root
2
sudo su -
3
systemctl stop ipfs
4
systemctl stop nodeos
5
# if changes to sample-config.toml syntax, update
6
nano ~/.dsp/config.toml
7
# use pm2 process manager to kill all processes and delete them
8
pm2 kill
9
pm2 del all
10
# uninstall
11
npm uninstall -g @liquidapps/dsp
12
exit
13
​
14
# as USER
15
sudo chown ubuntu:ubuntu /home/ubuntu/.pm2/rpc.sock /home/ubuntu/.pm2/pub.sock
16
npm uninstall -g @liquidapps/dsp
17
​
18
sudo su -
19
npm install -g @liquidapps/dsp --unsafe-perm=true
20
# Ensure no new updates to the `sample-config.toml` file are present, if so, update your config.toml accordingly.
21
sudo find / -name sample-config.toml
22
# nano <PATH>
23
setup-dsp
24
systemctl start nodeos
25
systemctl start ipfs
26
exit
Copied!
If a DSP is not updating properly, you may try pm2 restart all to restart all processes.

Script for updating:

1
#! /bin/bash
2
systemctl stop dsp
3
pm2 kill
4
pm2 del all
5
npm uninstall -g @liquidapps/dsp
6
npm i -g @liquidapps/dsp --unsafe-perm=true
7
cd $(readlink -f `which setup-dsp` | xargs dirname)
Copied!
Copy link