LoginSignup
2
4

More than 1 year has passed since last update.

[Symbol] ノード(bootstrap)のバージョンアップ

Last updated at Posted at 2021-06-11

概要

  • 前回記事で構築したノードのbootstrapのバージョンアップ手順を残します。
  • 本記事は、ubuntu 20.04、symbol-bootstrap (v1.0.3 -> v1.0.6 へ更新)で確認しています。
  • 委任してもいいよという方は「symbol-node.takagi-tech.com」まで
  • 投げXYMは「NDLS6GYOIPHATATNAVVOUNJXBD6X4BXU6IRBHIY」まで

事前準備

最新バージョンの確認
GitHUb nemtech / symbol-bootstrap

バックアップ

# target(一番大事なのはharvesters.dat)をバックアップ
$ cp -r ~/symbol-bootstrap/target ~/target_bak_v103_20210611

最悪ノードが壊れてしまった場合は、新規構築してharversters.datを置き換えれば、委任状態を保持して復旧可能です。

バージョンアップ作業

# symbol-bootstrapの停止
$ cd ~/symbol-bootstrap/
$ symbol-bootstrap stop

# rootユーザーにスイッチ
$ sudo su -

# bootstrapのアップデート
$ npm update -g symbol-bootstrap
$ symbol-bootstrap -v
----
symbol-bootstrap/1.0.6 linux-x64 node-v14.16.1
----

# rootユーザーから抜ける
$ exit

# 設定反映
$ symbol-bootstrap config -p mainnet -a dual -c my-preset.yml --upgrade
$ symbol-bootstrap compose --upgrade

# 起動
$ symbol-bootstrap run -d

# 起動確認
$ symbol-bootstrap healthCheck
                         _             _         _                    _         _
  ___  _   _  _ __ ___  | |__    ___  | |       | |__    ___    ___  | |_  ___ | |_  _ __  __ _  _ __
 / __|| | | || '_ ` _ \ | '_ \  / _ \ | | _____ | '_ \  / _ \  / _ \ | __|/ __|| __|| '__|/ _` || '_ \
 \__ \| |_| || | | | | || |_) || (_) || ||_____|| |_) || (_) || (_) || |_ \__ \| |_ | |  | (_| || |_) |
 |___/ \__, ||_| |_| |_||_.__/  \___/ |_|       |_.__/  \___/  \___/  \__||___/ \__||_|   \__,_|| .__/
       |___/                                                                                    |_|
2021-06-11T07:18:40.541Z info     Container db is running
2021-06-11T07:18:40.542Z info     Container node is running
2021-06-11T07:18:40.547Z info     Container broker is running
2021-06-11T07:18:40.548Z info     Container rest-gateway is running
2021-06-11T07:18:40.550Z info     Container node port 7900 -> 7900 is open
2021-06-11T07:18:40.551Z info     Container rest-gateway port 3000 -> 3000 is open
2021-06-11T07:18:40.552Z info     Testing http://localhost:3000/node/health
2021-06-11T07:18:40.574Z info     Rest http://localhost:3000/node/health is up and running...
2021-06-11T07:18:40.574Z info     Network is running!

参考情報

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4