Skip to content

Commit cf08b26

Browse files
authored
Updated README.md to correct INSTANCE_ID retrieval, along with incorporating a proper command for restarting the node
Signed-off-by: racket2000 <[email protected]>
1 parent 52bf231 commit cf08b26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/solana/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,9 @@ cdk destroy solana-common
242242
pwd
243243
# Make sure you are in aws-blockchain-node-runners/lib/solana
244244

245-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
245+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)')
246246
echo "INSTANCE_ID=" $INSTANCE_ID
247247
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
248-
sudo su bcuser
249248
sudo journalctl -o cat -fu node
250249
```
251250

@@ -255,17 +254,18 @@ sudo journalctl -o cat -fu node
255254
pwd
256255
# Make sure you are in aws-blockchain-node-runners/lib/solana
257256

258-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
257+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)')
259258
echo "INSTANCE_ID=" $INSTANCE_ID
260259
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
261260
sudo cat /var/log/cloud-init-output.log
262261
```
263262

264263
3. How can I restart the Solana service?
265264
``` bash
266-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
265+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)')
267266
echo "INSTANCE_ID=" $INSTANCE_ID
268267
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
268+
sudo systemctl restart node
269269
sudo systemctl status node
270270
```
271271

0 commit comments

Comments
 (0)