I
I
Igor2019-03-20 10:22:05
1C
Igor, 2019-03-20 10:22:05

Server key 1C + lxd?

Such a problem: the 1C + postgres server is running in the lxd container, but the server key is not visible, although it is. Both on the host and in the container:

$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0529:0001 Aladdin Knowledge Systems HASP copy protection dongle
Bus 001 Device 005: ID 0d8c:0008 C-Media Electronics, Inc.
Bus 001 Device 004: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The key is added to the container:
sudo lxc config device add имя_контейнера aladdin usb vendorid=0529 productid=0001

Checked:
sudo lxc config show имя_контейнера
architecture: x86_64
config:
  boot.autostart: "true"
  image.architecture: amd64
  image.description: ubuntu 18.04 LTS amd64 (release) (20190122)
  image.label: release
  image.os: ubuntu
  image.release: bionic
  image.serial: "20190122"
  image.version: "18.04"
  security.privileged: "true"
  volatile.base_image: e2e78049292218f4f2fa1bb359edb409827475437164d1c5767807784c040a66
  volatile.eth0.hwaddr: 00:16:3e:10:57:ff
  volatile.idmap.base: "0"
  volatile.idmap.next: '[]'
  volatile.last_state.idmap: '[]'
  volatile.last_state.power: RUNNING
devices:
  aladdin:
    productid: "0001"
    type: usb
    vendorid: "0529"
ephemeral: false
profiles:
- default
stateful: false
description: ""

The haspd service is installed and running:
service haspd status
● haspd.service - LSB: Hasp keys support
   Loaded: loaded (/etc/init.d/haspd; generated)
   Active: active (running) since Sun 2019-03-03 19:36:36 MSK; 1h 29min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 197 ExecStart=/etc/init.d/haspd start (code=exited, status=0/SUCCESS)
    Tasks: 11 (limit: 4915)
   CGroup: /system.slice/haspd.service
           ├─279 aksusbd
           ├─373 winehasp
           ├─408 hasplm -c /etc/haspd/hasplm.conf
           └─440 hasplmd -s

After adding a device to the container, it appears here:
ls /dev/bus/usb/001/002
/dev/bus/usb/001/002

And here:
ls /proc/bus/usb/001/002
/proc/bus/usb/001/002

In the hasp container is visible:
usbkeytest --list
ID: 0529:0001, Bus: 001, Device: 002, Major: 189, Minor: 1

 usbkeytest --detect
aladdin

But in the enterprise server console, the license line is empty. After 11 user login, the messages begin:
5c91ea104c504925127148.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2019-04-29
@inkdude

So how did the story end? I have a purple key and the same situation, no client licenses.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question