Failing to import some PST due to iso-2022-jp ? #114

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

Originally created by @rhwbanz on 11/2/2025

Describe the bug
Imported many PST files to v4.0.0 succesfully, but 3 files have failed to import fully, I can see some contents of the PST are imported but not all.

To Reproduce
Steps to reproduce the behavior:

Certain PST's fail, so cannot set steps to replicate as it seems specific to content in certain PSTs

Expected behavior
Expect all messages in PST to import

System:

  • Open Archiver Version: 4.0.0

Relevant logs:
[17:58:46.576] ERROR (326): Failed to fetch email.
[0] [0] error: {}
[0] [0] [17:58:46.839] ERROR (326): Error processing mailbox
[0] [0] ingestionSourceId: "07c969a1-ff49-4573-8319-240876d6e1b5"
[0] [0] userEmail: "/tmp/pst-import-1762106098587aegmgg/temp.pst@pst.local"
[0] [0] err: {
[0] [0] "type": "Error",
[0] [0] "message": "Encoding not recognized: 'iso-2022-jp' (searched as: 'iso2022jp')",
[0] [0] "stack":
[0] [0] Error: Encoding not recognized: 'iso-2022-jp' (searched as: 'iso2022jp')
[0] [0] at Object.getCodec (/app/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js:104:23)
[0] [0] at Object.getDecoder (/app/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js:125:23)
[0] [0] at Object.decode (/app/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js:38:25)
[0] [0] at PSTUtil.createJavascriptString (/app/node_modules/.pnpm/pst-extractor@1.11.0/node_modules/pst-extractor/dist/PSTUtil.class.js:100:45)
[0] [0] at PSTMessage.getStringItem (/app/node_modules/.pnpm/pst-extractor@1.11.0/node_modules/pst-extractor/dist/PSTObject.class.js:219:48)
[0] [0] at get bodyHTML (/app/node_modules/.pnpm/pst-extractor@1.11.0/node_modules/pst-extractor/dist/PSTMessage.class.js:380:25)
[0] [0] at PSTConnector.constructEml (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:322:31)
[0] [0] at PSTConnector.parseMessage (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:225:39)
[0] [0] at PSTConnector.processFolder (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:208:34)
[0] [0] at processFolder.next ()
[0] [0] }
[0] [0] [17:58:46.840] INFO (326): Sync cycle finished job started
[0] [0] ingestionSourceId: "07c969a1-ff49-4573-8319-240876d6e1b5"
[0] [0] userCount: 1
[0] [0] isInitialImport: true
[0] [0] [17:58:46.930] ERROR (326): Sync cycle finished with errors.
[0] [0] ingestionSourceId: "07c969a1-ff49-4573-8319-240876d6e1b5"
[0] [0] errors: "Failed to process mailbox for /tmp/pst-import-1762106098587aegmgg/temp.pst@pst.local: Encoding not recognized: 'iso-2022-jp' (searched as: 'iso2022jp')"
[0] [0] Scheduler running: Looking for active or error ingestion sources to sync.
[0] [0] [18:00:00.106] INFO (326): Starting continuous sync job.
[0] [0] ingestionSourceId: "d43b48bb-1707-4ae1-b8ac-d03ce957f0d6"
[0] [0] [18:00:00.354] ERROR (326): Failed to list users from PST file.
[0] [0] error: {}
[0] [0] [18:00:00.354] ERROR (326): Continuous sync job failed.
[0] [0] ingestionSourceId: "d43b48bb-1707-4ae1-b8ac-d03ce957f0d6"
[0] [0] err: {
[0] [0] "type": "Error",
[0] [0] "message": "File not found",
[0] [0] "stack":
[0] [0] Error: File not found
[0] [0] at LocalFileSystemProvider.get (/app/packages/backend/dist/services/storage/LocalFileSystemProvider.js:65:19)
[0] [0] at async StorageService.getStream (/app/packages/backend/dist/services/StorageService.js:77:24)
[0] [0] at async PSTConnector.loadPstFile (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:106:28)
[0] [0] at async PSTConnector.listAllUsers (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:146:32)
[0] [0] at async exports.default (/app/packages/backend/dist/jobs/processors/continuous-sync.processor.js:22:26)
[0] [0] at async /app/node_modules/.pnpm/bullmq@5.56.3/node_modules/bullmq/dist/cjs/classes/worker.js:499:32
[0] [0] at async Worker.retryIfFailed (/app/node_modules/.pnpm/bullmq@5.56.3/node_modules/bullmq/dist/cjs/classes/worker.js:775:24)
[0] [0] }

