MauriceNino / dashdot

A simple, modern server dashboard, primarily used by smaller private servers
https://getdashdot.com/
MIT License
2.53k stars 95 forks source link

[Bug] Can't get DASHDOT_FS_DEVICE_FILTER to work #1063

Open bdog720 opened 1 month ago

bdog720 commented 1 month ago

Description of the bug

I'm running Dash. on windows from host, I tried running it via Docker but I couldn't get it to see my actual disk drives. I've got it running on windows from source just fine but I can't get the DASHDOT_FS_DEVICE_FILTER variable to filter out my boot drive

What am I missing?

This is how I'm setting the variable, I've tried with and without quotations set DASHDOT_FS_DEVICE_FILTER=\\\\.\\PHYSICALDRIVE0,\\\.\\PHYSICALDRIVE0,\\.\\PHYSICALDRIVE0,\.\\PHYSICALDRIVE0,.\\PHYSICALDRIVE0,\\PHYSICALDRIVE0,\PHYSICALDRIVE0,PHYSICALDRIVE0

This is my config (I'm trying all variants of the device name because I can't get any of them to work "fs_device_filter": [ "\\\\\\\\.\\\\PHYSICALDRIVE0", "\\\\\\.\\\\PHYSICALDRIVE0", "\\\\.\\\\PHYSICALDRIVE0", "\\.\\\\PHYSICALDRIVE0", ".\\\\PHYSICALDRIVE0", "\\\\PHYSICALDRIVE0", "\\PHYSICALDRIVE0", "PHYSICALDRIVE0" ]

How to reproduce

No response

Relevant log output

storage: [
    {
      size: 256052966400,
      disks: [
        {
          device: '\\\\.\\PHYSICALDRIVE0',
          brand: 'Samsung',
          type: 'SSD'
        }
      ]
    },
    {
      size: 2000396321280,
      disks: [
        {
          device: '\\\\.\\PHYSICALDRIVE1',
          brand: 'Seagate',
          type: 'HD'
        }
      ]
    }
  ]

Info output of dashdot cli

INFO
=========
Yarn: 3.7.0
Node: v20.15.0
Dash: unknown

Cwd: C:\Program Files\Dashdot\dashdot
Hash: 609c1103070348d707df4ccce5c930df91168f96
Platform:
Docker image: $DASHDOT_IMAGE
In Docker: false
In Docker (env): $DASHDOT_RUNNING_IN_DOCKER
In Podman: false

What browsers are you seeing the problem on?

Chrome

Where is your instance running?

Windows Server

Additional context

No response