[BUG] Mobile app upload doesn't work (RHEL 9) #887

Closed
opened 2026-02-04 23:19:36 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @fwsmit on GitHub (May 25, 2023).

The bug

Uploading files from mobile doesn't work. The progress bar of the upload does indicate photos being uploaded, but I don't see any photos appearing in the web interface. The server does not indicate any disk IO either. In the backup screen of the app the number of backed up images doesn't increase.

The OS that Immich Server is running on

RHEL 9.2

Version of Immich Server

1.57.1

Version of Immich Mobile App

1.57.1 build.80

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

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:z
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    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:z
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    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:z
      - model-cache:/cache
    env_file:
      - .env
    environment:
      - NODE_ENV=production
    restart: always

  immich-web:
    container_name: immich_web
    image: ghcr.io/immich-app/immich-web:release
    entrypoint: ["/bin/sh", "./entrypoint.sh"]
    env_file:
      - .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:
      - .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:

Your .env content

###################################################################################
# Database
###################################################################################

DB_HOSTNAME=immich_postgres
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE_NAME=immich

# Optional Database settings:
# DB_PORT=5432

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

REDIS_HOSTNAME=immich_redis

# Optional Redis settings:

# Note: these parameters are not automatically passed to the Redis Container
# to do so, please edit the docker-compose.yml file as well. Redis is not configured
# via environment variables, only redis.conf or the command line

# REDIS_PORT=6379
# REDIS_DBINDEX=0
# REDIS_PASSWORD=
# REDIS_SOCKET=

###################################################################################
# Upload File Location
#
# This is the location where uploaded files are stored.
###################################################################################

UPLOAD_LOCATION=/home/immich/gallery


###################################################################################
# Typesense
###################################################################################
TYPESENSE_API_KEY=
# TYPESENSE_ENABLED=false


PUBLIC_LOGIN_PAGE_MESSAGE=

####################################################################################
# Alternative Service Addresses - Optional
#
# This is an advanced feature for users who may be running their immich services on different hosts.
# It will not change which address or port that services bind to within their containers, but it will change where other services look for their peers.
# Note: immich-microservices is bound to 3002, but no references are made
####################################################################################

IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003

Reproduction steps

Log in and try to backup your photos

Additional information

I've added :z to all paths in the docker-compose.yml file. This is to make it compatible with SELinux. I'm using podman-compose instead of docker-compose.

Web upload is working fine. I've managed to upload one of the >700 photos from the album.

First reported in https://github.com/immich-app/immich/issues/2547#issuecomment-1562507798. But after restarting the server and trying again with the newest version of the app, no server crashes appear in the logs

Logs:
Immich_server

