Skip to content

Not able to connect a Yubikey to the Docker container #10

@mora-phi

Description

@mora-phi

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Hi,
I am trying to connect a Yubikey to the Docker container I have running inside a Synology NAS.
I connected the key to the NAS, and although I can see the Yubikey with the lsusb command inside the container, the key does not appear in keepassXC...

# lsusb
Bus 001 Device 005: ID 1050:0407 Yubico YubiKey OTP+FIDO+CCID

Is there a way of making this work ?

Regards.

Expected Behavior

Having the Yubikey available to select to open a protected database.

Steps To Reproduce

Install KeepassXC via the Docker container.
Connect the Yubikey to the NAS
Try to open a database protected with Yubikey
=> The Yubikey does not appear in KeepassXC

Environment

- OS: Synology NAS
- How docker service was installed:
Via Portainer with a stack and Docker Compose commands.

CPU architecture

x86-64

Docker creation

services:
  keepassxc:
    container_name: KeePassXC
    image: ghcr.io/linuxserver/keepassxc:latest

    healthcheck:
      test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/3000' || exit 1
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 90s
    volumes:
      - /volume1/docker/keepassxc:/config:rw
    ports:
      - 3426:3001
      - 3483:3000
    environment:
     CUSTOM_USER: user
     PASSWORD: pass
     TZ: Europe/Paris
     PUID: 1026
     PGID: 100
    restart: on-failure:5

Container logs

