SAP Knowledge Base Article - Public

3799444 - Invalid storage secret key length, must be 32 characters long but is 64. The secret length in Node.js 22 or higher must be 32 characters long

Symptom

  • di-local-npm-registry application crashes during web ide installation/update.
  • Error message in logs: "Invalid storage secret key length, must be 32 characters long but is 64. The secret length in Node.js 22 or higher must be 32 characters long. Please consider generate a new one."
  • Process state: "FAILED with state 'CRASHED': Process terminated unexpectedly with exit code: 255".
  • Warning messages in logs: "(node) [VERCODE01] Warning: Database name deprecated! Please rename database name from .sinopia-db.json to .verdaccio-db.json".

Environment

SAP Web IDE for Hana Installation

Reproducing the Issue

  1. Start or update the Web IDE by installing the XSAC_SAP_WEB_IDE package using the xs client.
  2. Check the logs of the di-local-npm-registry application (for example, xs logs di-local-npm-registry).
  3. Observe the error "Invalid storage secret key length, must be 32 characters long but is 64" and the application crash with exit code 255.

Cause

The Verdaccio local storage secret used by di-local-npm-registry has a 64-character value, but Node.js 22 or higher requires a 32-character secret, causing initialization to fail and the app to crash.

Resolution

Please use the attached averdaccio-64-to-32-character-error.pdf to resolve the issue with di-local-npm-registry and then continue with the update of WebIDE. 

See Also

Keywords

di-local-npm-registry, verdaccio, storage secret, invalid storage secret key length, 32 characters, node.js 22, web ide update, xsa, xs install, crash, exit code 255, sinopia-db.json, verdaccio-db.json, local npm registry, web ide installation , KBA , HAN-WDE-INS , SAP Web IDE for Hana Installation , Problem

Product

SAP S/4HANA Cloud Public Edition all versions

Attachments

verdaccio-64-to-32-character-error.pdf