-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi.
On machine A, I run in an xterm:
tmux new
and I get the expected response in the terminal.
On that machine, on another terminal, I run "tmux attach", and it attaches correctly to the first terminal. Green status line at the bottom. All as I expected.
On a second machine, B, I first ssh to the A machine (same user name and UID). Then I try to attach to the tmux session, and it says no:
cer@Telcontar:~> tmux attach no sessions cer@Telcontar:~> tmux ls failed to connect to server: Connection refused cer@Telcontar:~> l /tmp/tmux-1000/ total 268 drwx------ 2 cer users 4096 Apr 30 22:28 ./ drwxrwxrwt 48 root root 266240 Apr 30 22:35 ../ srwxrwx--- 1 cer users 0 Apr 30 22:28 default= cer@Telcontar:~>
ps afxu excerpt:
cer 4668 0.0 0.0 67400 2320 ? S Apr25 0:00 _ xterm -xtsessionID 2a1e9def9-1753-... cer 4845 0.0 0.0 15156 1856 pts/17 Ss Apr25 0:00 | _ bash cer 8861 0.0 0.0 15716 1312 pts/17 S+ 22:28 0:00 | _ tmux new
cer 8863 0.0 0.0 16068 1520 ? Ss 22:28 0:00 tmux new cer 8864 0.0 0.0 14760 3512 pts/26 Ss+ 22:28 0:00 _ -bash
Am I doing it wrong?
I did this about a month ago on another machine, and it worked.
All machines use 13.1, xfce.
- -- Cheers Carlos E. R.
(from 13.1 x86_64 "Bottle" (Minas Tirith))
* Carlos E. R. carlos.e.r@opensuse.org [04-30-15 17:03]:
On machine A, I run in an xterm:
tmux new
and I get the expected response in the terminal.
On that machine, on another terminal, I run "tmux attach", and it attaches correctly to the first terminal. Green status line at the bottom. All as I expected.
On a second machine, B, I first ssh to the A machine (same user name and UID). Then I try to attach to the tmux session, and it says no:
cer@Telcontar:~> tmux attach no sessions cer@Telcontar:~> tmux ls failed to connect to server: Connection refused cer@Telcontar:~> l /tmp/tmux-1000/ total 268 drwx------ 2 cer users 4096 Apr 30 22:28 ./ drwxrwxrwt 48 root root 266240 Apr 30 22:35 ../ srwxrwx--- 1 cer users 0 Apr 30 22:28 default= cer@Telcontar:~>
ps afxu excerpt:
cer 4668 0.0 0.0 67400 2320 ? S Apr25 0:00 _ xterm -xtsessionID 2a1e9def9-1753-... cer 4845 0.0 0.0 15156 1856 pts/17 Ss Apr25 0:00 | _ bash cer 8861 0.0 0.0 15716 1312 pts/17 S+ 22:28 0:00 | _ tmux new
cer 8863 0.0 0.0 16068 1520 ? Ss 22:28 0:00 tmux new cer 8864 0.0 0.0 14760 3512 pts/26 Ss+ 22:28 0:00 _ -bash
Am I doing it wrong?
I did this about a month ago on another machine, and it worked.
All machines use 13.1, xfce.
Do no know, I do the same.
This list is *very* responsive: List-Subscribe: https://lists.sourceforge.net/lists/listinfo/tmux-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2015-04-30 23:34, Patrick Shanahan wrote:
- Carlos E. R. <> [04-30-15 17:03]:
Do no know, I do the same.
I did more testing. It is very strange.
A: desktop B: laptop C: laptop 32 bits.
'A' runs tmux. 'B' ssh to it, attach fails. 'A' runs tmux. 'C' ssh to it, attach fails. Local attach in 'A' works.
'C' runs tmux. 'A' ssh to it, attach works. 'C' runs tmux. 'B' ssh to it, attach works.
'B' runs tmux. 'A' ssh to it, attach works. 'B' runs tmux. 'C' ssh to it, attach works.
cer@minas-tirith:~> tmux -V tmux 1.9a
But:
'A' runs tmux, as root. 'B' ssh to it, works.
'A' runs tmux, as normal user, but in console, not xterm. 'B' ssh to it, works.
'A' runs tmux, as different normal user, in xterm running on XFCE of normal user. 'B' ssh to it, works.
So, it only fails running tmux in graphical mode of my normal user, on the desktop machine. It must be something injected by XFCE environment.
Furthermore.
On the desktop, with 'tmux new' running on the text console, local 'tmux attach' on an xterm fails.
Very strange...
This list is *very* responsive: List-Subscribe: https://lists.sourceforge.net/lists/listinfo/tmux-users
Another one... :-?
- -- Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 "Bottle" (Minas Tirith))
So, it only fails running tmux in graphical mode of my normal user, on the desktop machine. It must be something injected by XFCE environment.
Check value of TMPDIR in both cases.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday, 2015-05-01 at 07:53 +0300, arvidjaar@gmail.com wrote:
So, it only fails running tmux in graphical mode of my normal user, on the desktop machine. It must be something injected by XFCE environment.
Check value of TMPDIR in both cases.
Local Xterm:
cer@Telcontar:~> env | grep -i tmpdir TMPDIR=/tmp cer@Telcontar:~>
On the remote xterm, where attach fails, it is empty! So that's it? How can that happen?
- -- Cheers, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
В Fri, 22 May 2015 14:29:45 +0200 (CEST) "Carlos E. R." carlos.e.r@opensuse.org пишет:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday, 2015-05-01 at 07:53 +0300, arvidjaar@gmail.com wrote:
So, it only fails running tmux in graphical mode of my normal user, on the desktop machine. It must be something injected by XFCE environment.
Check value of TMPDIR in both cases.
Local Xterm:
cer@Telcontar:~> env | grep -i tmpdir TMPDIR=/tmp cer@Telcontar:~>
On the remote xterm, where attach fails, it is empty! So that's it? How can that happen?
I would expect you know how to use grep :)
/etc/X11/xdm/Xsession:: ${TMPDIR=/tmp} /etc/X11/xdm/Xsession:export OPENWINHOME TMPDIR /etc/X11/xdm/Xsession: "${TMPDIR:-/tmp}/xerr-${USER}-${DISPLAY}"
But no TMPDIR should really mean /tmp by default. Use strace to check what tmux tries to open.
On 2015-05-22 19:44:52 +0300, Andrei Borzenkov wrote:
I would expect you know how to use grep :)
/etc/X11/xdm/Xsession:: ${TMPDIR=/tmp} /etc/X11/xdm/Xsession:export OPENWINHOME TMPDIR /etc/X11/xdm/Xsession: "${TMPDIR:-/tmp}/xerr-${USER}-${DISPLAY}"
But no TMPDIR should really mean /tmp by default. Use strace to check what tmux tries to open.
https://build.opensuse.org/package/view_file/openSUSE:Factory/tmux/tmux-sock...
I bet if you build tmux without the patch it would just work.
darix
В Fri, 22 May 2015 19:06:22 +0200 Marcus Rueckert darix@opensu.se пишет:
On 2015-05-22 19:44:52 +0300, Andrei Borzenkov wrote:
I would expect you know how to use grep :)
/etc/X11/xdm/Xsession:: ${TMPDIR=/tmp} /etc/X11/xdm/Xsession:export OPENWINHOME TMPDIR /etc/X11/xdm/Xsession: "${TMPDIR:-/tmp}/xerr-${USER}-${DISPLAY}"
But no TMPDIR should really mean /tmp by default. Use strace to check what tmux tries to open.
https://build.opensuse.org/package/view_file/openSUSE:Factory/tmux/tmux-sock...
I bet if you build tmux without the patch it would just work.
Well ... arguably Xseesion has no business setting TMPDIR either. At least exporting it. TMPDIR should be set by user and then it is user responsibility to ensure it is set consistently.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2015-05-22 19:18, Andrei Borzenkov wrote:
В Fri, 22 May 2015 19:06:22 +0200 Marcus Rueckert <> пишет:
On 2015-05-22 19:44:52 +0300, Andrei Borzenkov wrote:
I would expect you know how to use grep :)
Of course I do, but I wouldn't know what to grep for and where :-)
/etc/X11/xdm/Xsession:: ${TMPDIR=/tmp} /etc/X11/xdm/Xsession:export OPENWINHOME TMPDIR /etc/X11/xdm/Xsession: "${TMPDIR:-/tmp}/xerr-${USER}-${DISPLAY}"
But no TMPDIR should really mean /tmp by default. Use strace to check what tmux tries to open.
Done. There is no appearance of the word "tmp" or "tmpdir" anywhere in the trace.
I see this:
socket(PF_LOCAL, SOCK_STREAM, 0) = 5 connect(5, {sa_family=AF_LOCAL, sun_path="/run/tmux/1000/default"}, 24) = -1 ECONNREFUSED (Connection refused) close(5) = 0 open("/run/tmux/1000/default.lock", O_WRONLY|O_CREAT, 0600) = 5 fcntl(5, F_SETLK, {type=F_WRLCK, whence=SEEK_CUR, start=0, len=0}) = 0 unlink("/run/tmux/1000/default") = 0 socketpair(PF_LOCAL, SOCK_STREAM, 0, [6, 7]) = 0
The full trace is here: http://susepaste.org/26498787
https://build.opensuse.org/package/view_file/openSUSE:Factory/tmux/tmux-sock...
I bet if you build tmux without the patch it would just work.
Well ... arguably Xseesion has no business setting TMPDIR either. At least exporting it. TMPDIR should be set by user and then it is user responsibility to ensure it is set consistently.
Both laptop (client) and desktop (server) have TMPDIR set to /tmp (and not my doing). But when I ssh from laptop to desktop, the variable is unset (and not by me, either - at least to my knowledge).
Running:
TMPDIR=/tmp tmux attach
runs just fine. So at least I have a workaround...
- -- Cheers / Saludos,
Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)