Skip to content

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

@anonim1133

Description

@anonim1133

Is there an existing issue for this?

  • I have searched the existing issues

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions