Browse Source

Merge pull request #116 from Samourai-Wallet/fix_mydojo_hang_fix2

Fix mydojo hang
umbrel v1.4.1
kenshin samourai 5 years ago
committed by GitHub
parent
commit
f7665d8960
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 44
      RELEASES.md
  2. 4
      docker/my-dojo/.env
  3. 14
      docker/my-dojo/bitcoin/restart.sh
  4. 5
      docker/my-dojo/dojo.sh

44
RELEASES.md

@ -2,12 +2,56 @@
## Releases ##
- [v1.4.1](#1_4_1)
- [v1.4.0](#1_4_0)
- [v1.3.0](#1_3_0)
- [v1.2.0](#1_2_0)
- [v1.1.0](#1_1_0)
<a name="1_4_1"/>
## Samourai Dojo v1.4.1 ##
### Notable changes ###
#### Prevents a hang of Dojo on shutdown ####
Since v1.4.0, some users that Dojo is hanging during its shutdown. This release provides a fix for the users affected by this problem.
#### Prevents automatic restarts of bitcoind container ####
This release removes automatic restarts of the bitcoind container when bitcoind has exited with an error.
### Change log ###
#### Bug fixes ####
- [0ff045d](https://github.com/Samourai-Wallet/samourai-dojo/commit/0ff045d1495807902e9fd7dcfbd2fdb4dc21c608) keep bitcoind container up if bitcoind exits with an error
- [bd43526](https://github.com/Samourai-Wallet/samourai-dojo/commit/bd43526bca1f36a1ada07ad799c87b11a897e873) fix for dojo hanging on shutdown
- [3ee85db](https://github.com/Samourai-Wallet/samourai-dojo/commit/3ee85db3bf69f4312204e502c98d414a4180dc53) force kill of docker exec used for testing bitcoind shutdown if command hangs more than 12s
#### Misc. ####
- [21925f7](https://github.com/Samourai-Wallet/samourai-dojo/commit/21925f7c321974ef7eb55c1ad897a5e02ef52bee) bump versions of dojo and bitcoind container
- [08342e3](https://github.com/Samourai-Wallet/samourai-dojo/commit/08342e3995c473b589bb2a517e5bc30cf5f7dc9a) add trace in stop() function of dojo.sh
### Credits ###
- BTCxZelko
- Crazyk031
- GuerraMoneta
- kenshin-samourai
- LaurentMT
- mj
<a name="1_4_0"/>
## Samourai Dojo v1.4.0 ##

4
docker/my-dojo/.env

@ -10,9 +10,9 @@
COMPOSE_CONVERT_WINDOWS_PATHS=1
DOJO_VERSION_TAG=1.4.0
DOJO_VERSION_TAG=1.4.1
DOJO_DB_VERSION_TAG=1.1.0
DOJO_BITCOIND_VERSION_TAG=1.4.0
DOJO_BITCOIND_VERSION_TAG=1.4.1
DOJO_NODEJS_VERSION_TAG=1.4.0
DOJO_NGINX_VERSION_TAG=1.4.0
DOJO_TOR_VERSION_TAG=1.3.0

14
docker/my-dojo/bitcoin/restart.sh

@ -40,13 +40,9 @@ if [ "$COMMON_BTC_NETWORK" == "testnet" ]; then
fi
bitcoind "${bitcoind_options[@]}"
exitCode=$?
if [ $exitCode -eq 0 ]; then
# Loop keeping the container up
# after bitcoind has been stopped
while true
do
tail -f /dev/null > /dev/null
done
fi
# Keep the container up
while true
do
sleep 1
done

5
docker/my-dojo/dojo.sh

@ -87,8 +87,9 @@ stop() {
i="0"
while [ $i -lt 18 ]
do
echo "Waiting for shutdown of Bitcoin server."
# Check if bitcoind rpc api is responding
timeout 5 docker exec -it bitcoind bitcoin-cli \
timeout -k 12 10 docker exec -it bitcoind bitcoin-cli \
-rpcconnect=bitcoind \
--rpcport=28256 \
--rpcuser="$BITCOIND_RPC_USER" \
@ -99,8 +100,6 @@ stop() {
echo "Bitcoin server stopped."
break
fi
# Pause before next try
sleep 5
i=$[$i+1]
done
# Bitcoin daemon is still up

Loading…
Cancel
Save