I use Immich CLI to upload images, it seems to go well but the last step is disrupted unexpectedly.
"""
Successfully updated 395956 assets
Adding assets to albums | ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ | 0% | ETA: 0s | 0/395956 assets
node:internal/deps/undici/undici:15845
Error.captureStackTrace(err);
^
TypeError: fetch failed
at node:internal/deps/undici/undici:15845:13
at async p (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:3130:12)
at async r (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:3082:16)
at async Object.i [as fetchJson] (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:3096:66)
at async Object.y [as ok] (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:3183:13)
at async updateAlbums (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:20138:9)
at async uploadBatch (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:19783:3)
at async upload (file:///root/.npm/_npx/196aff5f76580ead/node_modules/@immich/cli/dist/index.js:19846:3) {
[cause]: SocketError: other side closed
at Socket.onHttpSocketEnd (node:internal/deps/undici/undici:7147:26)
at Socket.emit (node:events:520:35)
at endReadableNT (node:internal/streams/readable:1701:12)
at process.processTicksAndRejections (node:internal/process/task_queues:89:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '127.0.0.1',
localPort: 38450,
remoteAddress: undefined,
remotePort: undefined,
remoteFamily: undefined,
timeout: undefined,
bytesWritten: 1569,
bytesRead: 2823
}
}
}
Node.js v24.12.0
"""
Can I somehow return from the last step? It took me 6 days to have this thing run entirely.