Skip to content

[Android] Free Up Space does not move backed-up photos and videos to device's trash #25822

Description

@wazhanudin

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

It does not move backed-up photos and videos to my device's trash to free up space.

Settings > Advanced > Media Management Access > Allowed

Step 6 in "Reproduction steps"

Image

Step 7 in "Reproduction steps"

Image

Step 8 in "Reproduction steps"

Image

The OS that Immich Server is running on

Debian 12 LXC - Docker

Version of Immich Server

v2.5.2

Version of Immich Mobile App

v2.5.2

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Samsung A73, Android 16

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    extends:
      file: hwaccel.transcoding.yml
      service: nvenc # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:2283
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

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

  redis:
    container_name: immich_redis
    #image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884
    image: docker.io/valkey/valkey:9@sha256:fb8d272e529ea567b9bf1302245796f21a2672b8368ca3fcb938ac334e613c8f
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    #image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0rmnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:

Your .env content

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

# https://github.com/immich-app/immich/discussions/8220#discussioncomment-8888427
#MACHINE_LEARNING_HOST=0.0.0.0
IMMICH_HOST=0.0.0.0

CMAKE_CUDA_ARCHITECTURES=50
OMP_NUM_THREADS=4

# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/immich

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

# Connection secret for postgres. You should change it to a random password
#TYPESENSE_API_KEY=****
DB_PASSWORD=****

# 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_>
TZ=Asia/Kuala_Lumpur

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=****
DB_USERNAME=****
DB_DATABASE_NAME=****

REDIS_HOSTNAME=****

Reproduction steps

Immich on Android

  1. Tap Profile Picture on the top right.
  2. Free Up Space.
  3. Choose which folder to Keep on device.
  4. Select cut off date to 1 year from today date.
  5. Continue, "8113 assets (created before Feb 2, 2025) to remove from your local device. Photos will remain accessible from the Immich app."
  6. Move to device trash.
  7. Confirm, "Immich found 8113 assets (created before Feb 2, 2025) to remove from your local device. Photos will remain accessible from the Immich app."
  8. After 2 minutes, nothing happen. Double check at Gallery, all assets still there. Try, restart mobile phone & immich docker. Repeat step 1. Same result.

Relevant log output

Additional information

The issue is present in v2.4.1 and persists in v2.5.2. I cannot confirm the exact version where this started, as I am just now testing this feature for the first time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions