Orientation operation, returned error 500 #4217
-
I want to flip an image using the orientation operation, calling the API: which returns a 500 Internal Server Error. Version: April 20, 2024. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Please enable trace log mode and provide the full logs: |
Beta Was this translation helpful? Give feedback.
-
log:
|
Beta Was this translation helpful? Give feedback.
-
So you don't use our Docker image? A dependency is probably missing then. We can't help with that within the scope of a bug ticket. |
Beta Was this translation helpful? Give feedback.
-
Yes, I'm not using Docker, |
Beta Was this translation helpful? Give feedback.
-
I'm having an issue with the same symptoms. I'm trying to change the image orientation, but it fails with status code 500 and the message These are the server logs shown after the request:
Here's the docker-compose settings: x-service: &service
deploy:
resources:
limits:
cpus: "1"
memory: 512M
environment: &env
LANG: C.UTF-8
PGID: 1000
PUID: 1000
TZ: America/Sao_Paulo
restart: unless-stopped
stop_grace_period: 15s
volumes:
photos:
driver: local
driver_opts:
type: cifs
device: //${SMB_IP}/photos
o: username=${SMB_USERNAME},password=${SMB_PASSWORD},iocharset=utf8,rw
services:
mariadb:
<<: *service
image: mariadb:11
container_name: mariadb
command:
- --innodb-buffer-pool-size=256M
- --transaction-isolation=READ-COMMITTED
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --max-connections=50
- --innodb-rollback-on-timeout=OFF
- --innodb-lock-wait-timeout=120
environment:
<<: *env
MARIADB_AUTO_UPGRADE: 1
MARIADB_INITDB_SKIP_TZINFO: 1
MARIADB_DATABASE: mariadb
MARIADB_USER: ${MARIADB_USERNAME}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
volumes:
- ${SETTINGS_PATH}/mariadb:/var/lib/mysql
photoprism:
<<: *service
image: photoprism/photoprism:latest
container_name: photoprism
depends_on:
- mariadb
deploy:
resources:
limits:
cpus: "8.0"
memory: 4G
environment:
<<: *env
PHOTOPRISM_WORKERS: 8
PHOTOPRISM_ADMIN_PASSWORD: ${PHOTOPRISM_ADMIN_PASSWORD}
PHOTOPRISM_HTTP_COMPRESSION: gzip
PHOTOPRISM_DATABASE_DRIVER: mysql
PHOTOPRISM_DATABASE_SERVER: mariadb:3306
PHOTOPRISM_DATABASE_NAME: photoprism
PHOTOPRISM_DATABASE_USER: ${PHOTOPRISM_DB_USERNAME}
PHOTOPRISM_DATABASE_PASSWORD: ${PHOTOPRISM_DB_PASSWORD}
PHOTOPRISM_LOG_LEVEL: trace
ports:
- 2342:2342/tcp
volumes:
- photos:/photoprism/originals
- ${SETTINGS_PATH}/photoprism/storage:/photoprism/storage
working_dir: /photoprism I was tinkering in the container console and decided to run the exiftool command there, and this is the output:
So the CLI seems to work. Write permissions and filesystem seems ok. Yet, the same command, when invoked from the application returns an error 🤔 |
Beta Was this translation helpful? Give feedback.
Nailed it! I added
uid=1000
(the same PUID of the service) to the cifs options and it worked!