linuxserver / docker-lychee

GNU General Public License v3.0
45 stars 16 forks source link

I can't upload any picture - 500 Internal Server Error #50

Closed ghost closed 3 years ago

ghost commented 3 years ago

I have fresh instance created with docker-compose file:

version: "3"
services:
  mariadb:
    image: ghcr.io/linuxserver/mariadb:arm64v8-latest
    container_name: lychee_mariadb
    restart: always
    volumes:
      - /mnt/ops_appdata/lychee_mariadb:/config
    environment:
      - MYSQL_ROOT_PASSWORD=rootpassword
      - MYSQL_DATABASE=lychee
      - MYSQL_USER=lychee
      - MYSQL_PASSWORD=dbpassword
      - PGID=1000
      - PUID=1000
      - TZ=Europe/London
  lychee:
    image: ghcr.io/linuxserver/lychee:arm64v8-latest
    container_name: lychee
    restart: always
    depends_on:
      - mariadb
    volumes:
      - /mnt/ops_appdata/lychee_config:/config
      - /mnt/multimedia_pictures:/pictures
    environment:
      - DB_HOST=mariadb
      - DB_USERNAME=lychee
      - DB_PASSWORD=dbpassword
      - DB_DATABASE=lychee
      - DB_PORT=3306
      - PGID=1000
      - PUID=1000
      - TZ=Europe/London
    ports:
      - 80:80

While I'm trying to upload any image, there is an error saying: Server returned an unknown response After inspecting browsers console I just find: 500 Internal Server Error

Could you please help me debug this problem?

Roxedus commented 3 years ago

Please add the missing information we ask for, the list is in the issue template.

ghost commented 3 years ago

Sorry for being not consistent. I figured it out myself, just wanted to share in case someone has the same problem. What I did wrong was mapping one of the docker volumes directly on the mount point of the partition I've created, particularly for the purpose of Lychee and that was the cause of an issue with permissions. What I changed in docker compose file was the mapping to the sub folder of that mount point, which subfolder didn't exist, so I just let Lychee (or docker compose) to create it and all the permissions are correct.

Everything works fine, please close that ticket.