You are not logged in.
Hi everyone,
tmux on my primary user exits automatically within ~1 second of launching it, I created a dummy test user, belonging only to the group 'users', and it works fine on it, also, it works normally in root,
here are the `strace tmux` output for both normal and root user (in root, tmux is terminated with exit command)
https://gist.github.com/prateek-khandelwal/8298091
can anyone suggest what should I do ?
Thanks,
Last edited by prateek13 (2014-01-07 16:24:22)
Offline
Delete or move your ~/.tmux.conf and try again
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
I did try that, the issue persists..
Offline
118 connect(6, {sa_family=AF_LOCAL, sun_path="/tmp/tmux-1000/default"}, 24) = -1 ECONNREFUSED (Connection refused)
Looks like you may have access problems with /tmp
Offline
it is showing drwx for user, which is me, the thing is tmux starts, but for a very short time (~2 seconds)
Offline
How about `ls -l /tmp/tmux-1000/default`
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
srw-rw---- 1 prateek users 0 Jan 7 19:09 default
Offline
I'm seeing in your stack trace your user has a .tmux.conf that it finds and loads. Did you delete it after running your stack trace?
Edit: Also, when you say it 'loads', do you mean you get a shell and then it closes or do you just see what looks like a cursor and it exits?
Edit 2: My tmux socket has execute permissions. However I also noted that your root's stack trace has the same error on line 119 so this may not be the source of the problem.
Last edited by pilotkeller (2014-01-07 13:50:22)
Offline
yes, my bad, I have just uploaded the the strace without .tmux.conf. on the same link
Offline
Yeah, I'm getting nothing from this. Can I get you to run tmux with -v?
Offline
Why is your tmux binary in /usr/local ?
execve("/usr/local/bin/tmux",
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Yes, I just saw that, there are a lots of 'lost client' messages in bas server, I have uploaded the server logs on the same link. please check
[the comand not found gibberish in the test server log comes from powerline, which is installed only for my primary user]
Last edited by prateek13 (2014-01-07 14:12:22)
Offline
@alphaniner: Those traces (normal_trace and root_trace) are belong to the installation of tmux v1.6 which I did manually, I thought that the problem was in the recent package.. sorry for the confusion..
Offline
@alphaniner: Those traces (normal_trace and root_trace) are belong to the installation of tmux v1.6 which I did manually, I thought that the problem was in the recent package.. sorry for the confusion..
You should have stated that from the start. Manually installing packages from source in Arch isn't the way to go; see the wiki pages on makepkg, ABS and the AUR. In the meantime, you should delete all traces of what you installed, reinstall the current version and start troubleshooting again.
Offline
@anoknusa: sure, thnx for the advice, now that you've put it this way, I think I messed things up while trying to get powerline working...
Offline
Okay, so here's the real issue,
The reason for the premature exit is using powerline in bash and in tmux at the same time. Tmux exits while loading the directory tag for the shell.. If I do not enable powerline plugin in bash, tmux works fine.. that was the reason it was working in my non primary users, as I had not enabled powerline plugin in those shells.
Thanks a lot people ! I appreciate your help. !
Offline
Cool. If you would be so kind, please edit your first post and add [SOLVED] to the front of the thread title (assuming, of course, it is solved ) We ask that you do this as we have no way of knowing when you regard it as solved.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Cool. If you would be so kind, please edit your first post and add [SOLVED] to the front of the thread title (assuming, of course, it is solved ) We ask that you do this as we have no way of knowing when you regard it as solved.
Sure, Done !
Offline