Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Storage Issue: No mount found. Cannot see storage usage for my hard disks #1046

Open
singhprincejeet opened this issue Mar 11, 2024 · 9 comments

Comments

@singhprincejeet
Copy link

singhprincejeet commented Mar 11, 2024

Description of the bug

First of all thanks for creating and maintaining this tool. I really appreciate your time and effort in building such tools and helping folks like me.

I cannot see the storage usage of my hard disks. All I see is the name of the hard disks and a message saying no mount found.

image

How to reproduce

No response

Relevant log output

I'm not sure what logs you would need, but I saw that you asked for this in some other issues, so I'm sharing this early on.
Output:
const disks =  [
  {
    device: '/dev/sda',
    type: 'SSD',
    name: 'HFS256G32MND-220',
    vendor: 'ATA',
    size: 256060514304,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: '0L00',
    serialNum: '',
    interfaceType: 'SATA',
    smartStatus: 'unknown',
    temperature: null
  },
  {
    device: '/dev/sdb',
    type: 'SSD',
    name: 'WDC  WDS250G2B0B',
    vendor: 'Western Digital',
    size: 250059350016,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: '20WD',
    serialNum: '',
    interfaceType: 'SATA',
    smartStatus: 'unknown',
    temperature: null
  },
  {
    device: '/dev/sdc',
    type: 'HD',
    name: 'My Passport 0827',
    vendor: 'WD',
    size: 1000170586112,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: '1012',
    serialNum: '',
    interfaceType: 'USB',
    smartStatus: 'unknown',
    temperature: null
  }
]
const sizes =  []
const blocks =  [
  {
    name: 'sda',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 256060514304,
    physical: 'SSD',
    uuid: '',
    label: '',
    model: 'HFS256G32MND-220',
    serial: '',
    removable: false,
    protocol: 'sata',
    group: '',
    device: '/dev/sda'
  },
  {
    name: 'sdb',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 250059350016,
    physical: 'SSD',
    uuid: '',
    label: '',
    model: 'WDC  WDS250G2B0B',
    serial: '',
    removable: false,
    protocol: 'sata',
    group: '',
    device: '/dev/sdb'
  },
  {
    name: 'sdc',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 1000170586112,
    physical: 'HDD',
    uuid: '',
    label: '',
    model: 'My Passport 0827',
    serial: '',
    removable: false,
    protocol: 'usb',
    group: '',
    device: '/dev/sdc'
  },
  {
    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/chromium-ffmpeg/37',
    size: 14643200,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop10',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gaming-graphics-core22/154',
    size: 218710016,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop11',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gnome-3-28-1804/198',
    size: 172830720,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop12',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gnome-42-2204/141',
    size: 521121792,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop13',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/gtk-common-themes/1535',
    size: 96141312,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop14',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/kubectl/3180',
    size: 12521472,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop15',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/opera/293',
    size: 165052416,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop16',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snap-store/1046',
    size: 11026432,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop17',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snapd/20290',
    size: 42840064,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop18',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snapd/21184',
    size: 40996864,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop19',
    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/core18/2812',
    size: 58363904,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop20',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/steam/171',
    size: 201392128,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop21',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/snap-store/1110',
    size: 10743808,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop22',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/firefox/3941',
    size: 280453120,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop3',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core20/2182',
    size: 67010560,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop4',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/core22/864',
    size: 77492224,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop5',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/discord/179',
    size: 102453248,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop6',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/docker/2915',
    size: 136404992,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop7',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/firefox/3216',
    size: 252190720,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop8',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/firmware-updater/109',
    size: 11747328,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop9',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/snap/firmware-updater/121',
    size: 11206656,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'sda1',
    type: 'part',
    fsType: 'ext4',
    mount: '/mnt/host_media/prince/77736232-894e-4bd3-b1b9-0e4ad92d921f',
    size: 256058064896,
    physical: '',
    uuid: '77736232-894e-4bd3-b1b9-0e4ad92d921f',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sda'
  },
  {
    name: 'sdb1',
    type: 'part',
    fsType: '',
    mount: '',
    size: 1048576,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sdb'
  },
  {
    name: 'sdb2',
    type: 'part',
    fsType: 'ext4',
    mount: '/mnt/host/var/lib/snapd/hostfs',
    size: 250056015872,
    physical: '',
    uuid: 'e9502692-4ae1-42b5-a8bd-43738459059c',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sdb'
  },
  {
    name: 'sdc1',
    type: 'part',
    fsType: 'ntfs',
    mount: '/mnt/host_media/prince/My Passport',
    size: 1000169537536,
    physical: '',
    uuid: '4E1AEA7B1AEA6007',
    label: 'My Passport',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sdc'
  }
]

Info output of dashdot cli

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

Cwd: /app
Hash: f7ac2728b89a6c75502c9c736c46a94ff386889b
Platform: Linux bf42bb24b47f 6.5.0-25-generic #25-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb  7 14:58:39 UTC 2024 x86_64 Linux
Docker image: base
In Docker: true
In Docker (env): true
In Podman: false

What browsers are you seeing the problem on?

Chrome

Where is your instance running?

Desktop PC (Linux)

Additional context

No response

@lukee12zakk
Copy link

have the same problem with 2 drives where there is 1 that is not mounted but the other is mounted

@kmanan
Copy link

kmanan commented Mar 24, 2024

Have the same problem on TrueNAS Scale. it worked well but then I think I updated dashdot... not no storage

@sonnguyen9800
Copy link

Encountered the same issue after update Dashdot :'( Should I downgrade to the previous version?

My installation is by Docker-compose btw

@beenum22
Copy link

Folks, I faced the same issue but then I realized that I forgot to mount the host node's / path in the dashdot container. After mounting / host path at /mnt/host/ path of the container, I was able to see the volume usages.

@kmanan
Copy link

kmanan commented Mar 30, 2024

Interesting! Worth looking into. I didn't have to do this for any of the other versions, even after I rolled back the install that's part of TrueCharts for TrueNAS Scale, drives showed up right away. Doesn't seem like any new features are being added either so gonna sit with the old version.

@chaomarks
Copy link

/各位,我遇到了同样的问题,但后来我意识到我忘记在 dashdot 容器中安装主机节点的路径。在容器的路径上安装/主机路径后/mnt/host/,我能够看到卷的使用情况。
I have the same problem. Can you tell me how to do it?

@joaoptpsa
Copy link

I am facing the same issue:
After upgrading from ghcr.io 5.2.3 to docker hub 5.8.3;

These are my volume mappings:
volumes:
- /etc/os-release:/etc/os-release:ro
- /proc/1/ns/net:/mnt/host_ns_net:ro
- /mnt:/mnt/host/mnt:ro
- /media:/mnt/host/media:ro

@Ofelipe57
Copy link

I am facing the same issue with truenas scale.

@FaNt4zMa
Copy link

FaNt4zMa commented Jul 29, 2024

@joaoptpsa Your solution worked for me. After redeploying Dash. on my new server, it was working fine at first, then after a reboot, It wouldn't see my disk usage. So I added the same volumes as you to my compose (except I had to modify the last one):
volumes:

  • /etc/os-release:/etc/os-release:ro
  • /proc/1/ns/net:/mnt/host_ns_net:ro
  • /mnt:/mnt/host:ro
  • /media:/mnt/host:ro
    Before I only had to mount the root directory from the host but I guess something must have changed with 5.8.3, or with Ubuntu.. shrug
    But now, something else is wrong. In my Network, it says I have a 10Gb/s Interface speed while I only have 1Gb/s...

Edit: The solution was found here. Simply exec into the container and add a missing package. Et voila. (It even persisted after a system reboot)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants