Sharing iLok's on Mac OS server

Hello.
I need to run VirtualHere Server on macOS 10.15. I need to sharing iLok's. How can I make specific ports restart after the iLok is disconnected from client? I've already installed uhubctl, but I can't configure it. My hubs support PPPS. iLok Manager is not installed.

#2

Try this,

While the iLok is not in use, right click on it in the VirtualHere client and select Custom Event Handler and paste in exactly this:

power_cycle_port

Does that cause the iLok light to go off and on? If so, power cycle is working, if not then its some issue with your hub. What hub is it?

 

#3

My hub is a D-Link DUB H7. Previously, it was connected to a server running on a Raspberry Pi 4, and the hub worked flawlessly, so it’s definitely the correct revision. I tried your command, and it behaves strangely. On one computer, it just works; on another, it shows an "iLok Sharing Error"; and on a third, it also shows an error, but the plugins work. What other options are there? I should mention right away that going back to the Raspberry Pi is not an option and not something I want to do.

#4

It works fine for me. So i think you are running some sort of software on the mac server that uses licenses from the dongle.

On the mac server open Terminal and type

sudo launchctl list

Does it show any iLok (paceap) or other similar things listed.

 

#5

How to make power_cycle_port trigger when iLok is disconnected from the client?

#6

That setting is automatically there for a Linux server (but not Mac OS Server). So i have updated the VirtualHere Server for Mac OS to a new version.

Stop and exit the existing VirtualHere server on the Mac if it is currently running. 

Download and run this new version instead. It will automatically power_cycle the iLok port when required.

https://www.virtualhere.com/sites/default/files/usbserver/test/VirtualHereServerUniversal.dmg

Let me know if it works OK for you now.

 

#7

It works, but after disconnect iLok from client, server is crashing

Максим Леонтьев, [03.03.2025 11:45]
Mon Mar  3 11:35:56 2025 LOG_INFO    >>> Starting VirtualHere USB Server v4.7.6 (Built: Mar  1 2025, 09:23:10)<<<
Mon Mar  3 11:35:56 2025 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
Mon Mar  3 11:35:56 2025 LOG_INFO    Using configuration /Users/admin/config.ini
Mon Mar  3 11:35:56 2025 LOG_INFO    Server licensed to=CK22102TEUH max_devices=unlimited
Mon Mar  3 11:35:56 2025 LOG_INFO    Listening on all network interfaces at TCP port 7575 (IPv6 dual-stack)
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4295242475 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:35:56 2025 LOG_INFO    Found Full speed device [088e:5036] "iLok, iLok" at address 4245946368
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4295243246 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:35:56 2025 LOG_INFO    Found Full speed device [046d:c31c] "Logitech, USB Keyboard" at address 4248047616
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4294968105 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:35:56 2025 LOG_INFO    Found Full speed device [0557:8021] "0x0557, 0x8021" at address 4248043520
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4294968086 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe00002c2
Mon Mar  3 11:35:56 2025 LOG_INFO    Found High speed device [2001:f103] "0x2001, 0xf103" at address 4245684224
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4294968123 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe00002c2
Mon Mar  3 11:35:56 2025 LOG_INFO    Found Super speed device [0bc2:2038] "Seagate, Expansion HDD" at address 5242880
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4294968123 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe00002c2
Mon Mar  3 11:35:56 2025 LOG_INFO    Found Super speed device [0bc2:2038] "Seagate, Expansion HDD" at address 6291456
Mon Mar  3 11:35:56 2025 LOG_INFO    Error (0x00, 0x0000, 0x0000) finding plugin interface for usb device 4294968378
Mon Mar  3 11:35:56 2025 LOG_INFO    Failed to load descriptors for device 4294968378
Mon Mar  3 11:35:56 2025 LOG_INFO    Error (0x00, 0x0000, 0x0000) finding plugin interface for usb device 4294968309
Mon Mar  3 11:35:56 2025 LOG_INFO    Failed to load descriptors for device 4294968309
Mon Mar  3 11:35:56 2025 LOG_INFO    Hub 4294968123 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe00002c2
Mon Mar  3 11:35:56 2025 LOG_INFO    Found High speed device [05e3:0610] "GenesysLogic, USB2.0 Hub" at address 4194304
Mon Mar  3 11:35:57 2025 LOG_INFO    Hub 4294968123 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe00002c2
Mon Mar  3 11:35:57 2025 LOG_INFO    Found Super speed device [05e3:0612] "0x05e3, IOUSBHostDevice" at address 8388608
Mon Mar  3 11:35:57 2025 LOG_INFO    Hub 4294968086 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe00002c2
Mon Mar  3 11:35:57 2025 LOG_INFO    Found High speed device [0409:005a] "0x0409, 0x005a" at address 4247781376
Mon Mar  3 11:35:57 2025 LOG_INFO    192.168.10.135 connected as connection 1 (Standard TCP)
Mon Mar  3 11:35:58 2025 LOG_INFO    fe80::80b:66d4:6f56:de66 connected as connection 2 (Standard TCP)
Mon Mar  3 11:35:58 2025 LOG_INFO    fe80::10c5:ac52:a33e:a4e7 connected as connection 3 (Standard TCP)
Mon Mar  3 11:35:59 2025 LOG_INFO    fe80::1027:3def:5cc8:f948 connected as connection 4 (Standard TCP)
Mon Mar  3 11:36:02 2025 LOG_INFO    fe80::18d6:a61a:b3d7:6c40 connected as connection 5 (Standard TCP)
Mon Mar  3 11:36:03 2025 LOG_INFO    192.168.10.123 connected as connection 6 (Standard TCP)
Mon Mar  3 11:36:04 2025 LOG_INFO    192.168.10.241 connected as connection 7 (Standard TCP)
Mon Mar  3 11:36:04 2025 LOG_INFO    fe80::10b3:2155:9bc5:92ad connected as connection 8 (Standard TCP)
Mon Mar  3 11:36:07 2025 LOG_INFO    fe80::145e:e57c:eb67:1590 connected as connection 9 (Standard TCP)
Mon Mar  3 11:36:08 2025 LOG_INFO    192.168.10.245 connected as connection 10 (Standard TCP)
Mon Mar  3 11:36:08 2025 LOG_INFO    192.168.10.118 connected as connection 11 (Standard TCP)
Mon Mar  3 11:36:09 2025 LOG_INFO    192.168.10.108 connected as connection 12 (Standard TCP)
Mon Mar  3 11:36:10 2025 LOG_INFO    192.168.10.119 connected as connection 13 (Standard TCP)
Mon Mar  3 11:36:12 2025 LOG_INFO    192.168.10.246 connected as connection 14 (Standard TCP)
Mon Mar  3 11:36:16 2025 LOG_INFO    192.168.10.147 connected as connection 15 (Standard TCP)
Mon Mar  3 11:36:19 2025 LOG_INFO    192.168.10.114 connected as connection 16 (Standard TCP)
Mon Mar  3 11:36:21 2025 LOG_INFO    192.168.10.120 connected as connection 17 (Standard TCP)
Mon Mar  3 11:36:23 2025 LOG_INFO    fe80::4c0:ea66:218e:52aa connected as connection 18 (Standard TCP)
Mon Mar  3 11:36:26 2025 LOG_INFO    Hub 4295242475 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:36:27 2025 LOG_INFO    Hub 4295242475 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:36:27 2025 LOG_INFO    Unmanaging device 4245946368 [088e:5036]
Mon Mar  3 11:36:27 2025 LOG_INFO    Hub 4295242475 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:36:27 2025 LOG_INFO    Found Full speed device [088e:5036] "iLok, iLok" at address 4245946368
Mon Mar  3 11:36:44 2025 LOG_INFO    Device 4245946368 [088e:5036] BOUND to connection 2
Mon Mar  3 11:37:08 2025 LOG_INFO    Hub 4295242475 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:37:11 2025 LOG_INFO    Hub 4295242475 request failed (0x80, 0x06, 0x0f00, 0x0000, 0x0005), error 0xe000404f
Mon Mar  3 11:37:11 2025 LOG_ERR     VirtualHere 4.7.6 caught signal 11 (Segmentation fault: 11) and must exit. Sorry for the inconvenience, please contact mail@virtualhere for help

