Browse Source

add more error debug

master
Christian Rotzoll 6 years ago
parent
commit
7e3e3d0906
  1. 8
      home.admin/80scanLND.sh
  2. 2
      home.admin/config.scripts/blitz.statusscan.sh

8
home.admin/80scanLND.sh

@ -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} %"

2
home.admin/config.scripts/blitz.statusscan.sh

@ -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…
Cancel
Save