You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nvme show-regs
The parameter is mandatory and must be the nvme admin character device (ex: /dev/nvme0).
But here you are passing the block device i.e. "/dev/nvme0n1" instead of character device "/dev/nvme0" in nvme_list.py line 22.
So eventually the script gets fails
(Pdb) device_path '/dev/nvme0n1' (Pdb) c Traceback (most recent call last): File "/home/ubuntu/nvme_exporter/nvme_exporter.py", line 184, in <module> main() File "/home/ubuntu/nvme_exporter/nvme_exporter.py", line 176, in main gather_nvme_ctrl_info(nvme_ctrl_gauge, nvme_list_json) File "/home/ubuntu/nvme_exporter/nvme_exporter.py", line 106, in gather_nvme_ctrl_info ctrl_json = nc.get_ctrl_regs(device) File "/home/ubuntu/nvme_exporter/nvme_ctrl.py", line 16, in get_ctrl_regs json_data = json.loads(stdout) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
$ sudo nvme show-regs /dev/nvme0n1
nvme-subsys0 is not a physical nvme controller
It works fine with character device
$ sudo nvme show-regs /dev/nvme0
cap : 1800c0301e023fff
version : 20000
cc : 460001
csts : 1
Please fix the issue.
The text was updated successfully, but these errors were encountered:
nvme show-regs
The parameter is mandatory and must be the nvme admin character device (ex: /dev/nvme0).
But here you are passing the block device i.e. "/dev/nvme0n1" instead of character device "/dev/nvme0" in nvme_list.py line 22.
So eventually the script gets fails
(Pdb) device_path '/dev/nvme0n1' (Pdb) c Traceback (most recent call last): File "/home/ubuntu/nvme_exporter/nvme_exporter.py", line 184, in <module> main() File "/home/ubuntu/nvme_exporter/nvme_exporter.py", line 176, in main gather_nvme_ctrl_info(nvme_ctrl_gauge, nvme_list_json) File "/home/ubuntu/nvme_exporter/nvme_exporter.py", line 106, in gather_nvme_ctrl_info ctrl_json = nc.get_ctrl_regs(device) File "/home/ubuntu/nvme_exporter/nvme_ctrl.py", line 16, in get_ctrl_regs json_data = json.loads(stdout) File "/usr/lib/python3.10/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
$ sudo nvme show-regs /dev/nvme0n1
nvme-subsys0 is not a physical nvme controller
It works fine with character device
$ sudo nvme show-regs /dev/nvme0
cap : 1800c0301e023fff
version : 20000
cc : 460001
csts : 1
Please fix the issue.
The text was updated successfully, but these errors were encountered: