File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## Version (development version)
2
+
3
+ ### New Features
4
+
5
+ * When ` rsc ` fails to check if a previous RStudio Server session is
6
+ running on another host, because SSH fails, it will use ` ping ` to
7
+ check whether the host is up and give a more informative error
8
+ message based on the outcome.
9
+
10
+
1
11
## Version 0.19.0 [ 2025-09-04]
2
12
3
13
### Security
Original file line number Diff line number Diff line change 77
77
# ##
78
78
# ## {{SEE_ALSO}}
79
79
# ##
80
- # ## Version: 0.19.0
80
+ # ## Version: 0.19.0-9001
81
81
# ## Copyright: Henrik Bengtsson (2022-2025) and Harry Putnam (2022)
82
82
# ## License: ISC
83
83
@@ -570,6 +570,8 @@ function check_pid {
570
570
local asterisk
571
571
local timeout
572
572
local res
573
+ local -a bfr
574
+ local msg
573
575
local -i okay
574
576
575
577
# # If 'pid' is assigned an empty value, then it becomes pid=0,
@@ -596,6 +598,14 @@ function check_pid {
596
598
mdebug " - Result: ${res} "
597
599
if [[ ${okay} -ne 0 ]]; then
598
600
# # Remove empty leading lines
601
+ msg=$( sed -e ' /./,$!d' <<< " ${res}" )
602
+ # # Does ping work?
603
+ if ping -c 1 -W 1 " ${hostname} " > /dev/null; then
604
+ msg=" ${msg} [${hostname} answers on ping]"
605
+ else
606
+ msg=" It looks like ${hostname} is down - it does not answers on ping, which is probably why SSH failed with: ${msg} "
607
+ fi
608
+ error " Failed to check process PID ${pid} on ${hostname} over SSH. Reason was: ${msg} "
599
609
res=$( sed -e ' /./,$!d' <<< " ${res}" )
600
610
rsc_error " Failed to check process PID ${pid} on ${hostname} over SSH. Reason was: ${res} "
601
611
fi
You can’t perform that action at this time.
0 commit comments