immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
53.45k stars 2.83k forks source link

immich-app/immich-machine-learning:release #6846

Closed cgeheim closed 10 months ago

cgeheim commented 10 months ago

The bug

Warning: Matplotlib created a temporary cache directory at

                         /tmp/matplotlib-mb22khcu because the default path  

                         (/.config/matplotlib) is not a writable directory; 

                         it is highly recommended to set the MPLCONFIGDIR   

                         environment variable to a writable directory, in   

                         particular to speed up the import of Matplotlib and

                         to better support multiprocessing.             

The OS that Immich Server is running on

Sysnology DS1618

Version of Immich Server

1.94.1

Version of Immich Mobile App

1.94.1

Platform with the issue

Your docker-compose.yml content

version: "3.9"
services:

  immich-server:
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    container_name: immich_server
    hostname: immich-server
    networks:
      default:
        ipv4_address: 192.168.0.46
    user: 1026:101
    security_opt:
      - no-new-privileges:true
    env_file:
      - stack.env
    ports:
      - 8212:3001
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - ${EXTERNAL_PATH}:/usr/src/app/external
    restart: always
    depends_on:
     - immich-redis
     - immich-db

  immich-microservices:
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "microservices" ]
    container_name: immich_microservices
    hostname: immich-microservices
    networks:
      default:
        ipv4_address: 192.168.0.47
    ports:
      - 8212:3002   
    user: 1026:101
    security_opt:
      - no-new-privileges:true
    env_file:
      - stack.env
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
     # - ${EXTERNAL_PATH}:/usr/src/app/external
     # - /volume2/immich/micro:/usr/src/app/.reverse-geocoding-dump
    restart: always
    depends_on:
     - immich-redis
     - immich-db

  immich-machine-learning:
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    container_name: immich-learning
    hostname: immich-machine-learning
    user: 1026:101
    networks:
      default:
        ipv4_address: 192.168.0.48
    ports:
      - 8212:3003   
    security_opt:
      - no-new-privileges:true
    env_file:
      - stack.env
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /volume2/immich/cache:/cache
    restart: always

  immich-redis:
    image: redis:6.2-alpine@sha256:e37f1652146657d95486471424a2ff36d375f9ac3ca66028818c2dbba40e6303
    container_name: immich_redis
    hostname: immich-redis
    networks:
      default:
        ipv4_address: 192.168.0.44
    ports:
      - 6379:6379    
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: ["CMD-SHELL", "redis-cli ping || exit 1"]
      interval: 5m
      timeout: 5s
      retries: 5
    user: 1026:101
    environment:
      - TZ=Europe/Berlin
    volumes:
      - /volume1/docker/immich/redis:/data
    restart: always

  immich-db:
    image: tensorchord/pgvecto-rs:pg16-v0.1.11
    container_name: immich_postgres
    hostname: immich-db
    networks:
      default:
        ipv4_address: 192.168.0.45
    security_opt:
      - no-new-privileges:true
    healthcheck:
      test: ["CMD", "pg_isready", "-q", "-d", "immich", "-U", "immichuser"]
      interval: 5m
      timeout: 5s
      retries: 5
    volumes:
      - /volume2/immich/db:/var/lib/postgresql/data
    environment:
      - TZ=Europe/Berlin
      - POSTGRES_DB=immich
      - POSTGRES_USER=immichuser
      - POSTGRES_PASSWORD=XXXX
    restart: always

networks:
  default:
    name: mvl
    external: true

Your .env content

UPLOAD_LOCATION=/volume2/immich/upload
IMMICH_VERSION=release
DB_HOSTNAME=immich-db
DB_USERNAME=immichuser
DB_PASSWORD=HuGvs2024iW!
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich-redis
LOG_LEVEL=log
JWT_SECRET=xia7jNMRT50PgcShC0BTuFxTLPamoYnQO8OKH8jUff4iD0AdtbC8HTZp/Rv4LSdpV7kXbYTvxNrw24NzJJiag2nisYbUmEV8XbJEEboag98z+6KR5djhPPC4/oztoSJHOB2rpPXjv4VNwCAT0PvTKUo3gSY8rDja85DGugYqJ0c=
DISABLE_REVERSE_GEOCODING=false
REVERSE_GEOCODING_PRECISION=3
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://192.168.0.46:3001
IMMICH_SERVER_URL=http://192.168.0.46:3001
IMMICH_MACHINE_LEARNING_URL=http://192.168.0.48:3003
NODE_ENV=production
TZ=Europe/Berlin
EXTERNAL_PATH=/volume2/immich_extern

Reproduction steps

1. Running immich
2. Check logs learning machine
3. Cannot find (/.config/matplotlib)
...

Additional information

I cannot find the folder (/.config/matplotlib)

mertalev commented 10 months ago

We don't actually use matplotlib, so you can just ignore that.