Immich (latest)CLI upload fails for large uploads having huge directory tree structure with different reasons when re-run #2526

Closed
opened 2026-02-05 06:10:00 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @AbNiks on GitHub (Mar 11, 2024).

The bug

Immich CLI(latest) upload works when uploading few files (usually around 5 GB) but when recursively iterating thru huge directory structure with huge GB of data being uploaded, Immich CLI(latest) fails usually due to one of the below reasons as stated below. When re-run, usually one of the below error comes. It difficult to upload every leaf structure of the directory.
Can we have this tested for huge directory structure say of approx 1TB, with different types of files being uploaded pls?

  1. Issue 1:-
    data: {
    message: 'Failed to upload file',
    error: 'Internal Server Error',
    statusCode: 500
    }
  2. Issue 2:-
    cause: Error: socket hang up
    at connResetException (node:internal/errors:787:14)
    at Socket.socketOnEnd (node:_http_client:519:23)
    at Socket.emit (node:events:527:35)
    at endReadableNT (node:internal/streams/readable:1589:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    code: 'ECONNRESET'
  3. Issue 3:-
    cause: [Error: EBADF: bad file descriptor, close] {
    errno: -9,
    code: 'EBADF',
    syscall: 'close'
    }
    Stating log for issue 3 here due to character limitation:

Issue 3 Logs:-
nitikaagarwal@Nitikas-MBP 2023 % immich upload --recursive --delete 01
█████████████████████░░░░░░░░░░░░░░░░░░░ | 53% | ETA: 3h35m | 11.9 GB/22.3 GB: /Volumes/abhinav/PhotoPrism/originals/2023/01/20230125_090450_BC1C9746.mp4

node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
AxiosError: EBADF: bad file descriptor, close
at AxiosError.from (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:837:14)
at ClientRequest.handleRequestError (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3087:25)
at ClientRequest.emit (node:events:515:28)
at Socket.socketErrorListener (node:_http_client:495:9)
.......
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null,
[Symbol(kError)]: [Error: EBADF: bad file descriptor, close] {
errno: -9,
code: 'EBADF',
syscall: 'close'
}
},
cause: [Error: EBADF: bad file descriptor, close] {
errno: -9,
code: 'EBADF',
syscall: 'close'
}
}

The OS that Immich Server is running on

Mac Sonoma 14.3.1 (23D60)

Version of Immich Server

v1.98.1

Version of Immich Mobile App

v1.97.0 build.141

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
    restart: always

  database:
    container_name: immich_postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/Volumes/abhinav/Immich

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

1. Try uploading huge directory structure which has blend of different files types(zip, jpeg, gif, all possible formats) with tree structure of n depth where n is huge. Not sure what the maximum value of n i could have due to multiple backups being taken over years.
2. The total size of upload being processed is huge say ~1TB
3. Re-running on the parent folder gives one of the 3 Issues stated above and logs attached for all 3 issues.
4. Note, I have disabled ML during CLI upload and also ensured that all jobs are stopped in Administrator Job. 
5. Docker Resource allocated: 8 Core CPU, Memory Limit: 7 GB, Swap: 3GB
6. command issued:  immich upload --recursive  --delete .

Additional information

  1. Issue 1 Logs:-

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 13h50m | 5.9 GB/627.0 GB: /Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2b/a8/2ba808ca

