9899
September 16, 2023, 7:54am
1
I’ve been using your app without any problems until two days ago. It used to work flawlessly. I’m able to log in to SSH through other applications, but for some reason, I’m facing difficulties with yours. As a paying customer who depends on this app daily for my tasks, this has been quite disruptive, and I’ve had to switch to other apps in the interim.
Error Message: Connection to “xxxxxx” could not be established.
Could you please look into this issue and assist me in resolving it? I would greatly appreciate your prompt assistance, as I rely heavily on the functionality of your app.
I have deleted and fully re installed a few times too.
9899
September 16, 2023, 8:23am
2
log details
[Info - 08:16:21.574] Resolving ssh remote authority 'ssh-remote+ssh -p 65002 u683364174@xxxx' (attemp #1)
[Trace - 08:16:21.582] Identity keys:
/Users/james/.ssh/id_ed25519 ssh-ed25519 SHA256:xxxxxxx=
[Info - 08:16:21.857] Trying no-auth authentication
[Info - 08:16:21.958] Trying publickey authentication: /Users/james/.ssh/id_ed25519 ssh-xxxxxxx=
[Trace - 08:16:22.144] Server install command:
# Server installation script
TMP_DIR="${XDG_RUNTIME_DIR:-"/tmp"}"
DISTRO_VERSION="0.10.4"
DISTRO_COMMIT="c0db898419c36107211de244bdcf5f412c1a4920"
DISTRO_QUALITY="stable"
SERVER_APP_NAME="cursor-server"
SERVER_INITIAL_EXTENSIONS=""
SERVER_LISTEN_FLAG="--port=0"
SERVER_DATA_DIR="$HOME/.cursor-server"
SERVER_DIR="$SERVER_DATA_DIR/bin/$DISTRO_VERSION-$DISTRO_COMMIT"
SERVER_SCRIPT="$SERVER_DIR/bin/$SERVER_APP_NAME"
SERVER_LOGFILE="$SERVER_DATA_DIR/.$DISTRO_COMMIT.log"
SERVER_PIDFILE="$SERVER_DATA_DIR/.$DISTRO_COMMIT.pid"
SERVER_TOKENFILE="$SERVER_DATA_DIR/.$DISTRO_COMMIT.token"
SERVER_OS=
SERVER_ARCH=
SERVER_CONNECTION_TOKEN=
SERVER_DOWNLOAD_URL=
LISTENING_ON=
OS_RELEASE_ID=
ARCH=
PLATFORM=
# Mimic output from logs of remote-ssh extension
print_install_results_and_exit() {
echo "9be94918c27c1074b4a5f80b: start"
echo "exitCode==$1=="
echo "listeningOn==$LISTENING_ON=="
echo "connectionToken==$SERVER_CONNECTION_TOKEN=="
echo "logFile==$SERVER_LOGFILE=="
echo "osReleaseId==$OS_RELEASE_ID=="
echo "arch==$ARCH=="
echo "platform==$PLATFORM=="
echo "tmpDir==$TMP_DIR=="
echo "9be94918c27c1074b4a5f80b: end"
exit 0
}
# Check if platform is supported
PLATFORM="$(uname -s)"
case $PLATFORM in
Darwin)
SERVER_OS="darwin"
;;
Linux)
SERVER_OS="linux"
;;
FreeBSD)
SERVER_OS="freebsd"
;;
DragonFly)
SERVER_OS="dragonfly"
;;
*)
echo "Error platform not supported: $PLATFORM"
print_install_results_and_exit 1
;;
esac
# Check machine architecture
ARCH="$(uname -m)"
case $ARCH in
x86_64 | amd64)
SERVER_ARCH="x64"
;;
armv7l | armv8l)
SERVER_ARCH="armhf"
;;
arm64 | aarch64)
SERVER_ARCH="arm64"
;;
ppc64le)
SERVER_ARCH="ppc64le"
;;
*)
echo "Error architecture not supported: $ARCH"
print_install_results_and_exit 1
;;
esac
# https://www.freedesktop.org/software/systemd/man/os-release.html
OS_RELEASE_ID="$(grep -i '^ID=' /etc/os-release 2>/dev/null | sed 's/^ID=//gi' | sed 's/"//g')"
if [[ -z $OS_RELEASE_ID ]]; then
OS_RELEASE_ID="$(grep -i '^ID=' /usr/lib/os-release 2>/dev/null | sed 's/^ID=//gi' | sed 's/"//g')"
if [[ -z $OS_RELEASE_ID ]]; then
OS_RELEASE_ID="unknown"
fi
fi
# Create installation folder
if [[ ! -d $SERVER_DIR ]]; then
mkdir -p $SERVER_DIR
if (( $? > 0 )); then
echo "Error creating server install directory"
print_install_results_and_exit 1
fi
fi
SERVER_DOWNLOAD_URL="$(echo "https://cursor.blob.core.windows.net/remote-releases/\${version}-\${commit}/vscode-reh-\${os}-\${arch}.tar.gz" | sed "s/\${quality}/$DISTRO_QUALITY/g" | sed "s/\${version}/$DISTRO_VERSION/g" | sed "s/\${commit}/$DISTRO_COMMIT/g" | sed "s/\${os}/$SERVER_OS/g" | sed "s/\${arch}/$SERVER_ARCH/g")"
echo "Downloading server from '$SERVER_DOWNLOAD_URL'"
# Check if server script is already installed
if [[ ! -f $SERVER_SCRIPT ]]; then
if [[ "$SERVER_OS" = "dragonfly" ]] || [[ "$SERVER_OS" = "freebsd" ]]; then
echo "Error "$SERVER_OS" needs manual installation of remote extension host"
print_install_results_and_exit 1
fi
pushd $SERVER_DIR > /dev/null
if [[ ! -z $(which wget) ]]; then
wget --tries=3 --timeout=10 --continue --no-verbose -O vscode-server.tar.gz $SERVER_DOWNLOAD_URL
elif [[ ! -z $(which curl) ]]; then
curl --retry 3 --connect-timeout 10 --location --show-error --silent --output vscode-server.tar.gz $SERVER_DOWNLOAD_URL
else
echo "Error no tool to download server binary"
print_install_results_and_exit 1
fi
if (( $? > 0 )); then
echo "Error downloading server from $SERVER_DOWNLOAD_URL"
print_install_results_and_exit 1
fi
tar -xf vscode-server.tar.gz --strip-components 1
if (( $? > 0 )); then
echo "Error while extracting server contents"
print_install_results_and_exit 1
fi
if [[ ! -f $SERVER_SCRIPT ]]; then
echo "Error server contents are corrupted"
print_install_results_and_exit 1
fi
rm -f vscode-server.tar.gz
popd > /dev/null
else
echo "Server script already installed in $SERVER_SCRIPT"
fi
# Try to find if server is already running
if [[ -f $SERVER_PIDFILE ]]; then
SERVER_PID="$(cat $SERVER_PIDFILE)"
echo "Server PID: $SERVER_PID"
echo "Server script: $SERVER_SCRIPT"
SERVER_RUNNING_PROCESS="$(ps -o pid,args -p $SERVER_PID | grep $SERVER_SCRIPT)"
else
echo "Server script: $SERVER_SCRIPT"
SERVER_RUNNING_PROCESS="$(ps -o pid,args -A | grep $SERVER_SCRIPT | grep -v grep)"
fi
echo "Server running process: $SERVER_RUNNING_PROCESS"
if [[ -z $SERVER_RUNNING_PROCESS ]]; then
if [[ -f $SERVER_LOGFILE ]]; then
rm $SERVER_LOGFILE
fi
if [[ -f $SERVER_TOKENFILE ]]; then
rm $SERVER_TOKENFILE
fi
touch $SERVER_TOKENFILE
chmod 600 $SERVER_TOKENFILE
SERVER_CONNECTION_TOKEN="a8ce59c7-ed00-43c9-be59-4840c00e1123"
echo $SERVER_CONNECTION_TOKEN > $SERVER_TOKENFILE
$SERVER_SCRIPT --start-server --host=127.0.0.1 $SERVER_LISTEN_FLAG $SERVER_INITIAL_EXTENSIONS --connection-token-file $SERVER_TOKENFILE --telemetry-level off --enable-remote-auto-shutdown --accept-server-license-terms &> $SERVER_LOGFILE &
echo $! > $SERVER_PIDFILE
else
echo "Server script is already running $SERVER_SCRIPT"
fi
if [[ -f $SERVER_TOKENFILE ]]; then
SERVER_CONNECTION_TOKEN="$(cat $SERVER_TOKENFILE)"
else
echo "Error server token file not found $SERVER_TOKENFILE"
print_install_results_and_exit 1
fi
if [[ -f $SERVER_PIDFILE ]]; then
SERVER_PID="$(cat $SERVER_PIDFILE)"
SERVER_RUNNING_PROCESS="$(ps -o pid,args -p $SERVER_PID | grep $SERVER_SCRIPT)"
else
SERVER_RUNNING_PROCESS="$(ps -o pid,args -A | grep $SERVER_SCRIPT | grep -v grep)"
fi
if [[ -f $SERVER_LOGFILE ]]; then
for i in {1..5}; do
LISTENING_ON="$(cat $SERVER_LOGFILE | grep -E 'Extension host agent listening on .+' | sed 's/Extension host agent listening on //')"
if [[ -n $LISTENING_ON ]]; then
break
fi
sleep 0.5
done
if [[ -z $LISTENING_ON ]]; then
echo "Error server did not start sucessfully"
print_install_results_and_exit 1
fi
else
echo "Error server log file not found $SERVER_LOGFILE"
print_install_results_and_exit 1
fi
# Finish server setup
print_install_results_and_exit 0
[Trace - 08:16:24.811] Server install command stdout:
Downloading server from 'https://cursor.blob.core.windows.net/remote-releases/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/vscode-reh-linux-x64.tar.gz'
Server script already installed in /home/u683364174/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/bin/cursor-server
Server PID: 10973
Server script: /home/u683364174/.cursor-server/bin/0.10.4-c0db898419c36107211de244bdcf5f412c1a4920/bin/cursor-server
Server running process:
Error server did not start sucessfully
9be94918c27c1074b4a5f80b: start
exitCode==1==
listeningOn====
connectionToken==a8ce59c7-ed00-43c9-be59-4840c00e1123==
logFile==/home/u683364174/.cursor-server/.c0db898419c36107211de244bdcf5f412c1a4920.log==
osReleaseId==unknown==
arch==x86_64==
platform==Linux==
tmpDir==/run/user/683364174==
9be94918c27c1074b4a5f80b: end
[Error - 08:16:24.812] Error resolving authority
Error: Couldn't install vscode server on remote server, install script returned non-zero exit status
at t.installCodeServer (/Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:794454)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Applications/Cursor.app/Contents/Resources/app/extensions/open-remote-ssh/dist/main.js:1:438101
9899
September 16, 2023, 8:46am
3
I have also tried deleting the.cursor_server folder but get the same error as before, also its not creating any new .cursor_server folder now I try and update.
Really apologize about this. Am trying to reproduce on my end.
Though it doesn’t make up for whatever is going on here, would like to refund you. Just send the email that you used to pay to [email protected]
Could you paste the logs for one of the runs where the .cursor-server folder isn’t created? (Also, just to be clear, it’s cursor-server
with a hyphen, not an underscore)