#8

I have made a fix and re-uploaded. Download again from the link above and give it a try.

#10

All good with your 30 iloks?

#11

Hi! Sorry for not responding for a long time, I didn't have time. The tests showed the following:

1. I have one gray D-LINK DUB-H7 USB-hub and three black D-LINK DUB-H7 USB-hubs (they used to work on a Raspberry Pi server). The gray hub works fine, but the black one disables two ports at once when one iLok is disconnected.
2. To connect an iLok and have it work correctly, it needs to be disconnected and reconnected 2-3 times.
3. After about a week, the server stops responding to any actions except disconnecting in the client. That is, it becomes impossible to connect any device, you can only disconnect. Everything starts working normally only after rebooting the computer. If you just restart the server, it won't start and will throw an error, which can only be read in the log:
  
  Fri Mar 14 10:16:43 2025 LOG_INFO    >>> Starting VirtualHere USB Server v4.7.6 (Built: Mar  3 2025, 19:34:00)<<<
  Fri Mar 14 10:16:43 2025 LOG_WARNING Warning, cannot lookup the exe path, 22 (Invalid argument) (defaulting to HOME)
  Fri Mar 14 10:16:43 2025 LOG_INFO    Using configuration /Users/admin/config.ini
  Fri Mar 14 10:16:43 2025 LOG_INFO    Server licensed to=CK22102TEUH max_devices=unlimited
  Fri Mar 14 10:16:43 2025 LOG_INFO    Error 48 binding socket, Address already in use
  Fri Mar 14 10:16:43 2025 LOG_INFO    Error 48 binding socket, Address already in use
  Fri Mar 14 10:16:43 2025 LOG_ERR     Error starting server
  Fri Mar 14 10:16:44 2025 LOG_INFO    Re-enabling usbmuxd
  Fri Mar 14 10:16:44 2025 LOG_INFO    Re-enabling paceap (iLok)
  Fri Mar 14 10:16:44 2025 LOG_INFO    >>> Shutdown <<<

#12

If you install uhubctl via brew on macOs does it work correctly on the Black Hub, just powering off the single port?

 

#13

Uhubctl has already been installed via brew. In addition, the server application sometimes crashes and displays error 11 in the terminal

#14

No i mean use uhubctrl to switch the port power from the Mac Terminal. I want to see if that works ok or not for you.