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] SSD Not showing size #1076

Open
mgabor3141 opened this issue Oct 7, 2024 · 0 comments
Open

[Bug] SSD Not showing size #1076

mgabor3141 opened this issue Oct 7, 2024 · 0 comments

Comments

@mgabor3141
Copy link

Description of the bug

image

How to reproduce

No response

Relevant log output

docker logs dashdot

listening on *:3001
Multiple default network interfaces found [shim-br0, br0], using "shim-br0"
Using default network interface "shim-br0"
Error: Command failed: ln -sf /mnt/host/etc/os-release /etc/os-release
ln: '/mnt/host/etc/os-release' and '/etc/os-release' are the same file

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at Socket.<anonymous> (node:internal/child_process:457:11)
    at Socket.emit (node:events:519:28)
    at Pipe.<anonymous> (node:net:339:12) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'ln -sf /mnt/host/etc/os-release /etc/os-release',
  stdout: '',
  stderr: "ln: '/mnt/host/etc/os-release' and '/etc/os-release' are the same file\n"
}
Static Server Info: {
  os: {
    arch: 'x64',
    distro: 'Slackware',
    kernel: '6.1.106-Unraid',
    platform: 'linux',
    release: '15.0',
    uptime: 2141003.11,
    dash_version: '5.9.0',
    dash_buildhash: '696233f6378f4af6c45bf88144dcec4edb38f8ba'
  },
  cpu: {
    brand: 'Intel',
    model: 'Gen Intel® Core™ i5-12600K To Be Filled By O.E.M.',
    cores: 10,
    ecores: 4,
    pcores: 6,
    threads: 16,
    frequency: 4.9
  },
  ram: { size: 0, layout: [] },
  storage: [
    {
      size: 1000204886016,
      disks: [ { device: 'nvme0n1', brand: '', type: 'NVMe' } ]
    }
  ],
  network: {
    interfaceSpeed: 0,
    speedDown: 0,
    speedUp: 0,
    lastSpeedTest: 0,
    type: '',
    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: [ 'sda', 'sdb', 'sdc', 'sdd' ],
    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: 'video.mgabor.hu',
    page_title: 'video.mgabor.hu',
    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' ],
    os_label_list: [ 'up_since' ],
    cpu_label_list: [ 'brand', 'model', 'cores', 'threads', 'frequency' ],
    storage_label_list: [ 'brand', 'size', 'type' ],
    ram_label_list: [ 'brand', 'size', 'type', '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: []
    }
  }
}
First measurement [Storage]: [ -1 ]
First measurement [CPU]: [
  { load: 12.62849393442638, temp: 45, core: 0 },
  { load: 1.7496102411364522, temp: 45, core: 1 },
  { load: 79.50664555252254, temp: 40, core: 2 },
  { load: 75.63250535772175, temp: 40, core: 3 },
  { load: 13.352525707934662, temp: 39, core: 4 },
  { load: 1.170167349360146, temp: 39, core: 5 },
  { load: 13.68982593540737, temp: 42, core: 6 },
  { load: 1.050197086653154, temp: 42, core: 7 },
  { load: 13.983544450920524, temp: 45, core: 8 },
  { load: 1.000408636198883, temp: 45, core: 9 },
  { load: 14.100147157533153, temp: 39, core: 10 },
  { load: 0.9223221020760866, temp: 39, core: 11 },
  { load: 4.593252911477999, temp: 39, core: 12 },
  { load: 3.3479911070319393, temp: 39, core: 13 },
  { load: 2.628304905527624, temp: 39, core: 14 },
  { load: 2.0892968357840167, temp: 43, core: 15 }
]

Info output of dashdot cli

INFO
=========
Yarn: 3.7.0
Node: v20.17.0
Dash: 5.9.0

Cwd: /app
Hash: 696233f6378f4af6c45bf88144dcec4edb38f8ba
Platform: Linux e7e028fb4241 6.1.106-Unraid #1 SMP PREEMPT_DYNAMIC Wed Aug 21 23:36:07 PDT 2024 x86_64 GNU/Linux
Docker image: base
In Docker: true
In Docker (env): true
In Podman: false