[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [NestFactory] Starting Nest application...
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +71ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] DownloadModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +2ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +15ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +237ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] AlbumModule dependencies initialized +8ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] TagModule dependencies initialized +1ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] AssetModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] InfraModule dependencies initialized +6ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] DomainModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:07 AM     LOG [InstanceLoader] AppModule dependencies initialized +13ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] AppController {/}: +494ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/refresh-config, POST} route +4ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] AlbumController {/album}: +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album, GET} route +11ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] APIKeyController {/api-key}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/api-key, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/api-key, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/api-key/:id, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/api-key/:id, PUT} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/api-key/:id, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] AssetController {/asset}: +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/map-marker, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] AuthController {/auth}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/login, POST} route +2ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/admin-sign-up, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/devices, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/devices, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/devices/:id, DELETE} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/validateToken, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/change-password, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/auth/logout, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] JobController {/jobs}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/jobs, GET} route +11ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/jobs/:jobId, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] OAuthController {/oauth}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/oauth/mobile-redirect, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/oauth/config, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/oauth/callback, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/oauth/link, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/oauth/unlink, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] PartnerController {/partner}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/partner, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/partner/:id, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/partner/:id, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] SearchController {/search}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/search, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/search/config, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/search/explore, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] ServerInfoController {/server-info}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/server-info, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/server-info/ping, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/server-info/version, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/server-info/stats, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] SharedLinkController {/share}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/share, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/share/me, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/share/:id, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/share/:id, DELETE} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/share/:id, PATCH} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] SystemConfigController {/system-config}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/system-config, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/system-config/defaults, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/system-config, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/system-config/storage-template-options, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] UserController {/user}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/info/:userId, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/me, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/count, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/:userId, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/:userId/restore, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/profile-image, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/user/profile-image/:userId, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] PersonController {/person}: +5ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/person, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/person/:id, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/person/:id, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/person/:id/thumbnail, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/person/:id/assets, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] AssetController {/asset}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/upload, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/download/:assetId, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/download-files, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/download-library, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/file/:assetId, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/thumbnail/:assetId, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/curated-objects, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/curated-locations, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/search-terms, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/search, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/count-by-time-bucket, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/count-by-user-id, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/stat/archive, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/time-bucket, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/:deviceId, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/assetById/:assetId, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/:assetId, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/check, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/exist, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/shared-link, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/shared-link/add, PATCH} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/asset/shared-link/remove, PATCH} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] TagController {/tag}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/tag, POST} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/tag, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/tag/:id, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/tag/:id, PATCH} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/tag/:id, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RoutesResolver] AlbumController {/album}: +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/count-by-user-id, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId/users, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId/assets, PUT} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId, GET} route +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId/assets, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId/user/:userId, DELETE} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId, PATCH} route +7ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/:albumId/download, GET} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [RouterExplorer] Mapped {/album/create-shared-link, POST} route +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [SearchService] Running bootstrap
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [TypesenseRepository] Schema up to date: assets/assets-v7
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [TypesenseRepository] Schema up to date: albums/albums-v1
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [TypesenseRepository] Schema up to date: faces/faces-v1
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [TypesenseRepository] Alias mapping: [{"collection_name":"faces-v1","name":"faces"},{"collection_name":"albums-v1","name":"albums"},{"collection_name":"assets-v7","name":"assets"}]
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [TypesenseRepository] Collections needing migration: {"assets":false,"albums":false,"faces":false}
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [NestApplication] Nest application successfully started +27ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [ImmichServer] Running Immich Server in PRODUCTION environment - version 1.57.1 - Listening on port: 3001
[Nest] 1  - 05/25/2023, 11:10:08 AM    WARN [ImmichServer] Machine learning is enabled
[Nest] 1  - 05/25/2023, 11:10:08 AM    WARN [ImmichServer] Search is enabled

immich_microservices

[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [NestFactory] Starting Nest application...
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +72ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] ConfigModule dependencies initialized +15ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +170ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] InfraModule dependencies initialized +12ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] DomainModule dependencies initialized +0ms
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [InstanceLoader] MicroservicesModule dependencies initialized +1ms
[Nest] 1  - 05/25/2023, 11:10:08 AM    WARN [MetadataExtractionProcessor] Reverse geocoding is enabled
[Nest] 1  - 05/25/2023, 11:10:08 AM     LOG [MetadataExtractionProcessor] Initializing Reverse Geocoding
[Nest] 1  - 05/25/2023, 11:10:25 AM     LOG [MetadataExtractionProcessor] Reverse Geocoding Initialized
[Nest] 1  - 05/25/2023, 11:10:25 AM     LOG [NestApplication] Nest application successfully started +40ms
[Nest] 1  - 05/25/2023, 11:10:25 AM     LOG [ImmichMicroservice] Running Immich Microservices in PRODUCTION environment - version 1.57.1 - Listening on port: 3002

immich_redis

1:C 25 May 2023 11:10:00.375 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 25 May 2023 11:10:00.376 # Redis version=6.2.12, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 25 May 2023 11:10:00.376 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 25 May 2023 11:10:00.376 * monotonic clock: POSIX clock_gettime
1:M 25 May 2023 11:10:00.377 * Running mode=standalone, port=6379.
1:M 25 May 2023 11:10:00.377 # Server initialized
1:M 25 May 2023 11:10:00.377 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:M 25 May 2023 11:10:00.377 * Ready to accept connections
1:M 25 May 2023 11:16:55.771 * 100 changes in 300 seconds. Saving...
1:M 25 May 2023 11:16:55.771 * Background saving started by pid 16
16:C 25 May 2023 11:16:55.781 * DB saved on disk
16:C 25 May 2023 11:16:55.782 * RDB: 0 MB of memory used by copy-on-write
1:M 25 May 2023 11:16:55.872 * Background saving terminated with success

immich_postgres

PostgreSQL Database directory appears to contain a database; Skipping initialization

