Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

客户端列表清空,以及stop似乎不能终止进程 #46

Open
void285 opened this issue Dec 6, 2019 · 1 comment
Open

客户端列表清空,以及stop似乎不能终止进程 #46

void285 opened this issue Dec 6, 2019 · 1 comment

Comments

@void285
Copy link

void285 commented Dec 6, 2019

发现一些未知原因可能导致客户端列表清空,以及./service stop似乎不能按预期终止进程。

两个出现客户端列表清空的情景:
1、服务端正常运行中,修改了rc.local,然后大意重新运行了/etc/rc.local,之后页面上的客户端消失了,显示“No data yet, please add nodes following the guide.”
2、正常运行了2个多小时后,发现客户端列表突然被清空了,显示“No data yet, please add nodes following the guide.”

image

解决问题的终端输出记录,显示stop未能终止进程:

在此之前运行了过一次`service stop`了,输出结果除了stopping还有前面的一行,不过输出被覆盖掉看不到了。

root@vps:/usr/local/stathub# ps aux | grep stat
nobody    6332  0.0  3.7 110764 38072 ?        Ssl  05:45   0:23 ./stathub -c conf/stathub.conf
root     20674  0.0  0.0  12944   936 pts/2    S+   12:42   0:00 grep --color=auto stat

root@vps:/usr/local/stathub# ./service stop
stopping

root@vps:/usr/local/stathub# ps aux | grep stat
nobody    6332  0.0  3.7 110764 38072 ?        Ssl  05:45   0:23 ./stathub -c conf/stathub.conf
root     20678  0.0  0.0  12944   904 pts/2    S+   12:42   0:00 grep --color=auto stat

root@vps:/usr/local/stathub# kill 6332

root@vps:/usr/local/stathub# ps aux | grep stat
root     20767  0.0  0.0  12944   936 pts/2    S+   12:45   0:00 grep --color=auto stat

root@vps:/usr/local/stathub# rm -f log/stathub.pid

root@vps:/usr/local/stathub# ./service start >>/usr/local/stathub/log/stathub.log 2>&1

然后页面恢复正常了。

@void285 void285 changed the title 重复运行程序导致客户端都不见了,以及stop似乎不能终止程序 客户端列表清空,以及stop似乎不能终止进程 Dec 6, 2019
@likexian
Copy link
Owner

likexian commented Dec 7, 2019

好的,我试试能不能重现出来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants