Ilok sharing error

Hi, I want to use virtualhere to juggle my 30 iloks in my studios over lan. But I’ve run into the “ilok sharing error” can I get around this somehow? Right now I am using a mac as the server but can also get a rasberry Pi if thats better...

Best
Oskar

#2

You need a hub that supports per power port control https://github.com/mvp/uhubctl . That list is accurate but it changes all the time so i cant recommend any of those hubs except for using the pi3b (not plus) port 2. That definitely works. But that will only support on ilok on that port

#3

<p>Hi, we would like to use 4 iloks on a Raspberry 2 Model B to share on the network. With 1 ilok on port 1 it does work as expected.<br />
We get the "ilok sharing error" on all other ports.<br />
We also tried a Belkin F5U701-BLK on ports 1 and 2 of the raspberry - but it does not work.<br />
Do you have a solutioon?<br />
Or do we have to use one raspberry for each ilok?</p>

#4

You'll have to try other hubs from that list

#5

thanks for your quick reply. We connect the hub on raspberrys usb port 1?

#7

Hi - Have I understood this correctly that with The Model PI 3+ I can switch on/off the iLok USB with uhubctl installed?

If so, can someone pleeaseee write a step by step guide on how to install and execute that task. Would be extremely appreciated.

Many Thanks,
Musikprylar

#8

You dont have to do anything its automatic.

The virtualhere server just needs to be installed on a pi and the ilok plugged into the correct port explained on the uhubctrl url table and it will just automatically power-cycle when required.

Edit: Actually theyve changed that usbhubctl table slightly. It used to be simple for the pi. But basically you put it into port 2.

#9

Sory for the somewhat sloppy explanation.

Everything is running great except that I don't understand how to trigger the command that's supposed to "unplug" the iLok.

I've gotten to:
"sudo apt-get install libusb-1.0-0-dev"
It installs and seems like its running but when trying
"uhubctl -l 1-1 -p 2 -a 0"
: -bash: uhubctl: command not found

Seems like I haven't been able to install uhubctl correctly? or using the wrong command?

Best,
Musikprylar

#11

I think I see what you mean now..Upon automatic virtual ejection of the iLok it should clear up any iLok Sharing issues when switching computer.. In that case its not working for me as expected. Any differences between the demoversion of VirtualHere server and the specifally compiled version for the Pi3+?

Thanks again,
Musikprylar

#12

Try a different USB port, you might not have it in Port 2. Port 2 is the lower left one I think, when looking directly at them

#13

Thought I tried all ports. Will try again tomo or day after that.

Thanks for your patience.
Musikprylar

#14

I AM STUPID!

Have a NESPI Case (Nintendo looking case for my Pi) with a USB HUB/Riser that connects to one of the Pi's USB ports. Ive forgotten about this and this just dawned upon me now.... (Put it together well over a year ago)

"You dont have to do anything its automatic. " - Yes it is! :) In my case on the lower, furthest away USB port from the built in Ethernet jack.

Thanks for a brilliant app & support. License bought.
/Musikprylar

#15

Great!

(Thanks for your support)

#16

Hello there, we followed all the steps, tested all the usb ports and we still have ilok sharing error message when trying to connect via another computer. Any ideas please?

Pi 4 /4gb RAM
Virtual here server unlimited license optimized for Pi4
ilok3 for PT Ultimate

#18

Hi there, I have been watching this closely, as I am also having issues (Pi 4 with current firmware).
I have my ilok plugged into Port 2 (I think. .. bottom fathers from Ethernet port????)

I am getting gate sharing error when moving between systems.

I have seen that a Pi4 may need to have the iLok plugs into port 4? Is this correct? So far, neater has worked for me.

#19

Try each of the ports in turn. One of them definitely power-cycles

#20

Thank you for the quick reply Michael. I have scoured the forums, but what should I be seeing? ie How often should I see the blue light of the ilok switch off and on?
Also, is there anything specific I need to specify in the client software to make it easier to grab the ilok, after it's been connect to another mac client?
Thanks again./

#21

If you have it plugged into the correct port, you will be able to stop using the ilok on one machine then use it on another client without seeing the "This ilok can be used in a network environment..." message

#23

Ok, I have tried all ports on the Pi4B (latest firmware) and still not able to run up on another machine after "Stop using device".
I get the "Ilok Sharing Error" splash screen every time.
I have tried quitting the client software on the other machine and dis-connecting it from the network etc.

Got me stumped ???

#26

Hi Michael,
Thanks for the response.

BCM2711 detected
BOOTLOADER: up-to-date
CURRENT: Tue 10 Sep 2019 10:41:50 AM UTC (1568112110)
LATEST: Tue 10 Sep 2019 10:41:50 AM UTC (1568112110)
VL805: up-to-date
CURRENT: 000137ad
LATEST: 000137ad

#28

OK try this

sudo apt install libusb-1.0-0-dev build-essential
git clone https://github.com/mvp/uhubctl
cd uhubctl
make
sudo ./uhubctl

Does that show any hubs?

#30

You can if you want to.

#31

Unfortunately, still not working. Not getting the iLok Sharing error message, however, unable to use the iLok on the other machine (after "Stop using device" on the first).

BCM2711 detected
Dedicated VL805 EEPROM detected
BOOTLOADER: up-to-date
CURRENT: Thu 03 Sep 2020 12:11:43 PM UTC (1599135103)
LATEST: Thu 03 Sep 2020 12:11:43 PM UTC (1599135103)
FW DIR: /lib/firmware/raspberrypi/bootloader/default
VL805: up-to-date
CURRENT: 000138a1
LATEST: 000138a1

#32

I think this is the result you were looking to see ...

Current status for hub 2 [1d6b:0003 Linux 5.4.83-v7l+ xhci-hcd xHCI Host Controller 0000:01:00.0, USB 3.00, 4 ports, ppps]
Port 1: 02a0 power 5gbps Rx.Detect
Port 2: 02a0 power 5gbps Rx.Detect
Port 3: 02a0 power 5gbps Rx.Detect
Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 1-1 [2109:3431 USB2.0 Hub, USB 2.10, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0100 power
Port 4: 0103 power enable connect [088e:5036 iLok iLok 2088A22A_6B2F0234]
Current status for hub 1 [1d6b:0002 Linux 5.4.83-v7l+ xhci-hcd xHCI Host Controller 0000:01:00.0, USB 2.00, 1 ports, ppps]
Port 1: 0503 power highspeed enable connect [2109:3431 USB2.0 Hub, USB 2.10, 4 ports, ppps]

#33

OK that shows it supports it and also your updates correctly updated all the firmware.

Could you again try plugging it in the different ports

#34

To clarify.
If I disconnect from the iLok on the main machine. ie. "Stop using device"
Then connect to the iLok from my MacBook Pro. It says "iLok (in use by you) ... then launch software requiring the iLok... It is looking for the iLok and not working.

#37

OK i think you will need to buy one of the support hubs then

#38

Really? Huh?

#39

It was working, i havent changed anything in virtualhere and it doesnt work on your pi4. Im thinking maybe they have changed something on recent pi4 hardware? Thats why i think you need to use a supported hub instead and plug that into the pi.

OR try using the uhubctl program by turning off each port and see if that power-cycles. If that does power cycle then it might be a bug in virtualher

#40

Ok, thanks again Michael. I will check things out and let you know what I can discern. Cheers

#41

I have had some success.
Ran - sudo uhubctl -l 1-1 -a 0
....and it is working. (Hoping I haven't just fluke it as I am pretty new to all of this).

However, when I reboot the Pi, it goes back to its previous behaviour. What's the process for getting (uhubctl -l 1-1 -a 0) to run automatically after a re-boot?
Cheers

#42

Here's the result ------

pi@raspberrypi:~ $ sudo uhubctl -l 1-1 -a 0
Current status for hub 2 [1d6b:0003 Linux 5.4.83-v7l+ xhci-hcd xHCI Host Controller 0000:01:00.0, USB 3.00, 4 ports, ppps]
Port 1: 02a0 power 5gbps Rx.Detect
Port 2: 02a0 power 5gbps Rx.Detect
Port 3: 02a0 power 5gbps Rx.Detect
Port 4: 02a0 power 5gbps Rx.Detect
Sent power off request
New status for hub 2 [1d6b:0003 Linux 5.4.83-v7l+ xhci-hcd xHCI Host Controller 0000:01:00.0, USB 3.00, 4 ports, ppps]
Port 1: 0080 off
Port 2: 0080 off
Port 3: 0080 off
Port 4: 0080 off
Current status for hub 1-1 [2109:3431 USB2.0 Hub, USB 2.10, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0100 power
Port 4: 0103 power enable connect [088e:5036 iLok iLok 2088A22A_6B2F0234]
Sent power off request
New status for hub 1-1 [2109:3431 USB2.0 Hub, USB 2.10, 4 ports, ppps]
Port 1: 0000 off
Port 2: 0000 off
Port 3: 0000 off
Port 4: 0000 off
pi@raspberrypi:~ $

#43

It's all working a treat!! ie It just works as you mentioned Michael.

Does anyone know how to make "sudo uhubctl -l 1-1 -a 0" run at boot up on the Pi?
I'll leave it booted permanently, but just in case it restarts.

Cheers

#44

OK it might be a bug in the virtualhere server. It should basically automatically run uhubctl -l 1-1 -a 0 when you stop using the ilok so ill investigate....

P.S there is no reason to powercycle the ilok on pi boot, the ilok needs to be power-cycled on every "stop using" (onUnbind) event which is automatic normally on linux based servers

#45

Ok cool. I think I understand that Michael.

But just to confirm. If I reboot my Pi, I need to SSH into it and run "uhubctl -l 1-1 -a 0" just once, then it's all good to go.
If I don't, I get the iLok sharing error on the second machine when attempting to use after releasing from the first.

Cheers

#46

Really, thats weird.

Im doing a lot of testing today with iloks (on windows server at the moment) and when thats finished i'll start testing again on the pi

#47

Thanks for the response Michael.
Let me know if you need me to send any logs etc.

#48

Just as an aside.

Does the Virtualhere client software (OSX Mojave here) do anything to the USB architecture of the Mac? I've been have all sorts of issues mounting USB drives since I started messing around with VH.

#49

I mean on the Mac itself. ie I have several USB drives, sticks, Native Instruments keyboards, Streamdeck.
If I unplug and replug, they won't mount or work.
Requires a re-boot of the Mac.

What and where are the extensions etc that VH puts in the system?

#50

It does install a driver on the mac but it wont affect any usb stuff. But anyway you can uninstall the driver on the mac by doing this

1. Stop and exit the virtualhere client if it is running
2. Open Terminal and type

sudo rm -rf /Library/Extensions/vhhcd.kext
sync

Then reboot your mac

#51

Thanks Micheal,
I have removed the .kext and the preference files and (local) USB is all working again. Must be a conflict with something else, as it's fine on my other machine.
However, VH is still working fine, without the kext file and now I am not losing contact with my local USB devices.
Thanks again.