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
: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.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/*'
I apologize, Iām just beginning to figure out how to do this. Ill post the error logs shortly
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
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
?
my immich folder on there isn't capitalized though just a moment
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
?
@CantoIf 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
?it's directly parented to the immich folder
the former
In that case you want
UPLOAD_LOCATION=/DATA/Gallery/immich
It's fixed the error, but its still not displaying any of my previously uploaded photos in immich
Alright could you explain a bit more how you:
Recently tried moving my library directory
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
this is the DATA/Gallery/immich directory currently

here's whats inside the library folder

How did you try copy pasting
like from the web gui?
yes
a simple
cp -a /source /dest
from the command line would probably have worked betterhahahah, this is my first time using linux
Alright but to clarify for starters, you don't need all these:
All you need is:
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 š
i copied them, i dare not try moving files right now
i'll just try another copy then :P
alright compose down, then
rm -rf /DATA/Gallery/immich
And then copy properly with cp -a /var/lib/casaos/apps/immich /DATA/Gallery/immich
ah apologies my wording isn't that good then, those are inverted :P
:monakS:
Almost deleted your photos there
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,
an unfortunate misunderstanding of the cp command has caused this situation

nevermind it is worse

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!
This thread has been closed. To re-open, use the button below.