What browsers are you seeing the problem on?

Chrome

Where is your instance running?

Linux Server

Additional context

Running in docker on unraid.

Device match should return true, so I suspect it might be validSizes that filters out the '/' mount. Is there anything I can do to fix?

Full output of docker exec dashdot yarn cli raw-data --storage

Output:
const disks =  [
  {
    device: '/dev/sda',
    type: 'HD',
    name: 'Flash Drive FIT ',
    vendor: 'Samsung',
    size: 64160400896,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: '1100',
    serialNum: '',
    interfaceType: 'USB',
    smartStatus: 'unknown',
    temperature: null
  },
  {
    device: '/dev/sdb',
    type: 'HD',
    name: 'ST20000NM007D-3D',
    vendor: 'Seagate',
    size: 20000588955648,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: 'SC03',
    serialNum: '',
    interfaceType: 'SATA',
    smartStatus: 'unknown',
    temperature: null
  },
  {
    device: '/dev/sdc',
    type: 'HD',
    name: 'ST20000NM007D-3D',
    vendor: 'Seagate',
    size: 20000588955648,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: 'SC03',
    serialNum: '',
    interfaceType: 'SATA',
    smartStatus: 'unknown',
    temperature: null
  },
  {
    device: '/dev/sdd',
    type: 'HD',
    name: 'ST20000NM007D-3D',
    vendor: 'Seagate',
    size: 20000588955648,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: 'SC03',
    serialNum: '',
    interfaceType: 'SATA',
    smartStatus: 'unknown',
    temperature: null
  },
  {
    device: '/dev/nvme0n1',
    type: 'NVMe',
    name: 'CT1000P3PSSD8                           ',
    vendor: '',
    size: 1000204886016,
    bytesPerSector: null,
    totalCylinders: null,
    totalHeads: null,
    totalSectors: null,
    totalTracks: null,
    tracksPerCylinder: null,
    sectorsPerTrack: null,
    firmwareRevision: '',
    serialNum: '233442E0BB40',
    interfaceType: 'PCIe',
    smartStatus: 'unknown',
    temperature: null
  }
]
const sizes =  [
  {
    fs: '/dev/nvme0n1p1',
    type: 'btrfs',
    size: 1000203837440,
    used: 824902078464,
    available: 171990003712,
    use: 82.75,
    mount: '/',
    rw: true
  },
  {
    fs: '/dev/sda1',
    type: 'vfat',
    size: 64143654912,
    used: 972029952,
    available: 63171624960,
    use: 1.52,
    mount: '/mnt/host/boot',
    rw: true
  },
  {
    fs: 'overlay',
    type: 'overlay',
    size: 16710332416,
    used: 276848640,
    available: 16433483776,
    use: 1.66,
    mount: '/mnt/host/lib',
    rw: false
  },
  {
    fs: '/dev/md2p1',
    type: 'xfs',
    size: 19998451904512,
    used: 15308311486464,
    available: 4690140418048,
    use: 76.55,
    mount: '/mnt/host/mnt/disk2',
    rw: true
  },
  {
    fs: '/dev/md3p1',
    type: 'xfs',
    size: 19998451904512,
    used: 12705749925888,
    available: 7292701978624,
    use: 63.53,
    mount: '/mnt/host/mnt/disk3',
    rw: true
  },
  {
    fs: 'shfs',
    type: 'fuse.shfs',
    size: 39996903809024,
    used: 28014061412352,
    available: 11982842396672,
    use: 70.04,
    mount: '/mnt/host/mnt/user0',
    rw: false
  },
  {
    fs: '/dev/loop2',
    type: 'btrfs',
    size: 1073741824,
    used: 5152768,
    available: 947511296,
    use: 0.54,
    mount: '/mnt/host/etc/libvirt',
    rw: true
  }
]
const blocks =  [
  {
    name: 'nvme0n1',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 1000204886016,
    physical: 'SSD',
    uuid: '',
    label: '',
    model: 'CT1000P3PSSD8',
    serial: '233442E0BB40        ',
    removable: false,
    protocol: 'nvme',
    group: '',
    device: '/dev/nvme0n1'
  },
  {
    name: 'sda',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 64160400896,
    physical: 'HDD',
    uuid: '',
    label: '',
    model: 'Flash Drive FIT',
    serial: '',
    removable: true,
    protocol: 'usb',
    group: '',
    device: '/dev/sda'
  },
  {
    name: 'sdb',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 20000588955648,
    physical: 'HDD',
    uuid: '',
    label: '',
    model: 'ST20000NM007D-3D',
    serial: '',
    removable: false,
    protocol: 'sata',
    group: '',
    device: '/dev/sdb'
  },
  {
    name: 'sdc',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 20000588955648,
    physical: 'HDD',
    uuid: '',
    label: '',
    model: 'ST20000NM007D-3D',
    serial: '',
    removable: false,
    protocol: 'sata',
    group: '',
    device: '/dev/sdc'
  },
  {
    name: 'sdd',
    type: 'disk',
    fsType: '',
    mount: '',
    size: 20000588955648,
    physical: 'HDD',
    uuid: '',
    label: '',
    model: 'ST20000NM007D-3D',
    serial: '',
    removable: false,
    protocol: 'sata',
    group: '',
    device: '/dev/sdd'
  },
  {
    name: 'loop0',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/lib',
    size: 66531328,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop1',
    type: 'loop',
    fsType: 'squashfs',
    mount: '/mnt/host/usr',
    size: 355663872,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'loop2',
    type: 'loop',
    fsType: 'btrfs',
    mount: '/mnt/host/etc/libvirt',
    size: 1073741824,
    physical: '',
    uuid: 'ed9af389-8396-4bab-afbe-eb7d9d16e0c1',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'md2p1',
    type: 'md',
    fsType: 'xfs',
    mount: '/mnt/host/mnt/disk2',
    size: 20000588902400,
    physical: '',
    uuid: 'b19f7f2f-493d-4eb4-8498-2106a01f6686',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'md3p1',
    type: 'md',
    fsType: 'xfs',
    mount: '/mnt/host/mnt/disk3',
    size: 20000588902400,
    physical: '',
    uuid: 'd0f45285-6f1f-49e0-9721-91985c4cdc1e',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: ''
  },
  {
    name: 'nvme0n1p1',
    type: 'part',
    fsType: 'btrfs',
    mount: '/mnt/host/mnt/cache',
    size: 1000203837440,
    physical: '',
    uuid: '04550ed3-7d69-47b2-bb5c-aec2bd4447c1',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: 'nvme',
    group: '',
    device: '/dev/nvme0n1'
  },
  {
    name: 'sda1',
    type: 'part',
    fsType: 'vfat',
    mount: '/mnt/host/boot',
    size: 64159352320,
    physical: '',
    uuid: '2736-60C3',
    label: 'UNRAID',
    model: '',
    serial: '',
    removable: true,
    protocol: '',
    group: '',
    device: '/dev/sda'
  },
  {
    name: 'sdb1',
    type: 'part',
    fsType: 'xfs',
    mount: '',
    size: 20000588905984,
    physical: '',
    uuid: 'b19f7f2f-493d-4eb4-8498-2106a01f6686',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sdb'
  },
  {
    name: 'sdc1',
    type: 'part',
    fsType: '',
    mount: '',
    size: 20000588905984,
    physical: '',
    uuid: '',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sdc'
  },
  {
    name: 'sdd1',
    type: 'part',
    fsType: 'xfs',
    mount: '',
    size: 20000588905984,
    physical: '',
    uuid: 'd0f45285-6f1f-49e0-9721-91985c4cdc1e',
    label: '',
    model: '',
    serial: '',
    removable: false,
    protocol: '',
    group: '',
    device: '/dev/sdd'
  }
]
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

1 participant