I
Immich•2y ago
matthias

Bulk upload from cli

Hi all, when navigating to the folders i wanted to upload, i received the following error. When typing immich, i keep on getting this error.
# immich upload --key apikey --server http://192.168.7.16:10323/api --recursive Photos/
node:internal/modules/cjs/loader:1051
throw err;
^

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

Node.js v20.8.1
# immich
node:internal/modules/cjs/loader:1051
throw err;
^

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

Node.js v20.8.1
# immich upload --key apikey --server http://192.168.7.16:10323/api --recursive Photos/
node:internal/modules/cjs/loader:1051
throw err;
^

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

Node.js v20.8.1
# immich
node:internal/modules/cjs/loader:1051
throw err;
^

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

Node.js v20.8.1
13 Replies
matthias
matthiasOP•2y ago
any idea why this is failing?
jrasm91
jrasm91•2y ago
How did you install it? Did you clone the repo? Or install it with npm?
matthias
matthiasOP•2y ago
aaah all fine just needed an npm install from the cli, there is only one thing truenas is timing out after a few minutes so it's always restarted
ishbuggy
ishbuggy•2y ago
hot tip I just took advantage of was to use immich-go to bulk upload. it works brilliantly by the way
matthias
matthiasOP•2y ago
that is just for google photos?
ishbuggy
ishbuggy•2y ago
As far as I know yes
Simulot
Simulot•2y ago
@ishbuggy Thank you for you nice comment No, it's not limited to google photos, even if most of the pain was there https://github.com/simulot/immich-go
ishbuggy
ishbuggy•2y ago
Nice! I didn't see that when I got it 😅
matthias
matthiasOP•2y ago
Just as a question, what is it adding, apart from thé normal cli? I'm a code noob
La mouche
La mouche•2y ago
With "the normal cli" you need to install node-js and all bunch of things and can't handle Google takeout. Immich-go are juste a executable binary you can exucute easily to import all your "normal" picture (like the normal cli) and google takeout if you have one
matthias
matthiasOP•2y ago
Allright, thanks for that!
MarcMK
MarcMK•2y ago
you need to install node-js
they offer a docker image which contains the cli
Simulot
Simulot•2y ago
Sure. But still not easy for most of users

Did you find this page helpful?