MauriceNino / dashdot

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

[Bug] Storage information not working on Ubuntu via Docker. #1032

Open SecOps-7 opened 8 months ago

SecOps-7 commented 8 months ago

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: ```js 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' } ] ```
MauriceNino commented 8 months ago

Hello there!

The issue looks similar to #944, but we don't know why it is happening. You see, normally, there should be at least one size in the size array, but for you guys there is nothing at all.

Can you execute the following on your host and in the docker container, and then paste the output?

df -kPT
docker exec CONTAINER df -kPT
SecOps-7 commented 8 months ago

Hi Maurice,

Thanks for looking into this. Below is the requested output.

df -kPT

Filesystem                      Type     1024-blocks       Used   Available Capacity Mounted on
tmpfs                           tmpfs        3239760       6044     3233716       1% /run
/dev/nvme0n1p2                  ext4       959786032   72707140   838250684       8% /
tmpfs                           tmpfs       16198784          0    16198784       0% /dev/shm
tmpfs                           tmpfs           5120          4        5116       1% /run/lock
efivarfs                        efivarfs         192        115          73      62% /sys/firmware/efi/efivars
/dev/nvme0n1p1                  vfat          523248       6220      517028       2% /boot/efi
//10.0.0.20/Media/UFC           cifs     39345255876 9628426668 29716829208      25% /DATA/Media/UFC
//10.0.0.20/Media/Photos        cifs     39345255876 9628426668 29716829208      25% /DATA/Media/Photos
//10.0.0.20/Media/Documentaries cifs     39345255876 9628426668 29716829208      25% /DATA/Media/Documentaries
//10.0.0.20/Media/Comedy        cifs     39345255876 9628426668 29716829208      25% /DATA/Media/Comedy
//10.0.0.20/Media/Backup        cifs     39345255876 9628426668 29716829208      25% /DATA/Backup
//10.0.0.20/Media/Movies        cifs     39345255876 9628426668 29716829208      25% /DATA/Media/Movies
//10.0.0.20/Media/Series        cifs     39345255876 9628426668 29716829208      25% /DATA/Media/TV Shows
//10.0.0.20/Media/Music         cifs     39345255876 9628426668 29716829208      25% /DATA/Media/Music
tmpfs                           tmpfs        3239756        112     3239644       1% /run/user/1000
docker exec Dashdot df -kPT

Filesystem           Type       1024-blocks    Used Available Capacity Mounted on
overlay              overlay    959786032  72771224 838186600   8% /
tmpfs                tmpfs          65536         0     65536   0% /dev
shm                  tmpfs          65536         0     65536   0% /dev/shm
/dev/nvme0n1p2       ext4       959786032  72771224 838186600   8% /mnt/host
udev                 devtmpfs    16160512         0  16160512   0% /mnt/host/dev
tmpfs                tmpfs       16198784         0  16198784   0% /mnt/host/dev/shm
tmpfs                tmpfs        3239760      6048   3233712   0% /mnt/host/run
tmpfs                tmpfs           5120         4      5116   0% /mnt/host/run/lock
tmpfs                tmpfs        3239760      6048   3233712   0% /mnt/host/run/snapd/ns
tmpfs                tmpfs        3239756       112   3239644   0% /mnt/host/run/user/1000
efivarfs             efivarfs         192       114        73  61% /mnt/host/sys/firmware/efi/efivars
/dev/loop0           squashfs         128       128         0 100% /mnt/host/snap/bare/5
/dev/loop1           squashfs        9856      9856         0 100% /mnt/host/snap/canonical-livepatch/246
/dev/loop2           squashfs        9600      9600         0 100% /mnt/host/snap/certbot-dns-cloudflare/3182
/dev/loop4           squashfs        9600      9600         0 100% /mnt/host/snap/certbot-dns-cloudflare/3077
/dev/loop3           squashfs      108416    108416         0 100% /mnt/host/snap/core/16202
/dev/loop5           squashfs       65024     65024         0 100% /mnt/host/snap/core20/2015
/dev/loop6           squashfs       65536     65536         0 100% /mnt/host/snap/core20/2105
/dev/loop7           squashfs       75904     75904         0 100% /mnt/host/snap/core22/1033
/dev/loop8           squashfs       75776     75776         0 100% /mnt/host/snap/core22/864
/dev/loop9           squashfs      251904    251904         0 100% /mnt/host/snap/firefox/3600
/dev/loop10          squashfs      358144    358144         0 100% /mnt/host/snap/gnome-3-38-2004/143
/dev/loop11          squashfs      251904    251904         0 100% /mnt/host/snap/firefox/3626
/dev/loop12          squashfs      497280    497280         0 100% /mnt/host/snap/gnome-42-2204/120
/dev/loop13          squashfs      508928    508928         0 100% /mnt/host/snap/gnome-42-2204/141
/dev/loop14          squashfs       93952     93952         0 100% /mnt/host/snap/gtk-common-themes/1535
/dev/loop15          squashfs       12672     12672         0 100% /mnt/host/snap/snap-store/959
/dev/loop16          squashfs       41856     41856         0 100% /mnt/host/snap/snapd/20290
/dev/loop17          squashfs       41472     41472         0 100% /mnt/host/snap/snapd/20671
/dev/nvme0n1p2       ext4       959786032  72771224 838186600   8% /mnt/host/var/snap/firefox/common/host-hunspell
/dev/loop18          squashfs         512       512         0 100% /mnt/host/snap/snapd-desktop-integration/83
/dev/nvme0n1p1       vfat          523248      6220    517028   1% /mnt/host/boot/efi
//10.0.0.20/Media/UFC  cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Media/UFC
//10.0.0.20/Media/Photos     cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Media/Photos
//10.0.0.20/Media/Documentaries            cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Media/Documentaries
//10.0.0.20/Media/Comedy     cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Media/Comedy
//10.0.0.20/Media/Backup     cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Backup
//10.0.0.20/Media/Movies     cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Media/Movies
df: /mnt/host/DATA/Media/TV\040Shows: No such file or directory
//10.0.0.20/Media/Music    cifs       39345255876 9628426672 29716829204  24% /mnt/host/DATA/Media/Music
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/609b3711d4d40a122bff2618c055282cf7621c5db0887331f141b0e7a1fabe50/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/792681f63aac9b60917018ab7521053bab14dfb7d2c33aac7c79c91664a32668/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/daf29832440922f7e7be22900a766d7e444cd0db81d44f50f238d3a6064f11cc/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/c120998fe94f81804d36d4c955490e795716b916560816910a836b8ddce2f3ee/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/890c9f9f4c84da38bcdd8f04586737235c22498c56f48df6e585d5efac4930dc/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/ba5a342d8cb11ceb07d5f7f502daaaec107627ced540990f81c06105ff56d0e5/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/a8416f2c5689ba4e511c8391c67c12fc42ca636f9a32c6561c3800b86a372a23/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/769bc06e0709900d1baac2688fd36de4466ae04a57e32f951c947198012e3e56/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/c8c2d87d1a8a792825767332092a59d4dfe54e9c7aa977e09156a852bef26984/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/ecfe327328e392093dead3950021a9a274c30926b99a8dfca11caef8ea2ade8e/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/cac7ab0bc56db7a85d676f2e9ae7f9816426e682190782d1ddfcfa7782b98586/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/bea9eda233c02b805e77f6b15218f5316307b29ffb13a9cbff5eeaa546a5e36d/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/dad052dcc97c729f9168482d1b9355742c5f2be8cd4811a619d3ca52b2a16f46/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/13b54b79bdd876a46bef879d52242a087e91accb2bb1990712b9e019fb184d8c/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/b3fbb5da518f45a39316e65d029877900f56a0356aa58d262d094a81ad4885f0/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/b3fbb5da518f45a39316e65d029877900f56a0356aa58d262d094a81ad4885f0/merged
tmpfs                tmpfs          65536         0     65536   0% /mnt/host/var/lib/docker/overlay2/b3fbb5da518f45a39316e65d029877900f56a0356aa58d262d094a81ad4885f0/merged/dev
shm                  tmpfs          65536         0     65536   0% /mnt/host/var/lib/docker/overlay2/b3fbb5da518f45a39316e65d029877900f56a0356aa58d262d094a81ad4885f0/merged/dev/shm
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/228ef67d243a2dfff1f1ed9f4e6a91c468ed86b3f8f630f127874e3b513937f8/merged
/dev/nvme0n1p2       ext4       959786032  72771220 838186604   8% /etc/resolv.conf
/dev/nvme0n1p2       ext4       959786032  72771220 838186604   8% /etc/hostname
/dev/nvme0n1p2       ext4       959786032  72771220 838186604   8% /etc/hosts
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/e4a73ae9ac0d6bb36d200933b28619cac8c6651885dcab25dbc01c94d16067ca/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/91f151eccaddad2d3e0c82e8fce66954f767b4f3228605640f011ab5f2973c77/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/4256ed12378be75adbd9db14ee8acbf67493a8ab5f9b0a9edd08a9b629bee75b/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/3c780521520f4ba9d98b477686dcdb9519e7e619300e2ccd0782bfd9d374ff13/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/a44619aa4420bf471e17f5c07754f8d702628f5ab685bd1628c9e169cd56229e/merged
overlay              overlay    959786032  72771220 838186604   8% /mnt/host/var/lib/docker/overlay2/9a20a660bb6a4a38525ffee6529344056f0b7f77138dd482eece389aabf03e37/merged
MauriceNino commented 8 months ago

Thank you!

I have created a ticket on the systeminformation repository, if you have any new information, please post it there directly.

SecOps-7 commented 8 months ago

Thanks Maurice,

Will do.

scotthowson commented 8 months ago

I am having the same issue as well, `df -kPT

Filesystem     Type     1024-blocks      Used  Available Capacity Mounted on
/dev/sdd3      btrfs      936028160 115686796  817667668      13% /
devtmpfs       devtmpfs        4096         0       4096       0% /dev
tmpfs          tmpfs       32839080         0   32839080       0% /dev/shm
efivarfs       efivarfs         192        59        129      32% /sys/firmware/efi/efivars
tmpfs          tmpfs       13135632      5996   13129636       1% /run
/dev/sdd3      btrfs      936028160 115686796  817667668      13% /home
tmpfs          tmpfs       32839080         0   32839080       0% /tmp
/dev/sdb       ext4      3844551496  30238208 3618945976       1% /mnt/4tb_ironwolf_1
/dev/sda       ext4       960303848 719662336  191787000      79% /mnt/Plex
/dev/sdc1      ext4       479596224  16115900  439044664       4% /mnt/Downloads
/dev/sde1      ext4       960303100      2104  911446524       1% /mnt/extra_drive
/dev/sdd2      ext4          996780    317576     610392      35% /boot
/dev/sdd1      vfat          613160     17780     595380       3% /boot/efi
tmpfs          tmpfs        6567816        96    6567720       1% /run/user/42
/dev/sdf       ext4      3844551496      2080 3649182104       1% /mnt/4tb_ironwolf_2
tmpfs          tmpfs        6567816        76    6567740       1% /run/user/1000

`docker exec Dash df -kPT

