Live data from Hacker News

Self-hosting my photos with Immich

michael.stapelberg.ch

341–350 of 384 posts

Re: Self-hosting my photos with Immich

#341
post #303

Earlier quoted context omitted.

With tailscale on your server and endpoints you can access the server from anywhere without even having to open any ports. It is like magic.

If you don't open ports, how can it reach your internal services to allow you access to them?

by using a wireguard tunnel and NAT traversal

https://tailscale.com/blog/how-nat-traversal-works

Re: Self-hosting my photos with Immich

#342

Earlier quoted context omitted.

"Just" write your own module? Have you seen how bad the Nix documentation is and how challenging Nix (the language) is? Not to mention that you have to learn Yet Another Language just for this corner case, which you will not use for anything else. At least Guix uses a lisp variant so that some of the skills you gain are transferable (e.g. to Emacs, or even to a GP language like Common Lisp or Racket). Don't get me wr…

The documentation is not great (especially since it tends to document nix-the-language and not the conventions actually used in Nixpkgs), but there are very few languages on earth with more examples of modules than Nix.

Examples don't help if you can't understand them.

Re: Self-hosting my photos with Immich

#343

> Unfortunately, the gphotos-sync tool stopped working in March 2025 when Google restricted the OAuth scopes, so I needed an alternative for my existing Google Photos setup. I didn't even realize this tool existed. I tried something like it awhile back, but it didn't work to my satisfaction (I don't remember why), so my awful, awful, awful workflow is to use the Google Takeout functionality to generate something like…

It's extra special awesome how downloading the files regularly breaks too.

And how your albums, instead of being metadata, are folders, into which files are duplicated. It's literally shittily coded malicious compliance so they can pretend to let you have your data.

(Oh, you view your folders as important metadata that should be attached to a single copy of the image? Cool cool, write a bunch of code.)

Re: Self-hosting my photos with Immich

#344
post #62
post #4

Self hosting used to mean conceding on something. I can honestly say Immich is better in every way than Google Photos or whatever Apple calls it. The only thing is having to set it up yourself.

Does your phone silently and reliably upload all the photos to your server? My guess you're conceding on that part. How's the offline app support? My full library (30k items) is available on my phone (not in high res). There are a lot more concessions I'm sure.

> Does your phone silently and reliably upload all the photos to your server? My guess you're conceding on that part.

That’s my question. I’m sure it works fine on Android but I was under the impression that iOS/iPadOS restricts this unless the app is running in the foreground.

Re: Self-hosting my photos with Immich

#345
post #189

Earlier quoted context omitted.

Not self hosted. But I pay for ente for me and my family. Covers 5 of us for £10 a month. Not the cheapest but ente works amazing.

You can self host it. It used to be a fairly complicated procedure but I think they simplified it recently, but I haven’t tried it again since then

Yeah i'm not fully opposed to the self host option, I self host quite a few services. However in this case i'm a bit nervous being in charge of families photos and their backups. This way, even if they don't backup. Ente has a pretty robust duplication strategy.

Re: Self-hosting my photos with Immich

#346
post #250

Earlier quoted context omitted.

The Nextcloud iOS app does it. For some reason it requires the location permission "all the time" for that, presumably as a way to "wake" the app from time to time? I decided to try Nextcloud exactly because of this. My problem with it is more that the whole thing is a bit unreliable. Like once in a while the app will get into a state where the only way I found to recover is to just erase everything and re-sync every…

> The Nextcloud iOS app does it. Searching for "nextcloud ios background sync" shows a whole bunch of forum posts and bug reports about it not working well unless you have the application open. One issue ( https://github.com/nextcloud/ios/issues/2225 ) been open since 2022, seems to still be not working properly. Another ( https://github.com/nextcloud/ios/issues/2497 ) been open since 2023. For something that works w…

Background support for non-Apple apps is best-effort at best, and explicitly discouraged in the docs. The rate of silent push notifications and other background mechanisms are intentionally not documented and you’re explicitly instructed you not to rely on any current behavior. They make some exceptions to support money makers like Uber and fitness tracking but generally they don’t like you using anything in the background.

Android is more relaxed but the vendors (like Samsung etc) will go around that and implement their own aggressive background killing bots. Sometimes, this causes alarm apps to stop and not wake you up etc.

The main reason is battery life. Tragically, this makes sense due to the cesspool of spam apps that plague their ”curated” app stores. If you’re an app developer who want to use it responsibly you’re in for a world of trouble. I know because I am one of them (well, I consider myself responsible at least).

Re: Self-hosting my photos with Immich

#347
post #95

Immich is great, but I like Ente more because of the E2E encryption. I don't trust that someday my hardware wouldn't get stolen and all photos get in possession of someone else.

Why not encrypt your server? Or store the photos on an encrypted partition?

I specifically care about my server getting stolen. You need Luks encryption in place for that, but also some clever password automation so you don’t type it in each time

Re: Self-hosting my photos with Immich

#348
post #268
post #157

Earlier quoted context omitted.

How does the mobile syncing work? Really looking for a system where I can install the app on my parents' iPhones and it backs up their photos to my server without them having to even know about the app. They won't open it, ever. Nextcloud fails at that.

It's pretty easy to set it up to upload automatically, if that's the question. No need to launch it. I've only got my server on my home network so I can't sync while away, and I occasionally check to make sure it's working - no problems at all yet, a few months in.

Good to know, I need to try it. My parents won't open the app, even occasionally, so it needs to work anyway. The Nextcloud app seems to get that right, so it must be possible.

Re: Self-hosting my photos with Immich

#349
post #250

Earlier quoted context omitted.

The Nextcloud iOS app does it. For some reason it requires the location permission "all the time" for that, presumably as a way to "wake" the app from time to time? I decided to try Nextcloud exactly because of this. My problem with it is more that the whole thing is a bit unreliable. Like once in a while the app will get into a state where the only way I found to recover is to just erase everything and re-sync every…

> The Nextcloud iOS app does it. Searching for "nextcloud ios background sync" shows a whole bunch of forum posts and bug reports about it not working well unless you have the application open. One issue ( https://github.com/nextcloud/ios/issues/2225 ) been open since 2022, seems to still be not working properly. Another ( https://github.com/nextcloud/ios/issues/2497 ) been open since 2023. For something that works w…

I don't know it for sure, but I think it wasn't working until a recent update (like 6 months ago). Also an unintuitive thing is that the location permission has to be given to the app "all the time", and I think I had to manually go into the settings to set it up.

I think that the forum posts may be old, and/or a bunch of them may come from users who did not know that they had to set the location permission this way (which admittedly is unintuitive for photo syncing).

Re: Self-hosting my photos with Immich

#350
post #346

Earlier quoted context omitted.

> The Nextcloud iOS app does it. Searching for "nextcloud ios background sync" shows a whole bunch of forum posts and bug reports about it not working well unless you have the application open. One issue ( https://github.com/nextcloud/ios/issues/2225 ) been open since 2022, seems to still be not working properly. Another ( https://github.com/nextcloud/ios/issues/2497 ) been open since 2023. For something that works w…

Background support for non-Apple apps is best-effort at best, and explicitly discouraged in the docs. The rate of silent push notifications and other background mechanisms are intentionally not documented and you’re explicitly instructed you not to rely on any current behavior. They make some exceptions to support money makers like Uber and fitness tracking but generally they don’t like you using anything in the back…

The Nextcloud app has been running and syncing in the background on 3 iPhones for like 6 months, so they managed to make that work relatively well.

My issue is other bugs that make it painful, including the fact that I cannot trust that Nextcloud will eventually upload the whole photo gallery (it seems like some files regularly get "locked" w.r.t. "webdav", for some reason, and this never resolves).

Post reply on HN