#Immich symlink problem

13 messages · Page 1 of 1 (latest)

stark mason
#

So I'm trying to setup Immich, or maybe not exactly set IT up, as it works fine, sees dGPU, but doesn't have space to work.

So I'm trying to make it use what host can offer.

  1. I mounted storage via LXCs conf file as /immich on the LXC.
  2. I changed /opt/Immich/.env
  3. And now the symlinks - if I have /immich it should be "ln -s /immich /opt/immich/app/upload" and "ln -s /immich /opt/immich/app/machine-learning/upload"?

Problem is that if I go whit what I wrote above with the ml part it says symlick already exist.

However the problem is that with just one symlink and editing .env LXC cannot be accessed using its IP:2283...
But as console still works I can unlink symlinks, however it doesn't change that there is no IP access anymore to GUI.

Am I to dumb to understand what You wrote about symlinks or what?

wise parrot
#

recommend looking at the immich-web logs "less /var/log/immich/web.log ". When I was doing some samba fun for my library location, was beating my head against the setup until I found the permissions weren't working for my case.

#

The immich-web service won't spin up if it is at all unhappy with the library location/permissions.

stark mason
#

Hmm, didn't thought about it. Will have to check after work.
Thought it may work just like that, as I had problem with urbackup before, and it was cos of permissions to smb storage, but rn both urbackup and Immich are on the same pc as the storage, so I just mounted it via conf file.

However this morning I had a thought that maybe the question should be which folder to which I should symlink?
Should MY /immich be symlinked to both /opt/immich/app/upload and /opt/immich/app/machine-learning/upload or this two folders to /immich?

wise parrot
#

For me, the symlinks are in the immich folder and point back to the actual data ocation (/mnt/immich for me)

spark flare
#

Why would you symlink the same folder twice @stark mason ?

#

Do you understand what you are doing

stark mason
stark mason
# spark flare Why would you symlink the same folder twice <@975387032396374037> ?

I understood instructions that way. However it seems I understood it the wrong way, backwards...

Still "and create the symlink 'upload' in /opt/immich/app & /opt/immich/app/machine-learning to your new upload location" for me sound like I should (how I understand it NOW, not before) to point both /app/upload and /m-l/upload to /immich, so like @wise parrot mentions works for him. Still both symlinked to same folder.l, right?

Also that makes sense that symlinking wrong way broke file acces and/or permissions to files, so... Yep, I'm dumb 😛 I thought I understand what I was doing, but seems I misunderstood everything...

spark flare
#

Did you get it working

stark mason
#

Not yet. Didn't see Blind's 2nd answer yesterday, so didn't try his "idea" (what, for me it is xD) yet. And now I'm again at work (6 more hours... ehh), so have to wait till I'm back home...

stark mason
# spark flare Did you get it working

It's permission error, as it cannot create .immich file in encoded-video directory cos of symlink.

However I'm to dumb for that or work affected my thinking.

So I always created symlink by 'ln -s <target> <symlink>' while being in the directory where symlink should be created.
So going with instructions, as it says create symlink 'upload' in mentioned two directories TO my location, than being in /opt/immich/app I'm going with 'ln -s /immich upload' (symlink upload to my location /immich) and cli seems to be happy with me.
However doing the same in /opt/immich/app/machine-learning ends with fail, as upload/immich symlink already exist...

I may not be the master of Linux, but would You recommend mounting instead of ln -s?
Or should I create folder in /immich for each symlink? Thought it has to be one and the same location as the one I used in .env.

#

Maybe, again, I need few weeks/months to get it somehow, like with urbackup. It took me some time, but it works now.