Server disconnecting already bound connections when new device tries to be attached by another user

Hi,

We have for a while now been struggling with the problem where connections are unexpectedly being disconnected in the following case:

User A connects
User A mounts device 1

User B connects
User B mounts device 2
User A loses connection to device 1 and needs to remount.

Also see the following log:

11/30/20 06:58:12 LOG_INFO 10.239.28.156 connected as connection 4

11/30/20 06:58:14 LOG_INFO Device 10 [04b9:0300] BOUND to connection 4

11/30/20 08:51:12 LOG_INFO 10.239.28.219 connected as connection 6

11/30/20 08:51:16 LOG_INFO Device 7 [04b9:0300] BOUND to connection 6

11/30/20 09:07:42 LOG_INFO Device 6 [0529:0001] BOUND to connection 6

11/30/20 09:07:42 LOG_INFO Device 10 [04b9:0300] SURPRISE UNBOUND from connection 4

11/30/20 09:07:42 LOG_INFO Unmanaging device 10 [04b9:0300]

11/30/20 09:07:42 LOG_INFO Unmanaging device 4 [0529:0620]

11/30/20 09:07:42 LOG_INFO Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 10

11/30/20 09:07:42 LOG_INFO Found Full speed device [0529:0620] "SafeNet, Token JC" at address 4

11/30/20 09:10:38 LOG_INFO Device 10 [04b9:0300] BOUND to connection 4

VirtualHere server is running on a Windows Server 2019 1809 installed as a service (version 4.2.0)
VirtualHere clients are running on Windows 10 (version 5.1.3)

Any idea what these disconnects are being caused by, and how do we fix it?

Thank you!

#2

Do you have a separately powered USB hub between the server and the dongles?

#3

Hi Michael,

All the dongles are connected to the same externally powered USB Hub.

#5

Hi Michael,

Initial testing shows that it might have fixed the problem. However the problem was not always happening - I will try to test with it a few days and report back once I have some conclusive results. Can I install it as a service or should I keep it running without?

Also what changes are there in this build?

Thank you for your help.

#6

You can install it as a service. It uses a different system to redirect the usb device

#7

Hi Michael,

An update on the situation:

We have been running with your custom build for a few days without noticing any problems. Yesterday however suddenly all dongles were disconnected without any user interaction at approx. 13:55

Please see attached log for the day until the incident. What I also find weird is that "Device 10" gets unbound at 12:01 and again at 12:55 with no log entries in between saying it was bound?

2020-12-07 06:58:35 INFO :10.239.28.156 connected as connection 39
2020-12-07 06:58:37 INFO :Unmanaging device 10 [04b9:0300]
2020-12-07 06:58:37 INFO :Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 10
2020-12-07 06:58:37 INFO :Device 10 [04b9:0300] BOUND to connection 39
2020-12-07 08:47:55 INFO :10.239.28.219 connected as connection 41
2020-12-07 08:50:09 INFO :Unmanaging device 7 [04b9:0300]
2020-12-07 08:50:09 INFO :Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 7
2020-12-07 08:50:09 INFO :Device 7 [04b9:0300] BOUND to connection 41
2020-12-07 08:50:13 INFO :Unmanaging device 6 [0529:0001]
2020-12-07 08:50:13 INFO :Found Full speed device [0529:0001] "SafeNet Inc., Sentinel HL" at address 6
2020-12-07 08:50:13 INFO :Device 6 [0529:0001] BOUND to connection 41
2020-12-07 12:01:36 INFO :Connection 1 successfully removed (reason:timeout)
2020-12-07 12:01:37 INFO :Device 10 [04b9:0300] UNBOUND from connection 39
2020-12-07 12:01:37 INFO :Unmanaging device 10 [04b9:0300]
2020-12-07 12:01:37 INFO :Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 10
2020-12-07 12:01:38 INFO :Connection 39 successfully removed (reason:timeout)
2020-12-07 12:01:39 INFO :Connection 3 successfully removed (reason:timeout)
2020-12-07 12:01:59 INFO :10.239.27.92 connected as connection 44
2020-12-07 12:02:03 INFO :10.239.28.156 connected as connection 45
2020-12-07 12:02:05 INFO :Device 7 [04b9:0300] UNBOUND from connection 41
2020-12-07 12:02:05 INFO :Unmanaging device 7 [04b9:0300]
2020-12-07 12:02:05 INFO :Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 7
2020-12-07 12:02:05 INFO :Device 6 [0529:0001] UNBOUND from connection 41
2020-12-07 12:02:05 INFO :Unmanaging device 6 [0529:0001]
2020-12-07 12:02:05 INFO :Connection 41 successfully removed (reason:timeout)
2020-12-07 12:02:06 INFO :Found Full speed device [0529:0001] "SafeNet Inc., Sentinel HL" at address 6
2020-12-07 12:02:16 INFO :Connection 44 successfully removed (reason:timeout)
2020-12-07 12:02:16 INFO :Connection 45 successfully removed (reason:timeout)
2020-12-07 12:02:34 INFO :10.239.28.156 connected as connection 46
2020-12-07 12:02:35 INFO :10.239.28.219 connected as connection 47
2020-12-07 12:02:59 INFO :10.239.27.92 connected as connection 48
2020-12-07 12:08:36 INFO :192.168.149.100 connected as connection 49
2020-12-07 13:55:54 INFO :Unmanaging device 10 [04b9:0300]
2020-12-07 13:55:54 INFO :Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 10
2020-12-07 13:55:54 INFO :Device 10 [04b9:0300] BOUND to connection 46
2020-12-07 13:56:33 INFO :Unmanaging device 7 [04b9:0300]
2020-12-07 13:56:33 INFO :Found Full speed device [04b9:0300] "SafeNet Inc., Sentinel HL" at address 7
2020-12-07 13:56:33 INFO :Device 7 [04b9:0300] BOUND to connection 47
2020-12-07 13:56:35 INFO :Unmanaging device 6 [0529:0001]
2020-12-07 13:56:36 INFO :Found Full speed device [0529:0001] "SafeNet Inc., Sentinel HL" at address 6
2020-12-07 13:56:36 INFO :Device 6 [0529:0001] BOUND to connection 47

#8

Log looks ok to me.

Around 12:01 seems your network dropped. So all connections timeout and the clients reconnect back a bit later.

Device 10 seems ok too, was unbound from connection 39 at 12:01:37 because your network dropped and no one used it after that.

At 13:55 all your dongles disconnected. This is unusual, its very likely a power issue. Is it possible someone bumped the plug? What hub are you using? Because i think there is something wrong with it. Just put some dongles into spare usb ports on your server directly (with no hub between) and see if they drop as well sometimes.