Skip to content

Instantly share code, notes, and snippets.

@mrnabati
Last active October 14, 2019 18:32
Show Gist options
  • Save mrnabati/3341816dc46c3cf2d72548b59ceb6be3 to your computer and use it in GitHub Desktop.
Save mrnabati/3341816dc46c3cf2d72548b59ceb6be3 to your computer and use it in GitHub Desktop.
Tmux error: protocol version mismatch

Tmux Protocol Version Mismatch Error

If for some reason you thought it's a good idea to update tmux to a new version without closing your current tmux sessions first, you might see this error when trying to attach to those sessions after update:

  $ tmux attach
  protocol version mismatch (client 7, server 6)

To attach to your sessions, use this awesome hack (credit: this stackexchange answer):

  $ pgrep tmux
  3429
  $ /proc/3429/exe attach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment