@@ -80,25 +80,7 @@ sleep 15
8080# Verify all stopped
8181ps aux | grep arangod | grep -v grep # Should be empty
8282```
83-
84- ### Step 4: Delete setup.json Files
85-
86- ** This is the key step** - forces starter to use command-line options:
87-
88- ``` bash
89- # Delete setup.json from all data directories
90- rm -f /path/to/data-dir/setup.json
91-
92- # Verify deletion
93- ls -la /path/to/data-dir/setup.json # Should show "No such file"
94- ```
95-
96- ** Why delete setup.json?**
97- - Forces fresh configuration with new certificate
98- - Eliminates cached state conflicts
99- - Ensures command-line options take precedence
100-
101- ### Step 5: Restart Cluster
83+ ### Step 4: Restart Cluster
10284
10385Restart using the ** exact same commands** as original startup:
10486
@@ -117,7 +99,7 @@ Wait for startup completion (~30 seconds):
11799Your cluster can now be accessed with a browser at `https://hostname:8529`
118100```
119101
120- ### Step 6 : Verify New Certificate
102+ ### Step 5 : Verify New Certificate
121103
122104``` bash
123105# Check each server type (adjust NODE and PORT for your environment)
@@ -169,12 +151,6 @@ for NODE in "${NODES[@]}"; do
169151done
170152sleep 15
171153
172- # Delete setup.json on all nodes
173- for DIR in " ${DATA_DIRS[@]} " ; do
174- rm -f " ${DIR} /setup.json"
175- done
176- echo " setup.json files deleted"
177-
178154echo " Ready to restart cluster. Press Enter after restart..."
179155read
180156
@@ -356,14 +332,14 @@ sleep 5
356332
357333``` bash
358334# Force fresh connection to see new certificate
359- timeout 2 openssl s_client -connect localhost: 8530 < /dev/null 2> /dev/null | \
335+ timeout 2 openssl s_client -connect ${NODE} : ${STARTER_PORT} < /dev/null 2> /dev/null | \
360336 openssl x509 -noout -subject -dates
361337```
362338
363339#### Step 4: Verify Cluster Health
364340
365341``` bash
366- curl -k -u root: https://${NODE} :8529 /_admin/cluster/health
342+ curl -k -u root: https://${NODE} :${STARTER_PORT} /_admin/cluster/health
367343```
368344
369345#### Step 5: Fallback if Needed
@@ -374,7 +350,6 @@ If verification fails:
374350# Fall back to Option 1
375351curl -k -X POST https://${NODE} :${STARTER_PORT} /shutdown
376352sleep 15
377- rm -f /path/to/data-dir/setup.json
378353# Restart cluster
379354```
380355
0 commit comments