linuxserver / docker-calibre

GNU General Public License v3.0
338 stars 62 forks source link

[BUG] X Server errors after start #147

Closed Geezus42 closed 5 months ago

Geezus42 commented 5 months ago

Is there an existing issue for this?

Current Behavior

The container starts, but KasmVNC fails to connect.

Expected Behavior

The application should become available once the app starts.

Steps To Reproduce

Create the container with the Docker compose example from the LinuxServer.io documentation.

Environment

- OS: NixOS 23.11
- How docker service was installed: package manager
- Docker version 24.0.5, build v24.0.5

CPU architecture

x86-64

Docker creation

version: "2.1"
services:
  calibre:
    image: lscr.io/linuxserver/calibre:latest
    container_name: calibre-server
    hostname: calibre-server
    network_mode: media
    restart: unless-stopped
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=974
      - PGID=907
      - TZ=America/Chicago
      - CUSTOM_USER= <USER>
      - PASSWORD= <PASSWORD> #optional
#      - CLI_ARGS= #optional
      - TITLE=Calibre
      - DRINODE=/dev/dri/renderD128
      - CUSTOM_PORT=9090
      - CUSTOM_HTTPS_PORT=9292
    volumes:
      - /opt/calibre/config:/config
      - /media/Books:/books
      - /dev/dri:/dev/dri # For H/W transcoding
    ports:
      - 9090:8080
      - 9292:8181
      - 8081:8081

Container logs

 ✔ Container calibre-server  Recreated                                                                                                           0.6s
Attaching to calibre-server
calibre-server  | [migrations] started
calibre-server  | [migrations] no migrations found
calibre-server  | ───────────────────────────────────────
calibre-server  |
calibre-server  |       ██╗     ███████╗██╗ ██████╗
calibre-server  |       ██║     ██╔════╝██║██╔═══██╗
calibre-server  |       ██║     ███████╗██║██║   ██║
calibre-server  |       ██║     ╚════██║██║██║   ██║
calibre-server  |       ███████╗███████║██║╚██████╔╝
calibre-server  |       ╚══════╝╚══════╝╚═╝ ╚═════╝
calibre-server  |
calibre-server  |    Brought to you by linuxserver.io
calibre-server  | ───────────────────────────────────────
calibre-server  |
calibre-server  | To support LSIO projects visit:
calibre-server  | https://www.linuxserver.io/donate/
calibre-server  |
calibre-server  | ───────────────────────────────────────
calibre-server  | GID/UID
calibre-server  | ───────────────────────────────────────
calibre-server  |
calibre-server  | User UID:    974
calibre-server  | User GID:    907
calibre-server  | ───────────────────────────────────────
calibre-server  |
calibre-server  | **** creating video group videoa6u1 with id 303 ****
calibre-server  | **** adding /dev/dri/renderD128 to video group videoa6u1 with id 303 ****
calibre-server  | **** adding /dev/dri/card0 to video group tape with id 26 ****
calibre-server  | [custom-init] No custom files found, skipping...
calibre-server  | [ls.io-init] done.
calibre-server  | _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
calibre-server  |
calibre-server  | Xvnc KasmVNC 1.2.0 - built Dec 30 2023 18:50:12
calibre-server  | Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
calibre-server  | See http://kasmweb.com for information on KasmVNC.
calibre-server  | Underlying X server release 12014000, The X.Org Foundation
calibre-server  |
calibre-server  | (EE)
calibre-server  | Fatal server error:
calibre-server  | (EE) Failed to create gbm
calibre-server  | (EE)
calibre-server  | Openbox-Message: Failed to open the display from the DISPLAY environment variable.
calibre-server  | _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
github-actions[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

thelamer commented 5 months ago

Get rid of - /dev/dri:/dev/dri # For H/W transcoding

Geezus42 commented 5 months ago

Omg, thank you! I should work on my reading comprehension. :D

Now I get this though:

calibre-server  | Obt-Message: Xinerama extension is not present on the server
thelamer commented 5 months ago

We are running a bunch of GUI apps including X itself outside of its comfort zone in docker it will report many warnings but they are not fata and expected.

Geezus42 commented 5 months ago

Ok, well I can't reach the site, but I don't see an obvious reason and do not have time to troubleshoot at the moment. Thanks for the help!

Geezus42 commented 5 months ago

Initial issue resolved.