Lychee-Docker icon indicating copy to clipboard operation
Lychee-Docker copied to clipboard

Photos won't show up in gallery

Open Tiritibambix opened this issue 1 year ago • 11 comments

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 avatar Feb 24 '24 14:02 Tiritibambix

Am I the only one facing this issue ?

Tiritibambix avatar Feb 26 '24 17:02 Tiritibambix

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

ildyria avatar Feb 26 '24 18:02 ildyria

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...

Tiritibambix avatar Feb 26 '24 20:02 Tiritibambix

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

WIIASD avatar Mar 24 '24 21:03 WIIASD

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.

hhanzo1 avatar Jul 15 '24 06:07 hhanzo1

@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?

ildyria avatar Jul 15 '24 09:07 ildyria

@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 avatar Jul 15 '24 11:07 hhanzo1

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

hhanzo1 avatar Jul 20 '24 05:07 hhanzo1

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

ildyria avatar Jul 20 '24 06:07 ildyria

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

huuscript avatar Aug 20 '24 09:08 huuscript

I still don't know what to do to fix this. I need to upload a lot of pictures to a lot of different albums. Spotting missing ones to reupload them is a real pia.

I also miss a lot the "import from server" function and don't know how to use

A more efficient command line alternative is available:
php artisan lychee:sync

😭

Edit: I did a fresh install of 4.9.0 and everything is better for me

Tiritibambix avatar Sep 12 '24 16:09 Tiritibambix