502 Bad Gateway

guys I need some help running immich again. I was running it like a year a go and decided to launch it again. So i did an update and here are the logs after update... However when i try to access the admin panel via browser its giving me the 502 error. I forgot how i accessed it previously... Perhaps somebody can help me to debug....
12 Replies
bo0tzz
bo0tzz2y ago
Those logs look incomplete. That said - a year ago is a loooong time for Immich and a lot has changed. You might be better off starting from scratch with a new installation.
kachers
kachersOP2y ago
Then I have a question about the database, will i be able to import the old data in the new installation?
bo0tzz
bo0tzz2y ago
https://immich.app/docs/administration/backup-and-restore - but for a very old instance, the database can't necessarily be ported over like that. Over time there've been several updates that need some sort of manual intervention (in the db or elsewhere)
kachers
kachersOP2y ago
as for the logs i logged only last 50 lines of code from logs...the app is currently running and producing new logs each second... i dont see any errors in the logs...so i believe its running smooth maybe you can suggest what address i should use in the browser to access admin setup
bo0tzz
bo0tzz2y ago
With a default setup the web ui should be accessible at the standard port 2283
kachers
kachersOP2y ago
localhost:2283 ?
bo0tzz
bo0tzz2y ago
If you're accessing it from the machine it's running on, yes
kachers
kachersOP2y ago
seems like im having some server side issue here. How can i debug immich-server?
kachers
kachersOP2y ago
here are the immich-server logs from docker
kachers
kachersOP2y ago
here is my .env file
####################
# Database
#####################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich

# Optional Database settings:
# DB_PORT=5432

##################
# Redis
#################

REDIS_HOSTNAME=immich_redis

# Optional Redis settings:
# REDIS_PORT=6379
# REDIS_DBINDEX=0
# REDIS_PASSWORD=
# REDIS_SOCKET=

#################
# Upload File Location
# This is the location where uploaded files are stored.
##################
UPLOAD_LOCATION=/media/ren/NewVolume1/Iphone_2023
#################
# Typesense
##################
TYPESENSE_API_KEY=notrandomtext
# TYPESENSE_ENABLED=false
###################
# Reverse Geocoding
# This memory usage can be altered by changing the REVERSE_GEOCODING_PRECISION variable
# This ranges from 0-3 with 3 being the most precise
# 3 - Cities > 500 population: ~200MB RAM
# 2 - Cities > 1000 population: ~150MB RAM
# 1 - Cities > 5000 population: ~80MB RAM
# 0 - Cities > 15000 population: ~40MB RAM
#################

# DISABLE_REVERSE_GEOCODING=false
# REVERSE_GEOCODING_PRECISION=3

#################
# WEB - Optional
# For example:
# PUBLIC_LOGIN_PAGE_MESSAGE="Musu gimenes bilzu un video failu glabatuve.<br><br>Email: <i>[email protected]</i><br>Password: <i>demo</i>"
################

PUBLIC_LOGIN_PAGE_MESSAGE="Musu gimenes bilzu un video failu glabatuve"

###################
# Alternative Service Addresses - Optional

# Note: immich-microservices is bound to 3002, but no references are made
###################

IMMICH_WEB_URL=http://immich-web:3008
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3004

###################
#IMMICH_API_URL_EXTERNAL=http://localhost:3001
####################
# Database
#####################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich

# Optional Database settings:
# DB_PORT=5432

##################
# Redis
#################

REDIS_HOSTNAME=immich_redis

# Optional Redis settings:
# REDIS_PORT=6379
# REDIS_DBINDEX=0
# REDIS_PASSWORD=
# REDIS_SOCKET=

#################
# Upload File Location
# This is the location where uploaded files are stored.
##################
UPLOAD_LOCATION=/media/ren/NewVolume1/Iphone_2023
#################
# Typesense
##################
TYPESENSE_API_KEY=notrandomtext
# TYPESENSE_ENABLED=false
###################
# Reverse Geocoding
# This memory usage can be altered by changing the REVERSE_GEOCODING_PRECISION variable
# This ranges from 0-3 with 3 being the most precise
# 3 - Cities > 500 population: ~200MB RAM
# 2 - Cities > 1000 population: ~150MB RAM
# 1 - Cities > 5000 population: ~80MB RAM
# 0 - Cities > 15000 population: ~40MB RAM
#################

# DISABLE_REVERSE_GEOCODING=false
# REVERSE_GEOCODING_PRECISION=3

#################
# WEB - Optional
# For example:
# PUBLIC_LOGIN_PAGE_MESSAGE="Musu gimenes bilzu un video failu glabatuve.<br><br>Email: <i>[email protected]</i><br>Password: <i>demo</i>"
################

PUBLIC_LOGIN_PAGE_MESSAGE="Musu gimenes bilzu un video failu glabatuve"

###################
# Alternative Service Addresses - Optional

# Note: immich-microservices is bound to 3002, but no references are made
###################

IMMICH_WEB_URL=http://immich-web:3008
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3004

###################
#IMMICH_API_URL_EXTERNAL=http://localhost:3001
bo0tzz
bo0tzz2y ago
Your server logs look fine, no errors there You shouldn't need to set the _URL env vars in the default setup
kachers
kachersOP2y ago
Wow... i was trying to debug with chatGPT, but without results...and you hit the nail on the head..so i commented out those 3 URL lines and was able to login!!! Thank you!

Did you find this page helpful?