You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
msg="${USER}, another RStudio Server instance of yours is already running on $(rserver_hostname) on this system. Call '${blue}rsc status --full${undo}' for details on how to reconnect. If you want to start a new instance, please terminate the existing one first by calling '${blue}rsc stop${undo}' from that machine."
295
300
msg="${msg} As a last resort, for instance, if that machine is no longer available or down for maintenance, try ${blue}rsc reset --force${undo}."
296
-
error"${msg}"
301
+
rsc_error"${msg}"
297
302
fi
298
303
echo"${PPID}">"${lockfile}"
299
304
assert_file_is_not_empty "${lockfile}"
@@ -575,7 +580,7 @@ function check_pid {
575
580
if [[ ${okay}-ne 0 ]];then
576
581
## Remove empty leading lines
577
582
res=$(sed -e '/./,$!d'<<<"${res}")
578
-
error"Failed to check process PID ${pid} on ${hostname} over SSH. Reason was: ${res}"
583
+
rsc_error"Failed to check process PID ${pid} on ${hostname} over SSH. Reason was: ${res}"
579
584
fi
580
585
[[ "${res}"=="true" ]] && pid_exists=true
581
586
else
@@ -961,7 +966,7 @@ function assert_no_rsession {
961
966
if [[ $(rserver_status)=="not running" ]];then
962
967
error "Detected stray 'rsession' processes. Use 'rsc stop' to terminate them"
## If running, make sure we're stopping from the correct machine
1883
1900
if [[ -f"${lockfile}" ]] && [[ "$(hostname)"!="$(rserver_hostname)" ]];then
1884
1901
file="${workdir}/rserver.hostname"
1885
-
error"Stopping the RStudio Server can only be made from the machine ($(rserver_hostname)) where it was started from - not from $(hostname) [${file}: $(file_info "${file}")]"
1902
+
rsc_error"Stopping the RStudio Server can only be made from the machine ($(rserver_hostname)) where it was started from - not from $(hostname) [${file}: $(file_info "${file}")]"
[[ -z"${rs_pid}" ]] &&error"RStudio Server failed to start for unknown reasons. One reason for this might be that the port (${port}) is already occupied"
2026
+
[[ -z"${rs_pid}" ]] &&rsc_error"RStudio Server failed to start for unknown reasons. One reason for this might be that the port (${port}) is already occupied"
0 commit comments