You are not logged in.

#1 2015-12-23 20:38:48

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

tmux can't auto create socket; why?

I'm presently unable to run tmux on a new and up-to-date Arch x86_64 CLI install, via ssh as well as on the box's (yeap, has a screen).

$ tmux [new-session -s ssh]
can't create socket: Not a directory

$TMUX_TMPDIR is /run/user/1000//tmux
$XDG_RUNTIME_DIR is /run/user/1000/
$TMPDIR is unset

Nevermind man tmux:

tmux stores the server socket in a directory under TMUX_TMPDIR, TMPDIR if it is unset, or /tmp if both are unset.

I also

TMPDIR=/tmp
$ tmux
can't create socket: Not a directory

Setting the socket-path manualy does work

$ tmux -S /run/user/1000/tmux

I presume one normaly shouldn't have to manualy set tmux socket for simple/normal use unless: I read nothing related on the wiki. And the single related post I found on the forum is systemd-related, but there's no tmux service on my box. So I suspect something's wrong in my user's environnement vars. Would appreciate your views!


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2 2015-12-23 22:14:24

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: tmux can't auto create socket; why?

You probably have no /run/user/1000/tmux directory, yet you tell tmux to put its sockets there.

Last edited by lucke (2015-12-23 22:14:54)

Offline

#3 2015-12-24 13:00:31

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 674
Website

Re: tmux can't auto create socket; why?

You mean one has to manualy create '/run/user/UID/tmux' (or $TMPDIR/tmuxif $TMUX_TMPDIR is not set)?

Checking, as I have tmux recently installed on an other system and do not remember having created the $TMPDIR/tmux-UID/ that is there. Same for any of the dirs that are in '/run/user/UID/' on these systems.

`$ ll /run/user/1000/` after I run `$ tmux -S /run/user/1000/tmux`

total 0
drwxr-xr-x 2 kozaki 80 22 déc.  10:44 systemd/
srw-rw-rw- 1 kozaki  0 22 déc.  10:44 bus
srwxrwx--- 1 kozaki  0 23 déc.  20:25 tmux

Last edited by kozaki (2015-12-24 13:03:53)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

Board footer

Powered by FluxBB