You are not logged in.

#1 2014-01-07 12:02:40

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

[ Solved ] tmux exiting automatically in my primary user, but works..

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

#2 2014-01-07 12:45:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,607
Website

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

Delete or move your ~/.tmux.conf and try again


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-01-07 12:48:56

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

I did try that, the issue persists..

Offline

#4 2014-01-07 13:27:25

pilotkeller
Member
From: Canada
Registered: 2011-12-22
Posts: 513
Website

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

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

#5 2014-01-07 13:34:08

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

it is showing drwx for user, which is me, the thing is tmux starts, but for a very short time (~2 seconds)

Offline

#6 2014-01-07 13:38:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,607
Website

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

How about `ls -l /tmp/tmux-1000/default`


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2014-01-07 13:43:04

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

srw-rw---- 1 prateek users 0 Jan  7 19:09 default

Offline

#8 2014-01-07 13:45:36

pilotkeller
Member
From: Canada
Registered: 2011-12-22
Posts: 513
Website

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

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

#9 2014-01-07 13:51:39

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

yes, my bad, I have just uploaded the the strace without .tmux.conf. on the same link

Offline

#10 2014-01-07 13:59:56

pilotkeller
Member
From: Canada
Registered: 2011-12-22
Posts: 513
Website

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

Yeah, I'm getting nothing from this. Can I get you to run tmux with -v?

Offline

#11 2014-01-07 14:05:20

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

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

#12 2014-01-07 14:05:50

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

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

#13 2014-01-07 14:09:46

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

@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

#14 2014-01-07 14:30:55

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

prateek13 wrote:

@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

#15 2014-01-07 14:52:15

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

@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... hmm

Offline

#16 2014-01-07 15:33:40

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

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. ! smile

Offline

#17 2014-01-07 16:19:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

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 smile )  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

#18 2014-01-07 16:25:49

prateek13
Member
From: India
Registered: 2014-01-05
Posts: 13

Re: [ Solved ] tmux exiting automatically in my primary user, but works..

ewaller wrote:

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 smile )  We ask that you do this as we have no way of knowing when you regard it as solved.

Sure, Done ! smile

Offline

Board footer

Powered by FluxBB