Bulk Upload Tool Error: cannot find module

New installation via docker on portainer. My .yml file is the same as the one I downloaded except for swapping the .env file name. After what looks like a sucessful installation including a bunch of uploading, I entered the immich_server container to do some batch uploading and got an error. Am I doing something wrong?
root@9af4badce86e:~# immich upload --key secretstuff --server https://photos.website.com/api /usr/src/app/upload/temp/2003/Cabrillo_1-3-03/PICT0780.jpg
node:internal/modules/cjs/loader:1080
throw err;
^

Error: Cannot find module '/root/node_modules/immich/bin/index'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v18.17.0
root@9af4badce86e:~#
root@9af4badce86e:~# immich upload --key secretstuff --server https://photos.website.com/api /usr/src/app/upload/temp/2003/Cabrillo_1-3-03/PICT0780.jpg
node:internal/modules/cjs/loader:1080
throw err;
^

Error: Cannot find module '/root/node_modules/immich/bin/index'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v18.17.0
root@9af4badce86e:~#
1 Reply
sloshpotamus
sloshpotamusOP2y ago
For future people who run into this, I won't say I figured this out, but I did get it working. It has somethign to do with going through an external URL. Changing to a local URL seems to have gotten it working. Here's what worked. immich upload -k secretstuff -s http://192.168.1.123:2283/api upload/temp/2003/apicture.jpg

Did you find this page helpful?