LycheeOrg / Lychee-Docker

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

Photos won't show up in gallery #190

Open tiritibambix opened 6 months ago

tiritibambix commented 6 months ago

Hello.

I've been experiencing random errors since last upgrade.

When I upload photos to an album, some of them just won't show up. I have to double check, list the ones missing and re-upload them.

I checked the logs but I found literally nothing about this.

Here's my docker-compose:

version: '3'

services:
  lychee_db:
    container_name: lychee_db
    image: mariadb:11
    environment:
      - MYSQL_ROOT_PASSWORD=**********
      - MYSQL_DATABASE=lychee
      - MYSQL_USER=lychee
      - MYSQL_PASSWORD=**********
    expose: 
      - 3306
    volumes:
      - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Lychee/mysql:/var/lib/mysql
    networks:
      - lychee
    restart: unless-stopped

  lychee:
    image: lycheeorg/lychee
    container_name: lychee
    ports:
      - 6996:80
    volumes:
      - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Lychee/lychee/conf:/conf
      - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Lychee/lychee/uploads:/uploads
      - /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/Lychee/lychee/sym:/sym
    networks:
      - lychee
    environment:
      - PUID=998
      - PGID=100
      - PHP_TZ=Europe/Paris
      - TIMEZONE=Europe/Paris
      - APP_URL=https://my.domain.tld
      - DB_CONNECTION=mysql
      - DB_HOST=lychee_db
      - DB_PORT=3306
      - DB_DATABASE=lychee
      - DB_USERNAME=lychee
      - DB_PASSWORD=**********
      - STARTUP_DELAY=30
      - TRUSTED_PROXIES=*
    restart: unless-stopped
    depends_on:
      - lychee_db

networks:
  lychee:

volumes:
  mysql:

My NginxProxyManager settings for this domain:

fastcgi_param HTTPS on;

How can I fix that please ? Thanks for your help.

tiritibambix commented 5 months ago

Am I the only one facing this issue ?

ildyria commented 5 months ago

No, I think that bug is related to https://github.com/LycheeOrg/Lychee/issues/2207 and https://github.com/LycheeOrg/Lychee/issues/2129

The fix is https://github.com/LycheeOrg/Lychee/pull/2140 However the team is so slow that we don't have anybody to review complex pull requests. :|

You can either, edit .env and set ENABLE_LIVEWIRE=false or try to use

  lychee:
    image: lycheeorg/lychee:alpha
tiritibambix commented 5 months ago

Thank you for your answer. Don't know what I'm doing wrong but it doesn't fix it for me.

That's a shame you guys are short in working hands. If I knew codding, I would gladly help. But I just barely know how to deploy a container in docker.

Shouldn't you post on Reddit / Lemmy to recruit to your team ? Lychee is just such a fine app that deserves the best...

WIIASD commented 5 months ago

Same issue. Changing .env and pulling alpha container didn't fix the issue..

hhanzo1 commented 1 month ago

With my demo photo album upload yesterday, I did not encounter this issue.

Today when I put Lychee into production with a larger set of album uploads (originally bulk downloaded from flickr), I started getting this issue. It's strange: delete the problem photo and re-upload doesn't work.

Which version did this issue appear?

Maybe I could pull an older version (docker image) which doesn't have this issue until the fix is deployed.

Thanks.

ildyria commented 1 month ago

@pablo808 It is very unclear to me what the issue could be in your case. Did you check the logs?

I am using the latest version without any problems.

delete the problem photo and re-upload doesn't work

That should not be the case.

Maybe I could pull an older version (docker image) which doesn't have this issue until the fix is deployed.

Well you will need to downgrade your DB to the correct version (which is by no mean easy). And you assume there is something to fix... But honestly, I do not know what. It is like saying the Piano is broken... Please fix, but what is broken ? Is the key missing? Is the hammer missing? Is a string missing? Is a pedal missing? Is the tampon missing?

hhanzo1 commented 1 month ago

@pablo808 It is very unclear to me what the issue could be in your case. Did you check the logs?

I am using the latest version without any problems.

delete the problem photo and re-upload doesn't work

That should not be the case.

@ildyria I decided to put in the extra effort and build from source. I can confirm these errors do not appear anymore.

I'm going to start import my 10k flickr photos. I am glad I can create a self hosted flickr mirror site using Lychee and finally leave flickr for good. :-)

Thank you for maintaining this application.

hhanzo1 commented 1 month ago

I created a build Lychee stack shell script which may help people who wants to try this alternative. It can be found here

ildyria commented 1 month ago

I created a build Lychee stack shell script which may help people who wants to try this alternative. It can be found here

You have one left over url here: https://github.com/hhanzo1/build-lychee/blob/1b7889b066dbc88ea9609c472bbf2a0121e89b6e/build-lychee-stack.sh

huuscript commented 2 days ago

i set up 2 container image: lycheeorg/lychee:v4.9.0 - work fine when add test images image: lycheeorg/lychee:latest - images import is there but show up as empty space

IMG_1181

can not downgrade with external mariaDB

image will show if add APP_URL: http:// your url