Filesystem           Type       1024-blocks    Used Available Capacity Mounted on
overlay              overlay    936028160 115686804 817667628  12% /
tmpfs                tmpfs          65536         0     65536   0% /dev
shm                  tmpfs          65536         0     65536   0% /dev/shm
/dev/sdd3            btrfs      936028160 115686804 817667628  12% /mnt/host
devtmpfs             devtmpfs        4096         0      4096   0% /mnt/host/dev
tmpfs                tmpfs       32839080         0  32839080   0% /mnt/host/dev/shm
efivarfs             efivarfs         192        59       128  31% /mnt/host/sys/firmware/efi/efivars
tmpfs                tmpfs       13135632      6000  13129632   0% /mnt/host/run
tmpfs                tmpfs        6567816        96   6567720   0% /mnt/host/run/user/42
tmpfs                tmpfs        6567816        76   6567740   0% /mnt/host/run/user/1000
/dev/sdd3            btrfs      936028160 115686804 817667628  12% /mnt/host/home
tmpfs                tmpfs       32839080         0  32839080   0% /mnt/host/tmp
/dev/sdb             ext4       3844551496  30238208 3618945976   1% /mnt/host/mnt/4tb_ironwolf_1
/dev/sda             ext4       960303848 719662336 191787000  79% /mnt/host/mnt/Plex
/dev/sdc1            ext4       479596224  16115900 439044664   4% /mnt/host/mnt/Downloads
/dev/sde1            ext4       960303100      2104 911446524   0% /mnt/host/mnt/extra_drive
/dev/sdd2            ext4          996780    317576    610392  34% /mnt/host/boot
/dev/sdd1            vfat          613160     17780    595380   3% /mnt/host/boot/efi
/dev/sdf             ext4       3844551496      2080 3649182104   0% /mnt/host/mnt/4tb_ironwolf_2
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/23991582d2a8cd68b8adbdc3a580f7ddc77a8497d970e23ecdec4644019d2dca/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/491674bc7e24c2a366c4c220cb1af8ffa982e3640176561e75a91156b2f847a6/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/76dcd4f8ac99c2193c076801d1739b4f7c179c39129638f4075236aa8aca881e/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/8797207e6b15fd74128e4570d0cc1947ebfb4e6a77bd1d595c05045b835768eb/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/2b120fa5422c317a77fa73dc45f3b946420ed4deb549d0eb3ae8d34f78b2cb73/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/011abb8a3796e73543ef156fff39f763831e7f18b5bbc08c607ef81557fcd26a/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/d8a467b89c505d408b10956fc1dda275d51f978951f244d05d2dc17380251e66/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/f0c6122c63cedc48c9acfac75dd449f012cefde47003d29e62805cd1f32a7918/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/0a3e071514a8d38ff8114a23bd874e232d48676df58843dcb75e6359c481bc6a/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/79c23b404f2a3467306c02cd529951f05c0609e4e42706ec40178b583efbccb5/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/fde745a99d859267b7ff74f1425b8c0d744c36964749e21aa9ed5d9131617919/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/2815fd08be3de5ef1cbe7798f9d7750193b61fcc3dc12800d5821a06c59cfce6/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/dc753583a6d56a524342f6c6b7bd02a860dfdaa183a8f5492283445275cf9a78/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/18cb2f15de66da42a4786b2321274b0a74d98b38c741b746dc1ec2ed548d3706/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/bf61227e63adc5582cc8bc8eb68d3be9e57d0d2edeb4596e7e569ae05514dd35/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/a1680af7100c6dc144f76ae09bc47098efd10a1c067cb154f46d75d9b962301f/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/dd32add0943b5ad1c207b9b8708e2114f46db5d51f1311be7395a58146d4f847/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/889e139f671619e60bac64ee7bdf7da3bbf25f8beac4c4ded010809d080516ef/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/3da3bfdaae9a99bdd9bb17986c131860ac49bd47ac4f4f8962973d3f26a59f8b/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/d39a241729bb72b7328c3259ef1efa9adf5824f449a9175ddaa8e9af3212a55e/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/0b0812f3fc248e8607ca9099ca1b1524bb9702f1da04e63fb0503f77a6304999/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/e8ccd86be1fe026b1de47d1b0d3de71a3a967d976e6a5d51fc23cac241e04e9e/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/a5c738178cf69a256866b3e64ab71666ccdbb44ee0c532aad8b04bc18ccec801/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/9085604d92d3d3f6ce85246128fda9342dd84f4ad7e0e9f8f8a04db1027fcb31/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/60b99c2856c13240b2f543bb48b54e33b959a1f994ef3e0145ff6eb6b173b7f4/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/e919ef70914a481c555523cce7effc05567d03e6d699f7bd20b048e90a1a80a3/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/a65d0a41457175a1b9eeb07f04d504608cad5a68f9ff24c006f3f619d7715bf1/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/780b0cab509bfc5a4ef7f57ae6eab60cfa31320cc3acaea701bf8b12273557e9/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/780b0cab509bfc5a4ef7f57ae6eab60cfa31320cc3acaea701bf8b12273557e9/merged
tmpfs                tmpfs          65536         0     65536   0% /mnt/host/var/lib/docker/overlay2/780b0cab509bfc5a4ef7f57ae6eab60cfa31320cc3acaea701bf8b12273557e9/merged/dev
shm                  tmpfs          65536         0     65536   0% /mnt/host/var/lib/docker/overlay2/780b0cab509bfc5a4ef7f57ae6eab60cfa31320cc3acaea701bf8b12273557e9/merged/dev/shm
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/c293cace1fd079e12318ce35cfe2db3e7d693fb1bda7c2b029fc5d512824da1d/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/ab54a66c4c09d36970448022f97d7750226b2201b1ecfc40e8cce5a89ba1b2aa/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/171f1fb72c43537474e6ad08813f1d91a97565490c463ff9703c986a8573e403/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/86c3bb6c7470980ef6d31667d616324402d9791bf24ac58f5ee22e377e6666be/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/e204b3c08bfedca3c8117650be9b180af2f403ec1fce1f3a99f428373879ecf1/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/8456362bbdea8c186a74375fdacda2587779e128d13dccbc81d6fa45c341fa2f/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/4c08c739b54af9645ff867aae2d12c1b00d655660fbca50ee038cf8174d17d49/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/8ac1ed1275dd37d8c25a2eada2ff12f0c2c02ddeb38302ee7c847dec1601e8cd/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/95161612f9efa326f83148c455ba0aed26d9fb7baef6bfe81a9aa9f5f085aa39/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/5865927f737cf6930a3f18b9d648a139cd751bbd5677e419d84d74efaa25a44d/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/4e33608be0bd556a36e8d807e86666bf254fb2af5feceba4bafc3b45a9b85e0c/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/dade21405e7be4dddcae85442acbc70f73d5c8b21ee3ccea5c4833b3bfe7a0f1/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/e452751cdb24f332ccb84668685a17c04f6795296bd443041527891af0d7d61c/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/33a462359dc94b4e1f3ff2d282181b1b8116c33e3102a6fdabe39d8a3230a1f5/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/ede13cfd9358550f87bb4aaed36262eac9db5ae242f61d4e1654b662b85f79da/merged
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/8340a0cd38e79132841319d3fbb8ef267ff65f3bd523ec2ba4e76d05d09d057e/merged
/dev/sdd3            btrfs      936028160 115686804 817667628  12% /etc/resolv.conf
/dev/sdd3            btrfs      936028160 115686804 817667628  12% /etc/hostname
/dev/sdd3            btrfs      936028160 115686804 817667628  12% /etc/hosts
overlay              overlay    936028160 115686804 817667628  12% /mnt/host/var/lib/docker/overlay2/a5e77620f80c6e9d6fd2a7e5deac0f38636aaaa4e0a5853ae051d9407db81ce7/merged
MauriceNino commented 8 months ago

@IllSaft Are you sure you have the same issue? Is your sizes array also empty, like in the snippet posted by @SecOps-7?

If so, please follow the linked issue on the systeminformation repo and provide any helpful info the author might ask for.

PetitGreg19 commented 8 months ago

Hello, I had a similar issue since I did an update on my Debian 12. my /var/log/apt/history.log

docker-compose-plugin:amd64 (2.21.0-1~debian.12~bookworm, 2.24.1-1~debian.12~bookworm),
docker-ce-cli:amd64 (5:24.0.7-1~debian.12~bookworm, 5:25.0.0-1~debian.12~bookworm),
docker-buildx-plugin:amd64 (0.11.2-1~debian.12~bookworm, 0.12.1-1~debian.12~bookworm),
docker-ce:amd64 (5:24.0.7-1~debian.12~bookworm, 5:25.0.0-1~debian.12~bookworm),
docker-ce-rootless-extras:amd64 (5:24.0.7-1~debian.12~bookworm, 5:25.0.0-1~debian.12~bookworm)

I rollback packages docker-ce, docker-ce-cli, docker-ce-rootless-extras, and everything is back to normal on dashdot's dashboard.

I hope it will help to understand what's happening with the new version of those packages.

MauriceNino commented 8 months ago

@PetitGreg19 Thank you for providing the input! Does that mean that you downgraded docker?

Because I setup my home server again like a week ago and dashdot is running fine with what I am assuming are the newest versions of docker.

What is your version?

scotthowson commented 8 months ago

I rolled back to 5.5.1 as that version works best for me. all my drives listed. But it was saying "No mount found." With 5.5.1 all my drives listed as they were but with percentages for usage rather than saying No Mount found, and for sure I will follow the issue linked :) Thank you for all your hard work !

PetitGreg19 commented 8 months ago

@PetitGreg19 Thank you for providing the input! Does that mean that you downgraded docker?

Because I setup my home server again like a week ago and dashdot is running fine with what I am assuming are the newest versions of docker.

What is your version?

At the beginning, I was on Docker 24.0.7 with Dashdot 5.6.1 without any issue. I've updated Dashdot to 5.8.2, still no issue. Few hours later, I've updated my Debian, Docker has been updated from 24.0.7 .to 25.0.0, and the issue about storage has started on Dashdot. I've rollbacked (downgrade) Docker to 24.0.7, and everything works fine again on Dashdot. I have other Docker containers who were laggy and slow on 25.0.0 too, and they are back to normal on 24.0.7.

Edit : check this -> https://docs.docker.com/engine/release-notes/25.0/ "Remove deprecated devicemapper storage driver"

MauriceNino commented 8 months ago

@IllSaft Are the devices listed showing a correct value for you? Or are the all 0/100%?

@PetitGreg19 Thanks for clarifying! I will test the upgrade on my system as well.

@SecOps-7 can you check which docker version you are running please?

SecOps-7 commented 8 months ago
docker version

Client: Docker Engine - Community
 Version:           25.0.0
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        e758fe5
 Built:             Thu Jan 18 17:09:49 2024
 OS/Arch:           linux/amd64
 Context:           default
MauriceNino commented 8 months ago

Huh, interesting - can you try if downgrading to 24.x fixes the issues for you? @SecOps-7

SecOps-7 commented 8 months ago

Huh, interesting - can you try if downgrading to 24.x fixes the issues for you? @SecOps-7

Downgraded Docker to 24.0.7. No Change. The problem persists.

MauriceNino commented 8 months ago

Upgraded to 25.x and nothing changed for me as well. Weird.

scotthowson commented 8 months ago

@MauriceNino Sorry for late reply, I installed 2 new 4TB, on previous version it listed correctly, 35Gb/3890Gb, then after update the drives started listing as no mount found like in the screenshot above. Sorry! I wish I was a bit more help! Docker version 25, docker-compose version 2.43.3 :)

SecOps-7 commented 8 months ago

@PetitGreg19 Thank you for providing the input! Does that mean that you downgraded docker? Because I setup my home server again like a week ago and dashdot is running fine with what I am assuming are the newest versions of docker. What is your version?

At the beginning, I was on Docker 24.0.7 with Dashdot 5.6.1 without any issue. I've updated Dashdot to 5.8.2, still no issue. Few hours later, I've updated my Debian, Docker has been updated from 24.0.7 .to 25.0.0, and the issue about storage has started on Dashdot. I've rollbacked (downgrade) Docker to 24.0.7, and everything works fine again on Dashdot. I have other Docker containers who were laggy and slow on 25.0.0 too, and they are back to normal on 24.0.7.

Edit : check this -> https://docs.docker.com/engine/release-notes/25.0/ "Remove deprecated devicemapper storage driver"

@PetitGreg19 You might be on to something. Not sure if it is the cause of issue I'm experiencing since, mine was not working prior to the upgrade to Docker version 25.

The Docker release notes state the following:

Device mapper storage driver

Deprecated in Release: v18.09 Disabled by default in Release: v23.0 Removed in Release: v25.0

The devicemapper storage driver is deprecated in favor of overlay2, and has been removed in Docker Engine v25.0. Users of the > devicemapper storage driver must migrate to a different storage driver, such as overlay2, before upgrading to Docker Engine >v25.0.

The devicemapper storage driver facilitates running Docker on older (3.x) kernels that have no support for other storage drivers > (such as overlay2, or btrfs).

Note sure if this is of any help. This is the storage driver that is reported in my instance of Docker.

sudo docker info | grep "Storage Driver" -A 5

 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
MauriceNino commented 8 months ago

@SecOps-7 I am not sure. I have the same storage driver on my system and dashdot runs fine:

sudo docker info | grep "Storage Driver" -A 5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false

Also, I don't know much about the docker storage driver, but if it is about the overlay mount that is shown inside the container, which I assume, then dashdot is not actually using this.

SecOps-7 commented 8 months ago

Okay, so I thought it might be a good idea to add my GPU information to Dash.

So I redeployed it with the "Nvidia" tag and some minor changes to get the GPU to show up and low an behold, the storage works on this build.

Not sure what the difference between the nvidia vs the latest build is, but the storage works on nvidia.

Here is my docker compose:

      # Dashdot
  dash:
    container_name: Dashdot
    devices:
      - /dev/dri:/dev/dri 
    image: mauricenino/dashdot:nvidia
    restart: unless-stopped
    privileged: true    
    ports:
      - '3001:3001'
    volumes:
      - /:/mnt/host:ro
    environment:
      DASHDOT_WIDGET_LIST: 'os,cpu,storage,ram,network,gpu'
      DASHDOT_ENABLE_CPU_TEMPS: "true"

@MauriceNino I'm happy to collect some more data to help isolate the issue if needed.

SecOps-7 commented 8 months ago

sudo docker exec Dashdot yarn cli raw-data --storage

Output: ```js 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 = [ { fs: 'overlay', type: 'overlay', size: 982820896768, used: 305853267968, available: 626967543808, use: 32.79, mount: '/', rw: false }, { fs: '/dev/nvme0n1p2', type: 'ext4', size: 982820896768, used: 305853267968, available: 626967543808, use: 32.79, mount: '/mnt/host', rw: true }, { fs: 'efivarfs', type: 'efivarfs', size: 196608, used: 117760, available: 74752, use: 61.17, mount: '/mnt/host/sys/firmware/efi/efivars', rw: false }, { fs: '/dev/nvme0n1p1', type: 'vfat', size: 535805952, used: 6369280, available: 529436672, use: 1.19, mount: '/mnt/host/boot/efi', rw: false } ] 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: '', mount: '/mnt/host/snap/bare/5', size: 4096, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop1', type: 'loop', fsType: '', mount: '/mnt/host/snap/certbot-dns-cloudflare/3077', size: 9715712, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop10', type: 'loop', fsType: '', mount: '/mnt/host/snap/firefox/3626', size: 257945600, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop11', type: 'loop', fsType: '', mount: '/mnt/host/snap/gnome-3-38-2004/143', size: 366682112, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop12', type: 'loop', fsType: '', mount: '/mnt/host/snap/gnome-42-2204/120', size: 509100032, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop13', type: 'loop', fsType: '', mount: '/mnt/host/snap/gnome-42-2204/141', size: 521121792, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop14', type: 'loop', fsType: '', mount: '/mnt/host/snap/gtk-common-themes/1535', size: 96141312, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop15', type: 'loop', fsType: '', mount: '/mnt/host/snap/snap-store/959', size: 12922880, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop16', type: 'loop', fsType: '', mount: '/mnt/host/snap/snapd/20290', size: 42840064, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop17', type: 'loop', fsType: '', mount: '/mnt/host/snap/snapd/20671', size: 42393600, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop18', type: 'loop', fsType: '', mount: '/mnt/host/snap/snapd-desktop-integration/83', size: 462848, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop19', type: 'loop', fsType: '', mount: '/mnt/host/snap/firefox/3687', size: 275263488, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop2', type: 'loop', fsType: '', mount: '/mnt/host/snap/canonical-livepatch/246', size: 10051584, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop3', type: 'loop', fsType: '', mount: '/mnt/host/snap/certbot-dns-cloudflare/3182', size: 9719808, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop4', type: 'loop', fsType: '', mount: '/mnt/host/snap/core/16202', size: 110960640, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop5', type: 'loop', fsType: '', mount: '/mnt/host/snap/core20/2015', size: 66547712, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop6', type: 'loop', fsType: '', mount: '/mnt/host/snap/core20/2105', size: 67014656, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop7', type: 'loop', fsType: '', mount: '/mnt/host/snap/core22/1033', size: 77713408, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'loop8', type: 'loop', fsType: '', mount: '/mnt/host/snap/core22/864', size: 77492224, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: '', group: '' }, { name: 'nvme0n1p1', type: 'part', fsType: '', mount: '/mnt/host/boot/efi', size: 536870912, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: 'nvme', group: '', device: '/dev/nvme0n1' }, { name: 'nvme0n1p2', type: 'part', fsType: '', mount: '/mnt/host', size: 999666221056, physical: '', uuid: '', label: '', model: '', serial: '', removable: false, protocol: 'nvme', group: '', device: '/dev/nvme0n1' } ] ```
MauriceNino commented 8 months ago

Interesting! Can others with this issue confirm this observation? You don't have to enable GPU to use this package, just try it with your default config please :)

Feramance commented 8 months ago

Having the same issue, here's my setup:

  dash:
    container_name: dash
    image: mauricenino/dashdot:latest
    networks:
      - services
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Malta
      - DASHDOT_ENABLE_CPU_TEMPS=true
    restart: unless-stopped
    privileged: true
    volumes:
      - /:/mnt/host:ro
MauriceNino commented 8 months ago

@Feramance Can you please try switching out the image for mauricenino/dashdot:nvidia? The rest of the configuration should stay exactly the same.

SecOps-7 commented 8 months ago

Just some feedback on the nvidia build. But I'm guessing I should probably open a separate case for this.

I found two small bugs.

Feramance commented 8 months ago

@Feramance Can you please try switching out the image for mauricenino/dashdot:nvidia? The rest of the configuration should stay exactly the same.

Seems to be working now, though I share the same issues @SecOps-7 mentioned

federicofortini commented 8 months ago

Same for me, but with one disk correclty displayed and the second one missing. image

Docker compose:

    container_name: dash
    image: mauricenino/dashdot:latest
    restart: unless-stopped
    privileged: true
    ports:
      - '80:3001'
    environment:
      - DASHDOT_ALWAYS_SHOW_PERCENTAGES=true
    volumes:
      - /:/mnt/host:ro

Output of docker exec CONTAINER yarn cli raw-data --storage

Output: ```js const disks = [ { device: '/dev/sda', type: 'SSD', name: 'CYX-SSD-S1000 ', vendor: 'ATA', size: 256060514304, bytesPerSector: null, totalCylinders: null, totalHeads: null, totalSectors: null, totalTracks: null, tracksPerCylinder: null, sectorsPerTrack: null, firmwareRevision: '015', serialNum: '', interfaceType: 'SATA', smartStatus: 'unknown', temperature: null }, { device: '/dev/sdb', type: 'SSD', name: 'Samsung SSD 870 ', vendor: 'Samsung', size: 4000787030016, bytesPerSector: null, totalCylinders: null, totalHeads: null, totalSectors: null, totalTracks: null, tracksPerCylinder: null, sectorsPerTrack: null, firmwareRevision: '2B6Q', serialNum: '', interfaceType: 'SATA', smartStatus: 'unknown', temperature: null } ] const sizes = [ { fs: 'overlay', type: 'overlay', size: 248857907200, used: 42233233408, available: 193908805632, use: 17.88, mount: '/', rw: false }, { fs: '/dev/mapper/debian--vg-root', type: 'ext4', size: 248857907200, used: 42233233408, available: 193908805632, use: 17.88, mount: '/mnt/host', rw: true }, { fs: '/dev/sda2', type: 'ext2', size: 493201408, used: 114878464, available: 352738304, use: 24.57, mount: '/mnt/host/boot', rw: false }, { fs: '/dev/sda1', type: 'vfat', size: 535801856, used: 6115328, available: 529686528, use: 1.14, mount: '/mnt/host/boot/efi', rw: false }, { fs: '/dev/mapper/dati--vg-dati', type: 'ext4', size: 3936853385216, used: 1779259817984, available: 1992552947712, use: 47.17, mount: '/mnt/host/mnt/dati', rw: false } ] const blocks = [ { name: 'sda', type: 'disk', fsType: '', mount: '', size: 256060514304, physical: 'SSD', uuid: '', label: '', model: 'CYX-SSD-S1000', serial: '', removable: false, protocol: 'sata', group: '', device: '/dev/sda' }, { name: 'sdb', type: 'disk', fsType: 'LVM2_member', mount: '', size: 4000787030016, physical: 'SSD', uuid: '5T6A2s-BxVh-BTLu-HyX3-ixxQ-NKQU-IV0ufC', label: '', model: 'Samsung SSD 870', serial: '', removable: false, protocol: 'sata', group: '', device: '/dev/sdb' }, { name: 'sda1', type: 'part', fsType: 'vfat', mount: '/mnt/host/boot/efi', size: 536870912, physical: '', uuid: 'C15B-0F2F', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sda' }, { name: 'sda2', type: 'part', fsType: 'ext2', mount: '/mnt/host/boot', size: 511705088, physical: '', uuid: 'b1271237-89d9-4040-994d-f0c06424e67f', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sda' }, { name: 'sda3', type: 'part', fsType: 'LVM2_member', mount: '', size: 255010537472, physical: '', uuid: 'NUaVGh-81PZ-RMae-gTm9-9arw-uXHF-eZvIRV', label: '', model: '', serial: '', removable: false, protocol: '', group: '', device: '/dev/sda' } ] ```

Relevant part of the output:

storage: [
    {
      size: 256060514304,
      disks: [ { device: 'sda', brand: 'ATA', type: 'SSD' } ]
    },
    {
      size: 4000787030016,
      disks: [ { device: 'sdb', brand: 'Samsung', type: 'SSD' } ]
    }
  ]
djwinston commented 8 months ago

Hi everyone, I had a similar problem until today. After upgrade packages & reboot I have correct disk graph. my storage measurement was [-1,-1] but now measurement array has values

uname -a

