dashdot: [Bug] Storage information not working on Ubuntu via Docker.

Description of the bug

Good day,

Firstly, thank you for developing such a useful and beautiful resource dashboard. Love your work.

Currently storage information is not being displayed correctly on Ubuntu via Docker. Below are my setup details:

Hardware: Intel NUC 13 Core i5 (NUC13ANKi5)

Storage setup: Samsung 980 Pro M.2 NVMe SSD

Config: Running Latest Version of Dashdot

   dash:
    container_name: Dashdot
    image: mauricenino/dashdot:latest
    privileged: true
    ports:
      - "8181:3001"
    volumes:
      - /:/mnt/host:ro
    environment:
      DASHDOT_ENABLE_CPU_TEMPS: "true"
    restart:
      unless-stopped

Specific hosting form: Docker running on Ubuntu 22.04.3 LTS x86_64

Anything you deem important:

df -h

Filesystem                       Size  Used Avail Use% Mounted on
tmpfs                            3,1G  6,0M  3,1G   1% /run
/dev/nvme0n1p2                   916G   70G  800G   8% /
tmpfs                             16G     0   16G   0% /dev/shm
tmpfs                            5,0M  4,0K  5,0M   1% /run/lock
efivarfs                         192K  115K   73K  62% /sys/firmware/efi/efivars
/dev/nvme0n1p1                   511M  6,1M  505M   2% /boot/efi 

How to reproduce

image

Relevant log output

listening on *:3001
Using default network interface "enp86s0"
Using host os version from "/mnt/host/etc/os-release"
Static Server Info: {
  os: {
    arch: 'x64',
    distro: 'Ubuntu',
    kernel: '6.5.0-14-generic',
    platform: 'linux',
    release: '22.04.3 LTS',
    uptime: 256472.96,
    dash_version: '5.8.2',
    dash_buildhash: 'dbbe809ff84ca1a58e0fb077e8b7153d874f7741'
  },
  cpu: {
    brand: 'Intel',
    model: 'Gen Intel® Core™ i5-1340P To Be Filled By O.E.M.',
    cores: 12,
    ecores: 8,
    pcores: 4,
    threads: 16,
    frequency: 4.6
  },
  ram: {
    size: 33175109632,
    layout: [
      { brand: 'Crucial Technology', type: 'DDR4', frequency: 3200 },
      { brand: 'Crucial Technology', type: 'DDR4', frequency: 3200 }
    ]
  },
  storage: [
    {
      size: 1000204886016,
      disks: [ { device: 'nvme0n1', brand: 'Samsung', type: 'NVMe' } ]
    }
  ],
  network: {
    interfaceSpeed: 1000,
    speedDown: 0,
    speedUp: 0,
    lastSpeedTest: 0,
    type: 'Wired',
    publicIp: ''
  },
  gpu: { layout: [] },
  config: {
    port: 3001,
    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'
    ],
    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',
    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: undefined,
      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]: 4888346624
First measurement [CPU]: [
  { load: 5.548886429476102, temp: 44, core: 0 },
  { load: 5.766413953990907, temp: 44, core: 1 },
  { load: 5.147732800712855, temp: 44, core: 2 },
  { load: 4.232320443363525, temp: 44, core: 3 },
  { load: 5.692287688023844, temp: 44, core: 4 },
  { load: 4.280338443088162, temp: 44, core: 5 },
  { load: 6.058391779147532, temp: 44, core: 6 },
  { load: 4.127854724718686, temp: 44, core: 7 },
  { load: 1.8607383116446208, temp: 47, core: 8 },
  { load: 1.2317986147679771, temp: 47, core: 9 },
  { load: 0.9635042463501716, temp: 51, core: 10 },
  { load: 0.9247042803268337, temp: 55, core: 11 },
  { load: 0.8001799638071917, temp: 46, core: 12 },
  { load: 0.6848800800186661, temp: 46, core: 13 },
  { load: 0.6087343531026931, temp: 46, core: 14 },
  { load: 0.5764178825562042, temp: 46, core: 15 }
]
First measurement [Storage]: [ -1 ]
Speed-test completed successfully [speedtest-cli] {
  speedDown: 49590353.18659461,
  speedUp: 49908386.53248935,
  publicIp: undefined
}

Info output of dashdot cli

INFO
=========
Yarn: 3.7.0
Node: v20.11.0
Dash: 5.8.2

Cwd: /app
Hash: dbbe809ff84ca1a58e0fb077e8b7153d874f7741
Platform: Linux 6b673e101ae1 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 Linux
Docker image: base
In Docker: true
In Docker (env): true
In Podman: false

What browsers are you seeing the problem on?

Firefox

Where is your instance running?

Linux Server

Additional context

docker exec CONTAINER yarn cli raw-data --storage output

Output:
const disks =  [
  {
    device: '/dev/nvme0n1',
    type: 'NVMe',
    name: 'Samsung SSD 980 PRO 1TB                 ',
    vendor: 'Samsung',
    size: 1000204886016,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: '',
    serialNum: 'S5GXNX0TC19214P',
    interfaceType: 'PCIe',
    smartStatus: 'unknown',
    temperature: null
  }
]
const sizes =  []
const blocks =  [
  {
    name: 'nvme0n1',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 1000204886016,
    physical: 'SSD',
    uuid: '',
    label: '',
    model: 'Samsung SSD 980 PRO 1TB',
    serial: 'S5GXNX0TC19214P     ',
    removable: false,
    protocol: 'nvme',
    group: '',
    device: '/dev/nvme0n1'
  },
  {
    name: 'loop0',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/bare/5',
    size: 4096,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop1',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/canonical-livepatch/246',
    size: 10051584,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop10',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gnome-3-38-2004/143',
    size: 366682112,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop11',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/firefox/3626',
    size: 257945600,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop12',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gnome-42-2204/120',
    size: 509100032,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop13',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gnome-42-2204/141',
    size: 521121792,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop14',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gtk-common-themes/1535',
    size: 96141312,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop15',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snap-store/959',
    size: 12922880,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop16',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snapd/20290',
    size: 42840064,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop17',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snapd/20671',
    size: 42393600,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop18',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snapd-desktop-integration/83',
    size: 462848,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop2',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/certbot-dns-cloudflare/3182',
    size: 9719808,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop3',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core/16202',
    size: 110960640,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop4',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/certbot-dns-cloudflare/3077',
    size: 9715712,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop5',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core20/2015',
    size: 66547712,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop6',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core20/2105',
    size: 67014656,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop7',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core22/1033',
    size: 77713408,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop8',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core22/864',
    size: 77492224,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop9',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/firefox/3600',
    size: 257859584,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'nvme0n1p1',
    type: 'part',
    fsType: 'vfat',
    mount: '/mnt/host/boot/efi',
    size: 536870912,
    physical: '',
    uuid: '6A88-3E2B',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: 'nvme',
    group: '',
    device: '/dev/nvme0n1'
  },
  {
    name: 'nvme0n1p2',
    type: 'part',
    fsType: 'ext4',
    mount: '/mnt/host',
    size: 999666221056,
    physical: '',
    uuid: '2b9ea517-0eae-40c9-9ee6-c34910671fc0',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: 'nvme',
    group: '',
    device: '/dev/nvme0n1'
  }
]

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 37 (10 by maintainers)

Most upvoted comments

Having the same issue, tried everything. The container can see the drives but not the free space for some reason…

Spoke to soon. Just got another few updates from Ubuntu and its broken again.

@djwinston Thanks for the update. Much appreciated.

I can confirm that after updating my Ubuntu packages and rebooting, it started working.