2023-05-25 11:10:01.907 UTC [1] LOG:  starting PostgreSQL 14.8 (Debian 14.8-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
2023-05-25 11:10:01.908 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2023-05-25 11:10:01.908 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2023-05-25 11:10:01.925 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2023-05-25 11:10:01.945 UTC [22] LOG:  database system was shut down at 2023-05-25 11:09:25 UTC
2023-05-25 11:10:01.956 UTC [1] LOG:  database system is ready to accept connections
Originally created by @fwsmit on GitHub (May 25, 2023). ### The bug Uploading files from mobile doesn't work. The progress bar of the upload does indicate photos being uploaded, but I don't see any photos appearing in the web interface. The server does not indicate any disk IO either. In the backup screen of the app the number of backed up images doesn't increase. ### The OS that Immich Server is running on RHEL 9.2 ### Version of Immich Server 1.57.1 ### Version of Immich Mobile App 1.57.1 build.80 ### Platform with the issue - [ ] Server - [ ] Web - [X] Mobile ### Your docker-compose.yml content ```YAML 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:z env_file: - .env environment: - NODE_ENV=production 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:z env_file: - .env environment: - NODE_ENV=production 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:z - model-cache:/cache env_file: - .env environment: - NODE_ENV=production restart: always immich-web: container_name: immich_web image: ghcr.io/immich-app/immich-web:release entrypoint: ["/bin/sh", "./entrypoint.sh"] env_file: - .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: - .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: ``` ### Your .env content ```Shell ################################################################################### # Database ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME= DB_PASSWORD= DB_DATABASE_NAME=immich # Optional Database settings: # DB_PORT=5432 ################################################################################### # Redis ################################################################################### REDIS_HOSTNAME=immich_redis # Optional Redis settings: # Note: these parameters are not automatically passed to the Redis Container # to do so, please edit the docker-compose.yml file as well. Redis is not configured # via environment variables, only redis.conf or the command line # REDIS_PORT=6379 # REDIS_DBINDEX=0 # REDIS_PASSWORD= # REDIS_SOCKET= ################################################################################### # Upload File Location # # This is the location where uploaded files are stored. ################################################################################### UPLOAD_LOCATION=/home/immich/gallery ################################################################################### # Typesense ################################################################################### TYPESENSE_API_KEY= # TYPESENSE_ENABLED=false PUBLIC_LOGIN_PAGE_MESSAGE= #################################################################################### # Alternative Service Addresses - Optional # # This is an advanced feature for users who may be running their immich services on different hosts. # It will not change which address or port that services bind to within their containers, but it will change where other services look for their peers. # Note: immich-microservices is bound to 3002, but no references are made #################################################################################### IMMICH_WEB_URL=http://immich-web:3000 IMMICH_SERVER_URL=http://immich-server:3001 IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003 ``` ### Reproduction steps ```bash Log in and try to backup your photos ``` ### Additional information I've added `:z` to all paths in the docker-compose.yml file. This is to make it compatible with SELinux. I'm using podman-compose instead of docker-compose. Web upload is working fine. I've managed to upload one of the >700 photos from the album. First reported in https://github.com/immich-app/immich/issues/2547#issuecomment-1562507798. But after restarting the server and trying again with the newest version of the app, no server crashes appear in the logs Logs: Immich_server ``` [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [NestFactory] Starting Nest application... [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +71ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] DownloadModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +2ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] ConfigModule dependencies initialized +15ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] BullModule dependencies initialized +1ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +237ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] AlbumModule dependencies initialized +8ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] TagModule dependencies initialized +1ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] AssetModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] InfraModule dependencies initialized +6ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] DomainModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:07 AM LOG [InstanceLoader] AppModule dependencies initialized +13ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] AppController {/}: +494ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/refresh-config, POST} route +4ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] AlbumController {/album}: +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album, GET} route +11ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] APIKeyController {/api-key}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/api-key, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/api-key, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/api-key/:id, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/api-key/:id, PUT} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/api-key/:id, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] AssetController {/asset}: +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/map-marker, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] AuthController {/auth}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/login, POST} route +2ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/admin-sign-up, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/devices, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/devices, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/devices/:id, DELETE} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/validateToken, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/change-password, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/auth/logout, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] JobController {/jobs}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/jobs, GET} route +11ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/jobs/:jobId, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] OAuthController {/oauth}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/oauth/mobile-redirect, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/oauth/config, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/oauth/callback, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/oauth/link, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/oauth/unlink, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] PartnerController {/partner}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/partner, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/partner/:id, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/partner/:id, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] SearchController {/search}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/search, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/search/config, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/search/explore, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] ServerInfoController {/server-info}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/server-info, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/server-info/ping, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/server-info/version, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/server-info/stats, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] SharedLinkController {/share}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/share, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/share/me, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/share/:id, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/share/:id, DELETE} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/share/:id, PATCH} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] SystemConfigController {/system-config}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/system-config, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/system-config/defaults, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/system-config, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/system-config/storage-template-options, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] UserController {/user}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/info/:userId, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/me, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/count, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/:userId, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/:userId/restore, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/profile-image, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/user/profile-image/:userId, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] PersonController {/person}: +5ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/person, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/person/:id, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/person/:id, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/person/:id/thumbnail, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/person/:id/assets, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] AssetController {/asset}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/upload, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/download/:assetId, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/download-files, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/download-library, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/file/:assetId, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/thumbnail/:assetId, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/curated-objects, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/curated-locations, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/search-terms, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/search, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/count-by-time-bucket, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/count-by-user-id, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/stat/archive, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/time-bucket, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/:deviceId, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/assetById/:assetId, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/:assetId, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/check, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/exist, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/shared-link, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/shared-link/add, PATCH} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/asset/shared-link/remove, PATCH} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] TagController {/tag}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/tag, POST} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/tag, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/tag/:id, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/tag/:id, PATCH} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/tag/:id, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RoutesResolver] AlbumController {/album}: +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/count-by-user-id, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId/users, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId/assets, PUT} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId, GET} route +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId/assets, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId/user/:userId, DELETE} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId, PATCH} route +7ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/:albumId/download, GET} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [RouterExplorer] Mapped {/album/create-shared-link, POST} route +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [SearchService] Running bootstrap [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [TypesenseRepository] Schema up to date: assets/assets-v7 [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [TypesenseRepository] Schema up to date: albums/albums-v1 [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [TypesenseRepository] Schema up to date: faces/faces-v1 [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [TypesenseRepository] Alias mapping: [{"collection_name":"faces-v1","name":"faces"},{"collection_name":"albums-v1","name":"albums"},{"collection_name":"assets-v7","name":"assets"}] [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [TypesenseRepository] Collections needing migration: {"assets":false,"albums":false,"faces":false} [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [NestApplication] Nest application successfully started +27ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [ImmichServer] Running Immich Server in PRODUCTION environment - version 1.57.1 - Listening on port: 3001 [Nest] 1 - 05/25/2023, 11:10:08 AM WARN [ImmichServer] Machine learning is enabled [Nest] 1 - 05/25/2023, 11:10:08 AM WARN [ImmichServer] Search is enabled ``` immich_microservices ``` [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [NestFactory] Starting Nest application... [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +72ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] ConfigModule dependencies initialized +15ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] BullModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] TypeOrmCoreModule dependencies initialized +170ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] TypeOrmModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] InfraModule dependencies initialized +12ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] DomainModule dependencies initialized +0ms [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [InstanceLoader] MicroservicesModule dependencies initialized +1ms [Nest] 1 - 05/25/2023, 11:10:08 AM WARN [MetadataExtractionProcessor] Reverse geocoding is enabled [Nest] 1 - 05/25/2023, 11:10:08 AM LOG [MetadataExtractionProcessor] Initializing Reverse Geocoding [Nest] 1 - 05/25/2023, 11:10:25 AM LOG [MetadataExtractionProcessor] Reverse Geocoding Initialized [Nest] 1 - 05/25/2023, 11:10:25 AM LOG [NestApplication] Nest application successfully started +40ms [Nest] 1 - 05/25/2023, 11:10:25 AM LOG [ImmichMicroservice] Running Immich Microservices in PRODUCTION environment - version 1.57.1 - Listening on port: 3002 ``` immich_redis ``` 1:C 25 May 2023 11:10:00.375 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 25 May 2023 11:10:00.376 # Redis version=6.2.12, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 25 May 2023 11:10:00.376 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 1:M 25 May 2023 11:10:00.376 * monotonic clock: POSIX clock_gettime 1:M 25 May 2023 11:10:00.377 * Running mode=standalone, port=6379. 1:M 25 May 2023 11:10:00.377 # Server initialized 1:M 25 May 2023 11:10:00.377 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 1:M 25 May 2023 11:10:00.377 * Ready to accept connections 1:M 25 May 2023 11:16:55.771 * 100 changes in 300 seconds. Saving... 1:M 25 May 2023 11:16:55.771 * Background saving started by pid 16 16:C 25 May 2023 11:16:55.781 * DB saved on disk 16:C 25 May 2023 11:16:55.782 * RDB: 0 MB of memory used by copy-on-write 1:M 25 May 2023 11:16:55.872 * Background saving terminated with success ``` immich_postgres ``` PostgreSQL Database directory appears to contain a database; Skipping initialization 2023-05-25 11:10:01.907 UTC [1] LOG: starting PostgreSQL 14.8 (Debian 14.8-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit 2023-05-25 11:10:01.908 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2023-05-25 11:10:01.908 UTC [1] LOG: listening on IPv6 address "::", port 5432 2023-05-25 11:10:01.925 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2023-05-25 11:10:01.945 UTC [22] LOG: database system was shut down at 2023-05-25 11:09:25 UTC 2023-05-25 11:10:01.956 UTC [1] LOG: database system is ready to accept connections ```
Author
Owner

@alextran1502 commented on GitHub (May 25, 2023):

Which phone model are you using? Can you help me test a scenario of taking a new photo on your phone, creating an album/folder, and putting that photo in? Then in Immich, choose only that newly created folder to upload to the server and see if it successfully upload

@alextran1502 commented on GitHub (May 25, 2023): Which phone model are you using? Can you help me test a scenario of taking a new photo on your phone, creating an album/folder, and putting that photo in? Then in Immich, choose only that newly created folder to upload to the server and see if it successfully upload
Author
Owner

@fwsmit commented on GitHub (May 25, 2023):

When trying to upload the new album, it never finishes. The logs still don't say anything. I will try to reinstall the server, since I haven't put any data on the server yet and I had originally installed it a few weeks ago.

@fwsmit commented on GitHub (May 25, 2023): When trying to upload the new album, it never finishes. The logs still don't say anything. I will try to reinstall the server, since I haven't put any data on the server yet and I had originally installed it a few weeks ago.
Author
Owner

@fwsmit commented on GitHub (May 30, 2023):

I've reinstalled the server and app and installed version 1.5.8. It still gets stuck uploading in the app, while the web upload works just fine.

So the reproduction steps are:

On Honor 10 (Android 10)

  • Create a photo album. I have one with 1 picture in it
  • Choose that folder in the backup screen (note that this screen takes a while to load and only when you search you are able to view albums)
  • Then click backup

Things seem to upload, but the backup never finishes.

I also tried selecting multiple albums and now one of the albums was uploaded and the other 2 not. The backup still doesn't finish.

When selecting more albums, I've managed 2 photos uploading, while the other ones all seem to get uploaded, but don't end up on the server.

@fwsmit commented on GitHub (May 30, 2023): I've reinstalled the server and app and installed version 1.5.8. It still gets stuck uploading in the app, while the web upload works just fine. So the reproduction steps are: On Honor 10 (Android 10) - Create a photo album. I have one with 1 picture in it - Choose that folder in the backup screen (note that this screen takes a while to load and only when you search you are able to view albums) - Then click backup Things seem to upload, but the backup never finishes. I also tried selecting multiple albums and now one of the albums was uploaded and the other 2 not. The backup still doesn't finish. When selecting more albums, I've managed 2 photos uploading, while the other ones all seem to get uploaded, but don't end up on the server.
Author
Owner

@fwsmit commented on GitHub (May 30, 2023):

If it helps, I can get you an immich account on this server for debugging purposes. There is nothing important on it currently. But I can also wait for #2567 to be finished and see if that improves the situation.

@fwsmit commented on GitHub (May 30, 2023): If it helps, I can get you an immich account on this server for debugging purposes. There is nothing important on it currently. But I can also wait for #2567 to be finished and see if that improves the situation.
Author
Owner

@alextran1502 commented on GitHub (May 30, 2023):

Things seem to upload, but the backup never finishes.

What is the behavior you see here? It reached 100% and stuck there?

@alextran1502 commented on GitHub (May 30, 2023): > Things seem to upload, but the backup never finishes. What is the behavior you see here? It reached 100% and stuck there?
Author
Owner

@fwsmit commented on GitHub (May 31, 2023):

I see all individual pictures upload to 100% and at the last picture it gets stuck

@fwsmit commented on GitHub (May 31, 2023): I see all individual pictures upload to 100% and at the last picture it gets stuck
Author
Owner

@fwsmit commented on GitHub (May 31, 2023):

Screenshot_20230531_120332_app.alextran.immich.jpg

Screenshot_20230531_120327_app.alextran.immich.jpg

@fwsmit commented on GitHub (May 31, 2023): ![Screenshot_20230531_120332_app.alextran.immich.jpg](https://github.com/immich-app/immich/assets/23078054/09a56da8-c07e-4d86-b33d-da71b48f3f4c) ![Screenshot_20230531_120327_app.alextran.immich.jpg](https://github.com/immich-app/immich/assets/23078054/20f75c5a-3a18-4d11-b635-fa909e5fc39c)
Author
Owner

@Ram-Z commented on GitHub (Jun 5, 2023):

Do you by any chance run an additional reverse proxy?

I was seeing similar issues and was about to report back. But since I currently have an additional weird setup of nginx forwarding requests through wireguard to a machine on my LAN, I'd try to bypass that first. And sure enough, connecting directly to immich in the LAN worked.

The nginx logs on my proxy server contained these errors.

nginx[1924480]: 2023/06/04 22:04:31 [error] 1924480#1924480: *3113 client intended to send too large chunked body: 984419+65536 bytes, [...]

Which led me to add client_max_body_size=50000M to my nginx.conf. This fixed the issue for me.

Here's the relevant parts of my nginx.conf:

server {
    server_name <snip>;

    # https://github.com/immich-app/immich/blob/main/nginx/templates/default.conf.template#L28
    client_max_body_size 50000M;

    location / {
        proxy_pass http://<snip>/;
        proxy_set_header Host              $http_host;
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # http://nginx.org/en/docs/http/websocket.html
        proxy_http_version 1.1;
        proxy_set_header   Upgrade    $http_upgrade;
        proxy_set_header   Connection "upgrade";
        proxy_redirect off;
    }
}
@Ram-Z commented on GitHub (Jun 5, 2023): Do you by any chance run an [additional reverse proxy](https://documentation.immich.app/docs/administration/reverse-proxy#adding-a-custom-reverse-proxy)? I was seeing similar issues and was about to report back. But since I currently have an additional weird setup of nginx forwarding requests through wireguard to a machine on my LAN, I'd try to bypass that first. And sure enough, connecting directly to immich in the LAN worked. The nginx logs on my proxy server contained these errors. ``` nginx[1924480]: 2023/06/04 22:04:31 [error] 1924480#1924480: *3113 client intended to send too large chunked body: 984419+65536 bytes, [...] ``` Which led me to add [`client_max_body_size=50000M`](https://github.com/immich-app/immich/blob/main/nginx/templates/default.conf.template#L28) to my `nginx.conf`. This fixed the issue for me. Here's the relevant parts of my `nginx.conf`: ```nginx server { server_name <snip>; # https://github.com/immich-app/immich/blob/main/nginx/templates/default.conf.template#L28 client_max_body_size 50000M; location / { proxy_pass http://<snip>/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # http://nginx.org/en/docs/http/websocket.html proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; } } ```
Author
Owner

@Stooovie commented on GitHub (Jun 17, 2023):

Same. Remainder decreases, Total increases, backed up stays constant.

Used storage stays constant - every once a while it increases by 0.1 GB and immediately returns.

Immich_log_2023-06-17T22:55:34.026621.csv

@Stooovie commented on GitHub (Jun 17, 2023): Same. Remainder decreases, Total increases, backed up stays constant. Used storage stays constant - every once a while it increases by 0.1 GB and immediately returns. [Immich_log_2023-06-17T22:55:34.026621.csv](https://github.com/immich-app/immich/files/11780069/Immich_log_2023-06-17T22.55.34.026621.csv)
Author
Owner

@fwsmit commented on GitHub (Jun 18, 2023):

Thanks, my issue was also caused by my reverse proxy. It was fixed by adding the client_max_body_size=50000M in the nginx config. I'll add a note in the documentation

@fwsmit commented on GitHub (Jun 18, 2023): Thanks, my issue was also caused by my reverse proxy. It was fixed by adding the `client_max_body_size=50000M` in the nginx config. I'll add a note in the documentation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#887