Skip to content

[Bug] Incorrect Synology NAS Storage Usage #1374

@Upsetas

Description

@Upsetas

Description of the bug

Lists Only my RAID, and sees it as full.
If I mount using -v /volume1/mnt/host:ro \ Issue is the same. Inside Docker container I see all of the contents correctly.

Image

How to reproduce

On DSM Device Install using Script below:
docker run -d --name=dashdot
-p 7512:3001
-e DASHDOT_ENABLE_CPU_TEMPS=true
-e DASHDOT_OVERRIDE_OS=DSM
-v /:/mnt/host:ro \
--privileged
--restart always
mauricenino/dashdot

Relevant log output

Version file not found. This is normal on from-source builds.
listening on *:3001
Using default network interface "ovs_eth0"
Error: ENOENT: no such file or directory, lstat '/mnt/host/etc/os-release'
    at Object.lstatSync (node:fs:1642:25)
    at /app/server/dist/index.cjs:81197:63
    at Array.find (<anonymous>)
    at setupOsVersion (/app/server/dist/index.cjs:81197:47)
    at Server.<anonymous> (/app/server/dist/index.cjs:81952:9) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
Using os-release from "/etc/os-release" or "/usr/lib/os-release"
  path: '/mnt/host/etc/os-release'
}
Cannot refresh /etc/os-release (os results may be outdated): Error: ENOENT: no such file or directory, lstat '/mnt/host/etc/os-release'
    at Object.lstatSync (node:fs:1642:25)
    at /app/server/dist/index.cjs:81109:54
    at Array.find (<anonymous>)
    at refreshHostOsRelease (/app/server/dist/index.cjs:81109:39)
    at static (/app/server/dist/index.cjs:81438:13)
    at /app/server/dist/index.cjs:81730:17
    at promIf (/app/server/dist/index.cjs:81721:22)
    at loadInfo (/app/server/dist/index.cjs:81724:10)
    at loadStaticServerInfo (/app/server/dist/index.cjs:81735:9)
    at Server.<anonymous> (/app/server/dist/index.cjs:81953:9) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/mnt/host/etc/os-release'
}
Error: Command failed: cat /mnt/host/sys/class/net/ovs_eth0/speed
cat: /mnt/host/sys/class/net/ovs_eth0/speed: Invalid argument

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:524:28)
    at maybeClose (node:internal/child_process:1104:16)
    at Socket.<anonymous> (node:internal/child_process:456:11)
    at Socket.emit (node:events:524:28)
    at Pipe.<anonymous> (node:net:343:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'cat /mnt/host/sys/class/net/ovs_eth0/speed',
  stdout: '',
  stderr: 'cat: /mnt/host/sys/class/net/ovs_eth0/speed: Invalid argument\n'
}
Static Server Info: {
  os: {
    arch: 'x64',
    distro: 'Alpine Linux',
    kernel: '4.4.302+',
    platform: 'linux',
    release: 'v3.23',
    uptime: 2885.92,
    dash_version: '6.2.4',
    dash_buildhash: 'ce0d17c321cde822751adc32f0e01166fd1f8a41'
  },
  cpu: {
    brand: 'Intel',
    model: 'Celeron® J4025',
    cores: 2,
    ecores: 0,
    pcores: 2,
    threads: 2,
    frequency: 2
  },
  ram: {
    size: 1838448640,
    layout: [ { brand: 'Synology', type: 'DDR4', frequency: 2400 } ]
  },
  storage: [
    {
      raidLabel: '',
      raidName: 'md0',
      raidType: 1,
      size: 3994502627328,
      disks: [
        { device: 'sata1', brand: 'Seagate', type: 'HD' },
        { device: 'sata2', brand: 'Seagate', type: 'HD' }
      ]
    },
    {
      size: 125829120,
      disks: [ { device: 'synoboot', brand: 'Synology', type: 'HD' } ]
    }
  ],
  network: {
    interfaceSpeed: 0,
    speedDown: 0,
    speedUp: 0,
    lastSpeedTest: 0,
    type: 'Wired',
    publicIp: ''
  },
  gpu: { layout: [] },
  config: {
    port: 3001,
    routing_path: '/',
    running_in_docker: true,
    accept_ookla_eula: false,
    use_network_interface: undefined,
    speed_test_from_path: undefined,
    fs_device_filter: [],
    fs_type_filter: [
      'cifs',
      '9p',
      'fuse.rclone',
      'fuse.mergerfs',
      'nfs4',
      'iso9660',
      'fuse.shfs',
      'autofs'
    ],
    fs_virtual_mounts: [],
    disable_integrations: false,
    show_dash_version: 'icon_hover',
    show_host: false,
    custom_host: undefined,
    page_title: 'dash.',
    use_imperial: false,
    network_speed_as_bytes: false,
    always_show_percentages: false,
    enable_cpu_temps: true,
    cpu_temps_mode: 'avg',
    gpu_brand_filter: [],
    gpu_model_filter: [],
    widget_list: [ 'os', 'cpu', 'storage', 'ram', 'network' ],
    os_label_list: [ 'os', 'arch', 'up_since' ],
    cpu_label_list: [ 'brand', 'model', 'cores', 'threads', 'frequency' ],
    storage_label_list: [ 'brand', 'type', 'size', 'raid' ],
    ram_label_list: [ 'brand', 'type', 'size', 'frequency' ],
    network_label_list: [ 'type', 'speed_up', 'speed_down', 'interface_speed' ],
    gpu_label_list: [ 'brand', 'model', 'memory' ],
    os_widget_grow: 2.5,
    os_widget_min_width: 300,
    cpu_widget_grow: 4,
    cpu_widget_min_width: 500,
    cpu_shown_datapoints: 20,
    cpu_poll_interval: 1000,
    cpu_cores_toggle_mode: 'toggle',
    storage_widget_items_per_page: 3,
    storage_widget_grow: 3.5,
    storage_widget_min_width: 500,
    storage_poll_interval: 60000,
    ram_widget_grow: 4,
    ram_widget_min_width: 500,
    ram_shown_datapoints: 20,
    ram_poll_interval: 1000,
    speed_test_interval: 240,
    speed_test_interval_cron: undefined,
    network_widget_grow: 6,
    network_widget_min_width: 500,
    network_shown_datapoints: 20,
    network_poll_interval: 1000,
    gpu_widget_grow: 6,
    gpu_widget_min_width: 700,
    gpu_shown_datapoints: 20,
    gpu_poll_interval: 1000,
    override: {
      os: 'DSM',
      arch: undefined,
      cpu_brand: undefined,
      cpu_model: undefined,
      cpu_cores: undefined,
      cpu_threads: undefined,
      cpu_frequency: undefined,
      ram_brand: undefined,
      ram_size: undefined,
      ram_type: undefined,
      ram_frequency: undefined,
      network_type: undefined,
      network_speed_up: undefined,
      network_speed_down: undefined,
      network_interface_speed: undefined,
      network_public_ip: undefined,
      storage_brands: {},
      storage_sizes: {},
      storage_types: {},
      gpu_brands: [],
      gpu_models: [],
      gpu_memories: []
    }
  }
}
Running speed-test (this may take a few minutes)...
First measurement [Network]: { up: 0, down: 0 }
First measurement [RAM]: 1015087104
First measurement [CPU]: [
  { load: 14.749366493815973, temp: 42, core: 0 },
  { load: 14.752737445935962, temp: 42, core: 1 }
]
First measurement [Storage]: [ 3993524723712, -1 ]
Speed-test completed successfully [speedtest-cli] {
  speedDown: 888017296.2077376,
  speedUp: 482658285.13285035,
  publicIp: undefined
}

Info output of dashdot cli

INFO
=========
Yarn: 4.12.0
Node: v20.19.6
Dash: 6.2.4

Cwd: /app
Hash: ce0d17c321cde822751adc32f0e01166fd1f8a41
Platform: Linux f408940765fd 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64 GNU/Linux
Docker image: base
In Docker: true
In Docker (env): true
In Podman: false

What browsers are you seeing the problem on?

No response

Where is your instance running?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions