after the update 500 connect ECONNREFUSED 172.21.0.4:3001

i did the update using "docker-compose pull && docker-compose up -d # Or docker compose" and after that i get this error, i restarted the containers but nothing,
No description
16 Replies
Alex Tran
Alex Tran3y ago
If you haven't please refer to the release note for the change in the setup
Alex Tran
Alex Tran3y ago
GitHub
Release v1.51.0 · immich-app/immich
v1.51.0 Breaking Changes 🚨 This release added a new container to Immich's ecosystem, namely Typesense. Please update your docker-compose.yml file to include the new container and .env file to h...
klausk
klausk3y ago
I also got that error and could resolve it by adding TYPESENSE_HOST=immich_typesense. (See https://github.com/immich-app/immich/issues/2028#issuecomment-1476692049) But I also named my container "immich_typesense" instead of "typesense".
GitHub
[BUG] Internal server error 500 when clicking "Explore" · Issue #20...
The bug When clicking "Explore" on the web, the server generates an internal error 500. immich-server shows this log: [Nest] 1 - 03/20/2023, 5:42:08 PM ERROR [ExceptionsHandler] Request f...
ZuCiccio
ZuCiccioOP3y ago
I tried but nothing changes
jrasm91
jrasm913y ago
Can you share you immich-server and immich-microservice logs?
ZuCiccio
ZuCiccioOP3y ago
where can i find them?
jrasm91
jrasm913y ago
docker logs immich_server
ZuCiccio
ZuCiccioOP3y ago
Error: Config validation error: "TYPESENSE_API_KEY" is required at Function.forRoot (/usr/src/app/node_modules/@nestjs/config/dist/config.module.js:75:23) at Object.<anonymous> (/usr/src/app/dist/apps/immich/apps/immich/src/app.module.js:39:35) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/src/app/dist/apps/immich/apps/immich/src/main.js:12:22) at Module._compile (node:internal/modules/cjs/loader:1105:14) /usr/src/app/node_modules/@nestjs/config/dist/config.module.js:75 throw new Error(Config validation error: ${error.message}); ^
jrasm91
jrasm913y ago
Yeah, so you need to add that to the env. Did you read the release notes?
ZuCiccio
ZuCiccioOP3y ago
yes this is my env
ZuCiccio
ZuCiccioOP3y ago
did I do something wrong?
jrasm91
jrasm913y ago
What about your .env file? You should just need to add TYPESENSE_API_KEY= (with some random data for the key) to your .env file and then run docker-compose up again You can generate some random data with something like this openssl rand -base64 24
ZuCiccio
ZuCiccioOP3y ago
i did as you said i get this :ERROR: Invalid interpolation format for "environment" option in service "typesense": "TYPESENSE_API_KEY=${Mb/q0sR6OPBWJGzXp3+Nh6FX0KRo/qdw}"
jrasm91
jrasm913y ago
You need to remove the $, { and } characters Oh wait hmm... Maybe try removing the slashes/plus sign from the value and try again
ZuCiccio
ZuCiccioOP3y ago
Thanks so much for your help, it works now🙏

Did you find this page helpful?