node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
AxiosError: Request failed with status code 500
at settle (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:1967:12)
at IncomingMessage.handleStreamEnd (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3066:11)
at IncomingMessage.emit (node:events:527:35)
at endReadableNT (node:internal/streams/readable:1589:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3877:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Upload.uploadAsset (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/commands/upload.js:155:21)
at async Upload.run (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/commands/upload.js:79:41)
at async Command. (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/index.js:43:5) {
code: 'ERR_BAD_RESPONSE',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'multipart/form-data; boundary=--------------------------021651844378398580960649',
'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA',
'User-Agent': 'axios/1.6.7',
'Content-Length': '32660',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
maxRedirects: 0,
url: 'http://localhost:2283/api/asset/upload',
data: FormData {
_overheadLength: 741,
_valueLength: 103,
_valuesToMeasure: [
ReadStream {
fd: null,
path: '/Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2b/a8/2ba808ca-915e-4b1e-9d23-d25e3bda01e5.webp',
flags: 'r',
mode: 438,
start: undefined,
end: Infinity,
pos: undefined,
bytesRead: 31760,
_readableState: ReadableState {
highWaterMark: 65536,
buffer: [BufferList],
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60094486
},
_events: [Object: null prototype] {
error: [Function (anonymous)],
data: [Function: bound ]
},
_eventsCount: 2,
_maxListeners: undefined,
emit: [Function (anonymous)],
[Symbol(kFs)]: {
appendFile: [Function: appendFile],
appendFileSync: [Function: appendFileSync],
access: [Function: access],
accessSync: [Function: accessSync],
chown: [Function: chown],
chownSync: [Function: chownSync],
chmod: [Function: chmod],
chmodSync: [Function: chmodSync],
close: [Function: close],
closeSync: [Function: closeSync],
copyFile: [Function: copyFile],
copyFileSync: [Function: copyFileSync],
cp: [Function: cp],
cpSync: [Function: cpSync],
createReadStream: [Function: createReadStream],
createWriteStream: [Function: createWriteStream],
exists: [Function: exists],
existsSync: [Function: existsSync],
fchown: [Function: fchown],
fchownSync: [Function: fchownSync],
fchmod: [Function: fchmod],
fchmodSync: [Function: fchmodSync],
fdatasync: [Function: fdatasync],
fdatasyncSync: [Function: fdatasyncSync],
fstat: [Function: fstat],
fstatSync: [Function: fstatSync],
fsync: [Function: fsync],
fsyncSync: [Function: fsyncSync],
ftruncate: [Function: ftruncate],
ftruncateSync: [Function: ftruncateSync],
futimes: [Function: futimes],
futimesSync: [Function: futimesSync],
lchown: [Function: lchown],
lchownSync: [Function: lchownSync],
lchmod: [Function: lchmod],
lchmodSync: [Function: lchmodSync],
link: [Function: link],
linkSync: [Function: linkSync],
lstat: [Function: lstat],
lstatSync: [Function: lstatSync],
lutimes: [Function: lutimes],
lutimesSync: [Function: lutimesSync],
mkdir: [Function: mkdir],
mkdirSync: [Function: mkdirSync],
mkdtemp: [Function: mkdtemp],
mkdtempSync: [Function: mkdtempSync],
open: [Function: open],
openSync: [Function: openSync],
openAsBlob: [Function: openAsBlob],
readdir: [Function: readdir],
readdirSync: [Function: readdirSync],
read: [Function: read],
readSync: [Function: readSync],
readv: [Function: readv],
readvSync: [Function: readvSync],
readFile: [Function: readFile],
readFileSync: [Function: readFileSync],
readlink: [Function: readlink],
readlinkSync: [Function: readlinkSync],
realpath: [Function],
realpathSync: [Function],
rename: [Function: rename],
renameSync: [Function: renameSync],
rm: [Function: rm],
rmSync: [Function: rmSync],
rmdir: [Function: rmdir],
rmdirSync: [Function: rmdirSync],
stat: [Function: stat],
statfs: [Function: statfs],
statSync: [Function: statSync],
statfsSync: [Function: statfsSync],
symlink: [Function: symlink],
symlinkSync: [Function: symlinkSync],
truncate: [Function: truncate],
truncateSync: [Function: truncateSync],
unwatchFile: [Function: unwatchFile],
unlink: [Function: unlink],
unlinkSync: [Function: unlinkSync],
utimes: [Function: utimes],
utimesSync: [Function: utimesSync],
watch: [Function: watch],
watchFile: [Function: watchFile],
writeFile: [Function: writeFile],
writeFileSync: [Function: writeFileSync],
write: [Function: write],
writeSync: [Function: writeSync],
writev: [Function: writev],
writevSync: [Function: writevSync],
Dirent: [class Dirent],
Stats: [Function: Stats],
ReadStream: [Getter/Setter],
WriteStream: [Getter/Setter],
FileReadStream: [Getter/Setter],
FileWriteStream: [Getter/Setter],
_toUnixTimestamp: [Function: toUnixTimestamp],
Dir: [class Dir],
opendir: [Function: opendir],
opendirSync: [Function: opendirSync],
F_OK: 0,
R_OK: 4,
W_OK: 2,
X_OK: 1,
constants: [Object: null prototype],
promises: [Getter]
},
[Symbol(kIsPerformingIO)]: false,
[Symbol(kCapture)]: false
}
],
writable: false,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: true,
_streams: [],
_currentStream: null,
_insideLoop: false,
_pendingNext: false,
_boundary: '--------------------------021651844378398580960649',
_events: [Object: null prototype] {
end: [Function (anonymous)],
error: [Function: bound onceWrapper] {
listener: [Function (anonymous)]
},
close: [Function (anonymous)]
},
_eventsCount: 3
}
},
request: <ref *4> ClientRequest {
_events: [Object: null prototype] {
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket],
finish: [Function: requestOnFinish]
},
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '32660',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
_header: 'POST /api/asset/upload HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: multipart/form-data; boundary=--------------------------021651844378398580960649\r\n' +
'x-api-key: hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA\r\n' +
'User-Agent: axios/1.6.7\r\n' +
'Content-Length: 32660\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: localhost:2283\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object: null prototype] {
keepAlive: true,
scheduling: 'lifo',
timeout: 5000,
noDelay: true,
path: null
},
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype] {
'localhost:2283:': [
Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: 'localhost',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: null,
autoSelectFamilyAttemptedAddresses: [Array],
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: [TCP],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: [Timeout],
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
}
]
},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/api/asset/upload',
_ended: true,
res: IncomingMessage {
_readableState: ReadableState {
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60225590
},
_events: [Object: null prototype] {
end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
error: [Function: handleStreamError],
data: [Function: handleStreamData],
aborted: [Function: handlerStreamAborted]
},
_eventsCount: 4,
_maxListeners: undefined,
socket: null,
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'X-Powered-By',
'Express',
'Content-Type',
'application/json; charset=utf-8',
'Content-Length',
'84',
'ETag',
'"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
'Date',
'Sun, 10 Mar 2024 14:57:14 GMT',
'Connection',
'keep-alive',
'Keep-Alive',
'timeout=5'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: <ref *1> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: 'localhost',
_closeAfterHandlingError: false,
_readableState: ReadableState {
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60035160
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [Function: onClose],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: bound onceWrapper] {
listener: [Function: freeSocketErrorListener]
}
},
_eventsCount: 6,
_maxListeners: undefined,
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 34340932,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function (anonymous)],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: null,
autoSelectFamilyAttemptedAddresses: [ '::1:2283' ],
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: <ref *2> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *1],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *2] }
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: <ref *3> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *3],
_idlePrev: [Circular *3],
expiry: 19302188,
id: -9007199254690749,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *3],
_idlePrev: [Circular *3],
expiry: 19302188,
id: -9007199254690749,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 19299043,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 1643290,
[Symbol(triggerId)]: 1643288
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: false,
_dumped: false,
req: [Circular *4],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
'x-powered-by': 'Express',
'content-type': 'application/json; charset=utf-8',
'content-length': '84',
etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
date: 'Sun, 10 Mar 2024 14:57:14 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
[Symbol(kHeadersCount)]: 14,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: 'localhost',
protocol: 'http:',
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: <ref *1> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: 'localhost',
_closeAfterHandlingError: false,
_readableState: ReadableState {
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60035160
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [Function: onClose],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: bound onceWrapper] {
listener: [Function: freeSocketErrorListener]
}
},
_eventsCount: 6,
_maxListeners: undefined,
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 34340932,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function (anonymous)],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: null,
autoSelectFamilyAttemptedAddresses: [ '::1:2283' ],
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: <ref *2> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *1],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *2] }
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: <ref *3> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *3],
_idlePrev: [Circular *3],
expiry: 19302188,
id: -9007199254690749,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *3],
_idlePrev: [Circular *3],
expiry: 19302188,
id: -9007199254690749,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 19299043,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 1643290,
[Symbol(triggerId)]: 1643288
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'content-type': [
'Content-Type',
'multipart/form-data; boundary=--------------------------021651844378398580960649'
],
'x-api-key': [ 'x-api-key', 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA' ],
'user-agent': [ 'User-Agent', 'axios/1.6.7' ],
'content-length': [ 'Content-Length', '32660' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'localhost:2283' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 500,
statusText: 'Internal Server Error',
headers: Object [AxiosHeaders] {
'x-powered-by': 'Express',
'content-type': 'application/json; charset=utf-8',
'content-length': '84',
etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
date: 'Sun, 10 Mar 2024 14:57:14 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'multipart/form-data; boundary=--------------------------021651844378398580960649',
'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA',
'User-Agent': 'axios/1.6.7',
'Content-Length': '32660',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
maxRedirects: 0,
url: 'http://localhost:2283/api/asset/upload',
data: FormData {
_overheadLength: 741,
_valueLength: 103,
_valuesToMeasure: [
ReadStream {
fd: null,
path: '/Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2b/a8/2ba808ca-915e-4b1e-9d23-d25e3bda01e5.webp',
flags: 'r',
mode: 438,
start: undefined,
end: Infinity,
pos: undefined,
bytesRead: 31760,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
emit: [Function (anonymous)],
[Symbol(kFs)]: [Object],
[Symbol(kIsPerformingIO)]: false,
[Symbol(kCapture)]: false
}
],
writable: false,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: true,
_streams: [],
_currentStream: null,
_insideLoop: false,
_pendingNext: false,
_boundary: '--------------------------021651844378398580960649',
_events: [Object: null prototype] {
end: [Function (anonymous)],
error: [Function: bound onceWrapper] {
listener: [Function (anonymous)]
},
close: [Function (anonymous)]
},
_eventsCount: 3
}
},
request: <ref *4> ClientRequest {
_events: [Object: null prototype] {
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket],
finish: [Function: requestOnFinish]
},
_eventsCount: 3,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '32660',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
_header: 'POST /api/asset/upload HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: multipart/form-data; boundary=--------------------------021651844378398580960649\r\n' +
'x-api-key: hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA\r\n' +
'User-Agent: axios/1.6.7\r\n' +
'Content-Length: 32660\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: localhost:2283\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object: null prototype] {
keepAlive: true,
scheduling: 'lifo',
timeout: 5000,
noDelay: true,
path: null
},
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype] { 'localhost:2283:': [ [Socket] ] },
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/api/asset/upload',
_ended: true,
res: IncomingMessage {
_readableState: ReadableState {
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60225590
},
_events: [Object: null prototype] {
end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ],
error: [Function: handleStreamError],
data: [Function: handleStreamData],
aborted: [Function: handlerStreamAborted]
},
_eventsCount: 4,
_maxListeners: undefined,
socket: null,
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
'X-Powered-By',
'Express',
'Content-Type',
'application/json; charset=utf-8',
'Content-Length',
'84',
'ETag',
'"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
'Date',
'Sun, 10 Mar 2024 14:57:14 GMT',
'Connection',
'keep-alive',
'Keep-Alive',
'timeout=5'
],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 500,
statusMessage: 'Internal Server Error',
client: <ref *1> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: 'localhost',
_closeAfterHandlingError: false,
_readableState: ReadableState {
highWaterMark: 16384,
buffer: [BufferList],
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60035160
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [Function: onClose],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function]
},
_eventsCount: 6,
_maxListeners: undefined,
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 34340932,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function (anonymous)],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: null,
autoSelectFamilyAttemptedAddresses: [ '::1:2283' ],
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: <ref *2> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *1],
[Symbol(resource_symbol)]: [ReusedHandle]
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: <ref *3> Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 19299043,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 1643290,
[Symbol(triggerId)]: 1643288
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
_consuming: false,
_dumped: false,
req: [Circular *4],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
'x-powered-by': 'Express',
'content-type': 'application/json; charset=utf-8',
'content-length': '84',
etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"',
date: 'Sun, 10 Mar 2024 14:57:14 GMT',
connection: 'keep-alive',
'keep-alive': 'timeout=5'
},
[Symbol(kHeadersCount)]: 14,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: 'localhost',
protocol: 'http:',
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: <ref *1> Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: 'localhost',
_closeAfterHandlingError: false,
_readableState: ReadableState {
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60035160
},
_events: [Object: null prototype] {
end: [Function: onReadableStreamEnd],
free: [Function: onFree],
close: [Function: onClose],
timeout: [Function: onTimeout],
agentRemove: [Function: onRemove],
error: [Function: bound onceWrapper] {
listener: [Function: freeSocketErrorListener]
}
},
_eventsCount: 6,
_maxListeners: undefined,
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 34340932,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function (anonymous)],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: null,
autoSelectFamilyAttemptedAddresses: [ '::1:2283' ],
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: <ref *2> TCP {
reading: true,
onconnection: null,
[Symbol(owner_symbol)]: [Circular *1],
[Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *2] }
},
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: <ref *3> Timeout {
_idleTimeout: 5000,
_idlePrev: TimersList {
_idleNext: [Circular *3],
_idlePrev: [Circular *3],
expiry: 19302188,
id: -9007199254690749,
msecs: 5000,
priorityQueuePosition: 1
},
_idleNext: TimersList {
_idleNext: [Circular *3],
_idlePrev: [Circular *3],
expiry: 19302188,
id: -9007199254690749,
msecs: 5000,
priorityQueuePosition: 1
},
_idleStart: 19299043,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 1643290,
[Symbol(triggerId)]: 1643288
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'content-type': [
'Content-Type',
'multipart/form-data; boundary=--------------------------021651844378398580960649'
],
'x-api-key': [ 'x-api-key', 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA' ],
'user-agent': [ 'User-Agent', 'axios/1.6.7' ],
'content-length': [ 'Content-Length', '32660' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'localhost:2283' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: {
message: 'Failed to upload file',
error: 'Internal Server Error',
statusCode: 500
}
}
}


  1. Issue 2 Logs:

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 12h60m | 4.3 GB/627.0 GB: /Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2170cf54-f1fc-

node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
AxiosError: socket hang up
at AxiosError.from (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:837:14)
at RedirectableRequest.handleRequestError (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3087:25)
at RedirectableRequest.emit (node:events:515:28)
at eventHandlers. (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/follow-redirects/index.js:38:24)
at ClientRequest.emit (node:events:515:28)
at Socket.socketOnEnd (node:_http_client:519:9)
at Socket.emit (node:events:527:35)
at endReadableNT (node:internal/streams/readable:1589:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3877:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Upload.run (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/commands/upload.js:65:43)
at async Command. (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/index.js:43:5) {
code: 'ECONNRESET',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: [Function: FormData] {
LINE_BREAK: '\r\n',
DEFAULT_CONTENT_TYPE: 'application/octet-stream'
},
Blob: [class Blob]
},
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json',
'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA',
'User-Agent': 'axios/1.6.7',
'Content-Length': '204',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
data: '{"assets":[{"id":"/Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2170cf54-f1fc-4cd3-ae96-545a32cfd6fa.jpeg","checksum":"746aef08137c4d1ff46ce12eb8d2ae998460aa1d"}]}',
url: 'http://localhost:2283/api/asset/bulk-upload-check'
},
request: <ref *1> Writable {
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 34357356,
[Symbol(kBufferedValue)]: null
},
_events: [Object: null prototype] {
response: [Function: handleResponse],
error: [Function: handleRequestError],
socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'http:',
path: '/api/asset/bulk-upload-check',
method: 'POST',
headers: [Object: null prototype] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'application/json',
'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA',
'User-Agent': 'axios/1.6.7',
'Content-Length': '204',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
agents: { http: undefined, https: undefined },
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: { proxy: [Function: beforeRedirect] },
hostname: 'localhost',
port: '2283',
agent: undefined,
nativeProtocols: {
'http:': {
_connectionListener: [Function: connectionListener],
METHODS: [
'ACL', 'BIND', 'CHECKOUT',
'CONNECT', 'COPY', 'DELETE',
'GET', 'HEAD', 'LINK',
'LOCK', 'M-SEARCH', 'MERGE',
'MKACTIVITY', 'MKCALENDAR', 'MKCOL',
'MOVE', 'NOTIFY', 'OPTIONS',
'PATCH', 'POST', 'PROPFIND',
'PROPPATCH', 'PURGE', 'PUT',
'REBIND', 'REPORT', 'SEARCH',
'SOURCE', 'SUBSCRIBE', 'TRACE',
'UNBIND', 'UNLINK', 'UNLOCK',
'UNSUBSCRIBE'
],
STATUS_CODES: {
'100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
'103': 'Early Hints',
'200': 'OK',
'201': 'Created',
'202': 'Accepted',
'203': 'Non-Authoritative Information',
'204': 'No Content',
'205': 'Reset Content',
'206': 'Partial Content',
'207': 'Multi-Status',
'208': 'Already Reported',
'226': 'IM Used',
'300': 'Multiple Choices',
'301': 'Moved Permanently',
'302': 'Found',
'303': 'See Other',
'304': 'Not Modified',
'305': 'Use Proxy',
'307': 'Temporary Redirect',
'308': 'Permanent Redirect',
'400': 'Bad Request',
'401': 'Unauthorized',
'402': 'Payment Required',
'403': 'Forbidden',
'404': 'Not Found',
'405': 'Method Not Allowed',
'406': 'Not Acceptable',
'407': 'Proxy Authentication Required',
'408': 'Request Timeout',
'409': 'Conflict',
'410': 'Gone',
'411': 'Length Required',
'412': 'Precondition Failed',
'413': 'Payload Too Large',
'414': 'URI Too Long',
'415': 'Unsupported Media Type',
'416': 'Range Not Satisfiable',
'417': 'Expectation Failed',
'418': "I'm a Teapot",
'421': 'Misdirected Request',
'422': 'Unprocessable Entity',
'423': 'Locked',
'424': 'Failed Dependency',
'425': 'Too Early',
'426': 'Upgrade Required',
'428': 'Precondition Required',
'429': 'Too Many Requests',
'431': 'Request Header Fields Too Large',
'451': 'Unavailable For Legal Reasons',
'500': 'Internal Server Error',
'501': 'Not Implemented',
'502': 'Bad Gateway',
'503': 'Service Unavailable',
'504': 'Gateway Timeout',
'505': 'HTTP Version Not Supported',
'506': 'Variant Also Negotiates',
'507': 'Insufficient Storage',
'508': 'Loop Detected',
'509': 'Bandwidth Limit Exceeded',
'510': 'Not Extended',
'511': 'Network Authentication Required'
},
Agent: [Function: Agent] { defaultMaxSockets: Infinity },
ClientRequest: [Function: ClientRequest],
IncomingMessage: [Function: IncomingMessage],
OutgoingMessage: [Function: OutgoingMessage],
Server: [Function: Server],
ServerResponse: [Function: ServerResponse],
createServer: [Function: createServer],
validateHeaderName: [Function: _node_internal],
validateHeaderValue: [Function: _node_internal],
get: [Function: get],
request: [Function: request],
setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
maxHeaderSize: [Getter],
globalAgent: [Getter/Setter]
},
'https:': {
Agent: [Function: Agent],
globalAgent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 0,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
Server: [Function: Server],
createServer: [Function: createServer],
get: [Function: get],
request: [Function: request]
}
},
pathname: '/api/asset/bulk-upload-check'
},
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 204,
_requestBodyBuffers: [
{
data: Buffer(204) [Uint8Array] [
123, 34, 97, 115, 115, 101, 116, 115, 34, 58, 91, 123,
34, 105, 100, 34, 58, 34, 47, 86, 111, 108, 117, 109,
101, 115, 47, 97, 98, 104, 105, 110, 97, 118, 47, 80,
104, 111, 116, 111, 115, 95, 49, 47, 73, 109, 109, 105,
99, 104, 95, 49, 47, 108, 105, 98, 114, 97, 114, 121,
47, 116, 104, 117, 109, 98, 115, 47, 57, 102, 48, 101,
52, 52, 54, 97, 45, 57, 57, 102, 56, 45, 52, 52,
98, 50, 45, 98, 99, 101, 100, 45, 99, 48, 101, 49,
51, 98, 97, 102,
... 104 more items
],
encoding: undefined
}
],
_onNativeResponse: [Function (anonymous)],
_currentRequest: <ref *2> ClientRequest {
_events: [Object: null prototype] {
response: [Function: bound onceWrapper] {
listener: [Function (anonymous)]
},
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '204',
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: false,
_header: 'POST /api/asset/bulk-upload-check HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: application/json\r\n' +
'x-api-key: hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA\r\n' +
'User-Agent: axios/1.6.7\r\n' +
'Content-Length: 204\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: localhost:2283\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype] {
free: [Function (anonymous)],
newListener: [Function: maybeEnableKeylog]
},
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 80,
protocol: 'http:',
options: [Object: null prototype] {
keepAlive: true,
scheduling: 'lifo',
timeout: 5000,
noDelay: true,
path: null
},
requests: [Object: null prototype] {},
sockets: [Object: null prototype] { 'localhost:2283:': [ [Socket] ] },
freeSockets: [Object: null prototype] {},
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/api/asset/bulk-upload-check',
_ended: false,
res: null,
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: 'localhost',
protocol: 'http:',
_redirectable: [Circular *1],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kChunkedBuffer)]: [],
[Symbol(kChunkedLength)]: 0,
[Symbol(kSocket)]: Socket {
connecting: false,
_hadError: true,
_parent: null,
_host: 'localhost',
_closeAfterHandlingError: false,
_readableState: ReadableState {
highWaterMark: 16384,
buffer: BufferList { head: null, tail: null, length: 0 },
length: 0,
pipes: [],
awaitDrainWriters: null,
[Symbol(kState)]: 60092438
},
_events: [Object: null prototype] {
end: [ [Function: onReadableStreamEnd], [Function: socketOnEnd] ],
free: [Function: onFree],
close: [ [Function: onClose], [Function: socketCloseListener] ],
timeout: [ [Function: onTimeout], [Function] ],
agentRemove: [Function: onRemove],
error: [Function: socketErrorListener],
data: [Function: socketOnData],
drain: [Function: ondrain]
},
_eventsCount: 8,
_maxListeners: undefined,
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 34341828,
[Symbol(kBufferedValue)]: null,
[Symbol(kWriteCbValue)]: [Function (anonymous)],
[Symbol(kAfterWriteTickInfoValue)]: null
},
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 5000,
parser: null,
_httpMessage: [Circular *2],
autoSelectFamilyAttemptedAddresses: [ '::1:2283' ],
write: [Function: writeAfterFIN],
[Symbol(async_id_symbol)]: 980493,
[Symbol(kHandle)]: null,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: -1,
_idlePrev: null,
_idleNext: null,
_idleStart: 22670145,
_onTimeout: null,
_timerArgs: undefined,
_repeat: null,
_destroyed: true,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 980442,
[Symbol(triggerId)]: 980440
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: true,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 60,
[Symbol(kBytesRead)]: 2939264,
[Symbol(kBytesWritten)]: 3205520
},
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [ 'Accept', 'application/json, text/plain, /' ],
'content-type': [ 'Content-Type', 'application/json' ],
'x-api-key': [ 'x-api-key', 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA' ],
'user-agent': [ 'User-Agent', 'axios/1.6.7' ],
'content-length': [ 'Content-Length', '204' ],
'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
host: [ 'Host', 'localhost:2283' ]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'http://localhost:2283/api/asset/bulk-upload-check',
[Symbol(kCapture)]: false
},
cause: Error: socket hang up
at connResetException (node:internal/errors:787:14)
at Socket.socketOnEnd (node:_http_client:519:23)
at Socket.emit (node:events:527:35)
at endReadableNT (node:internal/streams/readable:1589:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'ECONNRESET'
}
}

Originally created by @AbNiks on GitHub (Mar 11, 2024). ### The bug Immich CLI(latest) upload works when uploading few files (usually around 5 GB) but when recursively iterating thru huge directory structure with huge GB of data being uploaded, Immich CLI(latest) fails usually due to one of the below reasons as stated below. When re-run, usually one of the below error comes. It difficult to upload every leaf structure of the directory. Can we have this tested for huge directory structure say of approx 1TB, with different types of files being uploaded pls? 1) Issue 1:- data: { message: 'Failed to upload file', error: 'Internal Server Error', statusCode: 500 } 2) Issue 2:- cause: Error: socket hang up at connResetException (node:internal/errors:787:14) at Socket.socketOnEnd (node:_http_client:519:23) at Socket.emit (node:events:527:35) at endReadableNT (node:internal/streams/readable:1589:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ECONNRESET' 3) Issue 3:- cause: [Error: EBADF: bad file descriptor, close] { errno: -9, code: 'EBADF', syscall: 'close' } Stating log for issue 3 here due to character limitation: ------------------------------------------------------------------------ Issue 3 Logs:- nitikaagarwal@Nitikas-MBP 2023 % immich upload --recursive --delete 01 █████████████████████░░░░░░░░░░░░░░░░░░░ | 53% | ETA: 3h35m | 11.9 GB/22.3 GB: /Volumes/abhinav/PhotoPrism/originals/2023/01/20230125_090450_BC1C9746.mp4 node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ AxiosError: EBADF: bad file descriptor, close at AxiosError.from (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:837:14) at ClientRequest.handleRequestError (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3087:25) at ClientRequest.emit (node:events:515:28) at Socket.socketErrorListener (node:_http_client:495:9) ....... [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null, [Symbol(kError)]: [Error: EBADF: bad file descriptor, close] { errno: -9, code: 'EBADF', syscall: 'close' } }, cause: [Error: EBADF: bad file descriptor, close] { errno: -9, code: 'EBADF', syscall: 'close' } } ### The OS that Immich Server is running on Mac Sonoma 14.3.1 (23D60) ### Version of Immich Server v1.98.1 ### Version of Immich Mobile App v1.97.0 build.141 ### Platform with the issue - [ ] Server - [ ] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" # # WARNING: Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. # name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database restart: always immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always redis: container_name: immich_redis image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5 restart: always database: container_name: immich_postgres image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=/Volumes/abhinav/Immich # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password DB_PASSWORD=postgres # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash 1. Try uploading huge directory structure which has blend of different files types(zip, jpeg, gif, all possible formats) with tree structure of n depth where n is huge. Not sure what the maximum value of n i could have due to multiple backups being taken over years. 2. The total size of upload being processed is huge say ~1TB 3. Re-running on the parent folder gives one of the 3 Issues stated above and logs attached for all 3 issues. 4. Note, I have disabled ML during CLI upload and also ensured that all jobs are stopped in Administrator Job. 5. Docker Resource allocated: 8 Core CPU, Memory Limit: 7 GB, Swap: 3GB 6. command issued: immich upload --recursive --delete . ``` ### Additional information 1) Issue 1 Logs:- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 13h50m | 5.9 GB/627.0 GB: /Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2b/a8/2ba808ca node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ AxiosError: Request failed with status code 500 at settle (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:1967:12) at IncomingMessage.handleStreamEnd (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3066:11) at IncomingMessage.emit (node:events:527:35) at endReadableNT (node:internal/streams/readable:1589:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3877:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Upload.uploadAsset (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/commands/upload.js:155:21) at async Upload.run (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/commands/upload.js:79:41) at async Command.<anonymous> (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/index.js:43:5) { code: 'ERR_BAD_RESPONSE', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: Infinity, maxBodyLength: Infinity, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, */*', 'Content-Type': 'multipart/form-data; boundary=--------------------------021651844378398580960649', 'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA', 'User-Agent': 'axios/1.6.7', 'Content-Length': '32660', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'post', maxRedirects: 0, url: 'http://localhost:2283/api/asset/upload', data: FormData { _overheadLength: 741, _valueLength: 103, _valuesToMeasure: [ ReadStream { fd: null, path: '/Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2b/a8/2ba808ca-915e-4b1e-9d23-d25e3bda01e5.webp', flags: 'r', mode: 438, start: undefined, end: Infinity, pos: undefined, bytesRead: 31760, _readableState: ReadableState { highWaterMark: 65536, buffer: [BufferList], length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60094486 }, _events: [Object: null prototype] { error: [Function (anonymous)], data: [Function: bound ] }, _eventsCount: 2, _maxListeners: undefined, emit: [Function (anonymous)], [Symbol(kFs)]: { appendFile: [Function: appendFile], appendFileSync: [Function: appendFileSync], access: [Function: access], accessSync: [Function: accessSync], chown: [Function: chown], chownSync: [Function: chownSync], chmod: [Function: chmod], chmodSync: [Function: chmodSync], close: [Function: close], closeSync: [Function: closeSync], copyFile: [Function: copyFile], copyFileSync: [Function: copyFileSync], cp: [Function: cp], cpSync: [Function: cpSync], createReadStream: [Function: createReadStream], createWriteStream: [Function: createWriteStream], exists: [Function: exists], existsSync: [Function: existsSync], fchown: [Function: fchown], fchownSync: [Function: fchownSync], fchmod: [Function: fchmod], fchmodSync: [Function: fchmodSync], fdatasync: [Function: fdatasync], fdatasyncSync: [Function: fdatasyncSync], fstat: [Function: fstat], fstatSync: [Function: fstatSync], fsync: [Function: fsync], fsyncSync: [Function: fsyncSync], ftruncate: [Function: ftruncate], ftruncateSync: [Function: ftruncateSync], futimes: [Function: futimes], futimesSync: [Function: futimesSync], lchown: [Function: lchown], lchownSync: [Function: lchownSync], lchmod: [Function: lchmod], lchmodSync: [Function: lchmodSync], link: [Function: link], linkSync: [Function: linkSync], lstat: [Function: lstat], lstatSync: [Function: lstatSync], lutimes: [Function: lutimes], lutimesSync: [Function: lutimesSync], mkdir: [Function: mkdir], mkdirSync: [Function: mkdirSync], mkdtemp: [Function: mkdtemp], mkdtempSync: [Function: mkdtempSync], open: [Function: open], openSync: [Function: openSync], openAsBlob: [Function: openAsBlob], readdir: [Function: readdir], readdirSync: [Function: readdirSync], read: [Function: read], readSync: [Function: readSync], readv: [Function: readv], readvSync: [Function: readvSync], readFile: [Function: readFile], readFileSync: [Function: readFileSync], readlink: [Function: readlink], readlinkSync: [Function: readlinkSync], realpath: [Function], realpathSync: [Function], rename: [Function: rename], renameSync: [Function: renameSync], rm: [Function: rm], rmSync: [Function: rmSync], rmdir: [Function: rmdir], rmdirSync: [Function: rmdirSync], stat: [Function: stat], statfs: [Function: statfs], statSync: [Function: statSync], statfsSync: [Function: statfsSync], symlink: [Function: symlink], symlinkSync: [Function: symlinkSync], truncate: [Function: truncate], truncateSync: [Function: truncateSync], unwatchFile: [Function: unwatchFile], unlink: [Function: unlink], unlinkSync: [Function: unlinkSync], utimes: [Function: utimes], utimesSync: [Function: utimesSync], watch: [Function: watch], watchFile: [Function: watchFile], writeFile: [Function: writeFile], writeFileSync: [Function: writeFileSync], write: [Function: write], writeSync: [Function: writeSync], writev: [Function: writev], writevSync: [Function: writevSync], Dirent: [class Dirent], Stats: [Function: Stats], ReadStream: [Getter/Setter], WriteStream: [Getter/Setter], FileReadStream: [Getter/Setter], FileWriteStream: [Getter/Setter], _toUnixTimestamp: [Function: toUnixTimestamp], Dir: [class Dir], opendir: [Function: opendir], opendirSync: [Function: opendirSync], F_OK: 0, R_OK: 4, W_OK: 2, X_OK: 1, constants: [Object: null prototype], promises: [Getter] }, [Symbol(kIsPerformingIO)]: false, [Symbol(kCapture)]: false } ], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------021651844378398580960649', _events: [Object: null prototype] { end: [Function (anonymous)], error: [Function: bound onceWrapper] { listener: [Function (anonymous)] }, close: [Function (anonymous)] }, _eventsCount: 3 } }, request: <ref *4> ClientRequest { _events: [Object: null prototype] { error: [Function: handleRequestError], socket: [Function: handleRequestSocket], finish: [Function: requestOnFinish] }, _eventsCount: 3, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '32660', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: true, _header: 'POST /api/asset/upload HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------021651844378398580960649\r\n' + 'x-api-key: hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA\r\n' + 'User-Agent: axios/1.6.7\r\n' + 'Content-Length: 32660\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: localhost:2283\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] { 'localhost:2283:': [ Socket { connecting: false, _hadError: false, _parent: null, _host: 'localhost', _closeAfterHandlingError: false, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 6, _maxListeners: undefined, _writableState: [WritableState], allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: null, autoSelectFamilyAttemptedAddresses: [Array], [Symbol(async_id_symbol)]: -1, [Symbol(kHandle)]: [TCP], [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: [Timeout], [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 1, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 } ] }, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/api/asset/upload', _ended: true, res: IncomingMessage { _readableState: ReadableState { highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60225590 }, _events: [Object: null prototype] { end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ], error: [Function: handleStreamError], data: [Function: handleStreamData], aborted: [Function: handlerStreamAborted] }, _eventsCount: 4, _maxListeners: undefined, socket: null, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'X-Powered-By', 'Express', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '84', 'ETag', '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', 'Date', 'Sun, 10 Mar 2024 14:57:14 GMT', 'Connection', 'keep-alive', 'Keep-Alive', 'timeout=5' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 500, statusMessage: 'Internal Server Error', client: <ref *1> Socket { connecting: false, _hadError: false, _parent: null, _host: 'localhost', _closeAfterHandlingError: false, _readableState: ReadableState { highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60035160 }, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], free: [Function: onFree], close: [Function: onClose], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: bound onceWrapper] { listener: [Function: freeSocketErrorListener] } }, _eventsCount: 6, _maxListeners: undefined, _writableState: WritableState { highWaterMark: 16384, length: 0, corked: 0, onwrite: [Function: bound onwrite], writelen: 0, bufferedIndex: 0, pendingcb: 0, [Symbol(kState)]: 34340932, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function (anonymous)], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: null, autoSelectFamilyAttemptedAddresses: [ '::1:2283' ], [Symbol(async_id_symbol)]: -1, [Symbol(kHandle)]: <ref *2> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *1], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *2] } }, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: <ref *3> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *3], _idlePrev: [Circular *3], expiry: 19302188, id: -9007199254690749, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *3], _idlePrev: [Circular *3], expiry: 19302188, id: -9007199254690749, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 19299043, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 1643290, [Symbol(triggerId)]: 1643288 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 1, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _consuming: false, _dumped: false, req: [Circular *4], [Symbol(kCapture)]: false, [Symbol(kHeaders)]: { 'x-powered-by': 'Express', 'content-type': 'application/json; charset=utf-8', 'content-length': '84', etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', date: 'Sun, 10 Mar 2024 14:57:14 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, [Symbol(kHeadersCount)]: 14, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0 }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: true, host: 'localhost', protocol: 'http:', [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kChunkedBuffer)]: [], [Symbol(kChunkedLength)]: 0, [Symbol(kSocket)]: <ref *1> Socket { connecting: false, _hadError: false, _parent: null, _host: 'localhost', _closeAfterHandlingError: false, _readableState: ReadableState { highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60035160 }, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], free: [Function: onFree], close: [Function: onClose], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: bound onceWrapper] { listener: [Function: freeSocketErrorListener] } }, _eventsCount: 6, _maxListeners: undefined, _writableState: WritableState { highWaterMark: 16384, length: 0, corked: 0, onwrite: [Function: bound onwrite], writelen: 0, bufferedIndex: 0, pendingcb: 0, [Symbol(kState)]: 34340932, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function (anonymous)], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: null, autoSelectFamilyAttemptedAddresses: [ '::1:2283' ], [Symbol(async_id_symbol)]: -1, [Symbol(kHandle)]: <ref *2> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *1], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *2] } }, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: <ref *3> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *3], _idlePrev: [Circular *3], expiry: 19302188, id: -9007199254690749, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *3], _idlePrev: [Circular *3], expiry: 19302188, id: -9007199254690749, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 19299043, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 1643290, [Symbol(triggerId)]: 1643288 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 1, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'multipart/form-data; boundary=--------------------------021651844378398580960649' ], 'x-api-key': [ 'x-api-key', 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA' ], 'user-agent': [ 'User-Agent', 'axios/1.6.7' ], 'content-length': [ 'Content-Length', '32660' ], 'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ], host: [ 'Host', 'localhost:2283' ] }, [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, response: { status: 500, statusText: 'Internal Server Error', headers: Object [AxiosHeaders] { 'x-powered-by': 'Express', 'content-type': 'application/json; charset=utf-8', 'content-length': '84', etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', date: 'Sun, 10 Mar 2024 14:57:14 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: Infinity, maxBodyLength: Infinity, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, */*', 'Content-Type': 'multipart/form-data; boundary=--------------------------021651844378398580960649', 'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA', 'User-Agent': 'axios/1.6.7', 'Content-Length': '32660', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'post', maxRedirects: 0, url: 'http://localhost:2283/api/asset/upload', data: FormData { _overheadLength: 741, _valueLength: 103, _valuesToMeasure: [ ReadStream { fd: null, path: '/Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2b/a8/2ba808ca-915e-4b1e-9d23-d25e3bda01e5.webp', flags: 'r', mode: 438, start: undefined, end: Infinity, pos: undefined, bytesRead: 31760, _readableState: [ReadableState], _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, emit: [Function (anonymous)], [Symbol(kFs)]: [Object], [Symbol(kIsPerformingIO)]: false, [Symbol(kCapture)]: false } ], writable: false, readable: true, dataSize: 0, maxDataSize: 2097152, pauseStreams: true, _released: true, _streams: [], _currentStream: null, _insideLoop: false, _pendingNext: false, _boundary: '--------------------------021651844378398580960649', _events: [Object: null prototype] { end: [Function (anonymous)], error: [Function: bound onceWrapper] { listener: [Function (anonymous)] }, close: [Function (anonymous)] }, _eventsCount: 3 } }, request: <ref *4> ClientRequest { _events: [Object: null prototype] { error: [Function: handleRequestError], socket: [Function: handleRequestSocket], finish: [Function: requestOnFinish] }, _eventsCount: 3, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: true, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '32660', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: true, _header: 'POST /api/asset/upload HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: multipart/form-data; boundary=--------------------------021651844378398580960649\r\n' + 'x-api-key: hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA\r\n' + 'User-Agent: axios/1.6.7\r\n' + 'Content-Length: 32660\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: localhost:2283\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] { 'localhost:2283:': [ [Socket] ] }, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/api/asset/upload', _ended: true, res: IncomingMessage { _readableState: ReadableState { highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60225590 }, _events: [Object: null prototype] { end: [ [Function: responseOnEnd], [Function: handleStreamEnd] ], error: [Function: handleStreamError], data: [Function: handleStreamData], aborted: [Function: handlerStreamAborted] }, _eventsCount: 4, _maxListeners: undefined, socket: null, httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, rawHeaders: [ 'X-Powered-By', 'Express', 'Content-Type', 'application/json; charset=utf-8', 'Content-Length', '84', 'ETag', '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', 'Date', 'Sun, 10 Mar 2024 14:57:14 GMT', 'Connection', 'keep-alive', 'Keep-Alive', 'timeout=5' ], rawTrailers: [], joinDuplicateHeaders: undefined, aborted: false, upgrade: false, url: '', method: null, statusCode: 500, statusMessage: 'Internal Server Error', client: <ref *1> Socket { connecting: false, _hadError: false, _parent: null, _host: 'localhost', _closeAfterHandlingError: false, _readableState: ReadableState { highWaterMark: 16384, buffer: [BufferList], length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60035160 }, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], free: [Function: onFree], close: [Function: onClose], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function] }, _eventsCount: 6, _maxListeners: undefined, _writableState: WritableState { highWaterMark: 16384, length: 0, corked: 0, onwrite: [Function: bound onwrite], writelen: 0, bufferedIndex: 0, pendingcb: 0, [Symbol(kState)]: 34340932, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function (anonymous)], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: null, autoSelectFamilyAttemptedAddresses: [ '::1:2283' ], [Symbol(async_id_symbol)]: -1, [Symbol(kHandle)]: <ref *2> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *1], [Symbol(resource_symbol)]: [ReusedHandle] }, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: <ref *3> Timeout { _idleTimeout: 5000, _idlePrev: [TimersList], _idleNext: [TimersList], _idleStart: 19299043, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 1643290, [Symbol(triggerId)]: 1643288 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 1, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, _consuming: false, _dumped: false, req: [Circular *4], [Symbol(kCapture)]: false, [Symbol(kHeaders)]: { 'x-powered-by': 'Express', 'content-type': 'application/json; charset=utf-8', 'content-length': '84', etag: '"54-sQojqNZnpXrSuerOtcfoJmKKJXs"', date: 'Sun, 10 Mar 2024 14:57:14 GMT', connection: 'keep-alive', 'keep-alive': 'timeout=5' }, [Symbol(kHeadersCount)]: 14, [Symbol(kTrailers)]: null, [Symbol(kTrailersCount)]: 0 }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: true, host: 'localhost', protocol: 'http:', [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kChunkedBuffer)]: [], [Symbol(kChunkedLength)]: 0, [Symbol(kSocket)]: <ref *1> Socket { connecting: false, _hadError: false, _parent: null, _host: 'localhost', _closeAfterHandlingError: false, _readableState: ReadableState { highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60035160 }, _events: [Object: null prototype] { end: [Function: onReadableStreamEnd], free: [Function: onFree], close: [Function: onClose], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: bound onceWrapper] { listener: [Function: freeSocketErrorListener] } }, _eventsCount: 6, _maxListeners: undefined, _writableState: WritableState { highWaterMark: 16384, length: 0, corked: 0, onwrite: [Function: bound onwrite], writelen: 0, bufferedIndex: 0, pendingcb: 0, [Symbol(kState)]: 34340932, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function (anonymous)], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: null, autoSelectFamilyAttemptedAddresses: [ '::1:2283' ], [Symbol(async_id_symbol)]: -1, [Symbol(kHandle)]: <ref *2> TCP { reading: true, onconnection: null, [Symbol(owner_symbol)]: [Circular *1], [Symbol(resource_symbol)]: ReusedHandle { type: 40, handle: [Circular *2] } }, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: <ref *3> Timeout { _idleTimeout: 5000, _idlePrev: TimersList { _idleNext: [Circular *3], _idlePrev: [Circular *3], expiry: 19302188, id: -9007199254690749, msecs: 5000, priorityQueuePosition: 1 }, _idleNext: TimersList { _idleNext: [Circular *3], _idlePrev: [Circular *3], expiry: 19302188, id: -9007199254690749, msecs: 5000, priorityQueuePosition: 1 }, _idleStart: 19299043, _onTimeout: [Function: bound ], _timerArgs: undefined, _repeat: null, _destroyed: false, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 1643290, [Symbol(triggerId)]: 1643288 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 1, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0 }, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'multipart/form-data; boundary=--------------------------021651844378398580960649' ], 'x-api-key': [ 'x-api-key', 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA' ], 'user-agent': [ 'User-Agent', 'axios/1.6.7' ], 'content-length': [ 'Content-Length', '32660' ], 'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ], host: [ 'Host', 'localhost:2283' ] }, [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, data: { message: 'Failed to upload file', error: 'Internal Server Error', statusCode: 500 } } } --------------------------- 2) Issue 2 Logs: ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 12h60m | 4.3 GB/627.0 GB: /Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2170cf54-f1fc- node:internal/process/promises:289 triggerUncaughtException(err, true /* fromPromise */); ^ AxiosError: socket hang up at AxiosError.from (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:837:14) at RedirectableRequest.handleRequestError (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3087:25) at RedirectableRequest.emit (node:events:515:28) at eventHandlers.<computed> (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/follow-redirects/index.js:38:24) at ClientRequest.emit (node:events:515:28) at Socket.socketOnEnd (node:_http_client:519:9) at Socket.emit (node:events:527:35) at endReadableNT (node:internal/streams/readable:1589:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/node_modules/axios/dist/node/axios.cjs:3877:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Upload.run (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/commands/upload.js:65:43) at async Command.<anonymous> (/Users/nitikaagarwal/.nvm/versions/node/v21.1.0/lib/node_modules/@immich/cli/dist/src/index.js:43:5) { code: 'ECONNRESET', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: Object [AxiosHeaders] { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA', 'User-Agent': 'axios/1.6.7', 'Content-Length': '204', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'post', data: '{"assets":[{"id":"/Volumes/abhinav/Photos_1/Immich_1/library/thumbs/9f0e446a-99f8-44b2-bced-c0e13baf0251/2170cf54-f1fc-4cd3-ae96-545a32cfd6fa.jpeg","checksum":"746aef08137c4d1ff46ce12eb8d2ae998460aa1d"}]}', url: 'http://localhost:2283/api/asset/bulk-upload-check' }, request: <ref *1> Writable { _writableState: WritableState { highWaterMark: 16384, length: 0, corked: 0, onwrite: [Function: bound onwrite], writelen: 0, bufferedIndex: 0, pendingcb: 0, [Symbol(kState)]: 34357356, [Symbol(kBufferedValue)]: null }, _events: [Object: null prototype] { response: [Function: handleResponse], error: [Function: handleRequestError], socket: [Function: handleRequestSocket] }, _eventsCount: 3, _maxListeners: undefined, _options: { maxRedirects: 21, maxBodyLength: Infinity, protocol: 'http:', path: '/api/asset/bulk-upload-check', method: 'POST', headers: [Object: null prototype] { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/json', 'x-api-key': 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA', 'User-Agent': 'axios/1.6.7', 'Content-Length': '204', 'Accept-Encoding': 'gzip, compress, deflate, br' }, agents: { http: undefined, https: undefined }, auth: undefined, family: undefined, beforeRedirect: [Function: dispatchBeforeRedirect], beforeRedirects: { proxy: [Function: beforeRedirect] }, hostname: 'localhost', port: '2283', agent: undefined, nativeProtocols: { 'http:': { _connectionListener: [Function: connectionListener], METHODS: [ 'ACL', 'BIND', 'CHECKOUT', 'CONNECT', 'COPY', 'DELETE', 'GET', 'HEAD', 'LINK', 'LOCK', 'M-SEARCH', 'MERGE', 'MKACTIVITY', 'MKCALENDAR', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS', 'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'REBIND', 'REPORT', 'SEARCH', 'SOURCE', 'SUBSCRIBE', 'TRACE', 'UNBIND', 'UNLINK', 'UNLOCK', 'UNSUBSCRIBE' ], STATUS_CODES: { '100': 'Continue', '101': 'Switching Protocols', '102': 'Processing', '103': 'Early Hints', '200': 'OK', '201': 'Created', '202': 'Accepted', '203': 'Non-Authoritative Information', '204': 'No Content', '205': 'Reset Content', '206': 'Partial Content', '207': 'Multi-Status', '208': 'Already Reported', '226': 'IM Used', '300': 'Multiple Choices', '301': 'Moved Permanently', '302': 'Found', '303': 'See Other', '304': 'Not Modified', '305': 'Use Proxy', '307': 'Temporary Redirect', '308': 'Permanent Redirect', '400': 'Bad Request', '401': 'Unauthorized', '402': 'Payment Required', '403': 'Forbidden', '404': 'Not Found', '405': 'Method Not Allowed', '406': 'Not Acceptable', '407': 'Proxy Authentication Required', '408': 'Request Timeout', '409': 'Conflict', '410': 'Gone', '411': 'Length Required', '412': 'Precondition Failed', '413': 'Payload Too Large', '414': 'URI Too Long', '415': 'Unsupported Media Type', '416': 'Range Not Satisfiable', '417': 'Expectation Failed', '418': "I'm a Teapot", '421': 'Misdirected Request', '422': 'Unprocessable Entity', '423': 'Locked', '424': 'Failed Dependency', '425': 'Too Early', '426': 'Upgrade Required', '428': 'Precondition Required', '429': 'Too Many Requests', '431': 'Request Header Fields Too Large', '451': 'Unavailable For Legal Reasons', '500': 'Internal Server Error', '501': 'Not Implemented', '502': 'Bad Gateway', '503': 'Service Unavailable', '504': 'Gateway Timeout', '505': 'HTTP Version Not Supported', '506': 'Variant Also Negotiates', '507': 'Insufficient Storage', '508': 'Loop Detected', '509': 'Bandwidth Limit Exceeded', '510': 'Not Extended', '511': 'Network Authentication Required' }, Agent: [Function: Agent] { defaultMaxSockets: Infinity }, ClientRequest: [Function: ClientRequest], IncomingMessage: [Function: IncomingMessage], OutgoingMessage: [Function: OutgoingMessage], Server: [Function: Server], ServerResponse: [Function: ServerResponse], createServer: [Function: createServer], validateHeaderName: [Function: __node_internal_], validateHeaderValue: [Function: __node_internal_], get: [Function: get], request: [Function: request], setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers], maxHeaderSize: [Getter], globalAgent: [Getter/Setter] }, 'https:': { Agent: [Function: Agent], globalAgent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object: null prototype], requests: [Object: null prototype] {}, sockets: [Object: null prototype] {}, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 0, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] } }, pathname: '/api/asset/bulk-upload-check' }, _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 204, _requestBodyBuffers: [ { data: Buffer(204) [Uint8Array] [ 123, 34, 97, 115, 115, 101, 116, 115, 34, 58, 91, 123, 34, 105, 100, 34, 58, 34, 47, 86, 111, 108, 117, 109, 101, 115, 47, 97, 98, 104, 105, 110, 97, 118, 47, 80, 104, 111, 116, 111, 115, 95, 49, 47, 73, 109, 109, 105, 99, 104, 95, 49, 47, 108, 105, 98, 114, 97, 114, 121, 47, 116, 104, 117, 109, 98, 115, 47, 57, 102, 48, 101, 52, 52, 54, 97, 45, 57, 57, 102, 56, 45, 52, 52, 98, 50, 45, 98, 99, 101, 100, 45, 99, 48, 101, 49, 51, 98, 97, 102, ... 104 more items ], encoding: undefined } ], _onNativeResponse: [Function (anonymous)], _currentRequest: <ref *2> ClientRequest { _events: [Object: null prototype] { response: [Function: bound onceWrapper] { listener: [Function (anonymous)] }, abort: [Function (anonymous)], aborted: [Function (anonymous)], connect: [Function (anonymous)], error: [Function (anonymous)], socket: [Function (anonymous)], timeout: [Function (anonymous)] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: false, chunkedEncoding: false, shouldKeepAlive: true, maxRequestsOnConnectionReached: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, strictContentLength: false, _contentLength: '204', _hasBody: true, _trailer: '', finished: true, _headerSent: true, _closed: false, _header: 'POST /api/asset/bulk-upload-check HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Content-Type: application/json\r\n' + 'x-api-key: hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA\r\n' + 'User-Agent: axios/1.6.7\r\n' + 'Content-Length: 204\r\n' + 'Accept-Encoding: gzip, compress, deflate, br\r\n' + 'Host: localhost:2283\r\n' + 'Connection: keep-alive\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: nop], agent: Agent { _events: [Object: null prototype] { free: [Function (anonymous)], newListener: [Function: maybeEnableKeylog] }, _eventsCount: 2, _maxListeners: undefined, defaultPort: 80, protocol: 'http:', options: [Object: null prototype] { keepAlive: true, scheduling: 'lifo', timeout: 5000, noDelay: true, path: null }, requests: [Object: null prototype] {}, sockets: [Object: null prototype] { 'localhost:2283:': [ [Socket] ] }, freeSockets: [Object: null prototype] {}, keepAliveMsecs: 1000, keepAlive: true, maxSockets: Infinity, maxFreeSockets: 256, scheduling: 'lifo', maxTotalSockets: Infinity, totalSocketCount: 1, [Symbol(kCapture)]: false }, socketPath: undefined, method: 'POST', maxHeaderSize: undefined, insecureHTTPParser: undefined, joinDuplicateHeaders: undefined, path: '/api/asset/bulk-upload-check', _ended: false, res: null, aborted: false, timeoutCb: [Function: emitRequestTimeout], upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: true, host: 'localhost', protocol: 'http:', _redirectable: [Circular *1], [Symbol(kCapture)]: false, [Symbol(kBytesWritten)]: 0, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kChunkedBuffer)]: [], [Symbol(kChunkedLength)]: 0, [Symbol(kSocket)]: Socket { connecting: false, _hadError: true, _parent: null, _host: 'localhost', _closeAfterHandlingError: false, _readableState: ReadableState { highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], awaitDrainWriters: null, [Symbol(kState)]: 60092438 }, _events: [Object: null prototype] { end: [ [Function: onReadableStreamEnd], [Function: socketOnEnd] ], free: [Function: onFree], close: [ [Function: onClose], [Function: socketCloseListener] ], timeout: [ [Function: onTimeout], [Function] ], agentRemove: [Function: onRemove], error: [Function: socketErrorListener], data: [Function: socketOnData], drain: [Function: ondrain] }, _eventsCount: 8, _maxListeners: undefined, _writableState: WritableState { highWaterMark: 16384, length: 0, corked: 0, onwrite: [Function: bound onwrite], writelen: 0, bufferedIndex: 0, pendingcb: 0, [Symbol(kState)]: 34341828, [Symbol(kBufferedValue)]: null, [Symbol(kWriteCbValue)]: [Function (anonymous)], [Symbol(kAfterWriteTickInfoValue)]: null }, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: null, _server: null, timeout: 5000, parser: null, _httpMessage: [Circular *2], autoSelectFamilyAttemptedAddresses: [ '::1:2283' ], write: [Function: writeAfterFIN], [Symbol(async_id_symbol)]: 980493, [Symbol(kHandle)]: null, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: Timeout { _idleTimeout: -1, _idlePrev: null, _idleNext: null, _idleStart: 22670145, _onTimeout: null, _timerArgs: undefined, _repeat: null, _destroyed: true, [Symbol(refed)]: false, [Symbol(kHasPrimitive)]: false, [Symbol(asyncId)]: 980442, [Symbol(triggerId)]: 980440 }, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kSetNoDelay)]: true, [Symbol(kSetKeepAlive)]: true, [Symbol(kSetKeepAliveInitialDelay)]: 60, [Symbol(kBytesRead)]: 2939264, [Symbol(kBytesWritten)]: 3205520 }, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [ 'Accept', 'application/json, text/plain, */*' ], 'content-type': [ 'Content-Type', 'application/json' ], 'x-api-key': [ 'x-api-key', 'hhFt9xANBIeyL9QVurHiGJowcfD1FmsWFpA23OqA' ], 'user-agent': [ 'User-Agent', 'axios/1.6.7' ], 'content-length': [ 'Content-Length', '204' ], 'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ], host: [ 'Host', 'localhost:2283' ] }, [Symbol(errored)]: null, [Symbol(kHighWaterMark)]: 16384, [Symbol(kRejectNonStandardBodyWrites)]: false, [Symbol(kUniqueHeaders)]: null }, _currentUrl: 'http://localhost:2283/api/asset/bulk-upload-check', [Symbol(kCapture)]: false }, cause: Error: socket hang up at connResetException (node:internal/errors:787:14) at Socket.socketOnEnd (node:_http_client:519:23) at Socket.emit (node:events:527:35) at endReadableNT (node:internal/streams/readable:1589:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ECONNRESET' } }
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#2526