Skip to content

[BUG] DBus hostname1 permission error #37

Closed as not planned
Closed as not planned

Description

@neo2l33t

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The Selkies web UI loads successfully and the remote desktop stream starts, but Bambu Studio itself does not remain open. On container start, the Bambu Studio window appears briefly, then disappears/exits.

The logs show the container launching Bambu Studio as:

/opt/bambustudio/bin/bambu-studio

but DBus reports:

dbus-daemon[432]: [system] Activating service name='org.freedesktop.hostname1' requested by ':1.12' (uid=99 pid=562 comm="/opt/bambustudio/bin/bambu-studio") (using servicehelper)
dbus-daemon[432]: [system] Activated service 'org.freedesktop.hostname1' failed: Failed to execute program org.freedesktop.hostname1: Permission denied

The container also logs:

No desktop processes found to terminate.

Selkies continues running, but Bambu Studio is not usable in the browser.

Expected Behavior

No response

Steps To Reproduce

Deploy lscr.io/linuxserver/bambustudio on Unraid.
Use PUID=99, PGID=100, PIXELFLUX_WAYLAND=true, AUTO_GPU=true, DRI_NODE=/dev/dri/renderD128, DRINODE=/dev/dri/renderD128.
Start the container.
Open the WebUI on HTTPS port 3001.
Observe Selkies loads, but Bambu Studio flashes briefly and exits.

Environment

Host OS: Unraid
Container image: lscr.io/linuxserver/bambustudio
Linuxserver.io version: v02.07.01.57-ls149
Build-date: 2026-06-06T08:12:37+00:00
PUID: 99
PGID: 100
GPU: NVIDIA GeForce GTX 1080
NVIDIA driver: 580.159.04
CUDA version shown by nvidia-smi: 13.0

CPU architecture

x86-64

Docker creation

docker run -d \
  --name='bambustudio' \
  --net='bridge' \
  --pids-limit 2048 \
  -e TZ="Europe/Warsaw" \
  -e HOST_OS="Unraid" \
  -e HOST_HOSTNAME="box" \
  -e HOST_CONTAINERNAME="bambustudio" \
  -e DARK_MODE="true" \
  -e AUTO_GPU="true" \
  -e DRI_NODE="/dev/dri/renderD128" \
  -e PIXELFLUX_WAYLAND="true" \
  -e DRINODE="/dev/dri/renderD128" \
  -e PUID="99" \
  -e PGID="100" \
  -e UMASK="002" \
  -p '3002:3000/tcp' \
  -p '3001:3001/tcp' \
  -v '/mnt/user/appdata/bambustudio':'/config':'rw' \
  --shm-size=1gb \
  lscr.io/linuxserver/bambustudio

Container logs

Linuxserver.io version: v02.07.01.57-ls149
Build-date: 2026-06-06T08:12:37+00:00
...
**** NVIDIA GPU detected ****
**** Setting up OpenCL ICD for NVIDIA ****
**** Setting up EGL vendor file for NVIDIA ****
**** Fixing GBM library linkage ****
...
No desktop processes found to terminate.
...
dbus-daemon[432]: [system] Activating service name='org.freedesktop.hostname1' requested by ':1.12' (uid=99 pid=562 comm="/opt/bambustudio/bin/bambu-studio") (using servicehelper)
dbus-daemon[432]: [system] Activated service 'org.freedesktop.hostname1' failed: Failed to execute program org.freedesktop.hostname1: Permission denied



[Wayland] AUTO_GPU enabled. Selected: /dev/dri/renderD128
[Wayland] Initializing GL Renderer using device: /dev/dri/renderD128
[Wayland] GPU Initialization failed: Failed to create EGL display. Falling back to Software Renderer (Pixman).
[Wayland] CPU encoding selected (use_cpu=true or vaapi_node=-1).
[Wayland] Decision: No GPU Encoder available -> Using CPU Software Encoding.
Mode: H264 (CPU) FullFrame

