Skip to content

Instantly share code, notes, and snippets.

@Fenn-CS
Last active February 21, 2023 21:42
Show Gist options
  • Save Fenn-CS/57a1700c67e8c4468f06a142747e6756 to your computer and use it in GitHub Desktop.
Save Fenn-CS/57a1700c67e8c4468f06a142747e6756 to your computer and use it in GitHub Desktop.
Rclone + Permanent COPY errors.

Errors from VIP archive COPY (rclone-permanent)

  • rclone copy dean-prod:/ dean-sync

First Reported

RCLONE SIDE

2023-02-21 19:17:48 ERROR : archives/Krista D (1518): error reading source directory: error listing "archives/Krista D (1518)": sftp: "" (SSH_FX_FAILURE)
2023-02-21 19:17:48 ERROR : archives/Joshua Baer (1145): error reading source directory: error listing "archives/Joshua Baer (1145)": sftp: "" (SSH_FX_FAILURE)
2023-02-21 19:18:47 ERROR : archives/Dean Drako (1103)/My Files: error reading source directory: directory not found

SFTP SIDE

2/21/2023, 7:46:50 PM debug: Request: {"reqId":11,"itemPath":"/archives/Donna Drako (1294)/My Files"}
2/21/2023, 7:47:54 PM warn: Failed to load path {"reqId":7,"dirPath":"/archives/Joshua Baer (1145)"}
/21/2023, 7:24:29 PM warn: Invalid server response format {"name":"ValidationError","errors":[{"instancePath":"/ChildItemVOs/3/displayDT","schemaPath":"#/properties/displayDT/type","keyword":"type","params":{"type":"string"},"message":"must be string"},{"instancePath":"/ChildItemVOs/3","schemaPath":"#/properties/ChildItemVOs/items/anyOf/1/required","keyword":"required","params":{"missingProperty":"recordId"},"message":"must have required property 'recordId'"},{"instancePath":"/ChildItemVOs/3","schemaPath":"#/properties/ChildItemVOs/items/anyOf","keyword":"anyOf","params":{},"message":"must match a schema in anyOf"}]}
ValidationError: Invalid server response format
    at parseFolderVo (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/api/getArchiveRootFolderVo.js:12:11)
    at getArchiveRootFolderVo (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/api/getArchiveRootFolderVo.js:19:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at getArchiveFolders (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/sdk/getArchiveFolders.js:7:26)
    at PermanentFileSystem.loadArchiveFolders (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:232:28)
    at PermanentFileSystem.loadArchiveFoldersFileEntries (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:281:21)

Also reported

2/21/2023, 7:23:54 PM debug: Request: {"reqId":8,"itemPath":"/archives/Donna Drako (1294)/My Files"}
2/21/2023, 7:24:30 PM warn: Failed to load path {"reqId":7,"dirPath":"/archives/Krista D (1518)"}
2/21/2023, 7:24:30 PM warn: Invalid server response format {"name":"ValidationError","errors":[{"instancePath":"/ChildItemVOs/3/displayDT","schemaPath":"#/properties/displayDT/type","keyword":"type","params":{"type":"string"},"message":"must be string"},{"instancePath":"/ChildItemVOs/3","schemaPath":"#/properties/ChildItemVOs/items/anyOf/1/required","keyword":"required","params":{"missingProperty":"recordId"},"message":"must have required property 'recordId'"},{"instancePath":"/ChildItemVOs/3","schemaPath":"#/properties/ChildItemVOs/items/anyOf","keyword":"anyOf","params":{},"message":"must match a schema in anyOf"}]}
ValidationError: Invalid server response format
    at parseFolderVo (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/api/getArchiveRootFolderVo.js:12:11)
    at getArchiveRootFolderVo (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/api/getArchiveRootFolderVo.js:19:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at getArchiveFolders (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/sdk/getArchiveFolders.js:7:26)
    at PermanentFileSystem.loadArchiveFolders (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:232:28)
    at PermanentFileSystem.loadArchiveFoldersFileEntries (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:281:21)
@Fenn-CS
Copy link
Author

Fenn-CS commented Feb 21, 2023

Unexpected end of JSON input

Several "unexpected end of JSON input" errors reported....

SFTP Service side

2/21/2023, 9:56:51 PM warn: Failed to load file {"reqId":6875,"filename":"/archives/Joshua Baer (1145)/Public/Family and Personal Life/Geeks on a Plane 2013/#GOAPJosh at Wat Arun, a beautiful and ornate Buddhist temple in Bangkok, Thailand..jpg"}
2/21/2023, 9:56:51 PM warn: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at typedJsonParse (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/utils/typedJsonParse.js:6:24)
    at getFolderVo (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/api/getFolderVo.js:14:39)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at getFolder (/home/fenn-cs/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/sdk/getFolder.js:6:101)
    at PermanentFileSystem.loadFolder (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:286:35)
    at PermanentFileSystem.loadArchiveRecord (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:184:26)
    at PermanentFileSystem.loadFile (/home/fenn-cs/permanent/sftp-service/src/classes/PermanentFileSystem.ts:173:27)

rclone SIDE

2023-02-21 21:56:49 ERROR : archives/Joshua Baer (1145)/Public/Family and Personal Life/Geeks on a Plane 2013/#GOAP view of Singapore.jpg: Failed to copy: failed to open source object: Open failed: sftp: "" (SSH_FX_FAILURE)
2023-02-21 21:56:51 ERROR : archives/Joshua Baer (1145)/Public/Family and Personal Life/Geeks on a Plane 2013/#GOAPJosh at Wat Arun, a beautiful and ornate Buddhist temple in Bangkok, Thailand..jpg: Failed to copy: failed to open source object: Open failed: sftp: "" (SSH_FX_FAILURE)

This error affects a lot of files in /archives/Joshua Baer (1145)/Public/Family and Personal Life/Geeks on a Plane 2013/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment