LycheeOrg / Lychee-Docker

Docker image for Lychee
https://lycheeorg.github.io/
165 stars 56 forks source link

Lychee won't work after host reboot #201

Closed Szparki closed 2 months ago

Szparki commented 2 months ago

The host on what my Lychee containers were running was rebooted. Now when I run a docker compose up I get into the initial setup mode (upon accessing Lychee's URL I get redirected to to my-lychee-url//install). If I proceed with the install I do get a not very useful error. Any ideas?

lychee installer lychee error

---
services:
  lychee_db:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: lychee_db
    restart: always
    networks:
      - private
    volumes:
      - /data/lychee/db:/config
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=lychee
      - MYSQL_USER=lychee
      - MYSQL_PASSWORD=password
      - PGID=990
      - PUID=1005
      - TZ=Etc/UTC
    mem_limit: 500m
    memswap_limit: 1024m
    mem_reservation: 100m
    cpus: 1

  lychee:
    image: lscr.io/linuxserver/lychee:4.13.0
    #image: lscr.io/linuxserver/lychee:5.0.0
    container_name: lychee
    restart: always
    networks:
      - private
    volumes:
      - /data/lychee/config:/config
      - /data/lychee/pictures:/pictures
      - /data/lychee/logs:/logs
    environment:
      - DB_HOST=lychee_db
      - DB_USERNAME=lychee
      - DB_PASSWORD=password
      - DB_DATABASE=lychee
      - DB_PORT=3306
      - DB_CONNECTION=mysql
      - PGID=1005
      - PUID=1005
      - TZ=Etc/UTC
      - PHP_TZ=UTC
    #  - APP_KEY=appkey
    #  - APP_URL=http://localhost:8086
    #  - APP_FORCE_HTTPS=false
    ports:
      - 8080:80
    mem_limit: 500m
    memswap_limit: 1024m
    mem_reservation: 200m
    cpus: 1
    depends_on:
      - lychee_db

networks:
  private:
ildyria commented 2 months ago

Can you look at your .env and check that the values are what you expect ?

Also you are using Linux server image, not ours. So please see on their side what is going wrong. We cannot help you more than that.

Szparki commented 2 months ago

Than you @ildyria ! ./config/.env is empty

ildyria commented 2 months ago

./config/.env is empty

that is probably the reason then. :/

Szparki commented 2 months ago

I tried adding lines manually to .env but didn't help. I opened a topic with linuxservers.io, in case anyone is interested you can find it here https://discourse.linuxserver.io/t/lychee-wont-work-after-host-reboot/9004