© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3y ago•
6 replies
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-server
)

immich upload --key key --server http://immich-proxy:8080/api -r /mnt/b2/PPTestd/ --import
immich upload --key key --server http://immich-proxy:8080/api -r /mnt/b2/PPTestd/ --import
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Internal server error (500 - Internal Server Error)
ImmichIImmich / help-desk-support
3y ago
500 - internal server error
ImmichIImmich / help-desk-support
3y ago
Search 500 - Internal Server Error
ImmichIImmich / help-desk-support
3y ago
Error 500 immich_server, error in immich_postgresql
ImmichIImmich / help-desk-support
3mo ago