mirror of
https://github.com/007revad/Synology_HDD_db.git
synced 2026-04-25 21:55:59 +03:00
[GH-ISSUE #565] Parse errors on DSM 7.3.2 (RS4021xs+) – JSON parse failure when adding drives #708
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_HDD_db#708
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sorcier180 on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/565
Hi,
I’m running Synology_HDD_db v3.6.122 on:
Model: RS4021xs+
Architecture: x86_64
DSM: 7.3.2-86009-1
StorageManager: 1.0.1-1100
SynoOnlinePack_v2: 1038
The script runs correctly in interactive shell and detects drives properly:
Detected drives:
However, when attempting to add drives to the compatibility database, I consistently get JSON parse errors:
parse error: Expected value before ',' at line 1, column 70051
ERROR{Off} Failed to add ST18000NM000J-2TV103 (...) to rs4021xs+_host_v7.db
Similar errors occur for:
The script completes execution, but no drives are successfully added due to these parse failures.
It looks like the compatibility DB files on DSM 7.3.2 may have changed format or contain JSON that is not fully compatible with the current parsing logic.
SSH : "Synology_HDD_db v3.6.122
RS4021xs+ x86_64 DSM 7.3.2-86009-1
Running from: /volume2/Sauvegarde/Synology_HDD007revad/syno_hdd_db.sh
Running in interactive shell
HDD/SSD models found: 2
ST18000NM000J-2TV103,SN01,18000 GB
ST18000NM000J-2TV103,SN02,18000 GB
M.2 drive models found: 1
Samsung SSD 980 PRO 1TB,5B2QGXA7,1000 GB
M.2 PCIe card models found: 1
M2D20
No Expansion Units found
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
ERROR{Off} Failed to add ST18000NM000J-2TV103 (SN01) to rs4021xs+_host_v7.db
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
ERROR{Off} Failed to add ST18000NM000J-2TV103 (SN02) to rs4021xs+_host_v7.db
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
parse error: Expected value before ',' at line 1, column 70051
ERROR{Off} Failed to add Samsung SSD 980 PRO 1TB (5B2QGXA7) to rs4021xs+_host_v7.db
parse error: Expected value before ',' at line 1, column 9304
parse error: Expected value before ',' at line 1, column 9304
parse error: Expected value before ',' at line 1, column 9304
parse error: Expected value before ',' at line 1, column 9304
ERROR{Off} Failed to add Samsung SSD 980 PRO 1TB (5B2QGXA7) to rs4021xs+_m2d20_v7.db
M2D20 NVMe already enabled for RS4021xs+
Support disk compatibility already enabled.
Support memory compatibility already enabled.
NVMe support already enabled.
M.2 volume support already enabled.
Drive db auto updates already enabled.
Creating pool in UI on drives in M.2 adaptor card already enabled.
DSM successfully checked disk compatibility.
You may need to reboot the Synology to see the changes.
"
Thanks for your work on this script.
@Sorcier180 commented on GitHub (Feb 17, 2026):
In the end, I found the solution on my own.
I ran ./syno_hdd_db.sh --restore --ssd=restore, then executed the script again with ./syno_hdd_db.sh.
This time it completed successfully without any errors.
Synology_HDD_db v3.6.122
RS4021xs+ x86_64 DSM 7.3.2-86009-1
Running from: /volume2/Sauvegarde/Synology_HDD007revad/syno_hdd_db.sh
Running in interactive shell
HDD/SSD models found: 2
ST18000NM000J-2TV103,SN01,18000 GB
ST18000NM000J-2TV103,SN02,18000 GB
M.2 drive models found: 1
Samsung SSD 980 PRO 1TB,5B2QGXA7,1000 GB
M.2 PCIe card models found: 1
M2D20
No Expansion Units found
ST18000NM000J-2TV103 (SN01) already exists in rs4021xs+_host_v7.db
ST18000NM000J-2TV103 (SN02) already exists in rs4021xs+_host_v7.db
Samsung SSD 980 PRO 1TB (5B2QGXA7) already exists in rs4021xs+_host_v7.db
Samsung SSD 980 PRO 1TB (5B2QGXA7) already exists in rs4021xs+_m2d20_v7.db
M2D20 NVMe already enabled for RS4021xs+
Support disk compatibility already enabled.
Support memory compatibility already enabled.
NVMe support already enabled.
Enabled M.2 volume support.
Drive db auto updates already enabled.
Enabled creating pool on drives in M.2 adaptor card.
DSM successfully checked disk compatibility.
You may need to reboot the Synology to see the changes.
Thank you again for everything you do.