Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

immich-cli --recursive "No files found" #10380

Closed
3 tasks
midiwidi opened this issue Jun 16, 2024 · 8 comments
Closed
3 tasks

immich-cli --recursive "No files found" #10380

midiwidi opened this issue Jun 16, 2024 · 8 comments

Comments

@midiwidi
Copy link

The bug

Uploading folders using immich cli recently stopped working

immich upload --dry-run --album-name 'Weihnachten 2016' --recursive 'Weihnachten_2016\'
Crawling for assets...
No files found, exiting

I was using the exact same command many times before successfully. The folder definitely contains JPG files

dir Weihnachten_2016\

    Directory: D:\Bilder\Privat\Weihnachten_2016

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---          16.06.2024    14:05        5594765 P1030855.JPG
-a---          21.12.2016    04:20       12044240 P1030860.MP4
-a---          16.06.2024    14:05        5685863 P1030861.JPG
-a---          16.06.2024    14:05        5652859 P1030862.JPG
-a---          16.06.2024    14:05        5461499 P1030863.JPG
-a---          16.06.2024    14:05        4525403 P1030866.JPG
...

I also tried different ways of specifying the folder / files such as
'.\Weihnachten_2016\', 'Weihnachten_2016\*', '.\Weihnachten_2016\*.JPG' but nothing worked.
What does work is specifying a specific file

immich upload --dry-run --album-name 'Weihnachten 2016' --recursive '.\Weihnachten_2016\P1030855.JPG'
Crawling for assets...
Checking files | ████████████████████████████████████████ | 100% | ETA: 0s | 1/1 assets
Found 1 new files and 0 duplicates
Would have uploaded 1 asset (5,6 MB)
Would have created 1 new album
Would have updated albums of 1 asset

I updated the cli using npm update -g before I tried uploading. The version I have is 2.2.4

npm list -g
C:\Users\midiwidi\AppData\Roaming\npm
+-- @immich/[email protected]
`-- [email protected]

The OS that Immich Server is running on

Debian 12

Version of Immich Server

v1.106.4

Version of Immich Mobile App

v1.106.3

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not applicable

Your .env content

not applicable

Reproduction steps

run immich cli to upload a folder recursively

Relevant log output

No response

Additional information

No response

@Dhairyashilvp
Copy link

Same problem with windows installation of immich cli my ubuntu installation of immich cli is working as expected

@fky2015
Copy link
Contributor

fky2015 commented Jun 18, 2024

related to #10430

@lipe123
Copy link

lipe123 commented Jun 21, 2024

Please can we get the fix approved/merged or something, I just started using immich and i have soo many images i wish to import with the CLI. The only thing that works is importing one image at a time, none of the directory or any recursive functions work on windows.

@midiwidi
Copy link
Author

Could we downgrade the immich cli to an older version (while this is fixed) in which --recursive was working or is that not possible due to the changes in the immich server? If so, which version should we downgrade to?
Another option could be to run the cli in WSL.

@alextran1502
Copy link
Contributor

The fix has been merged #10430 and will be available in the next release which will be sometimes next week!

@stephenjoly
Copy link

stephenjoly commented Aug 5, 2024

I am still experiencing this exact issue on v1.111.0 running on Ubuntu server 24.04.

❯ immich -V #immich cli version
2.2.13
❯ npm -v
10.8.2
❯ nvm -v
0.39.7
❯ node -v
v20.16.0

Any idea how to resolve this?

This is the folder I am hoping to upload

Permissions Size User Date Modified Name
drwxr-xr-x - user 10 Jul 13:31 icloud_backup_preserved

with the following command:

immich upload --dry-run --recursive 'icloud_backup_preserved/' (I also tried without the dry run and without the single quotes, same result)

Here is the breakdown of content in the directory

File Size Distribution in icloud_backup_preserved/:
0-10MB: 56379 files, total size 89G
10-50MB: 1083 files, total size 25G
50-150MB: 536 files, total size 44G
150-500MB: 170 files, total size 41G
500MB-1GB: 50 files, total size 33G
1GB+: 41 files, total size 84G

I tried it with a smaller folder which had only a handful of the files from the directory above and it worked as expected. I wonder what is causing this? Should I perhaps just split the directory up?

@lipe123
Copy link

lipe123 commented Aug 5, 2024

I feel like you are supposed to do ./icloud_backup_preserved for your path or specify the whole path maybe?

Idk, I recently imported all my stuff in windows and it was working for me then.

@stephenjoly
Copy link

@lipe123 thanks for the reply! This code should work, I did try with the full path with the same result.

I tried the exact same process on Windows and it worked no problem. Wondering if this is still an active bug for Ubuntu Server 24.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants