Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] log is spammed because of missing dbus socket #162

Open
1 task done
shawly opened this issue Oct 5, 2024 · 2 comments
Open
1 task done

[BUG] log is spammed because of missing dbus socket #162

shawly opened this issue Oct 5, 2024 · 2 comments

Comments

@shawly
Copy link

shawly commented Oct 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

My log is spammed by this error:

Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 713, in open
  File "calibre/devices/usbms/device.py", line 587, in open_linux
calibre.devices.errors.DeviceError: Unable to mount main memory (Error code: 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 562, in do_mount
  File "calibre/devices/udisks.py", line 139, in mount
  File "calibre/devices/udisks.py", line 44, in __enter__
  File "jeepney/io/blocking.py", line 342, in open_dbus_connection
  File "jeepney/io/blocking.py", line 310, in prep_socket
  File "jeepney/io/blocking.py", line 307, in with_sock_deadline
FileNotFoundError: [Errno 2] No such file or directory

It seems that calibre is expecting a dbus socket on /run/dbus/system_bus_socket but kasmvnc doesn't provide that.
I tried linking the dbus session under /tmp/dbus-* to /run/dbus/system_bus_socket and afterwards the following error message is spammed in the logs:

Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 713, in open
  File "calibre/devices/usbms/device.py", line 587, in open_linux
calibre.devices.errors.DeviceError: Unable to mount main memory (Error code: 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 562, in do_mount
  File "calibre/devices/udisks.py", line 140, in mount
  File "calibre/devices/udisks.py", line 102, in mount
  File "calibre/devices/udisks.py", line 96, in filesystem_operation_message
  File "calibre/devices/udisks.py", line 89, in device
  File "calibre/devices/udisks.py", line 75, in iter_block_devices
  File "calibre/devices/udisks.py", line 65, in introspect
  File "calibre/devices/udisks.py", line 60, in send
jeepney.wrappers.DBusErrorResponse: [org.freedesktop.DBus.Error.ServiceUnknown] ('The name org.freedesktop.UDisks2 was not provided by any .service files',)

Apart from this error calibre seems to work, but with the log being spammed like this is not helping when actually trying to debug issues.
I have disabled the logging driver for now to get around this.

Strangely enough this only happens on my home server, if I run the container on my desktop (EndeavourOS) it does not occur.

Could this be related to any apparmor or other security settings?

I already tried starting the container with privileged mode but that didn't help.

Expected Behavior

No logspam.

Steps To Reproduce

Setup the container according to the documentation by lsio.

Environment

- OS: Ubuntu Server 24.04
- How docker service was installed: docker compose

CPU architecture

x86-64

Docker creation

services:
  app:
    restart: always
    environment:
      TZ: Europe/Berlin
      PUID: '1000'
      PGID: '1000'
    labels:
      com.centurylinklabs.watchtower.enable: true
      traefik.enable: true
      traefik.http.services.calibre.loadbalancer.server.port: 8080
      traefik.http.services.calibre-content.loadbalancer.server.port: 8081
    volumes:
    - /srv/calibre/config:/config
    - /mnt/user/ebooks:/mnt/user/ebooks
    image: lscr.io/linuxserver/calibre:latest
    container_name: calibre
    security_opt:
    - seccomp:unconfined
    networks:
      default:
      traefik_net:

networks:
  default:
  traefik_net:
    external: true

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: v7.19.0-ls305
Build-date: 2024-10-02T06:45:53+00:00
───────────────────────────────────────
    
...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+......+.....+......+...+.......+......+..+...+...+.+...+...+........+............+...+............+....+...........+....+...+.....+......+....+..+.+........+.+.....+...+.+..+...+......................+...+...........+...+.+......+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.+.+.........+...+..+...+..........+..+.+...........+.+.....+...+.+.....+...+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+.......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...........+....+...+......+......+.....+......+...+....+...........+......+.........+.......+............+..+...+.+.........+......+..+...+....+...+..+............+.+........+.+........+...+...............+...+..........+...............+..+.......+...+.........+.....+...+.+.....+.......+............+........+...+.+...........+.............+..+.......+.....+......+...................+..+.........+......+................+.....+...+......+.............+..+.+..+.+...........+...+...+....+......+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
[custom-init] No custom files found, skipping...
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.2.0 - built Sep 28 2024 19:15:41
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

[ls.io-init] done.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86CameraAccessEnable
> Warning:          Could not resolve keysym XF86CameraAccessDisable
> Warning:          Could not resolve keysym XF86CameraAccessToggle
> Warning:          Could not resolve keysym XF86NextElement
> Warning:          Could not resolve keysym XF86PreviousElement
> Warning:          Could not resolve keysym XF86AutopilotEngageToggle
> Warning:          Could not resolve keysym XF86MarkWaypoint
> Warning:          Could not resolve keysym XF86Sos
> Warning:          Could not resolve keysym XF86NavChart
> Warning:          Could not resolve keysym XF86FishingChart
> Warning:          Could not resolve keysym XF86SingleRangeRadar
> Warning:          Could not resolve keysym XF86DualRangeRadar
> Warning:          Could not resolve keysym XF86RadarOverlay
> Warning:          Could not resolve keysym XF86TraditionalSonar
> Warning:          Could not resolve keysym XF86ClearvuSonar
> Warning:          Could not resolve keysym XF86SidevuSonar
> Warning:          Could not resolve keysym XF86NavInfo
Errors from xkbcomp are not fatal to the X server
Obt-Message: Xinerama extension is not present on the server
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
19
 2024-10-05 14:23:27,735 [INFO] websocket 0: got client connection from 127.0.0.1
 2024-10-05 14:23:27,743 [PRIO] Connections: accepted: @172.17.0.1_1728138207.735784::websocket
Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 713, in open
  File "calibre/devices/usbms/device.py", line 587, in open_linux
calibre.devices.errors.DeviceError: Unable to mount main memory (Error code: 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 562, in do_mount
  File "calibre/devices/udisks.py", line 139, in mount
  File "calibre/devices/udisks.py", line 44, in __enter__
  File "jeepney/io/blocking.py", line 342, in open_dbus_connection
  File "jeepney/io/blocking.py", line 310, in prep_socket
  File "jeepney/io/blocking.py", line 307, in with_sock_deadline
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 713, in open
  File "calibre/devices/usbms/device.py", line 587, in open_linux
calibre.devices.errors.DeviceError: Unable to mount main memory (Error code: 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "calibre/devices/usbms/device.py", line 562, in do_mount
  File "calibre/devices/udisks.py", line 139, in mount
  File "calibre/devices/udisks.py", line 44, in __enter__
  File "jeepney/io/blocking.py", line 342, in open_dbus_connection
  File "jeepney/io/blocking.py", line 310, in prep_socket
  File "jeepney/io/blocking.py", line 307, in with_sock_deadline
FileNotFoundError: [Errno 2] No such file or directory
Copy link

github-actions bot commented Oct 5, 2024

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

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Issues
Development

No branches or pull requests

2 participants