I
Immich•2mo ago
Guesto

Getting a no such file or directory error after editing docker-compose.yml

Recently tried moving my library directory, but error logs keep spitting out no such file or directory error. I don't think I see anything wrong with my .yml and .env files. I would greatly appreciate some help, this is headscratching Apologies for also sending an image instead of an .env file. I can't seem to download anything from my server currently.
31 Replies
Immich
Immich•2mo ago
:wave: Hey @Canto, 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.
Sergey Katsubo
Sergey Katsubo•2mo ago
error logs keep spitting out no such file or directory error.
Exact errors (and logs in general, as per the automatic post above) would be helpful. Also docker exec immich_server sh -c 'ls -l /data/*'
Guesto
GuestoOP•2mo ago
I apologize, I’m just beginning to figure out how to do this. Ill post the error logs shortly
/data/-encoded-video:
total 0

/data/backups:
total 0

/data/encoded-video:
total 4
drwxr-xr-x 220 root root 4096 Aug 18 03:10 ceb046a3-370b-429e-9fb0-ad3eef2c35ba

/data/profile:
total 0

/data/thumbs:
total 4
drwxr-xr-x 258 root root 4096 Aug 18 00:48 ceb046a3-370b-429e-9fb0-ad3eef2c35ba
/data/-encoded-video:
total 0

/data/backups:
total 0

/data/encoded-video:
total 4
drwxr-xr-x 220 root root 4096 Aug 18 03:10 ceb046a3-370b-429e-9fb0-ad3eef2c35ba

/data/profile:
total 0

