Random disconnecting / no reconnect

We're experiencing massive troubles, using an QNAP TS-231+ as virthere server.
The NAS is connected via Netgear R7000 to a server.

The connection seems to work fine, running the virthui64.exe as a service or directly. Every one in a while, sometimes when the router reconnects the WAN, sometimes with no reproducible situation, the VirtualHere client looses connection. Most of the time it will regain connection, as soon as possible, but then the USB devices aren't recognized in the device manager.

Sometimes helps to switch USB ports at the NAS device, sometimes a server reboot is required which is a really ridicule thing and not explainable to the end user (my customer). Sometimes even this does not help and also a NAS reboot is required.

I really need your help, finding the solution for this.

Jonas

#2

so the scenario is this?

You have a virtualhere client connected and using USB devices at a QNAP NAS
The network connection drops for whatever reason.
The virtualhere client connects back when the network is back up
The virtualhere client tries to use the devices but nothing happens, the devices dont appear attached in the client anymore?

What QTS version are you running?

What sort of devices are you using via virtualhere?

We're using an Alladin Hardlock and a Kobil Systems SAAN III
The QTS is 4.2.0 Build 20160311 but we had this in earlier versions

The ISP disconnects every 24 hours, however, there is a VPN which reliably reconnects after disconnection. The VirtualHere window or the "LIST" command also says that the device is connected and "in use by ", since both devices have the auto-use flag activated.

In the windows (server 2k8 r2 enterprise) device manager one of the devices or both of the devices are not shown (not always; it's random). That means the devices aren't usable by the e.g. license managing software which results in 15 people cannot work.

The solution varies from
- unplugging the usb devices and plugging them back in
- see above but plugging them back in into a different USB slot
- restarting the windows server
- restarting the NAS
- deleting the devices in windows registry
- updating virtualhere (if a newer version is available)

I appreciate any ideas to solve this issue.

Also - not sure if that relates to the problem - you have to be logged into the windows computer, even though the virtualhere is running as a service, to have the devices being connected by virtualhere.

#5

Perhaps we should try turning of AutoAttachToKernel as maybe the qnap kernel is trying to grab the device after the connection is dropped and gets stuck.

Stop the virtualhere server, using the QTS App Center -> VirtualHere -> Stop

ssh to the qnap and then go to the directory of the app which is in /share/HDA_DATA/.qpkg/VirtualHere
edit the config.ini using vi ./config.ini, then add the line

AutoAttachToKernel=0

then save the config.ini and exit ssh and then start the virtualhere server using QTS. See if that fixes the issue