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

同时搭建服务端和客户端无法正常显示 #11

Open
M1r0ku opened this issue Jan 29, 2020 · 12 comments
Open

同时搭建服务端和客户端无法正常显示 #11

M1r0ku opened this issue Jan 29, 2020 · 12 comments
Labels
help wanted Extra attention is needed

Comments

@M1r0ku
Copy link

M1r0ku commented Jan 29, 2020

服务器A同时搭了服务端和客户端,服务器B只搭建了客户端。只能正常显示B的信息,A的全部信息都无法显示,一直在图中的状态以及红色的维护中切换,以下是nohup.out文件内容:

nohup: ignoring input
Connecting...
Authentication successful. Access granted.
^@^@You are connecting via: IPv4
^@^@
Timeout.
^@^@
Timeout.
^@^@
Disconnected...
Connecting...
Authentication successful. Access granted.
^@^@You are connecting via: IPv4
^@^@
Timeout.
^@^@
Timeout.
^@^@
Disconnected...
Connecting...
Authentication successful. Access granted.
^@^@You are connecting via: IPv4
^@^@
~             

image

@cokemine
Copy link
Owner

这很奇怪。
能否提供一下是什么系统
还有会不会是占用过高没资源导致的?

@M1r0ku
Copy link
Author

M1r0ku commented Jan 29, 2020

系统是Centos7。应该不会是资源问题,因为剩余的CPU,内存之类的资源还有挺多的,另外其他搭建了客户端的服务器对接过来也没有问题 orz

@cokemine
Copy link
Owner

这我不太清楚了....那这么说服务端是不会有问题的。
你有没有试过从别的服务器建一个服务端然后那那台机去试一下

@M1r0ku
Copy link
Author

M1r0ku commented Jan 29, 2020

我再看看吧,先谢谢啦qaq

@ilay1678
Copy link

ilay1678 commented Mar 4, 2020

我也遇到了,应该是python版本问题,我的系统默认python版本为3.81,通过修改/etc/init.d/status-client第41行,将
nohup python "$BIN" > /tmp/serverstatus_client.log 2>&1 &
修改为
nohup python2 "$BIN" > /tmp/serverstatus_client.log 2>&1 &
然后重启客户端,解决

@M1r0ku
Copy link
Author

M1r0ku commented Mar 4, 2020

我也遇到了,应该是python版本问题,我的系统默认python版本为3.81,通过修改/etc/init.d/status-client第41行,将
nohup python "$BIN" > /tmp/serverstatus_client.log 2>&1 &
修改为
nohup python2 "$BIN" > /tmp/serverstatus_client.log 2>&1 &
然后重启客户端,解决

感谢感谢!

@Cathgao
Copy link

Cathgao commented Apr 14, 2020

centos7测试问题如楼主,本机得全部信息无法显示远程没有问题。使用楼上方法依然无法解决

QQ截图20200414223728

@Cathgao
Copy link

Cathgao commented Apr 14, 2020

centos7测试问题如楼主,本机得全部信息无法显示远程没有问题。使用楼上方法依然无法解决

centos7测试问题如楼主,本机得全部信息无法显示远程没有问题。使用楼上方法依然无法解决

系统为centos7,内核5.6.2-1.el7.elrepo.x86_64

@dellhp369
Copy link

dellhp369 commented May 9, 2020

同样的问题, 改为python2, 也无法解决, 猜测recv那里出的问题, 还没时间细调试.

@dellhp369
Copy link

已解决, 粗暴的注释掉173行的recv可解决.

@KorenKrita
Copy link

已解决, 粗暴的注释掉173行的recv可解决.

你好,能麻烦详细说明一下是注释哪里么,遇到了同样的问题

@KorenKrita
Copy link

已解决, 粗暴的注释掉173行的recv可解决.

你好,能麻烦详细说明一下是注释哪里么,遇到了同样的问题

找到了,在/usr/local/ServerStatus/client/status-client.py,但是我是在169行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

6 participants