CHARON for Linux - Detected removal of the license whereas dongle is connected

Problem

The guest log file report a "Detected removal of the license" message whereas the license dongle has not been removed.

(warning) If no action is taken before next license check (interval can be seen in the guest log file), the charon guest will be powered off (without clean shutdown).

Solution

Solution given below for a local dongle or a network dongle if this dongle is connected to a Linux host (commands must be executed on the license server then)

Preferably get the information before the dongle is seen as removed. If we can't, we can assume the USB driver is uhci_hcd (below, the requested information, blue colored, is given as an example):

Example 1 / uhci_hcd:

# /bin/dmesg | grep HASP | tail - 1
usb 2-2.1: Product: HASP HL 3.25
# /bin/dmesg | grep "usb 2-2.1" | grep hci_hcd | tail -1
usb 2-2.1: new low speed USB device number 4 using uhci_hcd

Example 2 / xhci_hcd:

# /bin/dmesg | grep HASP | tail -1

[106615.663534] usb 3-2: Product: HASP HL 3.25

# /bin/dmesg | grep "usb 3-2" | grep hci_hcd | tail -1

[106615.450238] usb 3-2: new low-speed USB device number 9 using xhci_hcd

Execute the following commands to try to make the USB license dongle readable again (below, the requested information, blue colored, is given as an example / uhci_hcd):

# ls /sys/bus/pci/drivers/uhci_hcd | grep :
0000:02:01.0
# echo 0000:02:01.0 >/sys/bus/pci/drivers/uhci_hcd/unbind
# echo 0000:02:01.0 >/sys/bus/pci/drivers/uhci_hcd/bind

(info) Repeat the unbind/bind commands for each line displayed by the 'ls' command if any


Restart the aksusbd service:

Red Hat Enterprise Linux 6.xRed Hat Enterprise Linux 7.x and CentOS 7.x (systemd)
# service aksusbd restart# systemctl restart aksusbd


Check if the license can be read:

# hasp_srm_view

License Manager running at host: charonrhel64
License Manager IP address: 127.0.0.1
...


(warning) Monitor the guest log file for license detection on next check

  • Charon Linux Toolkit ( (info) these utilities contain a log monitoring feature that detects this error and tries to apply the workaround automatically)



© Stromasys, 1999-2024  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.