mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
add more error debug
This commit is contained in:
@@ -34,6 +34,7 @@ if [ ${bitcoinActive} -eq 0 ] || [ ${#bitcoinErrorFull} -gt 0 ]; then
|
|||||||
echo
|
echo
|
||||||
if [ ${startcountBlockchain} -gt 1 ]; then
|
if [ ${startcountBlockchain} -gt 1 ]; then
|
||||||
echo "${startcountBlockchain} RESTARTS DETECTED - ${network}d might be in a error loop"
|
echo "${startcountBlockchain} RESTARTS DETECTED - ${network}d might be in a error loop"
|
||||||
|
cat /home/admin/systemd.blockchain.log | grep "ERROR"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
if [ ${#bitcoinErrorFull} -gt 0 ]; then
|
if [ ${#bitcoinErrorFull} -gt 0 ]; then
|
||||||
@@ -52,7 +53,7 @@ if [ ${bitcoinActive} -eq 0 ] || [ ${#bitcoinErrorFull} -gt 0 ]; then
|
|||||||
if [ ${#bitcoinErrorShort} -eq 0 ]; then
|
if [ ${#bitcoinErrorShort} -eq 0 ]; then
|
||||||
bitcoinErrorShort="Initial Startup - Please Wait"
|
bitcoinErrorShort="Initial Startup - Please Wait"
|
||||||
fi
|
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
|
if [ "$USER" == "admin" ]; then
|
||||||
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Please wait up to 5min ..."
|
infoStr=" The ${network}d service is starting:\n ${bitcoinErrorShort}\n Please wait up to 5min ..."
|
||||||
fi
|
fi
|
||||||
@@ -79,6 +80,7 @@ elif [ ${lndActive} -eq 0 ] || [ ${#lndErrorFull} -gt 0 ]; then
|
|||||||
echo
|
echo
|
||||||
if [ ${startcountLightning} -gt 1 ]; then
|
if [ ${startcountLightning} -gt 1 ]; then
|
||||||
echo "${startcountLightning} RESTARTS DETECTED - ${network}d might be in a error loop"
|
echo "${startcountLightning} RESTARTS DETECTED - ${network}d might be in a error loop"
|
||||||
|
cat /home/admin/systemd.lightning.log | grep "ERROR"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
if [ ${#lndErrorFull} -gt 0 ]; then
|
if [ ${#lndErrorFull} -gt 0 ]; then
|
||||||
@@ -132,7 +134,7 @@ else
|
|||||||
syncProgress="waiting"
|
syncProgress="waiting"
|
||||||
else
|
else
|
||||||
syncProgress="${startcountBlockchain} restarts"
|
syncProgress="${startcountBlockchain} restarts"
|
||||||
actionString="Please SSH in for more detail:"
|
actionString="Login with SSH for more details:"
|
||||||
fi
|
fi
|
||||||
elif [ ${#syncProgress} -lt 6 ]; then
|
elif [ ${#syncProgress} -lt 6 ]; then
|
||||||
syncProgress=" ${syncProgress} %"
|
syncProgress=" ${syncProgress} %"
|
||||||
@@ -144,7 +146,7 @@ else
|
|||||||
scanProgress="waiting"
|
scanProgress="waiting"
|
||||||
else
|
else
|
||||||
scanProgress="${startcountLightning} restarts"
|
scanProgress="${startcountLightning} restarts"
|
||||||
actionString="Please SSH in for more detail:"
|
actionString="Login with SSH for more details:"
|
||||||
fi
|
fi
|
||||||
elif [ ${#scanProgress} -lt 6 ]; then
|
elif [ ${#scanProgress} -lt 6 ]; then
|
||||||
scanProgress=" ${scanProgress} %"
|
scanProgress=" ${scanProgress} %"
|
||||||
|
@@ -103,6 +103,7 @@ else
|
|||||||
if [ ${#bitcoinErrorShort} -gt 0 ]; then
|
if [ ${#bitcoinErrorShort} -gt 0 ]; then
|
||||||
echo "bitcoinErrorShort='${bitcoinErrorShort}'"
|
echo "bitcoinErrorShort='${bitcoinErrorShort}'"
|
||||||
echo "bitcoinErrorFull='${bitcoinErrorFull}'"
|
echo "bitcoinErrorFull='${bitcoinErrorFull}'"
|
||||||
|
/home/admin/config.scripts/blitz.systemd.sh log blockchain "ERROR: ${bitcoinErrorShort}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -126,6 +127,7 @@ if [ ${lndRunning} -eq 1 ]; then
|
|||||||
if [ ${#lndError} -gt 0 ]; then
|
if [ ${#lndError} -gt 0 ]; then
|
||||||
echo "lndErrorFull='${lndErrorFull}'"
|
echo "lndErrorFull='${lndErrorFull}'"
|
||||||
echo "lndErrorShort=''"
|
echo "lndErrorShort=''"
|
||||||
|
#/home/admin/config.scripts/blitz.systemd.sh log lightning "ERROR: ${lndErrorShort}"
|
||||||
else
|
else
|
||||||
|
|
||||||
# check if wallet is locked
|
# check if wallet is locked
|
||||||
|
Reference in New Issue
Block a user