this post was submitted on 23 Feb 2025
18 points (95.0% liked)

Selfhosted

42767 readers
1260 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I set up Immich on a spare mini PC running Linux Mint with a spare external HDD to store the library. Used Docker compose as recommended on the website. Everything was working great last night. Then this morning I decided to move the mini PC to a more permanent location. I powered down and moved it. When everything restarted though I discovered that I was unable to c9nnect to the immich server. I went onto the mini PC and the local host and all it says is, "connection was reset." I have tried restarting docker from terminal several times and it says the immich services are running. I still cannot connect to the server though. What can I do to fix this?

top 10 comments
sorted by: hot top controversial new old
[–] ShellMonkey@lemmy.socdojo.com 9 points 4 hours ago (1 children)

Did you happen to unplug the external drive when it was moved? Could wonder if the device ID got changed and the server can't find the old location for the library any longer.

[–] qwestjest78@lemmy.ca 5 points 4 hours ago* (last edited 4 hours ago) (1 children)

Drive was just connected with USB to mini PC so it was also unplugged and I had to remount it to the PC. I looked in the .env file and the path still looked good. I had considered this was an issue too. I figured that restarting docker with the drive properly mounted would fix this though. Still getting, "connection was reset," though

[–] qwestjest78@lemmy.ca 17 points 4 hours ago (1 children)

So I checked the config for the external drive again and discovered when it was remounted it had added a, "1" to the end of the drive name. I went back into the .env and changed the library location to reflect this. Restarted docker and it is now connecting again. Obviously it is not ideal to be using a external HDD, but I wanted to test immich out for a while before investing into a bigger self hosting rig for all my services.

Ultimately problem solved though

[–] aMockTie@lemmy.world 6 points 2 hours ago (1 children)

I would recommend editing your fstab and use the USB drive's UUID to mount it to a consistent location. That way, even if you reboot or disconnect the drive and the reconnect it to, say, a different USB port, it will always mount to the same mountpoint.

See this page from the arch wiki for more info.

[–] plasticcheese@lemmy.one 1 points 23 minutes ago

This is the answer. Find your UUID with "blkid" and mount it in fstab with the ID.

It's worth learning how. This problem is something everyone goes through (hopefully) once.

https://ostechnix.com/mount-a-drive-permanently-in-linux-using-fstab/

[–] Hiro8811@lemmy.world 1 points 2 hours ago

Hey, if you changed the Internet cable then the ip address most likely changed as well. Find you PC new ipv4 address and you'll be able to connect

[–] ocean@lemmy.selfhostcat.com 4 points 4 hours ago

If your photos are externally linked I would just delete and rerun the dockers.

I just had a weird immich issue where all my photos disappeared. Deleting Redis solved it for me.

[–] RandomLegend@lemmy.dbzer0.com 4 points 4 hours ago (1 children)

Maybe the IP address changes? You should provide some more info.

Terminal outputs etc

[–] SatanClaus@lemmy.dbzer0.com 2 points 4 hours ago

This is my guess. Always set static in the device and in your router settings.

[–] SnotFlickerman@lemmy.blahaj.zone -1 points 4 hours ago

I shut down my Immich server two months ago and moved it halfway across the state and did not have this issue.

All my files are on an internal disk.