Hi,
I would like to get some guidance in regards to why would we get SOCKET ERROR messages in streamviewer?
We are sending SSH commands to a device which we can ping and log in using the credentials that DataMiner uses to log in.
We know that it is very unlikely to be a protocol driver issue ( Juniper 3.0.0.4 driver) because we have other elements running the same version and not having any issues.
Image for reference:
Thanks!
Hi Jeeva,
The protocol driver is Juniper Networks Manager 3.0.0.4. We’ve checked the credentials and they are fine as well. how could we check if any other application is accessing the SSH session using the IP port?
Hi Carlos,
There are no specific ways to find which application is accessing the port. Usually, the port is occupied by either the Device GUI (Standalone GUI or Web GUI) or SSH Terminal. Please make sure all these are closed and restart the element again.
I see that you are using port 22. Would you also please try to use port 23 for the IP Port instead?
Hi Jeeva,
We are not allowed to change the port to 23. And the fact that it is working on the other 7 Juniper devices we have, makes it a bit odd.
Hi Carlos,
Are you able to verify if connectivity towards the device from the DataMiner server is working as expected?
An easy way to verify this is by opening an SSH connection using putty (or similar) from the DataMiner server (which hosts the element) towards this specific Juniper.
If that's working, it might be interesting to have a look at the SSH log file for the DataMiner server. This is logging is available on the logging pages in the system center.
Hi Ive,
Thanks for your response. We have checked the connection to the element, we can successfully log in through SSH using the credentials that DataMiner uses, so I think that part is working as expected.
From the SSH log file I can see this: “timeout: socket is not established”
2021-11-19 17:00:13 – 24 – Open 10.176.255.245
2021-11-19 17:00:13 – 24 – ‘Open’ completed
2021-11-19 17:00:13 – 24 – Set Timeout 10000
2021-11-19 17:00:13 – 24 – Set Connect Timeout 10000
2021-11-19 17:00:13 – 24 – Connect 22
2021-11-19 17:00:23 – 24 – Connect exception: Tamir.SharpSsh.jsch.JSchException: timeout: socket is not established
at Tamir.SharpSsh.jsch.Util.CreateSocket(String host, Int32 port, Int32 timeout)
at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
at Tamir.SharpSsh.jsch.Session.connect()
at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
at Skyline.SSH.SshConnection.Connect()
2021-11-19 17:00:23 – 24 – Connect complete (10004.3984ms)
2021-11-19 17:00:23 – 24 – Close
2021-11-19 17:00:23 – 24 – Close Shell
2021-11-19 17:00:23 – 24 – Close complete
2021-11-19 17:00:23 – 24 – Open 10.176.255.245
2021-11-19 17:00:23 – 24 – ‘Open’ completed
2021-11-19 17:00:23 – 24 – Set Timeout 10000
2021-11-19 17:00:23 – 24 – Set Connect Timeout 10000
2021-11-19 17:00:23 – 24 – Connect 22
2021-11-19 17:00:33 – 24 – Connect exception: Tamir.SharpSsh.jsch.JSchException: timeout: socket is not established
at Tamir.SharpSsh.jsch.Util.CreateSocket(String host, Int32 port, Int32 timeout)
at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
at Tamir.SharpSsh.jsch.Session.connect()
at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
at Skyline.SSH.SshConnection.Connect()
Hi Carlos,
Can you try to increase the timeout for the SSH connection?
It’s currently set to 10 seconds, can you try to increase it to e.g. 20 seconds?
You can do this in the element edit page under the “Moe TCP/IP settings”
Hi Ive,
It doesn’t seem to improve with the 20 seconds. Still getting the timeout: socket is not established:
2021-11-19 20:19:39 – 25 – Open 10.176.255.245
2021-11-19 20:19:39 – 25 – ‘Open’ completed
2021-11-19 20:19:39 – 25 – Set Timeout 20000
2021-11-19 20:19:39 – 25 – Set Connect Timeout 20000
2021-11-19 20:19:39 – 25 – Connect 22
2021-11-19 20:19:59 – 25 – Connect exception: Tamir.SharpSsh.jsch.JSchException: timeout: socket is not established
at Tamir.SharpSsh.jsch.Util.CreateSocket(String host, Int32 port, Int32 timeout)
at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
at Tamir.SharpSsh.jsch.Session.connect()
at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
at Skyline.SSH.SshConnection.Connect()
2021-11-19 20:19:59 – 25 – Connect complete (20017.1453ms)
2021-11-19 20:19:59 – 25 – Close
2021-11-19 20:19:59 – 25 – Close Shell
2021-11-19 20:19:59 – 25 – Close complete
2021-11-19 20:19:59 – 25 – Open 10.176.255.245
2021-11-19 20:19:59 – 25 – ‘Open’ completed
2021-11-19 20:19:59 – 25 – Set Timeout 20000
2021-11-19 20:19:59 – 25 – Set Connect Timeout 20000
2021-11-19 20:19:59 – 25 – Connect 22
2021-11-19 20:20:19 – 25 – Connect exception: Tamir.SharpSsh.jsch.JSchException: timeout: socket is not established
at Tamir.SharpSsh.jsch.Util.CreateSocket(String host, Int32 port, Int32 timeout)
at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout)
at Tamir.SharpSsh.jsch.Session.connect()
at Tamir.SharpSsh.SshBase.ConnectSession(Int32 tcpPort)
at Tamir.SharpSsh.SshBase.Connect(Int32 tcpPort)
at Skyline.SSH.SshConnection.Connect()
2021-11-19 20:20:19 – 25 – Connect complete (20015.3309ms)
2021-11-19 20:20:19 – 25 – Close
2021-11-19 20:20:19 – 25 – Close Shell
2021-11-19 20:20:19 – 25 – Close complete
2021-11-19 20:20:19 – 25 – Open 10.176.255.245
2021-11-19 20:20:19 – 25 – ‘Open’ completed
2021-11-19 20:20:19 – 25 – Set Timeout 20000
2021-11-19 20:20:19 – 25 – Set Connect Timeout 20000
2021-11-19 20:20:19 – 25 – Connect 22
Hi Carlos,
I believe it’s best to reach out to our support team, so someone can have a closer look at this.
I will, thanks a lot for your help and time Ive!
Hi Carlos,
What is the full driver name? It will be easier for us to check more about the driver.
In the meantime, can you also please check the correct credentials for the SSH of the device?
Socket Error might also happen if another application or terminals are accessing and occupying the IP Port. Can you please check if other application or terminals is accessing the SSH session aside from DataMiner?