Activity

  1. github-actions commented on Jun 6, 2026

    @github-actions

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

  2. j0nnymoe commented on Jun 6, 2026

    @j0nnymoe
    Member

    What CPU have you got? Have you tried without passing through your nvidia card?

  3. neo2l33t commented on Jun 6, 2026

    @neo2l33t
    Author

    It does work on the CPU, but it doesn't use the GPU for anything. CPU is a AMD Ryzen 7 5800X

  4. j0nnymoe commented on Jun 6, 2026

    @j0nnymoe
    Member
  5. j0nnymoe commented on Jun 6, 2026

    @j0nnymoe
    Member

    Also worth noting that you might have issues with a 1080 considering it's 10 years old.

  6. neo2l33t commented on Jun 6, 2026

    @neo2l33t
    Author

    Yup, I added those parts to the unraid syslinux cfg, the --gpus all....

  7. j0nnymoe commented on Jun 6, 2026

    @j0nnymoe
    Member

    Ok, but going off the information you've provided, the docker run you've provided doesn't show the --gpus all --runtime nvidia.

  8. neo2l33t commented on Jun 9, 2026

    @neo2l33t
    Author

    The GPU is old but works fine for everything else thrown at it (from ollama to SD to emby and others) and this wasn't an issue until a month or 2 ago. Something changed in the meantime and it just doesn't play nice.

  9. thelamer commented on Jun 9, 2026

    @thelamer
    Member

    Nvidia has become a moving target. I run head drivers to identify different issues that arise what I need to do now to get nvidia 595.80 to work is:

    1. Dummy plugs and kernel params are not needed anymore.
    2. Once per boot I need to run nvidia-modprobe --modeset this creates the /dev/nvidia-modeset device file
    3. I need to manually mount this into the container with --device /dev/nvidia-modeset

    Full bare minimum run command for me:

    docker run --rm -it \
      --shm-size=1gb \
      --device /dev/nvidia-modeset \
      --runtime nvidia \
      --gpus all \
      -e AUTO_GPU=true \
      -p 3001:3001 \
      linuxserver/bambustudio bash
    

    My card:

    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 595.80                 Driver Version: 595.80         CUDA Version: 13.2     |
    +-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce RTX 3060        Off |   00000000:07:00.0 Off |                  N/A |
    |  0%   40C    P8              9W /  170W |       1MiB /  12288MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |  No running processes found                                                             |
    +-----------------------------------------------------------------------------------------+
    
    Docker version 29.5.2, build 79eb04c
    
    nvidia-container-cli --version
    cli-version: 1.19.1
    lib-version: 1.19.1
    build date: 2026-05-21T17:25+00:00
    build revision: 7585946c6471402577e14474d7c56ca5be0348d7
    build compiler: x86_64-linux-gnu-gcc-7 7.5.0
    build platform: x86_64
    
    Linux drop 6.12.90+deb13.1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.90-2 (2026-05-27) x86_64 GNU/Linux
    

    Just as a side note with 580, I needed a dummy plug and the kernel params as laid out in the readme.

  10. neo2l33t commented on Jun 9, 2026

    @neo2l33t
    Author

    Sadly, still doesn't work for me. I'm using --shm-size=1gb --gpus all --runtime nvidia --device /dev/nvidia-modeset and also auto_gpu=true dri_node=/dev/dri/renderD128 DRINODE=/dev/dri/renderD128 PIXELFLUX_WAYLAND=true

    it loads as 1MB into the GPU but that's it.

    `Tue Jun  9 16:34:26 2026       
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 580.159.04             Driver Version: 580.159.04     CUDA Version: 13.0     |
    +-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce GTX 1080        Off |   00000000:0B:00.0  On |                  N/A |
    |  0%   42C    P8             10W /  230W |    1339MiB /   8192MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A          100886      C   python                                 1324MiB |
    |    0   N/A  N/A         1207818      G   .../bambustudio/bin/bambu-studio          1MiB |
    +-----------------------------------------------------------------------------------------+`
    

    But when I PIXELFLUX_WAYLAND=false and remove dri_node=/dev/dri/renderD128 DRINODE=/dev/dri/renderD128 it does load into the GPU and then it crashes when I try to open anything.

    Tue Jun  9 16:54:51 2026       
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 580.159.04             Driver Version: 580.159.04     CUDA Version: 13.0     |
    +-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce GTX 1080        Off |   00000000:0B:00.0  On |                  N/A |
    |  0%   42C    P8             10W /  230W |    2096MiB /   8192MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A          100886      C   python                                 1324MiB |
    |    0   N/A  N/A         1295599    C+G   .../bambustudio/bin/bambu-studio        756MiB |
    +-----------------------------------------------------------------------------------------+
    
    Tue Jun  9 16:54:52 2026       
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 580.159.04             Driver Version: 580.159.04     CUDA Version: 13.0     |
    +-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce GTX 1080        Off |   00000000:0B:00.0  On |                  N/A |
    |  0%   42C    P2             45W /  230W |    1338MiB /   8192MiB |      0%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
    
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A          100886      C   python                                 1324MiB |
    +-----------------------------------------------------------------------------------------+
    
    
  11. thelamer commented on Jun 9, 2026

    @thelamer
    Member

    This might just be upstream, you could try much older versions of bambustudio by changing the version in the docker file and building it or downloading the app image decompressing it and testing different versions in session bambulab/BambuStudio#10668

  12. neo2l33t commented on Jun 9, 2026

    @neo2l33t
    Author

    Thanks. I'll give that a try. I think I'll have to roll back or just accept the CPU rendering/loading

  13. LinuxServer-CI commented on Jul 10, 2026

    @LinuxServer-CI
    Collaborator

    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.

  14. moved this from Issues to Done in Issue & PR Trackeron Sep 8, 2026
  15. LinuxServer-CI commented on Oct 8, 2026

    @LinuxServer-CI
    Collaborator

    This issue is locked due to inactivity

  16. locked as resolved and limited conversation to collaborators on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions