Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH tmux bug report: "SSH Warpify Timeout" #5751

Open
OusHOGre opened this issue Jan 28, 2025 · 1 comment
Open

SSH tmux bug report: "SSH Warpify Timeout" #5751

OusHOGre opened this issue Jan 28, 2025 · 1 comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes SSH-tmux TMUX SSH related issues

Comments

@OusHOGre
Copy link

Include shell output

find() { command -v "$1" >/dev/null 2>&1;};log() { _msg=$(printf "{\"hook\": \"$1\", \"value\": $2}" | command -p od -An -v -tx1 | command -p tr -d " \n");printf '\033\120\044\144%s\234' "$_msg";};err() { log RemoteWarpificationIsUnavailable "$1";};check_tmux() { if find tmux; then TMUX="tmux";log SshTmuxInstaller "\"user\"";elif find $HOME/.warp/tmux/execute_tmux.sh; then log SshTmuxInstaller "\"warp\"";TMUX="$HOME/.warp/tmux/execute_tmux.sh";fi;if [ $TMUX ]; then VER=$(command $TMUX -V 2>/dev/null | awk '{print $2}');if [ -z "$VER" ]; then err "\"TmuxFailed\"";elif [ "$(printf '%s\n' "$VER" "2.9" | sort -V | tail -n1)" = "2.9" ]; then err "\"UnsupportedTmuxVersion\"";else return 0;fi;else OS=$(uname);if [ "$OS" = "Darwin" ]; then if find brew; then PKG="homebrew";fi;elif [ "$OS" = "Linux" ]; then if find pacman; then PKG="pacman";elif find zypper; then PKG="zypper";elif find dnf; then PKG="dnf";elif find yum && find yumdownloader; then PKG="yum";elif find apt; then PKG="apt";fi;fi;RA="no_root_access";if command -v sudo >/dev/null && { sudo -vn && sudo -ln; } 2>&1 | grep -E 'may run|a password' > /dev/null; then RA="can_run_sudo";elif [ "$(id -u)" -eq 0 ] && [ "$(whoami)" = "root" ]; then RA="is_root";fi;err "{\"TmuxNotInstalled\": {\"os\": \"$OS\", \"pkg\": \"$PKG\", \"shell\": \"$(basename $SHELL)\", \"root_access\": \"$RA\"}}";fi;return 1;};check_tmux && command $TMUX -CC && exit;
protocol version mismatch (client 8, server 7)
%exit

to confirm the tmux version: tmux -V
tmux 3.2a

Warp Version

v0.2025.01.22.08.02.stable_05

Warp Internal (ignore) - linear-label:7a739baa-09c3-499e-a0c9-a1a16c090597

None

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

None

@OusHOGre OusHOGre added Bugs Bugs, Hangs, Crash, and Freezes SSH-tmux TMUX SSH related issues labels Jan 28, 2025
@heysweet
Copy link
Contributor

heysweet commented Jan 30, 2025

Hello! Thank you for the bug report. It looks like one of two things is happening:

  1. Your tmux -V is different than your command tmux -V -- could you validate what version of tmux command tmux -V returns?
  2. Our comparison logic could be at fault. I tested our comparison logic with 3.2a and it seems to be working as expected.

If you have a ~/.warp directory on the remote machine, try removing it and see if this resolves the issue. Otherwise, we're contemplating whether or not we should be running command tmux vs tmux at this point of time anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes SSH-tmux TMUX SSH related issues
Projects
None yet
Development

No branches or pull requests

2 participants