Skip to content

Server crashes when killing client upload - S3 Store #409

@fenos

Description

@fenos

I created a simple script to upload a file with the TUS js client to the tus-node-server (with fastify)

When I lunch the client upload script and kill it (CTRL + C) after a few chunks have been uploaded, the server crashes with the following error:

tus-node-server [PatchHandler] Error: aborted
    at connResetException (node:internal/errors:717:14)
    at abortIncoming (node:_http_server:750:17)
    at socketOnClose (node:_http_server:744:3)
    at Socket.emit (node:events:524:35)
    at Socket.emit (node:domain:489:12)
    at TCP.<anonymous> (node:net:316:12) {
  code: 'ECONNRESET'
} +7s

[Error: ENOENT: no such file or directory, lstat '/var/folders/r4/m30b545s1q93w60kgjk5lym00000gn/T/pfoNhWXgiL-0'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'lstat',
  path: '/var/folders/r4/m30b545s1q93w60kgjk5lym00000gn/T/pfoNhWXgiL-0'
}

Once this error happens the only way to recover is to restart the server

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions