I
Immich3y ago
RitZz

Immich Fails to load onces again

Heya, I reinstalled immich today with typesense on a I3-4130 cpu. as per my understanding this cpu has avx. so I have no idea why its failing again
No description
33 Replies
Alex Tran
Alex Tran3y ago
You should provide logs and maybe let us know what have changes with your setup
RitZz
RitZzOP3y ago
No description
RitZz
RitZzOP3y ago
looks like I messed up setting the typesense api sorry after fixing the typesense issue this is what the log shows
RitZz
RitZzOP3y ago
No description
RitZz
RitZzOP3y ago
not really sure what to make of it
Alex Tran
Alex Tran3y ago
You change the URL or container name here please help posting your docker-compose and .env file
RitZz
RitZzOP3y ago
version: "3.8"

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- stack.env
depends_on:
- redis
- database
- typesense
restart: always

immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- stack.env
depends_on:
- redis
- database
- typesense
restart: always

immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:release
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- model-cache:/cache
env_file:
- stack.env
restart: always

immich-web:
container_name: immich_web
image: ghcr.io/immich-app/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- stack.env
restart: always

typesense:
container_name: immich_typesense
image: typesense/typesense:0.24.0
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- TYPESENSE_DATA_DIR=/data
logging:
driver: none
volumes:
- tsdata:/data
restart: always

redis:
container_name: immich_redis
image: redis:6.2
restart: always

database:
container_name: immich_postgres
image: postgres:14
env_file:
- stack.env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
restart: always

immich-proxy:
container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:release
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always

volumes:
pgdata:
model-cache:
tsdata:
version: "3.8"

services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-server.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- stack.env
depends_on:
- redis
- database
- typesense
restart: always

immich-microservices:
container_name: immich_microservices
image: ghcr.io/immich-app/immich-server:release
entrypoint: ["/bin/sh", "./start-microservices.sh"]
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- stack.env
depends_on:
- redis
- database
- typesense
restart: always

immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:release
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- model-cache:/cache
env_file:
- stack.env
restart: always

immich-web:
container_name: immich_web
image: ghcr.io/immich-app/immich-web:release
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- stack.env
restart: always

typesense:
container_name: immich_typesense
image: typesense/typesense:0.24.0
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- TYPESENSE_DATA_DIR=/data
logging:
driver: none
volumes:
- tsdata:/data
restart: always

redis:
container_name: immich_redis
image: redis:6.2
restart: always

database:
container_name: immich_postgres
image: postgres:14
env_file:
- stack.env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
restart: always

immich-proxy:
container_name: immich_proxy
image: ghcr.io/immich-app/immich-proxy:release
environment:
# Make sure these values get passed through from the env file
- IMMICH_SERVER_URL
- IMMICH_WEB_URL
ports:
- 2283:8080
logging:
driver: none
depends_on:
- immich-server
restart: always

volumes:
pgdata:
model-cache:
tsdata:
DB_HOSTNAME=immich_ritzz
DB_USERNAME=ritzz_name
DB_PASSWORD=postgre_ritzz
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/home/ritzz/server/immich/uploads
TYPESENSE_ENABLED=true
TYPESENSE_API_KEY=6%f29A!9kG$@sAu9#3cP%3yGHDnjnfnYniMqo%&SHjBVMD#U
PUBLIC_LOGIN_PAGE_MESSAGE="A selfhosted Photo backup Solution"
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
DB_HOSTNAME=immich_ritzz
DB_USERNAME=ritzz_name
DB_PASSWORD=postgre_ritzz
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/home/ritzz/server/immich/uploads
TYPESENSE_ENABLED=true
TYPESENSE_API_KEY=6%f29A!9kG$@sAu9#3cP%3yGHDnjnfnYniMqo%&SHjBVMD#U
PUBLIC_LOGIN_PAGE_MESSAGE="A selfhosted Photo backup Solution"
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
Alex Tran
Alex Tran3y ago
DB_HOSTNAME=immich_ritzz should be immich_postgres
RitZz
RitZzOP3y ago
err am I not supposed to change the database details?
Alex Tran
Alex Tran3y ago
No, you can change the username and password the hostname is the database information where the server look into to talk to it in this case it use docker DNS the database internal dns is immich_postgres similar to the address you see here IMMICH_WEB_URL=http://immich-web:3000 immich-web is the internal DNS that docker use to communicate with the web container
RitZz
RitZzOP3y ago
ah makes much more sense now thanks btw I got the server up and running
Alex Tran
Alex Tran3y ago
Perfect!
RitZz
RitZzOP3y ago
but when I try to connect from phone I get the error "Socket operation failed: POST /oauth/config" I didn't enable any oauth settings
Alex Tran
Alex Tran3y ago
Can you uninstall the app and reinstall the app? Which phone are you using?
RitZz
RitZzOP3y ago
tried reinstalling I am using Xiaomi Mi 10 (umi)
Alex Tran
Alex Tran3y ago
what is the server addresss are you putting in the URL?
RitZz
RitZzOP3y ago
uh my reverse proxy url
Alex Tran
Alex Tran3y ago
try put api at the end so https://photos.ritzz.online/api
RitZz
RitZzOP3y ago
tried that already
Alex Tran
Alex Tran3y ago
Does it work if you use internal IP?
RitZz
RitZzOP3y ago
No description
No description
RitZz
RitZzOP3y ago
doesn't look like I am getting anywhere
Alex Tran
Alex Tran3y ago
for your internal api it shouldn't be https just http and remove the forward slash so http://192.168.1.11:2283
RitZz
RitZzOP3y ago
hmm that works
Alex Tran
Alex Tran3y ago
hmm strange
RitZz
RitZzOP3y ago
what could be the problem with the public domain :/
Alex Tran
Alex Tran3y ago
what proxy engine are you using?
RitZz
RitZzOP3y ago
npm
Alex Tran
Alex Tran3y ago
Try just photos.ritzz.online
RitZz
RitZzOP3y ago
doesn't work wait it works when I turn on my mobile data and disconnect my phone from the local network but doesn't work when I am in the same network
Alex Tran
Alex Tran3y ago
I am not sure what is your local setup is like, you might have to do some investigation.
RitZz
RitZzOP3y ago
alright thanks

Did you find this page helpful?