Server won't start on Ubuntu

Hello, I've just setup a new Ubuntu 14.04 server and installed VH (vhusbdx86_64 v2.6.2), but it won't start either in foreground, background or at startup. Syslog shows:

>>> Starting v2.6.2 (Built: Nov 26 2015, 20:49:28)<<<
Using configuration /usr/sbin/config.ini
Server licensed to=unlicensed max_devices=1
Using large URB's
TCPServer starting...
Error starting server
>>> Shutdown <<<

This is all within the space of a second.

That config.ini file only contains:

It=1448587352

Is there anything else I need to do?

#2

I just downloaded fresh copies of the x86_64 and i386 server packages into new directories and both display the same error.

#3

Not that it should matter, but I should point out I'm running 14.04 x64 under VMWare if that makes a difference. I previously tested VH on an RPi and it worked without a hitch.

#4

Thats strange, i havent seen that before. I develop and test virtualhere on vmware all the time and i just tried then on ubuntu 15.10 and it worked fine, looking through the code the only place it might fail without saying anything if there is no network connection at all which i dont think is the case. if you do ls /sys/class/net does it show any interfaces besides localhost?

#5

It shows eth0, which is getting DHCP and gets on the network fine, and lo.

#6

I think something is wrong with your vmware image. i just downloaded 14.04 ubuntu and did this and it worked fine:

michael@ubuntu:~$ wget http://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
--2015-11-26 20:21:24-- http://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
Resolving www.virtualhere.com (www.virtualhere.com)... 162.243.139.213
Connecting to www.virtualhere.com (www.virtualhere.com)|162.243.139.213|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2587016 (2.5M) [application/octet-stream]
Saving to: ‘vhusbdx86_64’

100%[==============================================================================================================================================================>] 2,587,016 553KB/s in 6.1s

2015-11-26 20:21:30 (412 KB/s) - ‘vhusbdx86_64’ saved [2587016/2587016]

michael@ubuntu:~$ chmod +x ./vhusbdx86_64
michael@ubuntu:~$ sudo ./vhusbdx86_64 -b
[sudo] password for michael:
michael@ubuntu:~$ tail -f /var/log/syslog
Nov 26 20:21:40 ubuntu vhusbdx86_64[4627]: >>> Starting v2.6.2 (Built: Nov 26 2015, 20:49:28)<<<
Nov 26 20:21:40 ubuntu vhusbdx86_64[4627]: Using configuration /home/michael/config.ini
Nov 26 20:21:40 ubuntu vhusbdx86_64[4628]: Server licensed to=unlicensed max_devices=1
Nov 26 20:21:40 ubuntu vhusbdx86_64[4628]: Using large URB's
Nov 26 20:21:40 ubuntu vhusbdx86_64[4628]: TCPServer starting...
Nov 26 20:21:40 ubuntu vhusbdx86_64[4628]: Listening on all network interfaces at port 7575
Nov 26 20:21:40 ubuntu vhusbdx86_64[4628]: Found Full speed device [0e0f:0003] "VMware, VMware Virtual USB Mouse" at address 21
Nov 26 20:21:44 ubuntu vhusbdx86_64[4628]: Callback: #033VirtualHere USB Sharing (7)#006_vhusb#004_tcp#005local Name Registered

#7

I have with exactly the same issue. Used Ubuntu 14.0.4.5 and 16.0.4.3.
Error starting server
>>> Shutdown <<<

#8

Do this and post the output here:

wget https://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
chmod +x ./vhusbdx86_64 
sudo ./vhusbdx86_64 -r stdout
#9

After redownloading it all worked.

#10

I am having the exact same issue with Solus (x86_64):

mathieu@solus-desktop ~/.config/virtualhere $ wget http://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
--2018-08-15 21:08:55-- http://www.virtualhere.com/sites/default/files/usbserver/vhusbdx86_64
Resolving www.virtualhere.com... 162.243.139.213
Connecting to www.virtualhere.com|162.243.139.213|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 387000 (378K) [application/octet-stream]
Saving to: ‘vhusbdx86_64’
vhusbdx86_64 100%[===========================================>] 377.93K 51.2KB/s in 7.9s
2018-08-15 21:09:04 (47.7 KB/s) - ‘vhusbdx86_64’ saved [387000/387000]
mathieu@solus-desktop ~/.config/virtualhere $ chmod +x ./vhusbdx86_64
mathieu@solus-desktop ~/.config/virtualhere $ sudo ./vhusbdx86_64 -r stdout.log
Password:
mathieu@solus-desktop ~/.config/virtualhere $ cat stdout.log
Wed Aug 15 21:09:38 2018 LOG_INFO >>> Starting VirtualHere USB Server v3.6.9 (Built: Aug 7 2018, 20:38:45)<<<
Wed Aug 15 21:09:38 2018 LOG_INFO Using configuration /home/mathieu/.config/virtualhere/config.ini
Wed Aug 15 21:09:38 2018 LOG_INFO Server licensed to=unlicensed max_devices=1
Wed Aug 15 21:09:38 2018 LOG_INFO Using large URB's
Wed Aug 15 21:09:38 2018 LOG_ERR Error starting server
Wed Aug 15 21:09:38 2018 LOG_INFO >>> Shutdown <<<

Any ideas?

#11

Apparently all I needed was a reboot! Perhaps this should be added in the instructions (unless I missed it, sorry if I did)?

#12

However I don't understand why this was needed, since Virtualhere requires no installation. I guess something was wrong on my system, regardless of Virtualhere. Sorry for the noise.

#13

Starting the virtualhere server does not require a reboot.

#14

Absolutely, I replied to myself later to add a message and acknowledge that it was probably not related to Virtualhere, but I still cannot understand what caused the issue.