I
Immich•2y ago
Gines Rico

Read-only Gallery Unraid server with templates

Hello good morning, how can I use the new gallery reading function. I'm running immich from an Unraid server with templates, and of course I can't install the CLI function, but I could use it with docker, any ideas? Server status: OK Checking credentials... Login status: OK Successful authentication for user [email protected] Indexing local assets... Error: ENOENT: no such file or directory, access '/mnt/user/Fotos/2012/' docker run -it --rm -v "$(pwd):/import" ghcr.io/immich-app/immich-cli:latest upload --key KXdSkK5az3zTfsdas7iD0a15458b1RQA3TLfPsxKg --server http://192.168.31.238:2283/api /mnt/user/Fotos/2012/ --recursive --import
No description
119 Replies
martabal
martabal•2y ago
docker run -it --rm -v "<absolute_path>:<absolute_path>" ghcr.io/immich-app/immich-cli:latest upload --key <api_key> --server http://<ip_address>:<port>/api <absolute_path> --recursive --import
docker run -it --rm -v "<absolute_path>:<absolute_path>" ghcr.io/immich-app/immich-cli:latest upload --key <api_key> --server http://<ip_address>:<port>/api <absolute_path> --recursive --import
bo0tzz
bo0tzz•2y ago
Oh, of course lmao, I totally missed that. Thanks!
martabal
martabal•2y ago
you're welcome 😄
martabal
martabal•2y ago
I wrote instructions here https://discord.com/channels/979116623879368755/1119442617017585694/1122618702299398207, don't hesitate to ping me if you have some trouble
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
Gines Rico
Gines RicoOP•2y ago
<absolute_path> I must modify it with my path right?
martabal
martabal•2y ago
Yep !
Gines Rico
Gines RicoOP•2y ago
Thank you very much for your help, I'll get to it
martabal
martabal•2y ago
Seems to be /mnt/user/Fotos/2012 in your case
Gines Rico
Gines RicoOP•2y ago
This command can be launched from anywhere, or it has to be from the folder where the photos are, let's say from here /mnt/user/Photos/2012
martabal
martabal•2y ago
Yep, it can be launched from anywhere *from your unraid server
Gines Rico
Gines RicoOP•2y ago
Another question, if there are photos in my old library (/mnt/user/Fotos/2012/) that are also in Immich's library already, what would happen? I ask him because I know that I also have current photos in the old bookstore, the 2012 thing is only an orientation
martabal
martabal•2y ago
Immich server don't allow duplicates, I suppose the Read-only feature is no exception, but @bo0tzz can maybe confirm that assumption ?
bo0tzz
bo0tzz•2y ago
Indeed, the duplicate checks should still apply
Gines Rico
Gines RicoOP•2y ago
perfect, thank you very much Forgive my ignorance, it asks me if I want to start uploading files, this will not duplicate them in the immich folder, right?
Gines Rico
Gines RicoOP•2y ago
No description
nightcrawler
nightcrawler•2y ago
It will not duplicate as long as you use the ‘- - import’ flag. I just ran mine two days back and imported 200k+ photos/videos without duplicating. The jobs are still running to bring in metadata, and facial tagging lol
Gines Rico
Gines RicoOP•2y ago
I have a problem now, since my photos have the name with the correct date, but for whatever reason it has the last modification date in 2023 and immich takes that date as the file date, how could I solve this?
No description
bo0tzz
bo0tzz•2y ago
Make sure the exifdata is correct. If not, you can apply the correct date based on the filename Exiftool can do all that
nightcrawler
nightcrawler•2y ago
I have a similar problem too for some of my photos, just haven’t gotten around to fixing them. I thought it was because the metadata job is still running This is something outside of the realm of Immich and more to do with actual photo metadata correction?
bo0tzz
bo0tzz•2y ago
Indeed
Gines Rico
Gines RicoOP•2y ago
What would be the correct data for immich to obtain, modification date?
nightcrawler
nightcrawler•2y ago
No wonder I have photos from 1969/1970 (20+ years before I was even born) 😅 Also, iiuc any new photos added to the external path after the cli command is run need to be manually synced by rerunning the command right? I could be wrong but I think Immich looks at creation date not modification date
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
I think it looks at the modification date, as I see here in the information If I modify this date and execute the command again, will the data be modified?
bo0tzz
bo0tzz•2y ago
It looks at the date in the exif if there is one
nightcrawler
nightcrawler•2y ago
If there isn’t one, does it look at modification date like in @Gines Rico screenshot
bo0tzz
bo0tzz•2y ago
I think so yeah
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
This is the date that puts me in the exif I think that in the end I have problems, I have duplicated the photos in the source folder with which I had already uploaded to immich from my mobile, it has also uploaded the mp4 videos that are generated when you take a live photo on IOS. How could I solve this? This is the structure that my library has in the folder /mnt/user/Fotos
Gines Rico
Gines RicoOP•2y ago
No description
Alex Tran
Alex Tran•2y ago
it should be parsed as LivePhoto automatically
Gines Rico
Gines RicoOP•2y ago
Ahh, perfect, and how could I reload the files with the corrected metadata? Hello, I have seen that the new update has incorporated the CLI service on the server. Should the way of executing this code change, since I am going to implement it to the entire existing gallery?
martabal
martabal•2y ago
Our goal is that immich documentation is fully compatible with our AIO image So to use CLI inside the docker, enter in your docker with docker exec -it Immich bash and then execute this command : immich upload --key <api_key> --server http://<ip_address>:<port>/api /photos/<your_existing_gallery> --recursive --import (didn't test it but should be this) Just move your existing gallery in the volume you mounted for /photos Oh I forgot to mention but just like immich server, now the immich command is the CLI used to upload your assets and immich-admin is the CLI used to manage your server (enable-password-login, reset-admin-password ...)
Gines Rico
Gines RicoOP•2y ago
that is to say that I no longer have to use this command, right? docker run -it --rm -v "<absolute_path>:<absolute_path>" ghcr.io/immich-app/immich-cli:latest upload --key <api_key> --server http://<ip_address>:< port>/api <absolute_path> --recursive --import I have undone everything and I have reinstalled immich in Unraid with templates, I also have another question, is there a way that the photos that I have on the phone do not appear, so that I only have the ones loaded from my existing gallery using the only function reading?
Alex Tran
Alex Tran•2y ago
Correct, now you can attach to the container directly and run immich upload --key xxx .... Create 1 album, and put 1 asset on your phone to that album - then choose it as a backup album, only 1 local asset will then show up on the timeline
Gines Rico
Gines RicoOP•2y ago
oh wonderful then Why when immich makes the backup copy of the photos that are on the phone, does it save them in the original format of the phone or does it create them in jpg? In my case I have an iPhone with HEIC photos
Alex Tran
Alex Tran•2y ago
When you upload from the mobile app, it upload the original files all the jpeg thumbnails are generated afterward after it reaches the server
Gines Rico
Gines RicoOP•2y ago
Well, I think I have something wrong because it uploads them in jpg
No description
Alex Tran
Alex Tran•2y ago
Maybe check your camera settings in your phone?
Gines Rico
Gines RicoOP•2y ago
My camera is fine since in the existing gallery it uploads the photos in HEIC
No description
Alex Tran
Alex Tran•2y ago
you have a mixed of jpeg and heic in your screenshot though
Gines Rico
Gines RicoOP•2y ago
Yes, because some photos are from WhatsApp, but the ones I've taken with my mobile are HEIC
Alex Tran
Alex Tran•2y ago
From the setting, can you let me know in Camera > Formats what is the selection do you have for Camera Capture?
Gines Rico
Gines RicoOP•2y ago
Thiago
No description
Alex Tran
Alex Tran•2y ago
yeah all look normal The screenshot you posted are LivePhotos I assume? Can you try turn off livephotos and take a normal photo then upload it to Immicch
Gines Rico
Gines RicoOP•2y ago
one moment please
Gines Rico
Gines RicoOP•2y ago
unfortunately only upload the photos in jpg
No description
Alex Tran
Alex Tran•2y ago
Which phone model is yours?
Gines Rico
Gines RicoOP•2y ago
my phone is iphone 13
Alex Tran
Alex Tran•2y ago
What is the template storage do you use? Let me try yours to see if it would create such issue
Gines Rico
Gines RicoOP•2y ago
for the file name?
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
I see that the extension zone does not let me modify it
Alex Tran
Alex Tran•2y ago
Because the extension is kept as original file so you can’t modified it I will try this later today and let you know
Gines Rico
Gines RicoOP•2y ago
So how can we solve my problem? I'm looking in the right directory right? Hello Alex, have you been able to see any solution?
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
Hello @Alex good morning, this should upload the photos in HEIC??
Alex Tran
Alex Tran•2y ago
This is only related to viewing the asset, whether or not to fetch the original version that was uploaded or fetch the thumbnail version. The app is designed to upload the raw file from the mobile app, Im not sure what have happened here though. I haven’t had a chance to use your storage template to test. Can you spin up a new instance of Immich and try uploading some photos without changing the storage template?
Gines Rico
Gines RicoOP•2y ago
Yes of course, I'll do it in a while
Alex Tran
Alex Tran•2y ago
Thank you
Gines Rico
Gines RicoOP•2y ago
But should it be a user, or a whole instance?
Gines Rico
Gines RicoOP•2y ago
unfortunately it does not upload the HEIC format
No description
Alex Tran
Alex Tran•2y ago
this isn't the default template isn't it? The default template is this {{y}}/{{y}}-{{MM}}-{{dd}}/{{filename}}
Gines Rico
Gines RicoOP•2y ago
correct, try to change and leave the original I thought you said to try the same template that I had in the other
Alex Tran
Alex Tran•2y ago
Ah I meant to use the default template
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
We continue with the same problem, and even worse that it no longer even tells you the name of the file
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
No description
bo0tzz
bo0tzz•2y ago
I think uploading motion photos as two separate files is expected behaviour
Gines Rico
Gines RicoOP•2y ago
But why don't I load them in HEIC format? original format I label them and upload as FullSizeRender .jpg
Alex Tran
Alex Tran•2y ago
Yeah I am not sure why yours photos doesn't get uploaded as HEIC If you connect your phone to your computer, do you see them as HEIC or JPEG?
Gines Rico
Gines RicoOP•2y ago
Si los veo en HEIC, de hecho tengo la app PhotoSync para hacer copias de seguridad y me las sube en el formato HEIC
Gines Rico
Gines RicoOP•2y ago
No description
Gines Rico
Gines RicoOP•2y ago
This is what PhotoSync creates for me
Alex Tran
Alex Tran•2y ago
yeah pretty strange 🤔
Gines Rico
Gines RicoOP•2y ago
and can we fix it somehow? You also have iOS, does it happen to anyone else?
Alex Tran
Alex Tran•2y ago
I have iOS and this is the first case I see get reported as jpeg being uploaded
Gines Rico
Gines RicoOP•2y ago
I would say that it must be due to a configuration problem in the app, since I have no problems with the PhotoSync app How could I fix it? From the app I don't see original quality upload settings
bo0tzz
bo0tzz•2y ago
It always uploads original quality, there's no setting for that
Alex Tran
Alex Tran•2y ago
This can be some settings on the phone that cause the mismatch. This is the only thing that I can think of
Gines Rico
Gines RicoOP•2y ago
But what I don't understand is why one app does upload HEIC and the other doesn't, if it were some error on the phone both would upload jpg, right?
Alex Tran
Alex Tran•2y ago
The underlaying api usage of the app could be affect by some phone settings that I am not yet understanding Like Boet said above, Immich always requested the original file from the file system by default. So unless this is Phone settings, I have no clue why this could happen honestly
Gines Rico
Gines RicoOP•2y ago
No description
No description
No description
No description
Gines Rico
Gines RicoOP•2y ago
These are my camera settings, will they be like yours?
Alex Tran
Alex Tran•2y ago
No description
No description
No description
Alex Tran
Alex Tran•2y ago
Here is mine One thing you can try is to restart the phone Then try to upload again
Gines Rico
Gines RicoOP•2y ago
but factory reset or just a quick reset?
Alex Tran
Alex Tran•2y ago
Not factory reset Shut off the phone and turn it back on What is the setting of the first screenshot? Something priorizar
bo0tzz
bo0tzz•2y ago
Prioritise faster shooting, I think
Gines Rico
Gines RicoOP•2y ago
adapts the image quality when you quickly press the shutter several times
Gines Rico
Gines RicoOP•2y ago
the reboot did not work for me
No description
Alex Tran
Alex Tran•2y ago
Hmm I wonder why you always have FullSizeRender but not a file name @codercoffeecake is this the same situation you ran into?
bo0tzz
bo0tzz•2y ago
Could this be something in the library we use to get the files?
Alex Tran
Alex Tran•2y ago
Normally if the picture is taken without additional effect, it would have the normal name like IMG_123123 if the picture is taken as paranoma or with a blur background mode, or a screenshot, it will have the FullSizeRender name but the extension should be correct I think this will have to do with the underlying library we use I will spend sometimes to take a look at this again Can you help double check again on your camera if there is a preset, or filtered that automatically applied to the photo after taken?
N0_Klu3
N0_Klu3•2y ago
To hijack this post: https://discord.com/channels/979116623879368755/1161010789059141793 I'm facing the exact same issue on my 15 Pro Max on iOS 17
Alex Tran
Alex Tran•2y ago
I just answered your post on reddit
N0_Klu3
N0_Klu3•2y ago
Amazing, didnt see that... thanks let me read
Alex Tran
Alex Tran•2y ago
your issue is different because all of the files he uploaded is FullSizeRender while only modified photos on your phone i.e Portrait mode will have FUllSizeRender name your normal photos are still in .heic I believe
N0_Klu3
N0_Klu3•2y ago
yes but so are my portrait photos on the phone, but in Immich its now .jpg
Gines Rico
Gines RicoOP•2y ago
Hello Alex, what do you need me to check? I still have the problem.
Gines Rico
Gines RicoOP•2y ago
I think I found what is causing problems
No description
Gines Rico
Gines RicoOP•2y ago
but it still doesn't upload live photos from the immich app
No description
Gines Rico
Gines RicoOP•2y ago
The problem is that I have activated the photos so that they are taken in 16:9 format, it would be possible that immich would also take these photos as a normal one taken in 4:3 For the rest, I don't think I have any more settings activated, but I take the photo live and it doesn't upload it in live mode, but it only uploads the .HEIC file
Alex Tran
Alex Tran•2y ago
Regardless, the next releases will fix these issue even with photo that have been modified 😀
N0_Klu3
N0_Klu3•2y ago
Does that mean the next release will redownload the images with issues? Also any eta on when we can update to get the fixes?
Alex Tran
Alex Tran•2y ago
You will have to reupload troubled photos to fix this We don't have ETA on anything here 😛 but probably in a couple days
Gines Rico
Gines RicoOP•2y ago
Ohh how wonderful, well I will wait for the next update to make a copy of my photos, thank you
N0_Klu3
N0_Klu3•2y ago
So if I delete all my images in Immich will it resync them next time I do a backup?
Alex Tran
Alex Tran•2y ago
Correct
Gines Rico
Gines RicoOP•2y ago
There is a possibility that the photos from the external gallery will not be duplicated with the internal immich gallery or phone gallery in the app
Alex Tran
Alex Tran•2y ago
Hi, is this a question?
Gines Rico
Gines RicoOP•2y ago
Yes, of course, is there any option so that the images do not appear duplicated?
Gines Rico
Gines RicoOP•2y ago
No description
Alex Tran
Alex Tran•2y ago
Hello unfortunately not, the way duplication is detected for external library is by the file path the default library detect duplication by the file content
Gines Rico
Gines RicoOP•2y ago
And how should I proceed so that it does not duplicate?
Alex Tran
Alex Tran•2y ago
You shouldn't put the assets in the default upload library to the external library

Did you find this page helpful?