Replies: 3 comments 6 replies
-
Hi, i think immich documentation could help you better than me... You can access immich through command line with the portainer add-on, BTW. But I can help if there is an action to do from the add-on side |
Beta Was this translation helpful? Give feedback.
-
Hello, I have worked out a way to migrate existing immich to the add-on. Requires a bit of technical skills, but I am sure people using HAOS + immich would have what is needed :) See this gist: https://gist.github.com/ProxiBlue/33f8d50266b845eba3a5c4a4b3eaac16 Process better explained: Requires install of the terminal add-on and ability/means to copy / mount / place your migrated immich files where settings of immich designates the data storage is. In my case, I mounted an external USB, using the udev method, directly onto data folder. This assumes you started with a brand new add-on install, and all previous add-on data is deleted.
and then paste the contents (or use whatever editor you are comfortable with)
my immich setup. make sure your username is correct as well as host. I just use the HOST machine IP. if all goes well, you should see the import happen in the immich start logs. Give it some time |
Beta Was this translation helpful? Give feedback.
-
A path issue I ran into.After import I could see all the data was there, but, no thumbnails or images showed. only placeholders a bit of investigation, shows that immich is doing a really odd thing. They are placing the defined base path (upload_location) and saving that as part of the path to assets. immich add-on as a base install, with one test image uplaoded. notice the full path and then, after import, my old db assets There, notice /upload/ in the path. So, need to transpose this to the new path as used with HAOS add-on To fix this, you need to connect to the db and run some SQL statements to migrate the paths. That is just but one way, which is what I followed. I just used my IDE and connected direct to the postgresql db, and ran the queries needed. You couldalso load the portainer add-on, access the immich container shell, and use psql on the cli. or, just use any pgsql client. so, what you need is some sql to replace the paths.
as an example, I need to be careful, as I have paths like: 'upload/upload/' so that will break. I need to deal with them first.
moved them out the way for now. 2nd query to move the bulk.
and then move the placeholder back (as that is a valid upload/ folder
BUT, that did not work. I am not sure why not. strill. not a bad thingt o fix. Feels like a cache issue I worked out (by a bit of trial and error!) that immich wants this path:
don't ask me why. so, I just used portainer shell, and placed a symlink here.
and then it worked. I suspect there is a cache involved, or possible another table I need to adjust to fix the paths. Happy days ! |
Beta Was this translation helpful? Give feedback.
-
immich was previously installed on docker. But I did a clean installation and moved it to the home assistant.
I moved all my files. I showed the way on the installed immich.
My existing images do not appear, but when I upload a new file, it works without any problems.
How can I import my existing gallery?
Beta Was this translation helpful? Give feedback.
All reactions