VirtualHere will not start when running as a daemon on Ventura 13.6

VirtualHere, which I've run for years, suddenly stopped starting up today, until I reentered:

sudo /Applications/VirtualHereServerUniversal.app/Contents/MacOS/vhusbdosx -b

This, I believe, removed it as a daemon, and it starts when I do this, but of course now osascript wants me to enter a password every time. The log file is not helpful, filled with entries like this:

Fri Jul 19 19:46:23 2024 LOG_INFO    >>> Shutdown <<<
Fri Jul 19 19:46:36 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.6 (Built: Jun 26 2024, 14:21:57)<<<
Fri Jul 19 19:46:36 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Fri Jul 19 19:46:36 2024 LOG_INFO    Using configuration /Users/myuser/config.ini
Fri Jul 19 19:46:36 2024 LOG_INFO    Server licensed to=(alphanumerics removed) max_devices=unlimited
Fri Jul 19 19:46:36 2024 LOG_ERR     Error starting server
Fri Jul 19 19:46:36 2024 LOG_INFO    >>> Shutdown <<<
Fri Jul 19 19:46:45 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.6 (Built: Jun 26 2024, 14:21:57)<<<
Fri Jul 19 19:46:45 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Fri Jul 19 19:46:45 2024 LOG_INFO    Using configuration /Users/myuser/config.ini
Fri Jul 19 19:46:45 2024 LOG_INFO    Server licensed to=(alphanumerics removed) max_devices=unlimited
Fri Jul 19 19:46:45 2024 LOG_ERR     Error starting server
Fri Jul 19 19:46:45 2024 LOG_INFO    >>> Shutdown <<<
 

And so forth. I'm really not sure what to do...I certainly didn't make any major changes I can think of.

#3

Hello there,

Sorry for the very late reply. Life got in the way.

Anyway, that file is 404...

#5

Thu Sep 19 20:45:00 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.8 (Built: Sep 17 2024, 12:16:04)<<<
Thu Sep 19 20:45:00 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Thu Sep 19 20:45:00 2024 LOG_INFO    Using configuration /Users/myusername/config.ini
Thu Sep 19 20:45:00 2024 LOG_INFO    Server licensed to=H2WH42F1Q6NW max_devices=unlimited
Thu Sep 19 20:45:00 2024 LOG_INFO    Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Full speed device [0763:3111] 'M-Audio, Keystation Mini 32 MK3' at address 35917824
Thu Sep 19 20:45:00 2024 LOG_INFO    Hub 4294969282 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Low speed device [05ac:0220] 'Apple, Inc, Apple Keyboard' at address 35725312
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [05ac:1006] 'Apple, Inc., Keyboard Hub' at address 35717120
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 35913728
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0781:55ae] 'SanDisk, Extreme 55AE' at address 34869248
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Full speed device [0944:0117] 'KORG INC., nanoKONTROL2' at address 35782656
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Low speed device [046d:c016] 'Logitech, Optical USB Mouse' at address 34734080
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Full speed device [088e:5036] 'iLok, iLok' at address 34668544
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 34865152
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 35651584
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 39059456
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 40108032
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 38797312
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 39845888
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 34603008
Thu Sep 19 20:45:02 2024 LOG_INFO    Unmanaging device 35917824 [0763:3111]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35725312 [05ac:0220]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35717120 [05ac:1006]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35913728 [0bda:5411]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34869248 [0781:55ae]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35782656 [0944:0117]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34734080 [046d:c016]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34668544 [088e:5036]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34865152 [0bda:5411]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35651584 [0bda:5411]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 39059456 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 40108032 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 38797312 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 39845888 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 34603008 [0bda:5411]
Thu Sep 19 20:45:04 2024 LOG_INFO    >>> Shutdown <<<
Thu Sep 19 20:45:11 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.8 (Built: Sep 17 2024, 12:16:04)<<<
Thu Sep 19 20:45:11 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Thu Sep 19 20:45:11 2024 LOG_INFO    Using configuration /Users/myusername/config.ini
Thu Sep 19 20:45:11 2024 LOG_INFO    Server licensed to=H2WH42F1Q6NW max_devices=unlimited
Thu Sep 19 20:45:11 2024 LOG_INFO    Disabling usbmuxd
Thu Sep 19 20:45:11 2024 LOG_INFO    Disabling paceap (iLok)
Thu Sep 19 20:45:11 2024 LOG_INFO    Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
Thu Sep 19 20:45:11 2024 LOG_INFO    Found Full speed device [0763:3111] 'M-Audio, Keystation Mini 32 MK3' at address 35917824
Thu Sep 19 20:45:11 2024 LOG_INFO    Hub 4294969282 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Thu Sep 19 20:45:11 2024 LOG_INFO    Found Low speed device [05ac:0220] 'Apple, Inc, Apple Keyboard' at address 35725312
Thu Sep 19 20:45:11 2024 LOG_INFO    Found High speed device [05ac:1006] 'Apple, Inc., Keyboard Hub' at address 35717120
Thu Sep 19 20:45:11 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 35913728
Thu Sep 19 20:45:11 2024 LOG_INFO    Found High speed device [0781:55ae] 'SanDisk, Extreme 55AE' at address 34869248
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Full speed device [0944:0117] 'KORG INC., nanoKONTROL2' at address 35782656
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Low speed device [046d:c016] 'Logitech, Optical USB Mouse' at address 34734080
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Full speed device [088e:5036] 'iLok, iLok' at address 34668544
Thu Sep 19 20:45:12 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 34865152
Thu Sep 19 20:45:12 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 35651584
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 39059456
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 40108032
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 38797312
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] 'Generic, USB3.2 Hub' at address 39845888
Thu Sep 19 20:45:12 2024 LOG_INFO    Found High speed device [0bda:5411] 'Generic, USB2.1 Hub' at address 34603008
 

#6

Ok stop and exit the virtualhere server if it is running.

Then run

sudo /Applications/VirtualHereServerUniversal.app/Contents/MacOS/vhusbdosx -b

#7

This added VH to the list of apps allowed to run in the background - daemon, I assume that means, essentially - but upon a reboot the server wouldn't start, and here is the log:

Thu Sep 19 20:44:05 2024 LOG_INFO    192.168.1.206 connected as connection 1 (Standard TCP)
Thu Sep 19 20:45:00 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.8 (Built: Sep 17 2024, 12:16:04)<<<
Thu Sep 19 20:45:00 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Thu Sep 19 20:45:00 2024 LOG_INFO    Using configuration /Users/myusername/config.ini
Thu Sep 19 20:45:00 2024 LOG_INFO    Server licensed to=H2WH42F1Q6NW max_devices=unlimited
Thu Sep 19 20:45:00 2024 LOG_INFO    Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Full speed device [0763:3111] "M-Audio, Keystation Mini 32 MK3" at address 35917824
Thu Sep 19 20:45:00 2024 LOG_INFO    Hub 4294969282 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Low speed device [05ac:0220] "Apple, Inc, Apple Keyboard" at address 35725312
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [05ac:1006] "Apple, Inc., Keyboard Hub" at address 35717120
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 35913728
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0781:55ae] "SanDisk, Extreme 55AE" at address 34869248
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Full speed device [0944:0117] "KORG INC., nanoKONTROL2" at address 35782656
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Low speed device [046d:c016] "Logitech, Optical USB Mouse" at address 34734080
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Full speed device [088e:5036] "iLok, iLok" at address 34668544
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 34865152
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 35651584
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 39059456
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 40108032
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 38797312
Thu Sep 19 20:45:00 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 39845888
Thu Sep 19 20:45:00 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 34603008
Thu Sep 19 20:45:02 2024 LOG_INFO    Unmanaging device 35917824 [0763:3111]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35725312 [05ac:0220]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35717120 [05ac:1006]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35913728 [0bda:5411]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34869248 [0781:55ae]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35782656 [0944:0117]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34734080 [046d:c016]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34668544 [088e:5036]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 34865152 [0bda:5411]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 35651584 [0bda:5411]
Thu Sep 19 20:45:03 2024 LOG_INFO    Unmanaging device 39059456 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 40108032 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 38797312 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 39845888 [0bda:0411]
Thu Sep 19 20:45:04 2024 LOG_INFO    Unmanaging device 34603008 [0bda:5411]
Thu Sep 19 20:45:04 2024 LOG_INFO    >>> Shutdown <<<
Thu Sep 19 20:45:11 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.8 (Built: Sep 17 2024, 12:16:04)<<<
Thu Sep 19 20:45:11 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Thu Sep 19 20:45:11 2024 LOG_INFO    Using configuration /Users/myusername/config.ini
Thu Sep 19 20:45:11 2024 LOG_INFO    Server licensed to=H2WH42F1Q6NW max_devices=unlimited
Thu Sep 19 20:45:11 2024 LOG_INFO    Disabling usbmuxd
Thu Sep 19 20:45:11 2024 LOG_INFO    Disabling paceap (iLok)
Thu Sep 19 20:45:11 2024 LOG_INFO    Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
Thu Sep 19 20:45:11 2024 LOG_INFO    Found Full speed device [0763:3111] "M-Audio, Keystation Mini 32 MK3" at address 35917824
Thu Sep 19 20:45:11 2024 LOG_INFO    Hub 4294969282 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Thu Sep 19 20:45:11 2024 LOG_INFO    Found Low speed device [05ac:0220] "Apple, Inc, Apple Keyboard" at address 35725312
Thu Sep 19 20:45:11 2024 LOG_INFO    Found High speed device [05ac:1006] "Apple, Inc., Keyboard Hub" at address 35717120
Thu Sep 19 20:45:11 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 35913728
Thu Sep 19 20:45:11 2024 LOG_INFO    Found High speed device [0781:55ae] "SanDisk, Extreme 55AE" at address 34869248
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Full speed device [0944:0117] "KORG INC., nanoKONTROL2" at address 35782656
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Low speed device [046d:c016] "Logitech, Optical USB Mouse" at address 34734080
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Full speed device [088e:5036] "iLok, iLok" at address 34668544
Thu Sep 19 20:45:12 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 34865152
Thu Sep 19 20:45:12 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 35651584
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 39059456
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 40108032
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 38797312
Thu Sep 19 20:45:12 2024 LOG_INFO    Found Super speed device [0bda:0411] "Generic, USB3.2 Hub" at address 39845888
Thu Sep 19 20:45:12 2024 LOG_INFO    Found High speed device [0bda:5411] "Generic, USB2.1 Hub" at address 34603008
Thu Sep 19 20:45:37 2024 LOG_INFO    192.168.1.206 connected as connection 1 (Standard TCP)
Thu Sep 19 21:27:08 2024 LOG_INFO    Connection 1 successfully removed (reason:server shutdown)
Thu Sep 19 21:27:08 2024 LOG_INFO    Connection 1 successfully removed (reason:timeout)
Thu Sep 19 21:27:08 2024 LOG_INFO    Re-enabling usbmuxd
Thu Sep 19 21:27:09 2024 LOG_INFO    Re-enabling paceap (iLok)
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 35917824 [0763:3111]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 35725312 [05ac:0220]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 35717120 [05ac:1006]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 35913728 [0bda:5411]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 34869248 [0781:55ae]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 35782656 [0944:0117]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 34734080 [046d:c016]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 34668544 [088e:5036]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 34865152 [0bda:5411]
Thu Sep 19 21:27:09 2024 LOG_INFO    Unmanaging device 35651584 [0bda:5411]
Thu Sep 19 21:27:10 2024 LOG_INFO    Unmanaging device 39059456 [0bda:0411]
Thu Sep 19 21:27:10 2024 LOG_INFO    Unmanaging device 40108032 [0bda:0411]
Thu Sep 19 21:27:10 2024 LOG_INFO    Unmanaging device 38797312 [0bda:0411]
Thu Sep 19 21:27:10 2024 LOG_INFO    Unmanaging device 39845888 [0bda:0411]
Thu Sep 19 21:27:10 2024 LOG_INFO    Unmanaging device 34603008 [0bda:5411]
Thu Sep 19 21:27:20 2024 LOG_INFO    >>> Shutdown <<<
Thu Sep 19 21:27:36 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.8 (Built: Sep 17 2024, 12:16:04)<<<
Thu Sep 19 21:27:36 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Thu Sep 19 21:27:36 2024 LOG_INFO    Using configuration /Users/myusername/config.ini
Thu Sep 19 21:27:36 2024 LOG_INFO    >>> Shutdown <<<
Thu Sep 19 21:28:44 2024 LOG_INFO    >>> Starting VirtualHere USB Server v4.6.8 (Built: Sep 17 2024, 12:16:04)<<<
Thu Sep 19 21:28:44 2024 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Thu Sep 19 21:28:44 2024 LOG_INFO    Using configuration /Users/myusername/config.ini
Thu Sep 19 21:28:44 2024 LOG_INFO    Server licensed to=H2WH42F1Q6NW max_devices=unlimited
Thu Sep 19 21:28:44 2024 LOG_INFO    Error 48 binding socket, Address already in use
Thu Sep 19 21:28:44 2024 LOG_INFO    Error 48 binding socket, Address already in use
Thu Sep 19 21:28:44 2024 LOG_ERR     Error starting server
Thu Sep 19 21:28:44 2024 LOG_INFO    >>> Shutdown <<<
 

#8

After it boots can you run

ps -ef | grep vhusbdosx

in terminal. Does it show anything?

 

#9

0   337     1   0  9:28PM ??         0:30.01 /Applications/VirtualHereServerUniversal.app/Contents/MacOS/vhusbdosx -o -r /var/log/vhusbd.log -c /Library/vhusbd.ini
 501  2286  2275   0  6:56PM ttys000    0:00.00 grep vhusbdosx

#10

Ok well its running fine. So you should be able to connect

#11

That actually clued me into the solution.

I had it in the startup items, so it was trying to start twice.