Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline paths when migrating from original docker to AIO #433

Open
Ogglord opened this issue Aug 31, 2024 · 5 comments
Open

Offline paths when migrating from original docker to AIO #433

Ogglord opened this issue Aug 31, 2024 · 5 comments

Comments

@Ogglord
Copy link

Ogglord commented Aug 31, 2024

I am running Unraid and I am trying to migrate from the official docker after importing my photos to that instance.

I have tried to follow the guide here with no effect.
I have also tried to map the volumes to /photos and /usr/src/app/upload and even /app/immich/server/upload since that is where immich seems to be looking.

Setting the env variable IMMICH_MEDIA_LOCATION=/photos have no effect. No matter what I try immich still searches in /app/immich/server/upload/.... The only explanation I can imagine is that a relative path in the Postgres database that is combined with the working directory of the immich executable...

image

@martabal
Copy link
Collaborator

martabal commented Sep 1, 2024

Hello, the guide is out-of-date. IIRC, immich uses absolute paths now, adding a new volume mapped to /app/immich/server/upload should work. You can check what kind of paths are stored in the database to make sure what should be the appropriate volume mapping.

@Ogglord
Copy link
Author

Ogglord commented Sep 1, 2024

Okay, thanks for the info. It makes more sense.

I tried mapping the full path to /app/immich/server/upload but it didnt work still. The logs complain and says that a relative path wasnt found e.g. "ENOENT file not found: 'upload/thumbs/<guuid>/xx/yy.thumb.jpg'"
Do you know which table I should look at? the few paths I found looked relative, i.e. they didnt start with a slash `'/'.

This is an example from the assets table
image

@Ogglord
Copy link
Author

Ogglord commented Sep 5, 2024

It's a bit sad that this monolithic build isnt 100% compatible with original docker build

@martabal
Copy link
Collaborator

martabal commented Sep 6, 2024

It's a bit sad that this monolithic build isnt 100% compatible with original docker build

We made some deployment choices to make maintenance easier. We should update the migration guide, it should be straightforward and I don't understand why it does not work with your setup.

@p3LZ3r
Copy link

p3LZ3r commented Oct 3, 2024

@Ogglord Hey, I just wanted to check whether you have found a solution to your problem? I've been struggling here for a few hours with the same issue and just can't find a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants