Connection problem server console

Started by MarcusH, September 17, 2020, 11:41:27 AM

Previous topic - Next topic

MarcusH

Hi,

running 3.5.90 and the connection with management is unstable, if i run 'show sessions' in server console the output can stop halfway and then after a while the entire client gets Cannot open server console: Request timed out.
If all the output from sessions is recieved it never returns to prompt need to close the server console tab and open it again to type new command

Filipp Sudanov

Hi,

What would happen if you issue
nxadm -c "show sessions"

from server command line? Will it reliably produce output there?

MarcusH

Hi,

no problems using nxadm -c "show sessions" on server

Filipp Sudanov

#3
Let's try to get some logging information. Please issue in server console (or via nxadm):

debug 0
debug client.* 8

then try show sessions again and share server log file for that moment.

Also, please attach console log file - it's located in ~/.nxmc/data/.metadata/.log

MarcusH

Here is the server log.

The console log has no entries for this, everything in this log is from earlier versions.

MarcusH

tested more and some times console is stable except from that prompt does not show half the time after command but i can still run command again, close tab and open console again then it is unstable again very odd

MarcusH

manage to get the timeout with only 1 client connected so less noise in log.
This time show sessions had no problem but when i typed help, no data was recieved to console it stoped working as soon as i hit enter.

Filipp Sudanov

Is your server running on Linux? If yes, can you try getting some more debug information - when you see client hanging on "show sessions", try running
https://github.com/netxms/netxms/blob/master/tools/capture_netxmsd_threads.sh
script on the server. The script requires gdb to be installed on server.
Please run this script 3 times with interval about 30 seconds between.
Each run should produce a file in /tmp
Please share these files.

MarcusH

Server is running on Windows

Though the 30sec interval in running this i don't how that can show anything, if the console times out i can just restart management console and will work instant there is no long running hanging it is just the current network connection for the session that times out.

Filipp Sudanov

On Windows you can create Dump file for netxms process from task manager. Please do this right after you see that  'show sessions' stopped halfway.