I
Immich•3y ago
ShoppyzAbaF

Immich server 500 error after updating

Hey guys. I updated my server and read the github about the breaking changes. I added type sense and all but I'm still getting a 500 error. I'll show my logs and config below.
No description
13 Replies
Unrealmaster
Unrealmaster•3y ago
Ah, I think I see the issue Did you add the TYPESENSE_API_KEY to both the immich server and microservices container?
ShoppyzAbaF
ShoppyzAbaFOP•3y ago
Nope.. Only on Typesense container
Unrealmaster
Unrealmaster•3y ago
You need it for the server containers as well since that's how they authenticate with the typsense container Also, FYI you might run into issues with the container name for typesense. It seems that the server/microservices expect the hostname to be typesense So if your logs hint at name resolution failure for typesense after you add the API key, that is most likely the next culprit
ShoppyzAbaF
ShoppyzAbaFOP•3y ago
ShoppyzAbaF
ShoppyzAbaFOP•3y ago
Hm. Now I'm getting a new error saying the key can't be empty
- TYPESENSE_API_KEY=${randomtext10}
- TYPESENSE_API_KEY=${randomtext10}
I added this to the server container and microservices container under "enviroment"
Unrealmaster
Unrealmaster•3y ago
Personally, I dont use docker compose so cant really help you with ${randomtext10} not working. I would suggest just typing up a random string of text 😛
ShoppyzAbaF
ShoppyzAbaFOP•3y ago
alright!
Unrealmaster
Unrealmaster•3y ago
Make sure that its the same for all 3 containers: Typesense, Microservices, Server
ShoppyzAbaF
ShoppyzAbaFOP•3y ago
Alrighty! server seems to load up now. I just removed the "$" sign and the brackets from each side and just put the raw text seemed to do the trick
Unrealmaster
Unrealmaster•3y ago
Cool, glad you got that all sorted out
ShoppyzAbaF
ShoppyzAbaFOP•3y ago
thanks, yep. always stuff like that breaking it all

Did you find this page helpful?