`/upload/upload` directory being created.
I think I may be misunderstanding
User Storage Labels
and Storage Templates
I'm attaching a volume to immich-server
as follows:
I assume (maybe wrongfully) that the /usr/src/app/upload
should be the root of the upload directory. In this volume I start with two empty folders to start usernameA
and usernameB
I than set Storage Label
for the two users to their to respective usernameA
and usernameB
.
Now, what I thouht would happen, would each user's uploads would go in there respective folders, while what actually happend was a new folder named upload
and another folder in that for userA
followed by the file such that the full path of what is created is /usr/src/app/upload/upload/3fb9942e-bdb7-4cd1-9ffc-8ca5cdedc0f4/ad9e2273-d681-47b3-b66e-3fac8b715840.png
instead of /usr/src/app/upload/usernameA/ad9e2273-d681-47b3-b66e-3fac8b715840.png
Is there a way I can resolve this?21 Replies
it should be shown in the mount on your file system as
library/<label>/
here is what the filesystem should look like in the container

can you run
apt-get install tree
and then do tree -L 2
from the upload
dir
From within the container or the host?
from the container
It might be a restrictive firewall rule come to think of it. Let me fix that really quick
Ok, i fixed where I'm mapping my user directories
But images don't seem to get moved to their respective directories
The
test
file is the result of me doing a touch test
within the contianer to verify it wasnt a permissions issue
Can you elaborate?
I have a smaba share, i mount that as a volume within the compose file. I restructured it such that it now mounts to uploads as before but now within that folder, i start with a directory named
library
which contains 2 empty directorys usernameA
and usernameB
Are you creating those directory manually?
yes, as they ultimatly go back to a ro directories in sharedrive
hmmmmmm
does immich expect to create the directories itself?
I would say so
So this is what I would do
create a new Immich instance which Immich's default settings in docker-compose file
create a new user with the label you wish to use
login to that user and upload dummy image to get those directory create in the container
Now try to map your samba drive to the
library/<user-label
and try to upload another dummy image to see if it gets put to the network drive as well as showing up in ImmichI think I'm following! 😄 I'll give that a go
give me a few and I'll report back
No problem, take your time
So with the default settings, no volume mounted to
/usr/src/app/upload
When I upload the image, I'm still getting the same behavior. The image uploads without error. the file is now in uploads and no folder is created in library
I haven't even got to the other steps, so this is just a vanilla install basicly
can you check if microservices is not starting up correctly?
can you see the thumbnail and such?
I don't see any thumb directory get created
Ohhh I didnt even look at that section. I jjust saw it also has volume mount as well
that might be my issue
let me see
feeling silly. I think that was a lot of what my issue was.
going to tear it all down and try again from scratch
No problem 😄
That fixed it! Wow I feel silly. Sorry for waisting your time
I will work to document this setup and and share it to the docs if you would like. I can see someone else trying to do what I have done, and it would be helpfull to have it all documented
last nuke and pave and it's production 😄