Additional context
Add any other context about the problem here.

*Originally created by @rhwbanz on 11/2/2025* **Describe the bug** Imported many PST files to v4.0.0 succesfully, but 3 files have failed to import fully, I can see some contents of the PST are imported but not all. **To Reproduce** Steps to reproduce the behavior: Certain PST's fail, so cannot set steps to replicate as it seems specific to content in certain PSTs **Expected behavior** Expect all messages in PST to import **System:** - Open Archiver Version: 4.0.0 **Relevant logs:** [17:58:46.576] ERROR (326): Failed to fetch email. [0] [0] error: {} [0] [0] [17:58:46.839] ERROR (326): Error processing mailbox [0] [0] ingestionSourceId: "07c969a1-ff49-4573-8319-240876d6e1b5" [0] [0] userEmail: "/tmp/pst-import-1762106098587aegmgg/temp.pst@pst.local" [0] [0] err: { [0] [0] "type": "Error", [0] [0] "message": "Encoding not recognized: 'iso-2022-jp' (searched as: 'iso2022jp')", [0] [0] "stack": [0] [0] Error: Encoding not recognized: 'iso-2022-jp' (searched as: 'iso2022jp') [0] [0] at Object.getCodec (/app/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js:104:23) [0] [0] at Object.getDecoder (/app/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js:125:23) [0] [0] at Object.decode (/app/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.js:38:25) [0] [0] at PSTUtil.createJavascriptString (/app/node_modules/.pnpm/pst-extractor@1.11.0/node_modules/pst-extractor/dist/PSTUtil.class.js:100:45) [0] [0] at PSTMessage.getStringItem (/app/node_modules/.pnpm/pst-extractor@1.11.0/node_modules/pst-extractor/dist/PSTObject.class.js:219:48) [0] [0] at get bodyHTML (/app/node_modules/.pnpm/pst-extractor@1.11.0/node_modules/pst-extractor/dist/PSTMessage.class.js:380:25) [0] [0] at PSTConnector.constructEml (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:322:31) [0] [0] at PSTConnector.parseMessage (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:225:39) [0] [0] at PSTConnector.processFolder (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:208:34) [0] [0] at processFolder.next (<anonymous>) [0] [0] } [0] [0] [17:58:46.840] INFO (326): Sync cycle finished job started [0] [0] ingestionSourceId: "07c969a1-ff49-4573-8319-240876d6e1b5" [0] [0] userCount: 1 [0] [0] isInitialImport: true [0] [0] [17:58:46.930] ERROR (326): Sync cycle finished with errors. [0] [0] ingestionSourceId: "07c969a1-ff49-4573-8319-240876d6e1b5" [0] [0] errors: "Failed to process mailbox for /tmp/pst-import-1762106098587aegmgg/temp.pst@pst.local: Encoding not recognized: 'iso-2022-jp' (searched as: 'iso2022jp')" [0] [0] Scheduler running: Looking for active or error ingestion sources to sync. [0] [0] [18:00:00.106] INFO (326): Starting continuous sync job. [0] [0] ingestionSourceId: "d43b48bb-1707-4ae1-b8ac-d03ce957f0d6" [0] [0] [18:00:00.354] ERROR (326): Failed to list users from PST file. [0] [0] error: {} [0] [0] [18:00:00.354] ERROR (326): Continuous sync job failed. [0] [0] ingestionSourceId: "d43b48bb-1707-4ae1-b8ac-d03ce957f0d6" [0] [0] err: { [0] [0] "type": "Error", [0] [0] "message": "File not found", [0] [0] "stack": [0] [0] Error: File not found [0] [0] at LocalFileSystemProvider.get (/app/packages/backend/dist/services/storage/LocalFileSystemProvider.js:65:19) [0] [0] at async StorageService.getStream (/app/packages/backend/dist/services/StorageService.js:77:24) [0] [0] at async PSTConnector.loadPstFile (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:106:28) [0] [0] at async PSTConnector.listAllUsers (/app/packages/backend/dist/services/ingestion-connectors/PSTConnector.js:146:32) [0] [0] at async exports.default (/app/packages/backend/dist/jobs/processors/continuous-sync.processor.js:22:26) [0] [0] at async /app/node_modules/.pnpm/bullmq@5.56.3/node_modules/bullmq/dist/cjs/classes/worker.js:499:32 [0] [0] at async Worker.retryIfFailed (/app/node_modules/.pnpm/bullmq@5.56.3/node_modules/bullmq/dist/cjs/classes/worker.js:775:24) [0] [0] } **Additional context** Add any other context about the problem here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OpenArchiver#114