Permalink
Browse files

Upd: migrate to Jelurida's `NXT-nxt_db.zip`

  • Loading branch information...
EmoneyRu committed Jan 28, 2018
1 parent 2205f7b commit fdcb963dbd0e98d9bb750d99656367d107e65936
Showing with 6 additions and 6 deletions.
  1. +4 −4 README.md
  2. +1 −1 playbooks/deploy.yml
  3. +1 −1 scripts-src/check.sh
View
@@ -7,7 +7,7 @@
* Hallmarks nodes, changes config to make node public.
* Detects malfunctioning and automatically restarts client.
* Caches valid chain.
* Supports blockchain snapshots from [Nxt PeerExplorer](http://peerexplorer.com/api_blockchain_download).
* Supports blockchain snapshots from [Jelurida](https://www.jelurida.com/).
## Usage
To deploy new version of Nxt, download it via `safe-nxt-download.sh`, [check](https://bitcointalk.org/index.php?topic=345619.msg4406124#msg4406124) file signature and execute playbook.
@@ -18,10 +18,10 @@ cd ~/nxt-kit/distrib
ansible-playbook -f 10 -v ~/nxt-kit/playbooks/deploy.yml
```
You can also save the outbound traffic of the control machine by downloading a snapshot from [Nxt PeerExplorer](http://peerexplorer.com/api_blockchain_download) _before_ running the playbook.
You can also save the outbound traffic of the control machine by downloading a snapshot from [Jelurida](https://www.jelurida.com/) _before_ running the playbook.
```
ansible nxts -m get_url -a "url=https://www.dropbox.com/s/CHANGE_THIS_URL/nxt_db_peerexplorer.zip?dl=1 dest=~/nxt-kit-deployed/distrib/chain-original-conf.zip force=yes" -f 10 -v
ansible nxts -m get_url -a "url=https://www.jelurida.com/NXT-nxt_db.zip dest=~/nxt-kit-deployed/distrib/chain-original-conf.zip force=yes" -f 10 -v
```
## Installation
@@ -41,7 +41,7 @@ ansible nxts -m get_url -a "url=https://www.dropbox.com/s/CHANGE_THIS_URL/nxt_db
5. Add `ssh-add ~/.ssh/PRIVATE-KEY-FOR-REMOTE-SERVER > /dev/null 2>&1` to the end of the `~/.bashrc` *for each* private key for remote server.
6. Relogin.
7. Clone this repo to `~/nxt-kit` via `git clone https://github.com/nxt-ext/nxt-kit.git ~/nxt-kit`.
8. Put a valid zipped `nxt_db` folder as `~/nxt-kit/distrib/chain-original-conf.zip` (_optional_). The archive from [Nxt PeerExplorer](http://peerexplorer.com/api_blockchain_download) is OK.
8. Put a valid zipped `nxt_db` folder as `~/nxt-kit/distrib/chain-original-conf.zip` (_optional_). The archive from [Jelurida](https://www.jelurida.com/) is OK.
9. If you **was** paranoid on managed nodes installation
* Remove [dependency install block](https://github.com/nxt-ext/nxt-kit/blob/c3d96ef4f56ca15b38b324f1eefe0d5dd03acd84/playbooks/deploy.yml#L2-L44) from `~/nxt-kit/playbooks/deploy.yml`.
View
@@ -68,7 +68,7 @@
shell: pkill -f 'check-nxt-{{ nxt_conf_name }}.sh'
ignore_errors: yes
- name: check remote folders
file: path={{ item }} state=directory owner={{ ansible_ssh_user }} mode=0744
file: path={{ item }} state=directory owner={{ ansible_user }} mode=0744
with_items:
- "{{ nxt_remote_folder }}"
- "{{ nxt_remote_folder }}/distrib"
View
@@ -63,7 +63,7 @@ else
rm -f $chain_cached_arc
elif [ -f $chain_origin_arc ]; then
echo "$(date) Restoring original chain" >> $log_file
unzip $chain_origin_arc -d ..
unzip $chain_origin_arc
fi
nohup java {{ jvm_args|default("") }} -cp classes:lib/\*:{{ nxt_conf_name }}:addons/classes:addons/lib/* nxt.Nxt > /dev/null 2>&1 &
# Restoing sometimes requires more time than 3 minutes

0 comments on commit fdcb963

Please sign in to comment.