Platypus icon indicating copy to clipboard operation
Platypus copied to clipboard

New termite sessions are killed for unknown reason

Open WangYihang opened this issue 2 years ago • 6 comments

师傅我又来了。 会自动killed不知到为何。

2022/03/15 12:03:39 Client version: v1.5.1
2022/03/15 12:03:39 A new encrypted termite (1.5.1) income connection from 1.2.3.4:60474
2022/03/15 12:03:39 Encrypted fire in the hole: [d32556bd7945324f6918c130e1c6611d] tcp://1.2.3.4:60474 [🐧]
2022/03/15 12:03:39 Gathering information from client...
2022/03/15 12:03:39 Gathering information from termite client...
2022/03/15 12:03:39 Client version: v1.5.1
2022/03/15 12:03:39 A new encrypted termite (1.5.1) income connection from 5.6.7.8:49968
2022/03/15 12:03:39 Encrypted fire in the hole: [a6c8132b0962add731ab068eaada7f18] tcp://5.6.7.8:49968 [🐧]
2022/03/15 12:03:40 Gathering information from client...
2022/03/15 12:03:40 Gathering information from termite client...
2022/03/15 12:03:40 Client version: v1.5.1
2022/03/15 12:03:40 A new encrypted termite (1.5.1) income connection from 9.10.11.12:50948
2022/03/15 12:03:40 Encrypted fire in the hole: [80991a0f0111d83f5a7c0e2d62087188] tcp://9.10.11.12:50948 [🐧]
» Killed

Originally posted by @didayeda in https://github.com/WangYihang/Platypus/issues/117#issuecomment-1067914282

WangYihang avatar Mar 16 '22 05:03 WangYihang

  • https://github.com/WangYihang/Platypus/issues/117#issuecomment-1067920258
2022/03/15 12:10:23 Encrypted fire in the hole: [80991a0f0111d83f5a7c0e2d62087188] tcp://9.10.11.12:51126 [🐧]
2022/03/15 12:10:23 Gathering information from client...
2022/03/15 12:10:23 Gathering information from termite client...
2022/03/15 12:10:23 Client version: v1.5.1
2022/03/15 12:10:23 A new encrypted termite (1.5.1) income connection from 5.6.7.8:50962
2022/03/15 12:10:23 Encrypted fire in the hole: [a6c8132b0962add731ab068eaada7f18] tcp://5.6.7.8:50962 [🐧]
2022/03/15 12:10:24 Gathering information from client...
2022/03/15 12:10:24 Gathering information from termite client...
2022/03/15 12:10:24 Client version: v1.5.1
2022/03/15 12:10:24 A new encrypted termite (1.5.1) income connection from 1.2.3.4:60802
2022/03/15 12:10:24 Encrypted fire in the hole: [d32556bd7945324f6918c130e1c6611d] tcp://1.2.3.4:60802 [🐧]
» Killed
root@ONEVPS220304010421:/Platypus/build/platypus# ps -al
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 0 1389165 21521 9 80 0 - 382322 futex_ pts/2 06:52:49 merlinServer-Li
4 S 0 2952052 2951614 0 80 0 - 2410 ia32_s pts/4 00:00:00 screen
4 S 0 2964011 2919955 0 80 0 - 2410 ia32_s pts/7 00:00:00 screen
0 S 0 2964320 2964013 0 80 0 - 5244 poll_s pts/8 00:00:00 python3
4 S 0 2964734 2964426 0 80 0 - 2410 ia32_s pts/9 00:00:00 screen
0 S 0 2965420 2964736 0 80 0 - 5835 poll_s pts/11 00:00:00 python3
4 S 0 2965737 2885873 0 80 0 - 2410 ia32_s pts/10 00:00:00 screen
0 S 0 2969482 2969049 0 80 0 - 347653 futex_ pts/12 00:00:00 platypus_linux_
0 R 0 2970495 2917076 0 80 0 - 2850 - pts/5 00:00:00 ps
root@ONEVPS220304010421:/Platypus/build/platypus#

WangYihang avatar Mar 16 '22 05:03 WangYihang

@didayeda,师傅我好像没太看懂,你的意思是 Platypus 的服务端被 Kill 了是吧。

WangYihang avatar Mar 16 '22 05:03 WangYihang

是滴,不过我感觉应该是screen 的问题,直接起动程序就没问题。在screen里面启动会被自动killed。

didayeda avatar Mar 16 '22 07:03 didayeda

师傅要不试试把 Platypus 放在 tmux 里面试试?(我一直都用的是 tmux)。

这个问题看起来有可能是消耗资源过多被内核杀掉了,应该大概率是 Out of Memory,看看内核日志里面怎么说的。 师傅方便贴一下如下命令的执行结果吗?

dmesg -T | grep -E -i -B100 'killed process'

如果是的话,那根本原因就是我技不如人写的代码太烂了,有什么资源可能申请了没有释放。

WangYihang avatar Mar 16 '22 09:03 WangYihang

命令执行的结果是空的。

didayeda avatar Mar 17 '22 00:03 didayeda

确实很奇怪了...师傅要不试试看看用 tmux 跑看看会不会出现相同的情况?

tmux new ./platypus

WangYihang avatar Mar 17 '22 03:03 WangYihang