-
Notifications
You must be signed in to change notification settings - Fork 46
How to manually reset a raspberry pi running g dash
Manual steps to revive a pi if its not updating on its own after a long wait: ssh into the pi (If you don't know how to do this look it up)
Check out the log file:
tail -f /opt/gulden/datadir/debug.log
If you see messages like:
2021-07-01 08:00:01 Pre-allocating up to position 0x2200000 in rev00007.dat
2021-07-01 08:00:02 Pre-allocating up to position 0x2300000 in rev00007.dat
2021-07-01 08:00:07 Pre-allocating up to position 0x2400000 in rev00007.dat
Then it is busy doing the right thing, just let it keep going and periodically check the log to make sure its still progressing.
Otherwise if it is not progressing and/or keeps restarting the process:
- Stop the tail-command with Ctrl-C and so that you return to the Raspbian prompt before continuing with the next steps
mkdir tmp_for_upgrade
cd tmp_for_upgrade
wget https://github.com/Gulden/gulden-official/releases/download/v2.4.0/bootstrap.dat.xz
xz -dT0 bootstrap.dat.xz
killall -9 GuldenD
cp /opt/gulden/datadir/Gulden.conf .
cp /opt/gulden/datadir/wallet.dat .
rm -rf /opt/gulden/datadir/*
cp *.dat /opt/gulden/datadir/
cp Gulden.conf /opt/gulden/datadir/
/opt/gulden/gulden/GuldenD -datadir=/opt/gulden/datadir&
tail -F /opt/gulden/datadir/debug.log
You should then see messages like:
2021-07-01 08:00:01 Pre-allocating up to position 0x2200000 in rev00007.dat
2021-07-01 08:00:02 Pre-allocating up to position 0x2300000 in rev00007.dat
2021-07-01 08:00:07 Pre-allocating up to position 0x2400000 in rev00007.dat
Periodically monitor to make sure it keeps going and doesn't e.g. restart the process again. If it does then there is probably something wrong with your pi.
Most common error is:
Out of memory. Terminating.
Add 2GB of swap space to stop this:
sudo dd if=/dev/zero of=/var/tmpswap bs=1M count=2048
sudo mkswap /var/tmpswap
sudo swapon /var/tmpswap
This will add 2GB of swap untill the next time the machine is rebooted.
Otherwise e.g. your sd card may be failing or similar. Look at what the error message is in the log and bring it to one of the official support channels for further advice.
Note that gdash UI will not display progress while processing the bootstrap, it will just say Upgrading block index... this is expected and fine