[GH-ISSUE #565] Parse errors on DSM 7.3.2 (RS4021xs+) – JSON parse failure when adding drives #708

Open
opened 2026-03-11 13:16:51 +03:00 by kerem · 1 comment
Owner

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:

  • ST18000NM000J-2TV103 (2 units)
  • Samsung SSD 980 PRO 1TB
  • M2D20 PCIe card

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:

  • rs4021xs+_host_v7.db
  • rs4021xs+_m2d20_v7.db

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

  • StorageManager 1.0.1-1100
  • SynoOnlinePack_v2 version 1038
  • rs4021xs+_host_v7 version 8047

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.

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: - ST18000NM000J-2TV103 (2 units) - Samsung SSD 980 PRO 1TB - M2D20 PCIe card 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: - rs4021xs+_host_v7.db - rs4021xs+_m2d20_v7.db 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 - StorageManager 1.0.1-1100 - SynoOnlinePack_v2 version 1038 - rs4021xs+_host_v7 version 8047 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.
Author
Owner

@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

  • StorageManager 1.0.1-1100
  • SynoOnlinePack_v2 version 1038
  • rs4021xs+_host_v7 version 8047

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.

<!-- gh-comment-id:3916725668 --> @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 - StorageManager 1.0.1-1100 - SynoOnlinePack_v2 version 1038 - rs4021xs+_host_v7 version 8047 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_HDD_db#708
No description provided.