NetXMS Support Forum

English Support => General Support => Topic started by: MarcusH on September 17, 2020, 11:41:27 AM

Title: Connection problem server console
Post by: MarcusH on September 17, 2020, 11:41:27 AM
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
Title: Re: Connection problem server console
Post by: Filipp Sudanov on September 17, 2020, 01:59:49 PM
Hi,

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

from server command line? Will it reliably produce output there?
Title: Re: Connection problem server console
Post by: MarcusH on September 17, 2020, 03:07:35 PM
Hi,

no problems using nxadm -c "show sessions" on server
Title: Re: Connection problem server console
Post by: Filipp Sudanov on September 17, 2020, 07:39:18 PM
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
Title: Re: Connection problem server console
Post by: MarcusH on September 18, 2020, 08:34:58 AM
Here is the server log.

The console log has no entries for this, everything in this log is from earlier versions.
Title: Re: Connection problem server console
Post by: MarcusH on September 18, 2020, 09:05:16 AM
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
Title: Re: Connection problem server console
Post by: MarcusH on September 18, 2020, 09:17:05 AM
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.
Title: Re: Connection problem server console
Post by: Filipp Sudanov on September 25, 2020, 02:04:33 PM
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.
Title: Re: Connection problem server console
Post by: MarcusH on September 25, 2020, 02:11:48 PM
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.
Title: Re: Connection problem server console
Post by: Filipp Sudanov on September 30, 2020, 05:54:07 PM
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.