Skip to content

Commit

Permalink
refactor: 💡 add healthcheck fallback for custom setups
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Oct 20, 2023
1 parent 6b89a02 commit c4bf16c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/healthcheck
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,18 @@ warningCount=0
((healthIssueCount++))
fi

if ! curl -s -w "\n" localhost:4230/health | grep -iq 'running and staked'; then
echo "⚠️ WARNING: Failed to get a response from localhost:4230/health. The node seems to be offline (not running), if you are participating in testnet, then read the instructions in https://docs.fleek.network/docs/node/testnet-onboarding, to run successfully!"

((warningCount++))
((healthIssueCount++))
else
echo "✅ The localhost:4230/health is okay"
fi
else
echo "⚠️ WARNING: Your setup seems to be custom, e.g. running quickly with Docker or Lightning CLI, in any of this cases without Systemd service wrapper, etc. Be aware the tools provided via get.fleek.network are meant for recommeded setups via docs or tools."
echo

if ! curl -s -w "\n" localhost:4230/health | grep -iq 'running and staked'; then
echo "⚠️ WARNING: Failed to get a response from localhost:4230/health. The node seems to be offline (not running), if you are participating in testnet, then read the instructions in https://docs.fleek.network/docs/node/testnet-onboarding, to run successfully!"

Expand Down

0 comments on commit c4bf16c

Please sign in to comment.