Linux fedora 6.7.3-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb  1 03:29:52 UTC 2024 x86_64 GNU/Linux
docker version ``` Client: Docker Engine - Community Version: 25.0.3 API version: 1.44 Go version: go1.21.6 Git commit: 4debf41 Built: Tue Feb 6 21:16:05 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 25.0.3 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: f417435 Built: Tue Feb 6 21:14:27 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0 ```
dnf history info ``` Transaction ID : 73 Begin time : Wed 07 Feb 2024 11:05:29 AM EET Begin rpmdb : d9e5637f6d8b606c665a638a73f554a38a51be61023d78f94dfb4b1f391d19e7 End time : Wed 07 Feb 2024 11:08:26 AM EET (177 seconds) End rpmdb : 09dfa436a0695b537197a2beb094060ed548765aa137783b7340c4d94a416b07 User : ###### Return-Code : Success Releasever : 39 Command Line : update Comment : Packages Altered: Install kernel-6.7.3-200.fc39.x86_64 @updates Install kernel-core-6.7.3-200.fc39.x86_64 @updates Install kernel-devel-6.7.3-200.fc39.x86_64 @updates Install kernel-modules-6.7.3-200.fc39.x86_64 @updates Install kernel-modules-core-6.7.3-200.fc39.x86_64 @updates Install kernel-modules-extra-6.7.3-200.fc39.x86_64 @updates Upgrade docker-ce-3:25.0.3-1.fc39.x86_64 @docker-ce-stable Upgraded docker-ce-3:25.0.2-1.fc39.x86_64 @@System Upgrade docker-ce-cli-1:25.0.3-1.fc39.x86_64 @docker-ce-stable Upgraded docker-ce-cli-1:25.0.2-1.fc39.x86_64 @@System Upgrade docker-ce-rootless-extras-25.0.3-1.fc39.x86_64 @docker-ce-stable Upgraded docker-ce-rootless-extras-25.0.2-1.fc39.x86_64 @@System Upgrade containers-common-4:1-99.fc39.noarch @updates Upgraded containers-common-4:1-95.fc39.noarch @@System Upgrade containers-common-extra-4:1-99.fc39.noarch @updates Upgraded containers-common-extra-4:1-95.fc39.noarch @@System Upgrade kernel-devel-matched-6.7.3-200.fc39.x86_64 @updates Upgraded kernel-devel-matched-6.6.14-200.fc39.x86_64 @@System Upgrade kernel-headers-6.7.3-200.fc39.x86_64 @updates Upgraded kernel-headers-6.6.3-200.fc39.x86_64 @@System Upgrade llvm-libs-17.0.6-3.fc39.i686 @updates Upgraded llvm-libs-17.0.6-2.fc39.i686 @@System Upgrade llvm-libs-17.0.6-3.fc39.x86_64 @updates Upgraded llvm-libs-17.0.6-2.fc39.x86_64 @@System Upgrade mesa-dri-drivers-23.3.5-1.fc39.i686 @updates Upgraded mesa-dri-drivers-23.3.4-1.fc39.i686 @@System Upgrade mesa-dri-drivers-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-dri-drivers-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-filesystem-23.3.5-1.fc39.i686 @updates Upgraded mesa-filesystem-23.3.4-1.fc39.i686 @@System Upgrade mesa-filesystem-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-filesystem-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-libEGL-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-libEGL-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-libGL-23.3.5-1.fc39.i686 @updates Upgraded mesa-libGL-23.3.4-1.fc39.i686 @@System Upgrade mesa-libGL-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-libGL-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-libgbm-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-libgbm-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-libglapi-23.3.5-1.fc39.i686 @updates Upgraded mesa-libglapi-23.3.4-1.fc39.i686 @@System Upgrade mesa-libglapi-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-libglapi-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-libxatracker-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-libxatracker-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-va-drivers-23.3.5-1.fc39.i686 @updates Upgraded mesa-va-drivers-23.3.4-1.fc39.i686 @@System Upgrade mesa-va-drivers-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-va-drivers-23.3.4-1.fc39.x86_64 @@System Upgrade mesa-vulkan-drivers-23.3.5-1.fc39.x86_64 @updates Upgraded mesa-vulkan-drivers-23.3.4-1.fc39.x86_64 @@System Upgrade qt5-qtwebengine-5.15.16-1.fc39.x86_64 @updates Upgraded qt5-qtwebengine-5.15.12-10.fc39.x86_64 @@System Upgrade uresourced-0.5.4-1.fc39.x86_64 @updates Upgraded uresourced-0.5.3-5.fc39.x86_64 @@System Reason Change Box2D-2.4.1-11.fc39.x86_64 @anaconda Removed kernel-6.6.12-200.fc39.x86_64 @@System Removed kernel-core-6.6.12-200.fc39.x86_64 @@System Removed kernel-devel-6.6.12-200.fc39.x86_64 @@System Removed kernel-modules-6.6.12-200.fc39.x86_64 @@System Removed kernel-modules-core-6.6.12-200.fc39.x86_64 @@System Removed kernel-modules-extra-6.6.12-200.fc39.x86_64 @@System Scriptlet output: 1 dkms: running auto installation service for kernel 6.7.3-200.fc39.x86_64Sign command: /lib/modules/6.7.3-200.fc39.x86_64/build/scripts/sign-file 2 Signing key: /var/lib/dkms/mok.key 3 Public certificate (MOK): /var/lib/dkms/mok.pub 4 5 Building module: 6 Cleaning build area... 7 ./dkms-make.sh........ 8 Signing module /var/lib/dkms/rtl8814au/5.8.5.1/build/8814au.ko 9 Cleaning build area... 10 11 8814au.ko.xz: 12 Running module version sanity check. 13 - Original module 14 - No original module exists within this kernel 15 - Installation 16 - Installing to /lib/modules/6.7.3-200.fc39.x86_64/extra/ 17 depmod.... 18 dkms autoinstall on 6.7.3-200.fc39.x86_64/x86_64 succeeded for rtl8814au 19 Done. 20 dkms: running auto installation service for kernel 6.7.3-200.fc39.x86_64 Done. ```
container logs ``` listening on *:3001 Multiple default network interfaces found [br0, wlo1], using "br0" Using default network interface "br0" Using host os version from "/mnt/host/etc/os-release" Static Server Info: { os: { arch: 'x64', distro: 'Fedora Linux', kernel: '6.7.3-200.fc39.x86_64', platform: 'linux', release: '39', uptime: 1299.34, dash_version: '5.8.3', dash_buildhash: 'f7ac2728b89a6c75502c9c736c46a94ff386889b' }, cpu: { brand: 'AMD', model: 'Ryzen 7 5700U with Radeon Graphics Unknown', cores: 8, ecores: 0, pcores: 8, threads: 16, frequency: 4.37 }, ram: { size: 13487996928, layout: [ { brand: 'Unknown', type: 'DDR4', frequency: 3200 }, { brand: 'Unknown', type: 'DDR4', frequency: 3200 } ] }, storage: [ { size: 512110190592, disks: [ { device: 'nvme0n1', brand: '', type: 'NVMe' } ] }, { size: 2048408248320, disks: [ { device: 'sda', brand: 'ATA', type: 'SSD' } ] } ], network: { interfaceSpeed: 10000, speedDown: 0, speedUp: 0, lastSpeedTest: 0, type: 'Bridge', publicIp: '' }, gpu: { layout: [] }, config: { port: 3001, running_in_docker: true, accept_ookla_eula: true, 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: true, show_dash_version: 'bottom_right', show_host: true, 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: 'Ryzen 7 5700U with Radeon Graphics Lucienne', cpu_cores: undefined, cpu_threads: undefined, cpu_frequency: undefined, ram_brand: 'Crucial', 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: { sda: 'Transcend', nvme0n1: 'Samsung' }, 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 [Storage]: [ 35280285696, 24112607232 ] First measurement [RAM]: 4947267584 First measurement [CPU]: [ { load: 2.4554095742181996, temp: 48.5, core: 0 }, { load: 1.4881137111290421, temp: 48.5, core: 1 }, { load: 2.5620265778144535, temp: 48.5, core: 2 }, { load: 1.5947416208162286, temp: 48.5, core: 3 }, { load: 2.55142235361107, temp: 48.5, core: 4 }, { load: 1.5434561951325343, temp: 48.5, core: 5 }, { load: 2.591710264075735, temp: 48.5, core: 6 }, { load: 1.6284423224486317, temp: 48.5, core: 7 }, { load: 3.7129273262395293, temp: 48.5, core: 8 }, { load: 2.634712827976992, temp: 48.5, core: 9 }, { load: 3.820326607828269, temp: 48.5, core: 10 }, { load: 2.5941246582065483, temp: 48.5, core: 11 }, { load: 3.5392846558205555, temp: 48.5, core: 12 }, { load: 2.6347639884554512, temp: 48.5, core: 13 }, { load: 3.5057896994034854, temp: 48.5, core: 14 }, { load: 1.9436586972526833, temp: 48.5, core: 15 } ] Speed-test completed successfully [ookla] { speedDown: 192652096, speedUp: 193506832, publicIp: undefined } ```
docker service ``` dash: container_name: dash hostname: dash image: mauricenino/dashdot:latest restart: unless-stopped privileged: true environment: DASHDOT_ENABLE_CPU_TEMPS: true DASHDOT_SHOW_HOST: true DASHDOT_DISABLE_INTEGRATIONS: true DASHDOT_SHOW_DASH_VERSION: bottom_right DASHDOT_ACCEPT_OOKLA_EULA: true DASHDOT_OVERRIDE_RAM_BRAND: Crucial DASHDOT_OVERRIDE_STORAGE_BRANDS: sda=Transcend,nvme0n1=Samsung DASHDOT_OVERRIDE_CPU_MODEL: Ryzen 7 5700U with Radeon Graphics Lucienne ports: - '8888:3001' volumes: - /:/mnt/host:ro ```
screens ![disk_1](https://github.com/MauriceNino/dashdot/assets/29452563/a68220c7-5745-4575-b4fb-24c6454f3655) ![disk_2](https://github.com/MauriceNino/dashdot/assets/29452563/8361ee8b-04ec-4577-8e6f-c8aca7ba2afe) ![disk_3](https://github.com/MauriceNino/dashdot/assets/29452563/00bf7eb2-956d-4ac4-aaa9-e5ee0a5e6f9c)

dashdot container image updated 2 weeks ago As I understand systeminformation package has locked version. I think updating docker dependencies or other system packages affected it

@SecOps-7 could you check problem after upgrade your Ubuntu packages?

SecOps-7 commented 8 months ago

@djwinston Thanks for the update. Much appreciated.

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

SecOps-7 commented 8 months ago

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

djwinston commented 8 months ago

@SecOps-7 Could you provide log of upgraded packages? last two upgrades. We need to investigate it. I'll aso try upgrade when next update available Did you have changes with measurement [Storage] ?

SecOps-7 commented 8 months ago

@djwinston Below are the packages that where updated today.

sudo grep "2024-02-07" /var/log/dpkg.log | grep "status installed"

Issue was fixed after these docker updates were installed:

2024-02-07 12:32:04 status installed docker-ce-cli:amd64 5:25.0.3-1~ubuntu.22.04~jammy
2024-02-07 12:32:04 status installed docker-ce-rootless-extras:amd64 5:25.0.3-1~ubuntu.22.04~jammy
2024-02-07 12:32:19 status installed docker-ce:amd64 5:25.0.3-1~ubuntu.22.04~jammy
2024-02-07 12:32:19 status installed man-db:amd64 2.10.2-1

These Ubuntu updates then broke it again:

2024-02-07 14:53:40 status installed linux-hwe-6.5-headers-6.5.0-17:all 6.5.0-17.17~22.04.1
2024-02-07 14:53:40 status installed linux-headers-6.5.0-17-generic:amd64 6.5.0-17.17~22.04.1
2024-02-07 14:53:40 status installed linux-headers-generic-hwe-22.04:amd64 6.5.0.17.17~22.04.9
2024-02-07 14:53:41 status installed linux-modules-6.5.0-17-generic:amd64 6.5.0-17.17~22.04.1
2024-02-07 14:53:42 status installed linux-modules-extra-6.5.0-17-generic:amd64 6.5.0-17.17~22.04.1
2024-02-07 14:53:43 status installed linux-image-6.5.0-17-generic:amd64 6.5.0-17.17~22.04.1
2024-02-07 14:53:43 status installed linux-image-generic-hwe-22.04:amd64 6.5.0.17.17~22.04.9
2024-02-07 14:53:43 status installed linux-generic-hwe-22.04:amd64 6.5.0.17.17~22.04.9
2024-02-07 14:53:53 status installed linux-image-6.5.0-17-generic:amd64 6.5.0-17.17~22.04.1
djwinston commented 8 months ago

@SecOps-7 so if you compare our update logs, the only difference is in the kernel. But it won't help. After the docker update, the container worked correctly for a while. I have one guess. Maybe there are other docker contexts (desktop-linux) that prevent the correct mounting of the root disk partition?

check this

sudo docker context ls
NAME        DESCRIPTION                               DOCKER ENDPOINT               ERROR
default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock

and try up compose with your GID UID ids echo $(id -u) echo $(id -g) usually it uid:1000 gid:1000

 environment:
      ...
      UID: _your uid_
      GID: _your gid_
SecOps-7 commented 7 months ago

@djwinston I get the exact same result as you.

sudo docker context ls

NAME        DESCRIPTION                               DOCKER ENDPOINT               ERROR
default *   Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
echo $(id -u)
1000
echo $(id -g)
1000
GAS85 commented 6 months ago

I think the problem is that if you are using LVM or crypt there is no way for a docker app to see what is inside, e.g. this is difference:

Docker lsblk.

docker exec dash lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0     7:0    0    45M  1 loop  /mnt/host/snap/certbot/3566
loop1     7:1    0  45.2M  1 loop  /mnt/host/snap/certbot/3643
loop2     7:2    0 105.8M  1 loop  /mnt/host/snap/core/16202
loop3     7:3    0 105.4M  1 loop  /mnt/host/snap/core/16574
loop4     7:4    0  55.7M  1 loop  /mnt/host/snap/core18/2796
loop5     7:5    0  55.7M  1 loop  /mnt/host/snap/core18/2812
loop6     7:6    0  63.9M  1 loop  /mnt/host/snap/core20/2105
loop7     7:7    0  63.9M  1 loop  /mnt/host/snap/core20/2182
loop8     7:8    0  91.8M  1 loop  /mnt/host/snap/lxd/23991
loop9     7:9    0  91.8M  1 loop  /mnt/host/snap/lxd/24061
sda       8:0    0   5.5T  0 disk  
└─sda1    8:1    0   5.5T  0 part  
  └─md0   9:0    0   5.5T  0 raid1 
sdb       8:16   0   5.5T  0 disk  
└─sdb1    8:17   0   5.5T  0 part  
  └─md0   9:0    0   5.5T  0 raid1 
sdc       8:32   0 931.5G  0 disk  
sdd       8:48   0 476.9G  0 disk  
├─sdd1    8:49   0   512M  0 part  /mnt/host/boot/efi
├─sdd2    8:50   0     1G  0 part  /mnt/host/boot
└─sdd3    8:51   0 475.4G  0 part  

System lsblk

lsblk
NAME                                MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0                                 7:0    0    45M  1 loop  /snap/certbot/3566
loop1                                 7:1    0  45.2M  1 loop  /snap/certbot/3643
loop2                                 7:2    0 105.8M  1 loop  /snap/core/16202
loop3                                 7:3    0 105.4M  1 loop  /snap/core/16574
loop4                                 7:4    0  55.7M  1 loop  /snap/core18/2796
loop5                                 7:5    0  55.7M  1 loop  /snap/core18/2812
loop6                                 7:6    0  63.9M  1 loop  /snap/core20/2105
loop7                                 7:7    0  63.9M  1 loop  /snap/core20/2182
loop8                                 7:8    0  91.8M  1 loop  /snap/lxd/23991
loop9                                 7:9    0  91.8M  1 loop  /snap/lxd/24061
sda                                   8:0    0   5.5T  0 disk  
`-sda1                                8:1    0   5.5T  0 part  
  `-md0                               9:0    0   5.5T  0 raid1 
    `-raid                          253:5    0   5.5T  0 crypt 
      `-raid--vg-data--lv           253:6    0   5.5T  0 lvm   /var/nextcloud
sdb                                   8:16   0   5.5T  0 disk  
`-sdb1                                8:17   0   5.5T  0 part  
  `-md0                               9:0    0   5.5T  0 raid1 
    `-raid                          253:5    0   5.5T  0 crypt 
      `-raid--vg-data--lv           253:6    0   5.5T  0 lvm   /var/nextcloud
sdc                                   8:32   0 931.5G  0 disk  
`-SMALL                             253:3    0 931.5G  0 crypt 
  `-vg--smallraid-lv--smallraid     253:4    0   931G  0 lvm   /mnt/smallraid
sdd                                   8:48   0 476.9G  0 disk  
|-sdd1                                8:49   0   512M  0 part  /boot/efi
|-sdd2                                8:50   0     1G  0 part  /boot
`-sdd3                                8:51   0 475.4G  0 part  
  |-ubuntu--vg-ubuntu--lv           253:0    0   150G  0 lvm   /
  |-ubuntu--vg-nextcoud_previews_lv 253:1    0   150G  0 lvm   /mnt/raid/nextcloud/data/appdata
  `-ubuntu--vg-docker_lv            253:2    0    50G  0 lvm 
eddiekerr commented 5 months ago

I also came across this issue today, but only when I moved from using latest to nvidia. Moving back to latest has put everything back to normal and I can see my RAID0 array again. Running lsblk inside both containers and on the host showed the same things (apart from the mountpoints having /mnt/host/ prefixed when inside the container).

The only real difference I could come across is that bash was the shell env for the nvidia image while latest was using sh instead.

evilpig commented 4 months ago

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

trixas97 commented 2 weeks ago

Hello I have a simillar issue. The real storage usage is ~= 21% and the dotdash shows 0%.

My server: OS: Ubuntu server 20 System: Firebat mini server CPU: Intel N100 Ram: 16gb Storage: 512gb ssd

Output of command (Ubuntu server): df -h

Filesystem                         Size  Used Avail Use% Mounted on
tmpfs                              1.6G  4.0M  1.6G   1% /run
efivarfs                           192K   92K   96K  49% /sys/firmware/efi/efivars
/dev/mapper/ubuntu--vg-ubuntu--lv  466G   92G  355G  21% /
tmpfs                              7.8G     0  7.8G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
/dev/sda2                          2.0G  183M  1.7G  10% /boot
/dev/sda1                          1.1G  6.2M  1.1G   1% /boot/efi
tmpfs                              1.6G   12K  1.6G   1% /run/user/1000

Output of command (dashdot Container): df -h

Filesystem                         Size  Used Avail Use% Mounted on
overlay                            466G   92G  355G  21% /
tmpfs                               64M     0   64M   0% /dev
shm                                 64M     0   64M   0% /dev/shm
none                               7.8G     0  7.8G   0% /mnt/host
/dev/loop5                          75M   75M     0 100% /mnt/host/opt
/dev/mapper/ubuntu--vg-ubuntu--lv  466G   92G  355G  21% /mnt/host/tmp
tmpfs                              7.8G     0  7.8G   0% /mnt/host/usr/libexec
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/e60fce8bda68f3248dec1b06b9ca4891ecde83f14c42d15c2775d59b2f8f6e71/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/94d2c48ec6cff964574d33ddb2354f8c19d9c18ef9ad340141e688a3c2b8c3ad/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/385c6008f3870e1b0bc21447368c82605d7bd8823d70ed9e5fd6323a230114af/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/118f00570213a74b66b8690d1a9be030375e24c1d6ee784f8317ca92b6a9272e/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/17c40a07305726673790ba88c74ac39fdbb4fe4498e81f0b07f53fbe3efcdf25/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/33d2fce917d6b7dfb72052b1f78e2f7778603a35d0ff748fe9cd6340d8ff0bc0/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/3d5160144a0e3bbebb2c12638df8528488bc06b4c1ac11f479d903f67f768770/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/e7b46e5f274afba8b04ee5cfcb11b4e5772a8533b5695deff2db654d4ffdad41/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/61d41b08b1f2d0ec43ffb6484a121dc4aaf8d4a2551361a1af14c9532aad3e2e/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/e9d602381046ef40b28cf0a6ab4c0276820dae58119b885b8d9a33eaf2e92633/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/12654493cd647982fdea51c98085c37ec051f373ee61f159d4d252c70f603b73/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/7e63443168f6d6497a14ebb516b0d5e1fd0729c9f1741f3f9c008f822b4cc191/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/cd0274e41c4ec293e4f1de0452f87d9c429bef5e73d6471be6a7be32d39ec6b6/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/699d02ca2b8bef5534b3bac454ed53f7c98d37066ab858c96ffeaa46da579c89/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/d2a104298517225f83cc0a083014c246a15abc3e07933f83b2f2cafc2aec55ea/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/a96164d6f989a684a6f2b03640a9520d63390a9999798a500903d27578484ca9/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/6a09d384876472e79b2ad7f0a89c06d87444dcc145ec35d5d2cf500bf6bab391/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/b813a8738a2dbb10f8eb1da9acfd938493074d67cdda2e0fe63bc55714b6868e/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/08fdbdc166e21c51cc653a8b1300263820b725878b82eebed9bf1fe66fdc3e07/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/206cf56e80825d0901ef78bf891b1e7e3d22d40ee9feacd14729f4b81c7a23ad/merged
overlay                            466G   92G  355G  21% /mnt/host/var/snap/docker/common/var-lib-docker/overlay2/29300ef87b682a85ab2bcca2bf055429aea23a5fe8ff84fafabf1562bdadde3a/merged
tmpfs                              1.6G  4.0M  1.6G   1% /mnt/host/run
tmpfs                              5.0M     0  5.0M   0% /mnt/host/run/lock
tmpfs                              1.6G   12K  1.6G   1% /mnt/host/run/user/1000
/dev/loop1                         131M  131M     0 100% /mnt/host/snap/docker/2915
/dev/loop2                          75M   75M     0 100% /mnt/host/snap/core22/1586
/dev/loop3                         132M  132M     0 100% /mnt/host/snap/docker/2932
/dev/loop4                          39M   39M     0 100% /mnt/host/snap/snapd/21759
/dev/sda2                          2.0G  183M  1.7G  10% /mnt/host/var/lib/snapd/hostfs/boot
/dev/sda1                          1.1G  6.2M  1.1G   1% /mnt/host/var/lib/snapd/hostfs/boot/efi
udev                               7.7G     0  7.7G   0% /mnt/host/dev
tmpfs                              7.8G     0  7.8G   0% /mnt/host/dev/shm
tmpfs                              7.8G     0  7.8G   0% /mnt/host/etc
efivarfs                           192K   92K   96K  49% /mnt/host/sys/firmware/efi/efivars

Logs of dashdot containers:

listening on *:3001
Using default network interface "enp1s0"
Using host os version from "/mnt/host/etc/os-release"
Static Server Info: {
  os: {
    arch: 'x64',
    distro: 'Ubuntu Core',
    kernel: '6.8.0-41-generic',
    platform: 'linux',
    release: '22',
    uptime: 1351713.4,
    dash_version: '5.8.6',
    dash_buildhash: 'a0e2ee941c37092804cb11acc7252ada877b9772'
  },
  cpu: {
    brand: 'Intel',
    model: 'N100 To Be Filled By O.E.M.',
    cores: 4,
    ecores: 0,
    pcores: 4,
    threads: 4,
    frequency: 3.4
  },
  ram: {
    size: 16539930624,
    layout: [
      { brand: 'Micron Technology', type: 'LPDDR5', frequency: 6400 },
      { brand: 'Micron Technology', type: 'LPDDR5', frequency: 6400 },
      { brand: 'Micron Technology', type: 'LPDDR5', frequency: 6400 },
      { brand: 'Micron Technology', type: 'LPDDR5', frequency: 6400 }
    ]
  },
  storage: [
    {
      size: 512110190592,
      disks: [ { device: 'sda', brand: 'ATA', type: 'SSD' } ]
    }
  ],
  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',
      '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: true,
    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 [Storage]: [ 197787648 ]
First measurement [RAM]: 3966599168
First measurement [CPU]: [
  { load: 4.737082488329282, temp: 46, core: 0 },
  { load: 4.72649919583537, temp: 47, core: 1 },
  { load: 4.723276322047483, temp: 48, core: 2 },
  { load: 4.715806291457775, temp: 48, core: 3 }
]
Speed-test completed successfully [speedtest-cli] {
  speedDown: 54901695.149415106,
  speedUp: 9851537.953965208,
  publicIp: undefined
}

My docker-compose yaml file is here:

version: '3.5'
services:
  dash:
    image: mauricenino/dashdot:latest
    restart: unless-stopped
    privileged: true
    ports:
      - '3001:3001'
    volumes:
      - /:/mnt/host:ro
      # - /proc:/mnt/host/proc:ro
      # - /sys:/mnt/host/sys:ro
      # - /media:/mnt/host/media:ro
      # - /etc/os-release:/mnt/host/etc/os-release:ro
    environment:
      DASHDOT_ENABLE_CPU_TEMPS: true
      DASHDOT_ALWAYS_SHOW_PERCENTAGES: true
      DASHDOT_WIDGET_LIST: 'os,cpu,storage,ram,network'