I have killed a byobu
session accidentally (kill -9 byobuSessionId), and now when I try to start another byobu
command fails with "can't create socket".
Also tmux new-session
returns: "can't create socket"
I have tried sudo service screen-cleanup start
without success !
Any idea how can I solve it ?
Problem occurs maybe by dead tmux process if you check output for strace -f -e trace=file tmux command.
You see socket file created by tmux, in my case is located on /tmp//tmux-1001/default/
You simply delete this file and run again byobu command.
Check the permissions of the
/tmp/tmux*/
directories. They should be owned by you and not accessible to anyone else.So change permission as:
I encountered the same problem and below is my solution:
/tmp/$(id -u)
chown -R $(id -nu):$(id -nu) /tmp/$(id -u)
chmod -R 700 /tmp/$(id -u)
It works!
on mac the those cmds did the trick:
The permission of
/tmp
may causes this problem.You can check whether the permission of
/tmp
is4777
, if not do this:I've came across the same issue on a shared server, where I had no special permissions outside my home directory. It happens that tmux was trying to access ~/tmp folder where to create its socket. That folder was not present and thus the error.
The solution on my case was to create the folder ~/tmp and all started working fine.
I had the same issue, but it is because of disk space issue.
Try using this command
systemd-tmpfiles --create
. It creates some required folders under /run including tmux.Using command
strace -f -e trace=file tmux
you can see what files tmux called. Problem is ofted caused by permissions on /tmp folder. On a standard installation of Ubuntu Server permissions are set to 777. You can change with