[smartmontools-support] 'Smartctl: Exception: json.cpp(313): Assertion failed: p->type == nt_array' when using -l error and json options concurrently
Taylor Vent
tvent at datto.com
Mon Jan 9 22:16:55 CET 2023
Hello,
Came across the following error that said to inform this email address:
smartctl --all --json --tolerance=permissive --smart=on /dev/sda
Smartctl: Exception: json.cpp(313): Assertion failed: p->type == nt_array
Please inform smartmontools-support at listi.jpberlin.de, including output of smartctl -V.
Narrowing down the flags that --all includes, everything works except for '-l error', which on its own and combined with --json fails with the same error:
smartctl -l error /dev/sda --json
Smartctl: Exception: json.cpp(313): Assertion failed: p->type == nt_array
Please inform smartmontools-support at listi.jpberlin.de, including output of smartctl -V.
Here is the output without the --json option:
smartctl -l error /dev/sda
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.15.0-48-generic] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 0 0 0 0 0 75357.886 0
write: 0 0 0 0 0 21257.910 0
verify: 0 0 0 0 0 23.283 0
Non-medium error count: 0
Pending defect count:8 Pending Defects: index, LBA and accumulated_power_on_hours follow
1: 0x7d20230 , 2208
2: 0x7d20231 , 2208
3: 0x7d20232 , 2208
4: 0x7d20233 , 2208
5: 0x7d20234 , 2208
6: 0x7d20235 , 2208
7: 0x7d20236 , 2208
8: 0x7d20237 , 2208
As requested smartctl -V:
smartctl -V
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-5.15.0-48-generic] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
smartctl comes with ABSOLUTELY NO WARRANTY. This is free
software, and you are welcome to redistribute it under
the terms of the GNU General Public License; either
version 2, or (at your option) any later version.
See https://www.gnu.org for further details.
smartmontools release 7.3 dated 2022-02-28 at 16:33:40 UTC
smartmontools SVN rev 5338 dated 2022-02-28 at 16:34:26
smartmontools build host: x86_64-pc-linux-gnu
smartmontools build with: C++14, GCC 9.3.0
smartmontools configure arguments: '--host=x86_64-linux-gnu' '--build=x86_64-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib/x86_64-linux-gnu' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-selinux' '--with-libcap-ng=yes' '--with-libsystemd' '--with-systemdsystemunitdir=/lib/systemd/system' '--sysconfdir=/etc/smartmontools/' '--with-systemdenvfile=/etc/default/smartmontools' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CXXFLAGS=-O2 -g' 'LDFLAGS=' 'CFLAGS=-O2 -g'
And for posterity, all flags the --all option includes except for -l error, with --json, working:
smartctl -H -i -c -A -l selftest -l selective /dev/sda --json
{
"json_format_version": [
1,
0
],
"smartctl": {
"version": [
7,
3
],
"svn_revision": "5338",
"platform_info": "x86_64-linux-5.15.0-48-generic",
"build_info": "(local build)",
"argv": [
"smartctl",
"-H",
"-i",
"-c",
"-A",
"-l",
"selftest",
"-l",
"selective",
"/dev/sda",
"--json"
],
"exit_status": 0
},
"local_time": {
"time_t": 1673298779,
"asctime": "Mon Jan 9 13:12:59 2023 PST"
},
"device": {
"name": "/dev/sda",
"info_name": "/dev/sda",
"type": "scsi",
"protocol": "SCSI"
},
"scsi_vendor": "SEAGATE",
"scsi_product": "ST18000NM006J",
"scsi_model_name": "SEAGATE ST18000NM006J",
"scsi_revision": "PSL9",
"scsi_version": "SPC-5",
"user_capacity": {
"blocks": 35156656128,
"bytes": 18000207937536
},
"logical_block_size": 512,
"physical_block_size": 4096,
"scsi_lb_provisioning": {
"name": "fully provisioned",
"value": 0,
"management_enabled": {
"name": "LBPME",
"value": 0
},
"read_zeros": {
"name": "LBPRZ",
"value": 0
}
},
"rotation_rate": 7200,
"form_factor": {
"scsi_value": 2,
"name": "3.5 inches"
},
"logical_unit_id": "0x5000c500d7a65f07",
"serial_number": "ZR53P3A5",
"device_type": {
"scsi_terminology": "Peripheral Device Type [PDT]",
"scsi_value": 0,
"name": "disk"
},
"scsi_transport_protocol": {
"name": "SAS (SPL-4)",
"value": 6
},
"smart_support": {
"available": true,
"enabled": true
},
"temperature_warning": {
"enabled": true
},
"smart_status": {
"passed": true
},
"temperature": {
"current": 26,
"drive_trip": 60
},
"power_on_time": {
"hours": 2281,
"minutes": 24
},
"scsi_start_stop_cycle_counter": {
"year_of_manufacture": "2021",
"week_of_manufacture": "34",
"specified_cycle_count_over_device_lifetime": 50000,
"accumulated_start_stop_cycles": 339,
"specified_load_unload_count_over_device_lifetime": 600000,
"accumulated_load_unload_cycles": 431
},
"scsi_grown_defect_list": 0,
"scsi_self_test_0": {
"code": {
"value": 1,
"string": "Background short"
},
"result": {
"value": 0,
"string": "Completed"
},
"power_on_time": {
"hours": 2280,
"aka": "accumulated_power_on_hours"
}
},
"scsi_self_test_1": {
"code": {
"value": 7,
"string": "Reserved(7)"
},
"result": {
"value": 0,
"string": "Completed"
},
"failed_segment": {
"value": 80,
"aka": "self_test_number"
},
"power_on_time": {
"hours": 3,
"aka": "accumulated_power_on_hours"
}
},
"scsi_self_test_2": {
"code": {
"value": 1,
"string": "Background short"
},
"result": {
"value": 0,
"string": "Completed"
},
"power_on_time": {
"hours": 2,
"aka": "accumulated_power_on_hours"
}
},
"scsi_extended_self_test_seconds": 95460
}
Important Notice: This email is intended to be received only by persons entitled to receive the confidential and legally privileged information it presumptively contains, and this notice constitutes identification as such. Any reading, disclosure, copying, distribution or use of this information by or to someone who is not the intended recipient, is prohibited. If you received this email in error, please notify us immediately at legal at kaseya.com, and then delete it. To opt-out of receiving emails Please click here<https://info.kaseya.com/email-subscription-center.html>. The term 'this e-mail' includes any and all attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20230109/5eadb8ec/attachment-0001.htm>
More information about the Smartmontools-support
mailing list