#Password authentification failed

1 messages · Page 1 of 1 (latest)

hollow yacht
#

When i try to setup immich i get the following errors (see screenshot)

Here is my docker-compose.yml:

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

services:
 immich-server:
   container_name: immich_server
   restart: always
   image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
#    command: ['start.sh', 'immich']
   ports:
     - 3001:3001
     - 8081:8081
     - 8082:8082
   networks:
     - traefik
   depends_on:
     - redis
     - database
   volumes:
     - ${UPLOAD_LOCATION}:/usr/src/app/upload
     - /etc/localtime:/etc/localtime:ro
   env_file:
     - .env
   labels:
     - "traefik.enable=true"
     - "traefik.http.routers.immich.entrypoints=web,websecure"
     - "traefik.http.routers.immich.rule=Host(`immich.domain.com`)"
     - "traefik.http.routers.immich.tls=true"
     - "traefik.http.routers.immich.tls.certresolver=leresolver"
     - "traefik.http.services.immich.loadbalancer.server.port=3001"

 immich-machine-learning:
   container_name: immich_machine_learning
   restart: always
   # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
   # Example tag: ${IMMICH_VERSION:-release}-cuda
   image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
   networks:
     - traefik
   # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
   #   file: hwaccel.ml.yml
   #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
   volumes:
     - /mount/ssd-sdb/immich-model-cache:/cache
   env_file:
     - .env

 redis:
   container_name: immich_redis
   image: docker.io/redis:6.2-alpine@sha256:e3b17ba9479deec4b7d1eeec1548a253acc5374d68d3b27937fcfe4df8d18c7e
   healthcheck:
     test: redis-cli ping || exit 1
   restart: always
   volumes:
     - /mount/ssd-sdb/immich-redis:/data
   networks:
     - traefik

 database:
   container_name: immich_postgres
   restart: always
   image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
   networks:
     - traefik
   environment:
     POSTGRES_PASSWORD: ${DB_PASSWORD}
     POSTGRES_USER: ${DB_USERNAME}
     POSTGRES_DB: ${DB_DATABASE_NAME}
     POSTGRES_INITDB_ARGS: '--data-checksums'
   healthcheck:
     test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
     interval: 5m
     start_period: 30s
     start_period: 5m
   command: ["postgres", "-c", "shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
   volumes:
     - ${DB_DATA_LOCATION}:/var/lib/postgresql/data

networks:
 traefik:
   name: traefik
   external: true
main jungleBOT
#

:wave: Hey @hollow yacht,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

main jungleBOT
hollow yacht
#

I just set it up from the exampe docker-compose.yml and .env

little shoal
#

Please post your .env

hollow yacht
#
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mount/ssd-sdb/immich-library
# The location where your database files are stored
DB_DATA_LOCATION=/mount/ssd-sdb/immich-pgdata

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Zurich

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.114.0

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=postgres

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

#REDIS_HOSTNAME=redis

IMMICH_METRICS=true
little shoal
#

Is PASSWORD really what you set?

hollow yacht
#

no i just wrote another one than i actually have

little shoal
#

Please include the PW

hollow yacht
#

okay it's included now

little shoal
#

Hm that’s a pretty normal password

#

Try setting it back to “postgres”

hollow yacht
#

i did and restarted the containers with: docker-compose down && docker-compose up -d

still same error

hollow yacht
#

has anyone got an idea?

feral cargo
#

Are you using docker compose or docker-compose ? Because the latter is not supported

#

Try listing the containers with docker ps --all

hollow yacht
#

docker-compose why?
it always worked

hollow yacht
feral cargo
#

The status of the containers of course, feel free to share it

hollow yacht
#

I got it to work again
I had another docker-compose Project where the database was also just called database, after i changed it it worked again

feral cargo
#

In the same compose file? Because the container name is immich_postgres by default

hollow yacht
#

no in aniter compose file