Hello,
Here is my system configuration:
- DSM 7.2.1-69057 Update 5
- VirtualHere 4.6.6-1466
My system with the login and password was working fine before a VirtualHere update on my Synology.
When I try to connect to a dongle, I get the following message on the client side: "There was an error using this device."
Here is the VirtualHere server log (virtualhere.log):
Sat Aug 31 18:29:24 CEST 2024 Starting VirtualHere...
Sat Aug 31 18:29:24 2024 LOG_INFO >>> Starting VirtualHere USB Server v4.6.6 (Built: May 28 2024, 09:32:33)<<<
Sat Aug 31 18:29:24 2024 LOG_INFO Using configuration /volume1/@appstore/VirtualHere/config.ini
Sat Aug 31 18:29:24 CEST 2024 Started successfully
Sat Aug 31 18:29:24 2024 LOG_INFO Server licensed to=001132cc49a1 max_devices=unlimited
Sat Aug 31 18:29:24 2024 LOG_INFO Using large URB's
Sat Aug 31 18:29:24 2024 LOG_INFO Listening on all network interfaces at TCP port 17570
Sat Aug 31 18:29:24 2024 LOG_INFO Found High speed device [05e3:0610] "GenesysLogic, USB2.1 Hub" at address 11
Sat Aug 31 18:29:24 2024 LOG_INFO Found Super speed device [05e3:0626] "GenesysLogic, USB3.1 Hub" at address 21
Sat Aug 31 18:29:24 2024 LOG_INFO Found Full speed device [0529:0003] "Gemalto, Sentinel HL" at address 111
Sat Aug 31 18:29:24 2024 LOG_INFO Found Full speed device [04b9:0300] "Gemalto, Sentinel HL" at address 112
Sat Aug 31 18:29:24 2024 LOG_INFO Found Full speed device [04b9:0300] "Gemalto, Sentinel HL" at address 113
Sat Aug 31 18:29:24 2024 LOG_INFO Found Low speed device [0e50:0002] "TDi GmbH - Germany, USB-Chip" at address 114
Sat Aug 31 18:29:27 2024 LOG_INFO 192.168.200.2 connected as connection 1 (Standard TCP)
Sat Aug 31 18:29:52 2024 LOG_ERR Unknown return value 126 from clientAuthorization
Sat Aug 31 18:29:52 2024 LOG_ERR Error binding device 111 [0529:0003] to connection 1, BIND_ERROR
Sat Aug 31 18:46:38 2024 LOG_ERR Unknown return value 126 from clientAuthorization
Sat Aug 31 18:46:38 2024 LOG_ERR Error binding device 111 [0529:0003] to connection 1, BIND_ERROR
Sat Aug 31 19:01:49 2024 LOG_ERR Unknown return value 126 from clientAuthorization
Sat Aug 31 19:01:49 2024 LOG_ERR Error binding device 114 [0e50:0002] to connection 1, BIND_ERROR
I tried reinstalling VirtualHere, but the problem persists.
Here are my steps after the reinstallation:
- I inserted the file auth.sh.
- I stopped the VH Server.
The file config.ini has been edited.
ClientAuthorization=/volume1/@appstore/VirtualHere/auth.sh "$VENDOR_ID$" "$PRODUCT_ID$" "$CLIENT_ID$" "$CLIENT_IP$" "$PRODUCT_SERIAL$" "$PASSWORD$" "$DEVPATH$" "$NICKNAME$" "$NUM_BINDINGS$"
- I granted execute permissions with chmod +x /volume1/@appstore/VirtualHere/auth.sh.
- I restarted the server.
This is my auth.sh for testing: ...
#!/bin/bash
# Example script for performing basic user authorization for virtualhere
# Also includes a simple password protection mechanism for accessing a device
# Return 3 if the user needs to provide a username AND password (or the password is incorrect) to use the device
# Return 2 if the user needs to provide ONLY a password (or the password is incorrect) to use the device. The username defaults to the client OS username
# Return 1 if the user is allowed to access this device
# Return 0 if the user is not allowed to access this device
# Parameters are passed in as:
# $1 = VENDOR_ID
# $2 = PRODUCT_ID
# $3 = CLIENT_ID
# $4 = CLIENT_IP
# $5 = PRODUCT_SERIAL
# $6 = PASSWORD
# $7 = DEVPATH
# $8 = NICKNAME
# $9 = NUM_BINDINGS
logger "Authorizing -> '$1' '$2' '$3' '$4' '$5' '$6' '$7' '$8' '$9'"
# "mypassword" = "34819d7beeabb9260a5c854bc85b3e44" as an MD5 hash
if [ "$6" == "34819d7beeabb9260a5c854bc85b3e44" ]; then
echo "Password ok"
else
exit 2
fi
if [[ "$3" == *"(michael)"* ]]; then
logger "Authorized!"
exit 1
else
logger "NOT authorized"
exit 0
fi
I changed a part of the auth.sh script to test, but it did not resolve the issue:
Original:
if [ "$6" == "34819d7beeabb9260a5c854bc85b3e44" ]; then
rempaced with:if [ "$6" = "34819d7beeabb9260a5c854bc85b3e44" ]; then
Do you have any idea?
Thanks
.
Try running the script directly in the terminal with dummy values (via ssh to the synology) e.g
/volume1/@appstore/VirtualHere/auth.sh "1" "2" "3" "100.100.100.100" "abcd" "pass" "/sys/bus/usb/abcd" "abcd" "1"
Does the script run or return some error?
Here is the command return:…
Here is the command return:
Side client, same issue.
After a complete reinstallation of my Synology, the issue seems to be resolved, really strange...
Thanks anyway.