jtjones1001 / nvmetools

Basic tools for working with NVMe SSD on Windows or Linux
MIT License
13 stars 2 forks source link

viewnvme KeyError: 'Host Controlled Thermal Management (HCTMA)' #9

Open dkuegler opened 2 months ago

dkuegler commented 2 months ago

I have multiple errors in the different commands:

$viewnvme
 Epic! NVMe Tools, version 0.8.0, www.nvmetools.com, Copyright (C) 2023 Joe Jones
 ------------------------------------------------------------------------------------------
 VIEW NVME
 ------------------------------------------------------------------------------------------
 Logs: /home/user/viewnvme
 Read: NVMe 0 [2:0:0] - Samsung MZVLW1T0HMLH-000H1 1024GB
 ------------------------------------------------------------------------------------------
  FATAL ERROR : 50
 ------------------------------------------------------------------------------------------
 Unknown error.  Send developer details below and debug.log

Traceback (most recent call last):
  File "env/nvmetools/lib/python3.12/site-packages/nvmetools/console/viewnvme.py", line 137, in read_nvme
    create_dashboard(directory, start_nvme, all_nvme_info)
  File "env/nvmetools/lib/python3.12/site-packages/nvmetools/lib/nvme/reporter.py", line 137, in create_dashboard
    add_health_info(all_nvme[uid])
  File "env/nvmetools/lib/python3.12/site-packages/nvmetools/lib/nvme/reporter.py", line 333, in add_health_info
    if p["Host Controlled Thermal Management (HCTMA)"]["value"] == "Supported":
       ~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'Host Controlled Thermal Management (HCTMA)'
$readnvme
 Epic! NVMe Tools, version 0.8.0, www.nvmetools.com, Copyright (C) 2023 Joe Jones
         ------------------------------------------------------------------------------------------
          NVME DRIVE 0  (/dev/nvme0)
         ------------------------------------------------------------------------------------------
 ------------------------------------------------------------------------------------------
  FATAL ERROR : 50
 ------------------------------------------------------------------------------------------
 Unknown error.  Send developer details below and debug.log

Traceback (most recent call last):
  File "env/nvmetools/lib/python3.12/site-packages/nvmetools/console/readnvme.py", line 201, in read_nvme
    info.show()
  File "env/nvmetools/lib/python3.12/site-packages/nvmetools/support/info.py", line 657, in show
    self._show()
  File "env/nvmetools/lib/python3.12/site-packages/nvmetools/support/info.py", line 430, in _show
    self.parameters["Subsystem Vendor"],
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'Subsystem Vendor'

I do not know where to find the debug.log file