[smartmontools-support] Assertion error when output is JSON formatted
Johan Söllvander
jsollvander at axcient.com
Mon Feb 20 12:04:58 CET 2023
Hey,
I just got this assertion error when I was trying to print all SMART
information about a failing disk in JSON output mode:
smartctl -a /dev/da307 --json
Smartctl: Exception: json.cpp(313): Assertion failed: p->type == nt_array
Version:
smartctl 7.3 2022-02-28 r5338 [FreeBSD 13.0-AXCIENT3-p5 amd64] (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: amd64-portbld-freebsd13.0
smartmontools build with: C++11, GCC FreeBSD Clang 11.0.1
(git at github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
smartmontools configure arguments: '--disable-dependency-tracking'
'--enable-sample' '--with-gnupg=no'
'--with-initscriptdir=/usr/local/etc/rc.d' '--with-nvme-devicescan=yes'
'--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man'
'--disable-silent-rules' '--infodir=/usr/local/share/info/'
'--build=amd64-portbld-freebsd13.0'
'build_alias=amd64-portbld-freebsd13.0' 'CXX=c++' 'CXXFLAGS=-O2 -pipe
-fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS=
-fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CC=cc' 'CFLAGS=-O2 -pipe
-fstack-protector-strong -fno-strict-aliasing '
Attaching a .txt with normal formatted SMART info for reference if that
helps.
Let me know if you need any more information.
--
Best Regards
Johan Söllvander
Cloud Engineer, Axcient
-------------- next part --------------
smartctl -a /dev/da307
smartctl 7.3 2022-02-28 r5338 [FreeBSD 13.0-AXCIENT3-p5 amd64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: SEAGATE
Product: ST16000NM002G
Revision: E003
Compliance: SPC-5
User Capacity: 16,000,900,661,248 bytes [16.0 TB]
Logical block size: 512 bytes
Physical block size: 4096 bytes
LU is fully provisioned
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Logical Unit id: 0x5000c500d6e6f627
Serial number: <Removed>
Device type: disk
Transport protocol: SAS (SPL-4)
Local Time is: Mon Feb 20 10:32:44 2023 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
Temperature Warning: Enabled
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Grown defects during certification <not available>
Total blocks reassigned during format <not available>
Total new blocks reassigned = 7974
Power on minutes since format <not available>
Current Drive Temperature: 46 C
Drive Trip Temperature: 60 C
Accumulated power on time, hours:minutes 13065:50
Manufactured in week 15 of year 2021
Specified cycle count over device lifetime: 50000
Accumulated start-stop cycles: 13
Specified load-unload count over device lifetime: 600000
Accumulated load-unload cycles: 1202
Elements in grown defect list: 6027
Vendor (Seagate Cache) information
Blocks sent to initiator = 2244651952
Blocks received from initiator = 681824096
Blocks read from cache and sent to initiator = 918213013
Number of read and write commands whose size <= segment size = 1584567841
Number of read and write commands whose size > segment size = 15546561
Vendor (Seagate/Hitachi) factory information
number of hours powered up = 13065.83
number of minutes until next internal SMART test = 53
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 583711.033 0
write: 0 0 11 11 81 235747.501 0
verify: 0 0 0 0 0 179.391 0
Non-medium error count: 0
Pending defect count:16 Pending Defects: index, LBA and accumulated_power_on_hours follow
1: 0x1bd464eb8 , 12970
2: 0x1bd464eb9 , 12970
3: 0x1bd464eba , 12970
4: 0x1bd464ebb , 12970
5: 0x1bd464ebc , 12970
6: 0x1bd464ebd , 12970
7: 0x1bd464ebe , 12970
8: 0x1bd464ebf , 12970
9: 0x4c628ddd8 , 12966
10: 0x4c628ddd9 , 12966
11: 0x4c628ddda , 12966
12: 0x4c628dddb , 12966
13: 0x4c628dddc , 12966
14: 0x4c628dddd , 12966
15: 0x4c628ddde , 12966
16: 0x4c628dddf , 12966
[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background short Aborted (by user command) - 13 - [- - -]
Long (extended) Self-test duration: 85020 seconds [23.6 hours]
More information about the Smartmontools-support
mailing list