Skip to content

Commit

Permalink
chore: 🤖 change port from 4069 to 4230
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Oct 17, 2023
1 parent b775007 commit f460f4a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/diagnostic
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bold=$(tput bold)
normal=$(tput sgr0)

# Service ports
declare -a fleekNetworkServicePorts=(80 443 4069 6009)
declare -a fleekNetworkServicePorts=(80 443 4230 6009)

tempWorkDir=$(mktemp -d)

Expand Down
6 changes: 3 additions & 3 deletions scripts/healthcheck
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ warningCount=0
echo "🐛 Found some possible issues in the $defaultLightningConfigPath"
fi

if ! curl -s -w "\p" localhost:4069/health | grep -q 'OK'; then
echo "⚠️ WARNING: Failed to get a response from localhost:4069/health. The node is not running, if you are participating in testnet, then read the https://docs.fleek.network/docs/node/testnet-onboarding, you need to apply and receive approval for the node to run successfully"
if ! curl -s -w "\p" localhost:4230/health | grep -q 'OK'; then
echo "⚠️ WARNING: Failed to get a response from localhost:4230/health. The node is not running, if you are participating in testnet, then read the https://docs.fleek.network/docs/node/testnet-onboarding, you need to apply and receive approval for the node to run successfully"

((warningCount++))
((healthIssueCount++))
else
echo "✅ The localhost:4069/health is okay"
echo "✅ The localhost:4230/health is okay"
fi

echo
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_docker
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ ExecStartPre=-/usr/bin/docker kill $defaultDockerContainerName
ExecStartPre=-/usr/bin/docker rm $defaultDockerContainerName
ExecStartPre=/usr/bin/docker pull $defaultDockerRegistryUrl:$defaultDockerRegistryTag
ExecStart=/usr/bin/docker run \
-p 4069:4069 \
-p 4230:4230 \
-p 4200:4200 \
-p 6969:6969 \
-p 18000:18000 \
Expand Down
8 changes: 4 additions & 4 deletions scripts/install_native
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,9 @@ WantedBy=multi-user.target

# printf "🦖 Please be patient as the Fleek Network Node is launching and may take awhile 🙏\n\n"

# while ! curl -s -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "flk_ping", "params": [], "id": 1 }' localhost:4069/rpc/v0 | grep -q "\"result\"\:\"pong\""; do
# while ! curl -s -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "flk_ping", "params": [], "id": 1 }' localhost:4230/rpc/v0 | grep -q "\"result\"\:\"pong\""; do
# if [[ "$pingAttempts" -gt 10 ]]; then
# printf "👹 Oh no! Failed to health-check the localhost on port 4069\n"
# printf "👹 Oh no! Failed to health-check the localhost on port 4230\n"

# break;
# fi
Expand All @@ -553,7 +553,7 @@ WantedBy=multi-user.target
# exit 1
# fi

# printf "🤖 Awaiting %s on port 4069...\n" "$defaultName"
# printf "🤖 Awaiting %s on port 4230...\n" "$defaultName"
# sleep 10

# ((pingAttempts++))
Expand All @@ -566,7 +566,7 @@ WantedBy=multi-user.target
# done

# TODO: Switch to /health
if curl -s -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "flk_ping", "params": [], "id": 1 }' localhost:4069/rpc/v0 | grep -q "\"result\"\:\"pong\""; then
if curl -s -X POST -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "method": "flk_ping", "params": [], "id": 1 }' localhost:4230/rpc/v0 | grep -q "\"result\"\:\"pong\""; then
echo "🌈 The Fleek Network Node is running!"
else
echo "🌈 The Fleek Network Node lightning CLI was installed and a Systemd Service was setup, to learn how to launch the service read below!"
Expand Down
2 changes: 1 addition & 1 deletion scripts/whitelist
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ defaultLightningSystemdServicePathForDocker="/etc/systemd/system/$defaultLightni

echo

if curl -qsS localhost:4069/health 2>/dev/null | grep -q 'OK'; then
if curl -qsS localhost:4230/health 2>/dev/null | grep -q 'OK'; then
echo "🌈 The service health check was successful! The node is healthy, thus whitelisted."

exit 0
Expand Down

0 comments on commit f460f4a

Please sign in to comment.