Skip to content

504 timeout from permanent API #638

@slifty

Description

@slifty

Client error:

2025/05/15 17:01:06 ERROR : Major Adventures/20130413 - Nimitz Movies/MVI_2048.MOV: Failed to copy: Update Close failed: sftp: "An error occurred when attempting to register this file on Permanent.org." (SSH_FX_FAILURE)

In my local SFTP server logs:

5/15/2025, 5:08:14 PM debug: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>
 {"statusCode":504}
Error: <html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>

    at makePermanentApiCall (/Users/slifty/Maestral/Code/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/utils/makePermanentApiCall.js:26:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async createRecordVo (/Users/slifty/Maestral/Code/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/api/createRecordVo.js:16:22)
    at async createArchiveRecord (/Users/slifty/Maestral/Code/permanent/sftp-service/node_modules/@permanentorg/sdk/dist/cjs/sdk/createArchiveRecord.js:7:22)
    at async PermanentFileSystem.createFile (/Users/slifty/Maestral/Code/permanent/sftp-service/build/classes/PermanentFileSystem.js:214:30)
    at async /Users/slifty/Maestral/Code/permanent/sftp-service/build/classes/SftpSessionHandler.js:398:9
5/15/2025, 5:08:14 PM verbose: Response: Status (FAILURE) {"reqId":160013,"code":4,"path":"/archives/Dan (0798-0000)/My Files/DPhotos/foobar.AVI"}

This was against dev, so not as powerful as prod, but it did stop SFTP from being able to continue.

(When I tried to load dev it was down, so it makse sense SFTP would be paused).

This is likely not an sftp service issue directly, since ultimately if the API is down SFTP will fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions