I
Immich2y ago
ddshd

immich CLI import 500 internal server error

Error asset: {
file: '/mnt/b2/PPTestd/MP4/IMG_0037.MP4',
reason: Error: Request failed with status code 500
at createError (/usr/src/app/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/src/app/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/src/app/node_modules/axios/lib/adapters/http.js:322:11)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
maxRedirects: 0,
url: 'http://immich-proxy:8080/api/asset/import',
data: '{"deviceAssetId":"IMG_0037.MP4-2363969","deviceId":"CLI","assetType":"VIDEO","fileCreatedAt":"2023-01-07T05:22:16.474Z","fileModifiedAt":"2023-01-07T05:22:16.474Z","isFavorite":"false","fileExtension":".MP4","duration":"0:00:00.000000","isReadOnly":"true","assetPath":"/mnt/b2/PPTestd/MP4/IMG_0037.MP4"}'
},
response: { statusCode: 500, message: 'Internal server error' }
}
Error asset: {
file: '/mnt/b2/PPTestd/MP4/IMG_0037.MP4',
reason: Error: Request failed with status code 500
at createError (/usr/src/app/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/src/app/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/src/app/node_modules/axios/lib/adapters/http.js:322:11)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: Infinity,
maxBodyLength: Infinity,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
maxRedirects: 0,
url: 'http://immich-proxy:8080/api/asset/import',
data: '{"deviceAssetId":"IMG_0037.MP4-2363969","deviceId":"CLI","assetType":"VIDEO","fileCreatedAt":"2023-01-07T05:22:16.474Z","fileModifiedAt":"2023-01-07T05:22:16.474Z","isFavorite":"false","fileExtension":".MP4","duration":"0:00:00.000000","isReadOnly":"true","assetPath":"/mnt/b2/PPTestd/MP4/IMG_0037.MP4"}'
},
response: { statusCode: 500, message: 'Internal server error' }
}
Getting this error for all the files when imported using the CLI (from within immich-server) immich upload --key key --server http://immich-proxy:8080/api -r /mnt/b2/PPTestd/ --import
3 Replies
ddshd
ddshdOP2y ago
I trimmed some of the axios error message but lmk and I and upload full The path /mnt/b2/PPTestd/ is available on immich-server and immich-microservices
[Nest] 1 - 07/02/2023, 12:50:25 AM ERROR [ExceptionsHandler] EIO: i/o error, read
Error: EIO: i/o error, read
[Nest] 1 - 07/02/2023, 12:50:25 AM ERROR [ExceptionsHandler] EIO: i/o error, read
Error: EIO: i/o error, read
server errors
Alex Tran
Alex Tran2y ago
is this a network storage?
ddshd
ddshdOP2y ago
Yes It was a permissions issue, has to restart the cluster after changing perms and it fixed it

Did you find this page helpful?