tismondo
tismondo
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
But genuinely - thank you for your help. You helped me identify being non-root as the issue and after re-rolling with root I seem to be making progress getting this up and running.
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
My docker-foo is not very strong so yes, after taking a moment to remember the container names I gathered which container applies to each of those points, but it's not clear to me where/how in the compose.yaml to paste/mount them. That's certainly my failing since I'm not a pro at this. I just didn't know where to start decoding how to fit those pieces together.
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
Ehhhh I've fiddled with this so long, I'm sort of at the end of my rope and would like to make some progress. I can see it's not meant to be run as non-root. I'll just re-roll it with root privileges and hope everything is fine.
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
the FAQ doesn't specify which container needs those mount points. Do I mount them at the bottom of the compose.yaml?
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
I haven't added those mount points
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
So I have set the user in all of the containers
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
redis has all the same permissions as the other 3 containers.
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
It looks like a permission error but I don't understand how to fix it.
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
meanwhile the redis log just keeps repeating
1:M 17 Apr 2025 11:02:03.050 * 1 changes in 3600 seconds. Saving...

1:M 17 Apr 2025 11:02:03.050 * Background saving started by pid 2562

2562:C 17 Apr 2025 11:02:03.051 # Failed opening the RDB file dump.rdb (in server root dir /data) for saving: Permission denied

1:M 17 Apr 2025 11:02:03.151 # Background saving error
1:M 17 Apr 2025 11:02:03.050 * 1 changes in 3600 seconds. Saving...

1:M 17 Apr 2025 11:02:03.050 * Background saving started by pid 2562

2562:C 17 Apr 2025 11:02:03.051 # Failed opening the RDB file dump.rdb (in server root dir /data) for saving: Permission denied

1:M 17 Apr 2025 11:02:03.151 # Background saving error
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
I'm sure this must have something to do with it --
ReplyError: ERR Error running script (call to f_b4cd4bbdf096cd8d06246080315ae81c56e05a46): @user_script:222: @user_script: 222: -MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

at parseError (/usr/src/app/node_modules/redis-parser/lib/parser.js:179:12)

at parseType (/usr/src/app/node_modules/redis-parser/lib/parser.js:302:14) {


command: {

name: 'evalsha',

args: [

'b4cd4bbdf096cd8d06246080315ae81c56e05a46',

'10',

'immich_bull:smartSearch:wait',

'immich_bull:smartSearch:active',

'immich_bull:smartSearch:prioritized',

'immich_bull:smartSearch:events',

'immich_bull:smartSearch:stalled',

'immich_bull:smartSearch:limiter',

'immich_bull:smartSearch:delayed',

'immich_bull:smartSearch:paused',

'immich_bull:smartSearch:meta',

'immich_bull:smartSearch:pc',

'immich_bull:smartSearch:',

'1744887581386',



,

<Buffer de 00 03 a5 74 6f 6b 65 6e d9 27 38 38 39 30 64 61 31 39 2d 32 64 65 62 2d 34 30 65 65 2d 62 35 36 30 2d 63 62 32 31 61 38 35 32 33 32 35 62 3a 35 30 ... 25 more bytes>

]

}

}
ReplyError: ERR Error running script (call to f_b4cd4bbdf096cd8d06246080315ae81c56e05a46): @user_script:222: @user_script: 222: -MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error.

at parseError (/usr/src/app/node_modules/redis-parser/lib/parser.js:179:12)

at parseType (/usr/src/app/node_modules/redis-parser/lib/parser.js:302:14) {


command: {

name: 'evalsha',

args: [

'b4cd4bbdf096cd8d06246080315ae81c56e05a46',

'10',

'immich_bull:smartSearch:wait',

'immich_bull:smartSearch:active',

'immich_bull:smartSearch:prioritized',

'immich_bull:smartSearch:events',

'immich_bull:smartSearch:stalled',

'immich_bull:smartSearch:limiter',

'immich_bull:smartSearch:delayed',

'immich_bull:smartSearch:paused',

'immich_bull:smartSearch:meta',

'immich_bull:smartSearch:pc',

'immich_bull:smartSearch:',

'1744887581386',



,

<Buffer de 00 03 a5 74 6f 6b 65 6e d9 27 38 38 39 30 64 61 31 39 2d 32 64 65 62 2d 34 30 65 65 2d 62 35 36 30 2d 63 62 32 31 61 38 35 32 33 32 35 62 3a 35 30 ... 25 more bytes>

]

}

}
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
Happy to paste logs but there are four containers and they're quite.... verbose! I'd appreciate some guidance about which containers would be helpful to know more about.
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
System: Synology DS1019+ running portainer with 16gb ram. Immich: 1.131.3
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
env
UPLOAD_LOCATION=/volume1/docker/immich
DB_DATA_LOCATION=/volume2/immichdb/db
TZ=Asia/Seoul
IMMICH_VERSION=release
DB_PASSWORD=*****
DB_USERNAME=*****
DB_DATABASE_NAME=immich
UPLOAD_LOCATION=/volume1/docker/immich
DB_DATA_LOCATION=/volume2/immichdb/db
TZ=Asia/Seoul
IMMICH_VERSION=release
DB_PASSWORD=*****
DB_USERNAME=*****
DB_DATABASE_NAME=immich
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".

redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8
user: 1026:100
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
user: 1026:100
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --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_interval: 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
restart: always

volumes:
model-cache:

redis:
container_name: immich_redis
image: docker.io/redis:6.2-alpine@sha256:148bb5411c184abd288d9aaed139c98123eeb8824c5d3fce03cf721db58066d8
user: 1026:100
healthcheck:
test: redis-cli ping || exit 1
restart: always

database:
container_name: immich_postgres
image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
user: 1026:100
volumes:
# Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --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_interval: 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
restart: always

volumes:
model-cache:
23 replies
IImmich
Created by tismondo on 4/17/2025 in #help-desk-support
Immich running but web upload errors: "unable to upload file".
#
# WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
#
# 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.

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: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
user: 1026:100
env_file:
- stack.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 -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# 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, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
user: 1026:100
env_file:
- stack.env
restart: always
healthcheck:
disable: false
#
# WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
#
# 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.

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: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
user: 1026:100
env_file:
- stack.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 -[armnn, cuda, rocm, openvino, rknn] to the image tag.
# Example tag: ${IMMICH_VERSION:-release}-cuda
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
# 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, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
user: 1026:100
env_file:
- stack.env
restart: always
healthcheck:
disable: false
23 replies