INFO:data_websocket:Resetting frame IDs for display 'primary'.
INFO:data_websocket:Broadcasting primary pipeline reset to all 1 clients: PIPELINE_RESETTING primary
INFO:data_websocket:Successfully stopped all streams for display 'primary'.
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
Capture loop stopped. X resources released.
INFO:data_websocket:Received START_VIDEO for 'primary'. Starting its stream.
INFO:data_websocket:Found existing layout for 'primary'. Starting capture with: {'x': 0, 'y': 0, 'w': 1774, 'h': 860}
INFO:data_websocket:Preparing to start capture for display='primary': Res=1774x860, Offset=0x0
INFO:data_websocket:Video chunk sender started for display 'primary'.
INFO:data_websocket:SUCCESS: Capture started for 'primary'.
INFO:data_websocket:New frame backpressure task started for display 'primary'.
INFO:data_websocket:Frame-based backpressure logic task started for display 'primary'.
INFO:data_websocket:Client settings received, proceeding with backpressure loop for 'primary'.
X Shared Memory Extension available.
XShm setup complete for 1774x860.
CPU cores available: 4
Stream settings active -> Res: 1774x860 | FPS: 60.0 | Stripes: 1 | Mode: H264 (CPU) FullFrame | CRF: 25 | PaintOver CRF: 18 (Burst: 5f) | Colorspace: I420 (Limited Range) | Damage Thresh: 10f | Damage Dur: 20f
INFO:webrtc_input:Set clipboard content, length: 70
WARNING:webrtc_input:Cannot reset keyboard, X display or keyboard controller not available.
INFO:data_websocket:Received resize request for primary: 1920x1080 from ('127.0.0.1', 34908)
INFO:gst_app_resize:on_resize_handler for display 'primary' with resolution: 1920x1080
INFO:gst_app_resize:Display client 'primary' dimensions updated to 1920x1080. Triggering reconfiguration.
INFO:data_websocket:Starting display reconfiguration...
INFO:data_websocket:Stopping all existing capture and backpressure tasks...
INFO:data_websocket:Backpressure logic task for 'primary' cancelled.
INFO:data_websocket:Backpressure logic task for 'primary' finished.
INFO:data_websocket:Backpressure task for 'primary' was stopped. Resetting its frame IDs.
INFO:data_websocket:Resetting frame IDs for display 'primary'.
INFO:data_websocket:Broadcasting primary pipeline reset to all 1 clients: PIPELINE_RESETTING primary
Capture loop stopped. X resources released.
INFO:data_websocket:All capture instances, senders, and backpressure tasks stopped.
INFO:data_websocket:Calculating new extended desktop layout from ALL clients...
INFO:data_websocket:Layout calculated: Total Size=1920x1080. Layouts: {'primary': {'x': 0, 'y': 0, 'w': 1920, 'h': 1080}}
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
INFO:data_websocket:Mode 1920x1080 not found. Creating it.
INFO:data_websocket:Defining logical monitors for the window manager...
INFO:data_websocket:Starting separate capture instances for each ACTIVE display region...
INFO:data_websocket:Client 'primary' is active. Starting its capture.
INFO:data_websocket:Preparing to start capture for display='primary': Res=1920x1080, Offset=0x0
INFO:data_websocket:Video chunk sender started for display 'primary'.
INFO:data_websocket:SUCCESS: Capture started for 'primary'.
INFO:data_websocket:New frame backpressure task started for display 'primary'.
INFO:data_websocket:Broadcasting primary stream resolution to all clients: {"type": "stream_resolution", "width": 1920, "height": 1080}
INFO:data_websocket:Broadcasting display config update: DISPLAY_CONFIG_UPDATE,{"type": "display_config_update", "displays": ["primary"]}
INFO:data_websocket:Display reconfiguration finished successfully.
INFO:data_websocket:Reconfiguration process complete (state unlocked).
INFO:data_websocket:Frame-based backpressure logic task started for display 'primary'.
INFO:data_websocket:Client settings received, proceeding with backpressure loop for 'primary'.
X Shared Memory Extension available.
XShm setup complete for 1920x1080.
CPU cores available: 4
Stream settings active -> Res: 1920x1080 | FPS: 60.0 | Stripes: 1 | Mode: H264 (CPU) FullFrame | CRF: 25 | PaintOver CRF: 18 (Burst: 5f) | Colorspace: I420 (Limited Range) | Damage Thresh: 10f | Damage Dur: 20f
WARNING:webrtc_input:Cannot reset keyboard, X display or keyboard controller not available.
INFO:data_websocket:Received resize request for primary: 1774x860 from ('127.0.0.1', 34908)
INFO:gst_app_resize:on_resize_handler for display 'primary' with resolution: 1774x860
Capture loop stopped. X resources released.
X Shared Memory Extension available.
XShm setup complete for 1774x860.
CPU cores available: 4
Stream settings active -> Res: 1774x860 | FPS: 60.0 | Stripes: 1 | Mode: H264 (CPU) FullFrame | CRF: 25 | PaintOver CRF: 18 (Burst: 5f) | Colorspace: I420 (Limited Range) | Damage Thresh: 10f | Damage Dur: 20f
INFO:gst_app_resize:Display client 'primary' dimensions updated to 1774x860. Triggering reconfiguration.
INFO:data_websocket:Starting display reconfiguration...
INFO:data_websocket:Stopping all existing capture and backpressure tasks...
INFO:data_websocket:Backpressure logic task for 'primary' cancelled.
INFO:data_websocket:Backpressure logic task for 'primary' finished.
INFO:data_websocket:Backpressure task for 'primary' was stopped. Resetting its frame IDs.
INFO:data_websocket:Resetting frame IDs for display 'primary'.
INFO:data_websocket:Broadcasting primary pipeline reset to all 1 clients: PIPELINE_RESETTING primary
INFO:data_websocket:All capture instances, senders, and backpressure tasks stopped.
INFO:data_websocket:Calculating new extended desktop layout from ALL clients...
INFO:data_websocket:Aligned total width from 1774 to 1776 for xrandr.
INFO:data_websocket:Layout calculated: Total Size=1776x860. Layouts: {'primary': {'x': 0, 'y': 0, 'w': 1774, 'h': 860}}
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
INFO:data_websocket:Defining logical monitors for the window manager...
INFO:data_websocket:Starting separate capture instances for each ACTIVE display region...
INFO:data_websocket:Client 'primary' is active. Starting its capture.
INFO:data_websocket:Preparing to start capture for display='primary': Res=1774x860, Offset=0x0
INFO:data_websocket:Video chunk sender started for display 'primary'.
INFO:data_websocket:SUCCESS: Capture started for 'primary'.
INFO:data_websocket:New frame backpressure task started for display 'primary'.
INFO:data_websocket:Broadcasting primary stream resolution to all clients: {"type": "stream_resolution", "width": 1774, "height": 860}
INFO:data_websocket:Broadcasting display config update: DISPLAY_CONFIG_UPDATE,{"type": "display_config_update", "displays": ["primary"]}
INFO:data_websocket:Display reconfiguration finished successfully.
INFO:data_websocket:Reconfiguration process complete (state unlocked).
INFO:data_websocket:Frame-based backpressure logic task started for display 'primary'.
INFO:data_websocket:Client settings received, proceeding with backpressure loop for 'primary'.
INFO:data_websocket:Received STOP_VIDEO for 'primary'. Stopping stream.
INFO:data_websocket:Stopping all streams for display 'primary'...
INFO:data_websocket:Backpressure logic task for 'primary' cancelled.
INFO:data_websocket:Backpressure logic task for 'primary' finished.
INFO:data_websocket:Backpressure task for 'primary' was stopped. Resetting its frame IDs.
INFO:data_websocket:Resetting frame IDs for display 'primary'.
INFO:data_websocket:Broadcasting primary pipeline reset to all 1 clients: PIPELINE_RESETTING primary
INFO:data_websocket:Successfully stopped all streams for display 'primary'.
INFO:data_websocket:Video chunk sender for 'primary' cancelled.
INFO:data_websocket:Video chunk sender for 'primary' finished.
Capture loop stopped. X resources released.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions