You are not logged in.
Pages: 1
I'm not certain if this is the correct section for this.
I have a cloud server that I recently created that doesn't have a swap partition. I migrated the home directory for this user from another server to this new server. The appropriate permissions are set.
I attempted to strace this to look at the system calls for this when running it.
strace -fs 4000 -o strace.txt tmux.
I'm abridging some of this. These are part of the last 50 lines.
5758 close(10) = 0
5758 close(9) = 0
5758 clock_gettime(CLOCK_MONOTONIC, {...}) = 0
5758 gettimeofday({...}, NULL) = 0
5758 clock_gettime(CLOCK_MONOTONIC, {...}) = 0
5758 gettimeofday({...}, NULL) = 0
5758 poll([?] 0x1c33820, 4, 995) = 2
5758 clock_gettime(CLOCK_MONOTONIC, {...}) = 0
5758 gettimeofday({...}, NULL) = 0
5758 writev(8, [?] 0x7ffffe287c80, 1) = 73
5758 sendmsg(7, 0x7ffffe284460, 0) = 8236
5758 clock_gettime(CLOCK_MONOTONIC, {...}) = 0
5758 gettimeofday({...}, NULL) = 0
5758 clock_gettime(CLOCK_MONOTONIC, {...}) = 0
5758 gettimeofday({...}, NULL) = 0
5758 poll([?] 0x1c33820, 4, 994 <unfinished ...>
5756 <... poll resumed> ) = 1 ([{fd=6, revents=POLLIN}])
5756 clock_gettime(CLOCK_MONOTONIC, {521260, 588392101}) = 0
5756 gettimeofday({1384888944, 278223}, NULL) = 0
5756 recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\323\0\0\0\30 \0\0\10\0\0\0\377\377\377\3771\0\0\0\0\0\0\0create session failed: : Operation not permitted\n\fi\200v\177\0\0\36\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\300\247\301\1\0\0\0\0\2701\303\1\0\0\0\0\300\247\301\1\0\0\0\0P\3146\200v\177\0\0@\5\304\1\0\0\0\0\260](\376\377\177\0\0000M(\376\377\177\0\0 \1\304\1\0\0\0\0 \1\304\1\0\0\0\0@\5\304\1\0\0\0\0\260L(\376\377\177\0\0A\334A\0\0\0\0\0"..., 65535}], msg_controllen=0, msg_flags=0}, 0) = 8236
5756 write(2, "create session failed: : Operation not permitted\n", 49) = 49
5756 poll([{fd=4, events=POLLIN}], 1, 0) = 0 (Timeout)
5756 clock_gettime(CLOCK_MONOTONIC, {521260, 588816739}) = 0
5756 gettimeofday({1384888944, 278647}, NULL) = 0
5756 fcntl(0, F_GETFL) = 0x8c02 (flags O_RDWR|O_APPEND|O_NONBLOCK|O_LARGEFILE)
5756 fcntl(0, F_SETFL, O_RDWR|O_APPEND|O_LARGEFILE) = 0
5756 exit_group(1) = ?
5758 <... poll resumed> ) = 1
5758 clock_gettime(CLOCK_MONOTONIC, {...}) = 0
5758 gettimeofday({...}, NULL) = 0
5758 recvmsg(7, 0x7ffffe2863a0, 0) = 0
5758 ioctl(8, TIOCGWINSZ, 0x7ffffe288450) = 0
5758 ioctl(8, SNDCTL_TMR_START or SNDRV_TIMER_IOCTL_TREAD or TCSETS, 0x7ffffe288400) = 0
5758 write(8, 0x1c412a0, 7) = 7
5758 write(8, 0x1c3d340, 3) = 3
5758 write(8, 0x1c3d440, 6) = 6
5758 write(8, 0x1c3d380, 7) = 7
5758 write(8, 0x1c38ca0, 7) = 7
5758 write(8, 0x1c3d610, 6) = 6
5758 write(8, 0x1c38cc0, 12) = 12
5758 write(8, 0x46c5dc, 24) = 24
5758 write(8, 0x1c3d360, 8) = 8
5758 fcntl(8, F_GETFL) = 0x8402 (flags O_RDWR|O_APPEND|O_LARGEFILE)
5758 fcntl(8, F_SETFL, O_RDWR|O_APPEND|O_LARGEFILE) = 0
5758 close(8) = 0
5758 close(5) = 0
5758 close(7) = 0
5758 exit_group(0) = ?
5758 +++ exited with 0 +++
5756 +++ exited with 1 +++
So I see that a write on a certain file was supposed to happen but it failed due to the operation not being permitted. I speculated that the tmp folder for that tmux session for that user may have not had the correct permissions.
drwx------ 2 sword sword 60 Nov 19 19:22 tmux-1000/
I was incorrect about that. Is there something else I'm missing here?
Offline
Is this relevant?
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
Is this relevant?
Yes. That worked actually. Thanks. Solved.
Offline
Pages: 1