Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photos won't show up in gallery #190

Open
tiritibambix opened this issue Feb 24, 2024 · 11 comments
Open

Photos won't show up in gallery #190

tiritibambix opened this issue Feb 24, 2024 · 11 comments

Comments

@tiritibambix
Copy link

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
Copy link
Author

Am I the only one facing this issue ?

@ildyria
Copy link
Member

ildyria commented Feb 26, 2024

No, I think that bug is related to LycheeOrg/Lychee#2207 and LycheeOrg/Lychee#2129

The fix is LycheeOrg/Lychee#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
Copy link
Author

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
Copy link

WIIASD commented Mar 24, 2024

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

@hhanzo1
Copy link

hhanzo1 commented Jul 15, 2024

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
Copy link
Member

ildyria commented Jul 15, 2024

@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
Copy link

hhanzo1 commented Jul 15, 2024

@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
Copy link

hhanzo1 commented Jul 20, 2024

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

@ildyria
Copy link
Member

ildyria commented Jul 20, 2024

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
Copy link

huuscript commented Aug 20, 2024

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

@tiritibambix
Copy link
Author

tiritibambix commented Sep 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants