mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
add more error debug
This commit is contained in:
parent
8fa39a8031
commit
7e3e3d0906
2 changed files with 7 additions and 3 deletions
|
@ -34,6 +34,7 @@ if [ ${bitcoinActive} -eq 0 ] || [ ${#bitcoinErrorFull} -gt 0 ]; then
|
|||
echo
|
||||
if [ ${startcountBlockchain} -gt 1 ]; then
|
||||
echo "${startcountBlockchain} RESTARTS DETECTED - ${network}d might be in a error loop"
|
||||
cat /home/admin/systemd.blockchain.log | grep "ERROR"
|
||||
echo
|
||||
fi
|
||||
if [ ${#bitcoinErrorFull} -gt 0 ]; then
|
||||
|
@ -52,7 +53,7 @@ if [ ${bitcoinActive} -eq 0 ] || [ ${#bitcoinErrorFull} -gt 0 ]; then
|
|||
if [ ${#bitcoinErrorShort} -eq 0 ]; then
|
||||
bitcoinErrorShort="Initial Startup - Please Wait"
|
||||
fi
|
||||
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Login for more details:"
|
||||
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Login with SSH for more details:"
|
||||
if [ "$USER" == "admin" ]; then
|
||||
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Please wait up to 5min ..."
|
||||
fi
|
||||
|
@ -79,6 +80,7 @@ elif [ ${lndActive} -eq 0 ] || [ ${#lndErrorFull} -gt 0 ]; then
|
|||
echo
|
||||
if [ ${startcountLightning} -gt 1 ]; then
|
||||
echo "${startcountLightning} RESTARTS DETECTED - ${network}d might be in a error loop"
|
||||
cat /home/admin/systemd.lightning.log | grep "ERROR"
|
||||
echo
|
||||
fi
|
||||
if [ ${#lndErrorFull} -gt 0 ]; then
|
||||
|
@ -132,7 +134,7 @@ else
|
|||
syncProgress="waiting"
|
||||
else
|
||||
syncProgress="${startcountBlockchain} restarts"
|
||||
actionString="Please SSH in for more detail:"
|
||||
actionString="Login with SSH for more details:"
|
||||
fi
|
||||
elif [ ${#syncProgress} -lt 6 ]; then
|
||||
syncProgress=" ${syncProgress} %"
|
||||
|
@ -144,7 +146,7 @@ else
|
|||
scanProgress="waiting"
|
||||
else
|
||||
scanProgress="${startcountLightning} restarts"
|
||||
actionString="Please SSH in for more detail:"
|
||||
actionString="Login with SSH for more details:"
|
||||
fi
|
||||
elif [ ${#scanProgress} -lt 6 ]; then
|
||||
scanProgress=" ${scanProgress} %"
|
||||
|
|
|
@ -103,6 +103,7 @@ else
|
|||
if [ ${#bitcoinErrorShort} -gt 0 ]; then
|
||||
echo "bitcoinErrorShort='${bitcoinErrorShort}'"
|
||||
echo "bitcoinErrorFull='${bitcoinErrorFull}'"
|
||||
/home/admin/config.scripts/blitz.systemd.sh log blockchain "ERROR: ${bitcoinErrorShort}"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
@ -126,6 +127,7 @@ if [ ${lndRunning} -eq 1 ]; then
|
|||
if [ ${#lndError} -gt 0 ]; then
|
||||
echo "lndErrorFull='${lndErrorFull}'"
|
||||
echo "lndErrorShort=''"
|
||||
#/home/admin/config.scripts/blitz.systemd.sh log lightning "ERROR: ${lndErrorShort}"
|
||||
else
|
||||
|
||||
# check if wallet is locked
|
||||
|
|
Loading…
Add table
Reference in a new issue