linuxserver / docker-bambustudio

Web accessible Bambu Studio inside a Debian Container
GNU General Public License v3.0
29 stars 0 forks source link

[BUG] Not able to run as CLI command #11

Open anonim1133 opened 2 days ago

anonim1133 commented 2 days ago

Is there an existing issue for this?

Current Behavior

I'm trying to run slicing in cli using docker image. It does not work, and returns me error:

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[2024-11-30 09:53:52.228661] [0x0000796b6b24db00] [error]   error_code 65544, description: Wayland: Failed to connect to display

Expected Behavior

CLI slicing works

Steps To Reproduce

Run bash in container. Run command: ./AppRun --slice 0 --debug 2 --export-3mf output.3mf /var/www/var/storage/default/674ae0a1be039file.stl

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

Docker file:

FROM linuxserver/bambustudio:01.10.01

RUN apt update  &&\
    apt install -y php8.2-cli &&\
    apt clean

docker-compose service:


  slicer:
    build:
      context: docker/slicer
    working_dir: /var/www/
    volumes:
      - .:/var/www/

### Container logs

```bash
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[2024-11-30 09:53:52.095925] [0x0000796b6b24db00] [error]   error_code 65544, description: Wayland: Failed to connect to display

[2024-11-30 09:53:52.095949] [0x0000796b6b24db00] [error]   glfwInit return error, code 65544

error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[2024-11-30 09:53:52.228661] [0x0000796b6b24db00] [error]   error_code 65544, description: Wayland: Failed to connect to display

[2024-11-30 09:53:52.228674] [0x0000796b6b24db00] [error]   glfwInit return error, code 65544
github-actions[bot] commented 2 days ago

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