Error: “data is too long” when uploading large mbox with file encryption enabled #117

Open
opened 2026-04-05 16:16:37 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @autarkylab on 11/1/2025

Describe the bug
When file encryption at rest is enabled, uploading a large (~4.5 GB) mbox fails. Removing file encryption, all works as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Archive > Ingestions > Create New
  2. Upload mbox
  3. Error occurs while uploading file (before selecting submit)

Expected behavior
Should be able to upload a large mbox with file encryption at rest is enabled

Screenshots
Image

System:

  • Open Archiver Version: v0.4.0

Relevant logs:

[1] [0] node:internal/crypto/cipher:172
[1] [0]   const ret = this[kHandle].update(data, inputEncoding);
[1] [0]                             ^
[1] [0] 
[1] [0] RangeError: data is too long
[1] [0]     at Cipheriv.update (node:internal/crypto/cipher:172:29)
[1] [0]     at StorageService.encrypt (/app/packages/backend/dist/services/StorageService.js:39:49)
[1] [0]     at StorageService.put (/app/packages/backend/dist/services/StorageService.js:67:45)
[1] [0]     at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
[1] [0]   code: 'ERR_OUT_OF_RANGE'
[1] [0] }
*Originally created by @autarkylab on 11/1/2025* **Describe the bug** When file encryption at rest is enabled, uploading a large (~4.5 GB) mbox fails. Removing file encryption, all works as expected. **To Reproduce** Steps to reproduce the behavior: 1. Archive > Ingestions > Create New 2. Upload mbox 3. Error occurs while uploading file (before selecting submit) **Expected behavior** Should be able to upload a large mbox with file encryption at rest is enabled **Screenshots** <img width="433" height="145" alt="Image" src="https://github.com/user-attachments/assets/c6deec2b-81d8-426c-b2eb-6ac6307355be" /> **System:** - Open Archiver Version: v0.4.0 **Relevant logs:** ``` [1] [0] node:internal/crypto/cipher:172 [1] [0] const ret = this[kHandle].update(data, inputEncoding); [1] [0] ^ [1] [0] [1] [0] RangeError: data is too long [1] [0] at Cipheriv.update (node:internal/crypto/cipher:172:29) [1] [0] at StorageService.encrypt (/app/packages/backend/dist/services/StorageService.js:39:49) [1] [0] at StorageService.put (/app/packages/backend/dist/services/StorageService.js:67:45) [1] [0] at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { [1] [0] code: 'ERR_OUT_OF_RANGE' [1] [0] } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OpenArchiver#117