/data/thumbs:
total 4
drwxr-xr-x 258 root root 4096 Aug 18 00:48 ceb046a3-370b-429e-9fb0-ad3eef2c35ba
Guesto
GuestoOP•2mo ago
Guesto
GuestoOP•2mo ago
Troubleshooting steps: tried modifying the docker-compose.yml and .env files to a directory /DATA/Gallery/immich Recent changes: I installed immich through CasaOS and then manually updated it to the latest version by following an online tutorial. Details: Software * Ubuntu 24.04.3 LTS * Docker Engine - Community 28.3.3 * Immich 1.138.0 Hardware * Lenovo M710Q i3 7100t * 500gb HDD * 16gb DDR4 Ram
Mraedis
Mraedis•2mo ago
your locations are wrong ${UPLOAD_LOCATION}:/data this is correct UPLOAD_LOCATION=/DATA/Gallery/Immich/library this is not (probably) Could you show us ls -la /DATA/Gallery/Immich and ls -la /DATA/Gallery/Immich/library ?
Guesto
GuestoOP•2mo ago
~$ ls -la /DATA/Gallery/Immich
ls: cannot access '/DATA/Gallery/Immich': No such file or directory
~$ ls -la /Data/Gallery/Immich/library
ls: cannot access '/Data/Gallery/Immich/library': No such file or directory
~$
~$ ls -la /DATA/Gallery/Immich
ls: cannot access '/DATA/Gallery/Immich': No such file or directory
~$ ls -la /Data/Gallery/Immich/library
ls: cannot access '/Data/Gallery/Immich/library': No such file or directory
~$
my immich folder on there isn't capitalized though just a moment
$ ls -la /DATA/Gallery/immich/library
total 32
drwxr-xr-x 7 root root 4096 Aug 19 08:06 .
drwxrwxrwx 8 root root 4096 Aug 18 00:27 ..
drwxr-xr-x 2 root root 4096 Aug 19 07:45 backups
drwxr-xr-x 2 root root 4096 Aug 19 07:45 -encoded-video
drwxr-xr-x 2 root root 4096 Aug 19 08:06 encoded-video
-rw-r--r-- 1 root root 13 Aug 18 08:23 .immich
drwxr-xr-x 2 root root 4096 Aug 19 07:45 profile
drwxr-xr-x 2 root root 4096 Aug 19 07:45 thumbs
$ ls -la /DATA/Gallery/immich/library
total 32
drwxr-xr-x 7 root root 4096 Aug 19 08:06 .
drwxrwxrwx 8 root root 4096 Aug 18 00:27 ..
drwxr-xr-x 2 root root 4096 Aug 19 07:45 backups
drwxr-xr-x 2 root root 4096 Aug 19 07:45 -encoded-video
drwxr-xr-x 2 root root 4096 Aug 19 08:06 encoded-video
-rw-r--r-- 1 root root 13 Aug 18 08:23 .immich
drwxr-xr-x 2 root root 4096 Aug 19 07:45 profile
drwxr-xr-x 2 root root 4096 Aug 19 07:45 thumbs
Mraedis
Mraedis•2mo ago
Yes sorry I had to type it out manually from your screenshot šŸ˜› You are missing an upload directory at the very least could you also show ls -la /DATA/Gallery/immich ? @Canto
Guesto
GuestoOP•2mo ago
~$ ls -la /DATA/Gallery/immich
total 32
drwxrwxrwx 8 root root 4096 Aug 18 00:27 .
drwxrwxrwx 3 root root 4096 Aug 18 00:26 ..
drwxr-xr-x 2 root root 4096 Aug 18 00:27 backups
drwxr-xr-x 3 root root 4096 Aug 18 00:33 encoded-video
drwxr-xr-x 7 root root 4096 Aug 19 08:06 library
drwxr-xr-x 2 root root 4096 Aug 18 00:27 profile
drwxr-xr-x 3 root root 4096 Aug 18 00:33 thumbs
drwxr-xr-x 3 root root 4096 Aug 18 00:33 upload
~$ ls -la /DATA/Gallery/immich
total 32
drwxrwxrwx 8 root root 4096 Aug 18 00:27 .
drwxrwxrwx 3 root root 4096 Aug 18 00:26 ..
drwxr-xr-x 2 root root 4096 Aug 18 00:27 backups
drwxr-xr-x 3 root root 4096 Aug 18 00:33 encoded-video
drwxr-xr-x 7 root root 4096 Aug 19 08:06 library
drwxr-xr-x 2 root root 4096 Aug 18 00:27 profile
drwxr-xr-x 3 root root 4096 Aug 18 00:33 thumbs
drwxr-xr-x 3 root root 4096 Aug 18 00:33 upload
Mraedis
Mraedis•2mo ago
If you use a tool like ncdu -x /DATA/Gallery/immich or du -x /DATA/Gallery/immich where are the files actually stored? For 'thumbs' for example, is it /DATA/Gallery/immich/thumbs or /DATA/Gallery/immich/library/thumbs ?
Guesto
GuestoOP•2mo ago
it's directly parented to the immich folder the former
Mraedis
Mraedis•2mo ago
In that case you want UPLOAD_LOCATION=/DATA/Gallery/immich
Guesto
GuestoOP•2mo ago
It's fixed the error, but its still not displaying any of my previously uploaded photos in immich
Mraedis
Mraedis•2mo ago
Alright could you explain a bit more how you:
Recently tried moving my library directory
Guesto
GuestoOP•2mo ago
CasaOS's version of immich seems to set the default library to /DATA/Gallery/immich, I think upon updating the software through the instructions on github? It moved the default directory somewhere else. I tried copy-pasting the /DATA/Gallery/immich files to said directory, but there were too many files. the directory is in /var/lib/casaos/apps/immich/library
Guesto
GuestoOP•2mo ago
this is the DATA/Gallery/immich directory currently
No description
Guesto
GuestoOP•2mo ago
here's whats inside the library folder
No description
Mraedis
Mraedis•2mo ago
How did you try copy pasting like from the web gui?
Guesto
GuestoOP•2mo ago
yes
Mraedis
Mraedis•2mo ago
a simple cp -a /source /dest from the command line would probably have worked better
Guesto
GuestoOP•2mo ago
hahahah, this is my first time using linux
Mraedis
Mraedis•2mo ago
Alright but to clarify for starters, you don't need all these:
- ${THUMB_LOCATION}:/data/thumbs
- ${ENCODED_VIDEO_LOCATION}:/data/encoded-video
- ${PROFILE_LOCATION}:/data/profile
- ${BACKUP_LOCATION}:/data/backups
- ${THUMB_LOCATION}:/data/thumbs
- ${ENCODED_VIDEO_LOCATION}:/data/encoded-video
- ${PROFILE_LOCATION}:/data/profile
- ${BACKUP_LOCATION}:/data/backups
All you need is:
- ${UPLOAD_LOCATION}:/data
- ${UPLOAD_LOCATION}:/data
Because your library isn't divided in separate locations Did you move the files or copy? this is very important Because I need to know whether to try and rescue your folders or try another copy šŸ˜›
Guesto
GuestoOP•2mo ago
i copied them, i dare not try moving files right now i'll just try another copy then :P
Mraedis
Mraedis•2mo ago
alright compose down, then rm -rf /DATA/Gallery/immich And then copy properly with cp -a /var/lib/casaos/apps/immich /DATA/Gallery/immich
Guesto
GuestoOP•2mo ago
ah apologies my wording isn't that good then, those are inverted :P
Mraedis
Mraedis•2mo ago
:monakS: Almost deleted your photos there
Guesto
GuestoOP•2mo ago
wwww i think the /DATA/Gallery/immich directory is missing docker-compose.yml for some reason I think i'll just do it the other way around,
Guesto
GuestoOP•2mo ago
an unfortunate misunderstanding of the cp command has caused this situation
No description
Guesto
GuestoOP•2mo ago
nevermind it is worse
No description
Guesto
GuestoOP•2mo ago
found it out I might die from trying to troubleshoot this, I think i'll just reinstall everything without using casaos this time :-) thank you for the help, i appreciate it!
Immich
Immich•2mo ago
This thread has been closed. To re-open, use the button below.

Did you find this page helpful?