Immich Pt 2 - Easy Setup- Install, Connect, and Upload in Minutes!
HTML-код
- Опубликовано: 21 авг 2024
- In Part 2, we're getting hands-on, walking you through the entire setup process of Immich, from installing the container on your server to seamlessly uploading your memories via CLI. But that's not all - I'll also show you how to link Immich to your own domain for easy access and connect it with a mobile app for uploading and managing photos on the go.
Please, if you can and want to support the channel and donate you can do so by Paypal here goo.gl/dw6MLW or check my patreon page / spaceinvaderone
----------------------------------------------------------------------------------------------------------------
The Uncast Show / @uncastshow
----------------------------------------------------------------------------------------------------------------
Need to buy something from amazon? Then please use my link to help the channel :)
USA - amzn.to/3kCikfU
UK - amzn.to/2UsYb1f
Sas cables amzn.to/49M0BgI
Mini SAS 26-Pin SFF-8088 Male to Mini SAS 26-Pin SFF-8088
amzn.to/2V4x9kT USA
amzn.to/3xfkxEl UK
HighPoint RocketStor 6414S amzn.to/3fiXv9s
----------------------------------------------------------------------------------------------------------------
Need a VPN?
PIA is popular with Unraid users as its easy to setup with various vpn download containers - www.privateint...
Torguard is also an excellent VPN again with both openvpn and wireguard protocls supported.
Get 50% off for life using code spaceinvaderone torguard.net/a...
----------------------------------------------------------------------------------------------------------------
Need a cheap windows 10 licence for around $10
consogame.com/...
----------------------------------------------------------------------------------------------------------------
Home network tour video needed ASAP! That wall looked sick!!
Yeah some videos soon on things new in my server room/office soon :)
You didn't end up covering GPU acceleration at the end of the video.
Still a great tutorial and I'm looking forward to getting immich setup on my server!
=Adding GPU CUDA Support for ML=
Extra Parameters (Advanced View): --runtime=nvidia
MACHINE_LEARNING_GPU_ACCELERATION (Variable): cuda
MACHINE_LEARNING_WORKERS (Variable): 1 (I left at default)
NVIDIA_VISIBLE_DEVICES (Variable): all
NVIDIA_DRIVER_CAPABILITIES (Variable): all
My GPU is now showing an active task and my Facial Recognition jobs are going super fast now.
Note: For ML I did NOT enable anything in Immich Admin Settings, BUT for Video Transcoding I DID have to go enable that in Admin Settings under "Video Transcoding Settings"
Disclaimer: I am by no means an expert, these are the steps I did to get it to work, your mileage may vary.
@@hunterclipper4798 thanks for figuring that out for us!
I have a separate video on gpu machine learning (final part 4) after easter that also shows how to use intel or nvidia. It will also show how to run the machine learning on a separate server if wanted too.
@@SpaceinvaderOneFantastic, thank you! I found a reddit post for Intel iGPU but couldn't make much sense of it on first glance. Now I can stop digging deeper and wait for part 4. 🙂
@@hunterclipper4798 This fixed it for me and got Face Detection working! Thank you.
I recommend using an external library with the import path set to /import to upload an already exiting photo library. At the moment you cannot delete photos from an external library but if you're not worried about sorting through a photo library and more enamored with searching or sorting them like I am, this can be a easier solution.
I appreciate the time and effort you put into these videos!
but can you help me how to set this up?
Thank you for everything you have done for the open-source community. I have followed your videos for quite some time now, and in the beginning of my Unraid days I needed to re-watch your videos about nginx quite a few times. This morning my wife heard your voice coming from my computer and I heard her yell from across the house: "Is that the subdomain guy?!"🤣
You're a patient, hardworking and nice man. Thank you for this video series
Your channel has been such a help to someone like me! It is perfect for those venturing out, learning new technologies, and deploying them ourselves. Can't thank you enough!
Thank you for this tutorial. I'm pretty new to Unraid and was getting frustrated trying to setup Immich. It was so easy on Trunas Scale, but was way more confusing on Unraid. This video made it work! Awesome job.
you are amazing!!!!!!!!!!!!!!!!! Now I can backup my phone photos automatically while I sleep. And share family/kids pics with my extended family. I have this setup with dropbox but since they are doing away with unlimited space this will now be the next best thing. Thank you so much! Subscribed!
whew, that was a lot more simple than the rigamarole I had to go through! I hope this continues to be as simple as it is for you in this video.
I wanted to thank you for all the effort you are putting into all your videos about unraid! Immich is such an amazing tool and your guid combined with the tunneling video made my life a thousand times easier!
Did you forget to put that redis variable in the description? Perhaps I'm being blind but I couldn't see it. Great video as usual though.
imagegenius/mods:universal-redis
Thank you so much for making the postgressSQL docker! It was the only missing piece for me!
Your welcome. Thanks for watching :)
You forgot the GPU config section...
=Adding GPU CUDA Support for ML=
Extra Parameters (Advanced View): --runtime=nvidia
MACHINE_LEARNING_GPU_ACCELERATION (Variable): cuda
MACHINE_LEARNING_WORKERS (Variable): 1 (I left at default)
NVIDIA_VISIBLE_DEVICES (Variable): all
NVIDIA_DRIVER_CAPABILITIES (Variable): all
My GPU is now showing an active task and my Facial Recognition jobs are going super fast now.
Note: For ML I did NOT enable anything in Immich Admin Settings, BUT for Video Transcoding I DID have to go enable that in Admin Settings under "Video Transcoding Settings"
Disclaimer: I am by no means an expert, these are the steps I did to get it to work, your mileage may vary.
I have a separate video on gpu machine learning (final part 4) after easter that also shows how to use intel or nvidia. It will also show how to run the machine learning on a separate server if wanted too.
Will immich for ios 12?@@SpaceinvaderOne
@@SpaceinvaderOneSeparate server would be cool! If you can include how to multi-use that server for e.g. ollama etc for homeassistant, even better!
@@SpaceinvaderOne Any Eta on this?
Always enjoy your videos and implementing them as I watch. Thank you for all that you do and please keep doing it!
Great video as usual. Just one thing, I think the wait time in the docker list specifies how long to wait after the container is started, not before. So you'd need to change it on the Postgre docker instead of the Immich docker.
Spot on, you're absolutely right. Cheers for pointing that out. I was under the impression there was a delay before the container kicked off, but after having a read, I see you're 100% correct. Thanks for sharing that ;)
Thank you so very much - your tutorials are so valuable!
Finally Part 2! Thank you!
You can import photos without using the CLI. You’d instead use the “external libraries” and you’d pick your watch folder and it’ll import them
Does it import into images own storage or just index the files to view them?
@@SpaceinvaderOne It just indexes, and I would really rather it importing the photos
@@SpaceinvaderOne yeah it just indexes them but if you wanted a copy you’d just copy them to the watch folder where you’d have your second copy.
This feature seems much more useful than an actual import. Why would I want a second copy of my photos taking up more space on my server? Am I missing some downside here?
@@dansushi Same question, what am I missing? Why would I want a duplicated copy of all my photos/videos? I don't see a reason.
NOT FIRST! But still happy the video is here. TYTY for this video. I always look forward to your content Ed.
Been looking forward to this! Thank you for doing this!!
Congrats on passing 70k.
I am very interested in running this at some point, but I think I'll keep holding off for now. I really want my image hosting to be pain free and reliable because when I decide to go and tackle the monolith of images everywhere, tagging and location fixing... I want it to be good to go for the future as well, regardless of if I end up having to import the library to another program at some point.
I do have an N100 mini PC that I'm not really using for anything so maybe I can go get my feet wet with testing some things out on that.
I am in the same boat. Seems like it needs to cook in the oven a little longer to get some of the kinks ironed out to make it a bit more hassle free. I don't want to be fighting with settings when going through the backlog of photos
Good video Ed! Thanks for always sharing with us!💖👍😎JP
My pleasure!!
@@SpaceinvaderOne 😎
Is there any chance you can make a video on backing up the Immich database? Turns out that is a complicated mess to do, need a tutorial.
wouldnt Appdata Backup work withit? i havnt yet installed it but if it doesnt fully back it up then yes please make a video!
@@droopie good question, not sure. if you check Immich documentation there are complicated steps they recommend
@@engin3ar thanks ill read it after finishing this install of immich. i do feel that if appdata backup is working like say photoprism and mariadb, it would prob back everything up too.
Thank you so much for intoducing me to this app. I klicked on the vid thanks to the aggresive thumbnail on the first vid. And i finally have a good soolution for my images.
Thanks as ever for the great tutorial Ed - Immich is fantasic. The image recognition alone is really impressive in my setup.
Would be great to see a video about how to backup/restore immich files & db to the array (isay if its on a pool). Perhaps Unraid 7 makes things easier here..
Other thing to note about Immich is that the user profiles do separate libraries and whilst you can share, you wont be able to share the library, some features (eg people’s names) arent shared at the moment. As a result my family uses a single admin user, which isnt ideal but gives us the solution we want.
Ed - great tutorial as always!
Thanks for the great video!!
I had to change the Postgres version from:
tensorchord/pgvecto-rs:pg16-v0.2.0
to
tensorchord/pgvecto-rs:pg14-v0.2.0
to get it working on my Server.
Maybe i downloaded a old immich version, or your postgres container is a little bit ahead of its time.
pg16 works for me, I’ve been using it for a few weeks now
i had to turn my to 14 as well to get it to work, thanks
FINALLY!!!!!!! 😁
Thanks for the direction, works great
Gorgeous, best in the business, cheers
I've been waiting patiently... Ty
I fought with this for a few hours, I kept getting "Crawling for assets.... No files found, exiting" So I started doing research on immich-go, started the 8 hour process of zipping my files so I could import. Nothing was working, so I pulled up the docker container to double check everything and found that /import has been renamed to /libraries. Changed my command in and it started importing right away. It is really frustrating to have an awesome guide put out, but 4 months later the dev changed something simple and confused me. I love learning all this, but readying a Github page sends me down a rabbit-hole to learn everything I can to do what I want to do. But I never really learn anything, because I have to go 15 pages deep and 7 videos to figure out something as simple as editing a docker container file.... which I never figured out.
Always the best 🔥🔥🔥🔥🔥
Thank you for all your videos.
Your very welcome. Thanks for your kind comment :)
OH! Thank you for the video. I really thought that you were going to teach how to reverse proxy immich, and I was really excited as you shouw in the video that you are using SWAG.
I cant make it work.
With every other docker container, I use the swag autoproxy methoud without any trouble, but with immich I cant make it work. It just gives me "bad gateway" in cloudflare
Commenting because same issue, hoping to follow.
The truth is that the tunnel is REALLY simple, but I would have liked to know why I cant reverse proxy it with swag.
Thanks again for the video!
@@benfleming9941 Same, I've been banging my head on the wall with this!
You are using the proxy conf supplied in the swag container, correct?
In immich.subdomain.conf - you have to change the upstram port from 3001 to 8080 under both location directories.
You're using the swag supplied immich.subdomain.conf right?
you have to change the set $upstream_port from 3001 to 8080 in both instances of the conf file.
Hi Ed, I love you mate!
I’ve seen people mention that Cloudflare has something like a 100mb file size limit. Is there anything in the phone app that can be set to chunk files if necessary? Thinking mainly videos taken on your phone.
Thanks Ed, I got it working.
Hey Ed, thanks for the video! It looks like video is missing the GPU section, Google Takeout import info, and machine learning info. Look forward to getting this all setup!
Yep. Got Immich working and uploading from my phone now, which is teriffic, but would love the Takeout import, machine learning, and also a backup scheme.
So you guys also cannot find a Google Takeout video?
See my comment on the top liked comment for GPU settings for ML.
Part 3 is out with google takeout. I have a separate video on gpu machine learning (final part 4) after easter that also shows how to use intel or nvidia. It will also show how to run the machine learning on a separate server if wanted too.
@@SpaceinvaderOne Hey Ed, didn't mean to jump the gun! Great videos as always! My apologies :)
After the update today to immich version 1.100.0 it stopped working.
Checked the logs and it was not able to connect to Redis.
Not sure if the internal Redis has been deleted or not in this version, but I installed the official Redis container, changed the IP of Redis from "localhost" to the Redis container IP in the immich template/container and then it was back up running :)
I'm using a really easy method to upload from my old server or from unraid itself,
I map a drive on my laptop to the old repo of pics
create an album
in the album, click upload then select From my Computer
navigate to the mapped drive and select all the photos in click go!
super easy! and fast since I'm on the same network
Eres un crack, saludos abrazos desde España, soy fiel seguidor tuyo desde que tengo UnRaid. Sigue así, estoy aprendiendo mucho con todo lo que haces. Tienes mi super like.
Thank you so much ive been waiting for this! Does anyone know what video hes referring to where he goes over Google Takeout and immich go?
Same question. He also forgot the GPU acceleration and could have done a tutorial on machine learning face detection. I smell a Part 3 looming!
@@diedrichg I actually just went to the immich-go repo and was able to do it all just from the README! let me know if you have any questions since it was pretty simple
@@diedrichg I actually just went straight to the immich-go repo and was able to import my entire Google Takeout .zip extremely easily! Its as easy as "./immich-go -server= -key= upload -create-albums -google-photos /path/to/takeout*.zip"
ah hah ... a part 3 might be here !! :) ruclips.net/video/tCylg2AHA8c/видео.htmlsi=NIL0u939R4ljnbg8
Thanks for the video's great for none teekies like me :)
I love your videos and whoever recommended you to teach me about Unraid is amazing.
Now I always have to ask.
Wouldn't docker compose just be easier. Run one update command not worry about all this?
I am very ignorant to unraid so please be kind.
Thank you for the great setup video. I don't remember seeing the ML setup, did I miss it? I am trying to setup a 7 gen intel GPU.
After update to Immich new version. Nothing shows on port 8080. It seems broken. Can you make an updating video on that. Thanks a lot for your videos, very useful and detailed.
What's the non cli way of importing photos? What if you put more photos in the import folder later, will Immich see them or do you manually have to import again?
Yea, that's also confusing for me... Surely there is an automated way to import photos and does it 'remember' previous imports?
If you see my part 3 video on immich-go. You could easily put the command in a userscript and set it to run every night. then whenever there are new photos in the location it would import them.
I used the installs from CA. HEIC imports aren't working. Did I do something wrong?
They just released a new version of the docker container which contains version 2.1.0 of the CLI. Unraid didn't show it, but force update updated the container to the new version :)
yeah I saw that this morning. great to see that is fixed now :)
How did you force update it?
This was a huge help and way easier (for me) than the docker compose official path. The only thing I'm struggling with is the external libraries function. I'd prefer to not have Immich copy stuff... instead I'd like it to just interact with the folders I already have. Is this possible?
That intro music had me like 🕺🪩
lol :)
Thank you!
You're welcome!
Any plans on going over the backup / restore method you're using?
Immich docker compose file shows that they are using ps14 not ps16.
External libraries will add photos to your immich instance where they currently reside without making a copy of them.
Thanks for a great video. I’m curious of your opinion on using Immich versus Nextcloud for photo backup. Also does Immitch store the photo in original resolution?
That's my thought too - I'm wondering if you could somehow let them work together. I could import the pictures out of the Nextcloud storage, but then I have them two times on the server. I don't want to replace one with the other, as they both have their strengths.
Thanks!
I got gpu ML working.
Extra Parameters (Advanced View): --gpus=all
MACHINE_LEARNING_GPU_ACCELERATION (Variable): cuda
MACHINE_LEARNING_WORKERS (Variable): 2 (I have 2 gpus)
Be sure to install the gpu statistics pulgin so you can confirm usage. Also, watch the logs when you set the cuda variable. It takes much longer for the container to boot up because of all the cuda and python nonsense it has to pull. Cheers.
i got it working, but slightly different, in case the docker config has changed and the method is changed with it:
(advanced view on the Immich docker settings)
Extra Parameters: --runtime=nvidia --restart unless-stopped
MACHINE_LEARNING_GPU_ACCELERATION: cuda
MACHINE_LEARNING_WORKERS: 5 (i have a GTX1080 and that seems to be an adequate number of simultatious workers for my VRAM capacity)
NVIDIA_VISIBLE_DEVICES: GPU-.... -> number you find on the Nvidia driver plugin for your nvidia gpu
NVIDIA_DRIVER_CAPABILITIES: all
hope it helps, it works like a beast this way!
Great video. How would I go about storing the image thumbnails on the cache and everything else on the array?
Is there a way to set up the EXTERNAL PATH so that immich just adds your photos from where they are without copying them? I have my photos meticulously organized and would love to continue doing that without immich duplicating my photos elsewhere and hogging up more space.
I found the help article for external, but it's not helpful on the unraid side of things
This is what I want to know aswell, I have tens of gigabytes of pictures and don't want to have it duplicated just for Immich...
Did you cover what has to be done for using an Nvidia GPU? I don't recall seeing the all the steps for that
Okay, so I've already got a PostgreSQL15 container and a number of DBs for other services (Netbox & Vikunja mainly), do I really need to spin up the PostgreSQL16 container you provided? Or how can I make my existing PostgreSQL15 container work?
@SpaceinvaderOne what is the difference between using the cli to upload vs the external library gui from the admin panel?
Brilliant tutorial!, I must have done something wrong though. When i get to the part where you type in immich upload --recursive /import. I get the message, crawling for assets....., no files found exiting. What have i done?
Now that I have this up and running, although great, it is a tough ask to sacrifice basic crop and rotate edit functionality.
Totally agree. Its very early days for immich so i am sure it is something that will be coming in the future.
Hi thank you for all the helpful tutorial videos you post. You've enabled me to build an Unraid server to host many self hosted apps!
I was looking the other day for some help with Immich and a tutorial on the process to backup and restore, specifically backup Server A and restore on Server B? (Migrating to a new server)
Would you be willing to assist or create a tutorial video on the process to do so for Unraid users?
I'm using the standard PostgreSQL_Immich and Immich containers for the deployment.
Much appreciated!
Hello!
I just started using unraid a few months ago. As a new user your videos are very informative. Thank you for all your hard work.
My main goal of using unraid is to have a way to stop paying monthly fees for additional cloud storage for photos from my phone company.
I do not need to access/store photos while I am away from home. Is it necessary to pay for a domain in order to use immich?
My plan is to have the photos and videos on the phones of my family members save to my unraid server when they connect to the home wifi. Not including the cost of the server hardware, is there a way to back up my photos to immich in a way that is free or as cheap as possible yet secure? I am trying to escape monthly/yearly fees.
Thank you.
How do we update Immich? It looks like there isn't a clear way to update CA version of Immich. Do we just wait until that release is available?
This is a bit off topic but I am having issues getting the internet speed in my Win 10 VM to match the UnRaid speeds. I don't know where it gets bottle-necked at. And thank you so much for your very well done tutorials on putting together the VMs You have by far the best and most understanding ones out there
Thanks for the tutorial but I have a question. Is there a way to block http requests via the cloudflare tunnel? At the moment both https and http requests are allowed
Thanks Ed, I got it working but the issue I have is that the thumbnails are not showing and when I click on them no image is displayed.
Were you able to get this working? I am having the same problem
@@anthony.boyington same problem did anyone get this to work?
Please pin a comment with the instructions to setup the GPU!
It’s the same way you add your GPU to any other docker container the nvidia driver plugin tells you how to do it
I have a separate video on this (final part 4) after easter that also shows how to use intel or nvidia. It will also show how to run the machine learning on a separate server if wanted too.
Still watching for the first time, but I'll ask anyway. Can this be setup and told to use a network "share" from another machine/location. Say i want the photos to stay on my truenas box, or a synology box, or something like that, but immach needs to run on unraid.
Hello! I follow it and works nice! My doubt: when I import my main photos folder to Immich, should I delete the main photos folder after? Seems that my photo folder and immesh have the same size.... Help !!!!
Ente Photos server having been made available for self-hosting, I'm wondering if it would be worth running that, just for something that is less heavily in development, and less likely to have breaking updates.
Is this an option you would consider covering?
I have a query to you. I have an unraid server with 64gb non-ECC ram and xeon 10core cpu. I stored around 15tb photos on there. When I enter on those folders, it works slow and most of the time it stuck. Not smooth takes long time to lode. Will you please suggest me what is the problem and how I can solve it?
Regards
Dew
Turn off all the machine learning and facial detections in the settings.
Then once you’re done, run those jobs to gather the data
You missed the machine learning bit to enable face detection....
By default it uses cpu to detect faces. It's pretty fast on the CPU from my 70k library. No configuration needed!
See my comment on the top liked comment for GPU settings for ML.
So, I'm able to get past the installation of the immich docker (originally, I was getting stuck because the default port 8080 was already in use so I've changed this and can see it visible in the volume mappings). What I can't do is actually log into the IP:PORT (Chrome on my phone and PC gives me the "this site can't be reached ERR_CONNECTION_FAILED" message). Any ideas on what I'm missing here? I've tried disabling firewall on the PC and tried connecting via my phone on the wifi network but nothing doing. Thanks!
great tutorial! I hope at some point I can at least rotate and crop the immages. But that is not your task :)
Thank you for the instructions as always! Would it be possible to use the mobile app uploading through a local network address? I have a vpn client set up on my router and would prefer tunneling in to my home network and moving away from having services accesible from the internet.
How big of a SQL and immich docker container size can I expect to see? My photo/video library is about 250gb and I don't want my docker SSD to run out of room.
Nice, but I'm on the fence. If you value your photos and vids, you also need offsite backups.
Very true. You must have backups for sure. But in my opinion that goes for when you use cloud services for photos too. Thats just one location. Precious data should be in 3 separate places :)
I'm getting an error on the cmd line part for the api key. It keeps saying typeerror: Invalid URL
Im putting in the correct server ip and port
Same =/
Hah - I forgot the hyphen between "login" and "key"
so when u mean by upload/copy, are you referring to symlinks? or a copy of the full file meaning you are storing double of the same pic on the same machine? which is it?
When you upload a file to Immich it makes a copy of that file into the location where Immich stores its pictures. So yes if you still had the pictures in the source you would now have 2 copies. It doesnt use harlinking or symlinks.
However if you want it just to see the photos you have and not use it to upload photos etc. You can add an external library and Immich will be able to see that. So maybe you would prefer using the external library option as opposed to using Immich's primary "upload" library.
Hi Ed, I have around one terabyte of images, I need to have a double copy on the server for immich or not?
Any important data you should always have multiple copies. In more than one location IMO. Imagine that all your photos were only on your server and one day you came home and someone had broken in and stolen your compters? But of course i pray that never happens to you :)
Hi @SpaceinvaderOne , thanks for the reply, I already have three copies (one in the server, the other two on different external drive), my question was if I need to copy the photos that I already have in my server in another share and use double the capacity? Thanks
is there a way to scan a folder to not include the previously imported photos?
I did exactly as the video and what I now see is that the Cash is filled with thumbs and other stuff... What have I done wrong?
I don't have a "Path: /import: , I do have Path: /libraries are they one in the same?
you forgot to give details on machine learning with cuda at end of the video
ugh.. i did this because i thought the GPU part would be in this video.. It doesnt appear its been released yet either :(
Also, the "import" folder doesnt import anything
What if a new version of Immich requires a new PostgreSQL version? Which one should be updated first?
Can I make it upload whenever there is a new file in the import folder? Is there a way to setup a cronjob with that command without uploading old duplicates?
what have I done wrong, I can't uoloate pictures, neither one way nor the other? neither from a website, ios app or the program you use for takeout?
So I already have Immich up and running but my server situation has now changed. I currently have Immich setup to look at an external hard drive as an external library, and also all my Immich photos are being uploaded to the same external hdd.
I have since upgraded my server and now want to migrate my Immich library into the server’s external library. Can I just drag and drop the directory onto a new Immich share and update the file location in the template? (I actually used a different version as I wasn’t aware of you and your videos when I spun it up- I know- crazy but I’m brand new).
hi, how did u end up fixing cloudflare s upload limit?
Thanks for the video. I installed the immich docker on my unraid server and after I was done I got a popup message saying something along the line of "The password you just used has been identified in a data breah and Google recommends you change it. My guess is that it was related to the default postgres password and I assume that won't matter since it is safe on our server but I did want to ask here to make sure that it isn't something else I should be concerned with. Thanks.
imagegenius/mods:universal-redis
I think... since he didnt put it in the description to copy and paste
So? I have an existing unraid photo share (750 gigs)......can I not simply point Immich to that folder and use Immich? Unless I am missing something I have to create another share and have Immich basically duplicate my existing photo share?
That was my question, too. It seems like you can point to an external library, but you cannot manage/delete photos using external directories.
Just wondering, how do you think this (Immich) will handle a library of over 250,000 raw images? Also...gpu info?
No problem based on users having 200k-500k photos.
As an example I have 90k mixed media files and it runs beautifully. You may want to limit the cores for immich though as it took 3 days to process the library and it will take all the resources available to it.
Thank you. @@sirgriffinman
Thank you! @@bennyb44