Skip to content

Host controls missing when running in container #1747

@AndreKR

Description

@AndreKR

Fluidd Version

v1.35.0-e17b3de

Browser

Chrome

Device

Laptop

Operating System

Windows

What happened

My fluidd instance does not show host controls:

Image

 
This is because fluidd assumes it cannot control the host if system_info.virtualization.virt_type is "container":

get canControlHost (): boolean {
return this.systemInfo?.virtualization?.virt_type !== 'container'
}

But there is no reason for this. If the Moonraker container is properly set up, with access to the hosts DBus socket and [machine] provider configured accordingly, then Moonraker can control the host just fine.

When using prind, probably the most common Klipper setup after KIAUH, the Moonraker container is by default configured appropriately.

The only case where the host commands would for sure not work is when system_info.provider is "none".

From the Moonraker docs:

If the provider is set to "none" service action APIs will be disabled.

What did you expect to happen

Host controls should be shown.

How to reproduce

Connect fluidd to a Moonraker running in a Docker container, for example by using prind.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    GH - BugSomething isn't workingGH - Upstream FirstTemporarily impossible because of other factorsUpstream - MoonrakerFor everything API related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions