I
Immich5mo ago
Kesteve

External Library with \' in the Import Path failed to scan for files

I have 4 External Library and 3 of them are working fine, but there is a one with Import Path: /volume1/photo/Camera/Karen's iPhone/ and this path has no Assets being imported at all. I have more details below in the reply.
3 Replies
Immich
Immich5mo ago
:wave: Hey @Kesteve, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
Kesteve
KesteveOP5mo ago
I have set Logging level to Verbose, and clicked Scan for this particular External Library, here are the logs:
[Nest] 36 - 12/24/2024, 6:31:29 AM DEBUG [Api:LoggingInterceptor~t06gr9q9] POST /api/libraries/b8248174-ee5b-4dbe-ab44-2e6f39a61ad3/scan 204 5.35ms 123.204.11.96
[Nest] 8 - 12/24/2024, 6:31:29 AM LOG [Microservices:LibraryService] Refreshing library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3 for new assets
[Nest] 8 - 12/24/2024, 6:31:29 AM LOG [Microservices:LibraryService] Scanning library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3 for removed assets
[Nest] 8 - 12/24/2024, 6:31:29 AM DEBUG [Microservices:LibraryService] No non-excluded assets found in any import path for library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3
[Nest] 8 - 12/24/2024, 6:31:30 AM DEBUG [Microservices:LibraryService] Discovered 0 asset(s) in library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3...
[Nest] 8 - 12/24/2024, 6:31:30 AM DEBUG [Microservices:LibraryService] Queued check of 0 asset(s) in library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3...
[Nest] 36 - 12/24/2024, 6:31:29 AM DEBUG [Api:LoggingInterceptor~t06gr9q9] POST /api/libraries/b8248174-ee5b-4dbe-ab44-2e6f39a61ad3/scan 204 5.35ms 123.204.11.96
[Nest] 8 - 12/24/2024, 6:31:29 AM LOG [Microservices:LibraryService] Refreshing library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3 for new assets
[Nest] 8 - 12/24/2024, 6:31:29 AM LOG [Microservices:LibraryService] Scanning library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3 for removed assets
[Nest] 8 - 12/24/2024, 6:31:29 AM DEBUG [Microservices:LibraryService] No non-excluded assets found in any import path for library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3
[Nest] 8 - 12/24/2024, 6:31:30 AM DEBUG [Microservices:LibraryService] Discovered 0 asset(s) in library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3...
[Nest] 8 - 12/24/2024, 6:31:30 AM DEBUG [Microservices:LibraryService] Queued check of 0 asset(s) in library b8248174-ee5b-4dbe-ab44-2e6f39a61ad3...
You can see there is 0 assets reported. I have checked the postgres DB and library details here, importPaths is stored correctly the database:
~$ docker exec -it immich_postgres psql --dbname=immich --username=postgres
psql (14.10 (Debian 14.10-1.pgdg120+1))
Type "help" for help.

immich=# \x
Expanded display is on.
immich=# SELECT * FROM "libraries" where id = 'b8248174-ee5b-4dbe-ab44-2e6f39a61ad3';
-[ RECORD 1 ]-----+------------------------------------------
id | b8248174-ee5b-4dbe-ab44-2e6f39a61ad3
name | Karne iPhone Backup
ownerId | 34ce2420-9705-43e2-82dc-0934077abebe
importPaths | {"/volume1/photo/Camera/Karen's iPhone/"}
exclusionPatterns | {**/@eaDir/**,**/._*}
createdAt | 2024-12-24 04:36:38.358352+00
updatedAt | 2024-12-24 06:31:29.977503+00
deletedAt |
refreshedAt | 2024-12-24 06:31:29.975+00

immich=# \q
~$ docker exec -it immich_postgres psql --dbname=immich --username=postgres
psql (14.10 (Debian 14.10-1.pgdg120+1))
Type "help" for help.

immich=# \x
Expanded display is on.
immich=# SELECT * FROM "libraries" where id = 'b8248174-ee5b-4dbe-ab44-2e6f39a61ad3';
-[ RECORD 1 ]-----+------------------------------------------
id | b8248174-ee5b-4dbe-ab44-2e6f39a61ad3
name | Karne iPhone Backup
ownerId | 34ce2420-9705-43e2-82dc-0934077abebe
importPaths | {"/volume1/photo/Camera/Karen's iPhone/"}
exclusionPatterns | {**/@eaDir/**,**/._*}
createdAt | 2024-12-24 04:36:38.358352+00
updatedAt | 2024-12-24 06:31:29.977503+00
deletedAt |
refreshedAt | 2024-12-24 06:31:29.975+00

immich=# \q
And here I logged in to the immich_server shell, and ls the path to make sure there are files available, you can see the jpeg files exist:
~$ docker exec -it immich_server /bin/bash
root@e1032bcf1d14:/usr/src/app# ls -l /volume1/photo/Camera/Karen\'s\ iPhone/100APPLE | head
total 892076
d--------- 1 root root 56016 Dec 17 2021 @eaDir
-rwxrwxrwx 1 1026 users 201284 Jun 7 2015 IMG_0001.JPG
-rwxrwxrwx 1 1026 users 124261 Jun 7 2015 IMG_0002.JPG
-rwxrwxrwx 1 1026 users 400733 Jun 8 2015 IMG_0003.JPG
-rwxrwxrwx 1 1026 users 148776 Jun 8 2015 IMG_0004.JPG
-rwxrwxrwx 1 1026 users 100477 Jun 8 2015 IMG_0005.JPG
-rwxrwxrwx 1 1026 users 368470 Jun 8 2015 IMG_0006.JPG
-rwxrwxrwx 1 1026 users 65040 Apr 13 2017 IMG_0007.JPG
-rwxrwxrwx 1 1026 users 148413 Apr 13 2017 IMG_0008.JPG
~$ docker exec -it immich_server /bin/bash
root@e1032bcf1d14:/usr/src/app# ls -l /volume1/photo/Camera/Karen\'s\ iPhone/100APPLE | head
total 892076
d--------- 1 root root 56016 Dec 17 2021 @eaDir
-rwxrwxrwx 1 1026 users 201284 Jun 7 2015 IMG_0001.JPG
-rwxrwxrwx 1 1026 users 124261 Jun 7 2015 IMG_0002.JPG
-rwxrwxrwx 1 1026 users 400733 Jun 8 2015 IMG_0003.JPG
-rwxrwxrwx 1 1026 users 148776 Jun 8 2015 IMG_0004.JPG
-rwxrwxrwx 1 1026 users 100477 Jun 8 2015 IMG_0005.JPG
-rwxrwxrwx 1 1026 users 368470 Jun 8 2015 IMG_0006.JPG
-rwxrwxrwx 1 1026 users 65040 Apr 13 2017 IMG_0007.JPG
-rwxrwxrwx 1 1026 users 148413 Apr 13 2017 IMG_0008.JPG
Does it looks like Immich forgot to escape the ' in the Import Path and thus failed to import assets?
Immich
Immich5mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark: Successfully submitted, a tag has been added to inform contributors. :white_check_mark:

Did you find this page helpful?