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

Upgrade from v4.13.0 to v5.0.2 break my lychee #2139

Closed
Claude-Alexandre opened this issue Dec 31, 2023 · 3 comments
Closed

Upgrade from v4.13.0 to v5.0.2 break my lychee #2139

Claude-Alexandre opened this issue Dec 31, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@Claude-Alexandre
Copy link

Claude-Alexandre commented Dec 31, 2023

Detailed description of the problem [REQUIRED]

*After upgrading from v4.13.0 to v5.0.2 my Lychee is broken and doesn't work. The pictures don't appear on the gallery. I'm using a docker installation on a synology behind the native nginx reverse proxy.
My installation on the v4.13.0 worked perfectly. To upgraded, I just changed the version number from v4.13.0 to v5.0.2.
I see no error in the logs of the container :

docker logs lychee -f

-------------------------------------
  _               _
 | |   _   _  ___| |__   ___  ___
 | |  | | | |/ __|  _ \ / _ \/ _ \
 | |__| |_| | (__| | | |  __/  __/
 |_____\__, |\___|_| |_|\___|\___|
       |___/

-------------------------------------
Lychee Version: 5.0.2 (release)
Lychee Commit:  33354a2
https://github.com/LycheeOrg/Lychee/commit/33354a2ce7cf700cc4ee537b7b8b94dfc1e84ad4
-------------------------------------
**** Make sure the /conf /uploads /sym /logs folders exist ****
**** Create the symbolic link for the /uploads folder ****
**** Create the symbolic link for the /sym folder ****
**** Create the symbolic link for the /logs folder ****
**** Copy the .env to /conf ****
**** Inject .env values ****
**** Generate the key (to make sure that cookies cannot be decrypted etc) ****

   INFO  Application key set successfully.

**** Migrate the database ****

   INFO  Running migrations.

  2023_09_24_110932_add_date_display_configurations ................ 15ms DONE
  2023_09_24_223901_add_config_livewire_chunk_size .................. 3ms DONE
  2023_09_24_233717_refactor_type_layout_livewire ................... 3ms DONE
  2023_09_25_123925_config_blur_nsfw ................................ 4ms DONE
  2023_10_01_143159_config_map_provider ............................. 3ms DONE
  2023_12_18_191723_config_public_search ........................... 20ms DONE
  2023_12_18_232500_config_pagination_search_limit .................. 3ms DONE
  2023_12_19_115547_search_characters_limit ......................... 3ms DONE
  2023_12_19_122408_add_positive_requirements ....................... 3ms DONE
  2023_12_20_180854_add_setting_height_width_gallery ................ 4ms DONE
  2023_12_23_160356_bump_version050000 .............................. 4ms DONE
  2023_12_25_115454_add_setting_display_thumb_overlay ............... 3ms DONE
  2023_12_27_163004_bump_version050001 .............................. 3ms DONE
  2023_12_28_144906_bump_version050002 .............................. 4ms DONE

**** Make sure user.css exists and symlink it ****
**** Make sure custom.js exists and symlink it ****
**** Create user and use PUID/PGID ****
 	User UID :	1026
 	User GID :	100
**** Make sure Laravel's log exists ****
**** Set Permissions ****
**** Start cron daemon ****
Starting periodic command scheduler: cron.
**** Setup complete, starting the server. ****
172.21.0.1 - - [31/Dec/2023:14:04:44 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:04:45 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:04:45 +0100] "GET / HTTP/1.1" 302 382 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:45 +0100] "GET /gallery HTTP/1.1" 200 29431 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:45 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:48 +0100] "GET /gallery HTTP/1.1" 200 29425 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:48 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:48 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:49 +0100] "GET /gallery HTTP/1.1" 200 29424 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:49 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:49 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:50 +0100] "GET /gallery HTTP/1.1" 200 29423 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:50 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:50 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:51 +0100] "GET /gallery HTTP/1.1" 200 29423 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:51 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:52 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:54 +0100] "GET /gallery HTTP/1.1" 200 29435 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:54 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:04:54 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:05:03 +0100] "GET /gallery HTTP/1.1" 200 29424 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:05:03 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:05:03 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:05:07 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
127.0.0.1 - - [31/Dec/2023:14:05:37 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:05:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:05:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:05:59 +0100] "POST /livewire/update HTTP/1.1" 200 3203 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:05:59 +0100] "POST /livewire/update HTTP/1.1" 200 69089 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:06:03 +0100] "GET /gallery/7AkVmfT9E5HJ9nj48d0K_2dB HTTP/1.1" 200 39090 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:06:08 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:06:12 +0100] "GET /gallery HTTP/1.1" 200 31013 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:06:19 +0100] "GET /gallery/KXcIm3UnwNIbK3Qu5bAtKY9h HTTP/1.1" 200 49238 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:06:22 +0100] "GET /gallery HTTP/1.1" 200 31012 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:06:38 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:06:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:06:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
127.0.0.1 - - [31/Dec/2023:14:07:08 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
127.0.0.1 - - [31/Dec/2023:14:07:38 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:07:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:07:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
127.0.0.1 - - [31/Dec/2023:14:08:08 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
127.0.0.1 - - [31/Dec/2023:14:08:38 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:08:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:08:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
127.0.0.1 - - [31/Dec/2023:14:09:08 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
127.0.0.1 - - [31/Dec/2023:14:09:38 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:09:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:09:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
127.0.0.1 - - [31/Dec/2023:14:10:08 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:10:14 +0100] "GET /gallery HTTP/1.1" 200 29422 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:14 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:14 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:14 +0100] "GET /gallery HTTP/1.1" 200 29427 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:14 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:15 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:22 +0100] "GET /gallery HTTP/1.1" 200 29423 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:10:26 +0100] "GET / HTTP/1.1" 302 378 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
172.21.0.1 - - [31/Dec/2023:14:10:26 +0100] "GET /gallery HTTP/1.1" 200 29420 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
172.21.0.1 - - [31/Dec/2023:14:10:26 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
172.21.0.1 - - [31/Dec/2023:14:10:30 +0100] "GET /gallery HTTP/1.1" 200 29426 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:10:39 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:10:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:10:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:10:44 +0100] "GET /gallery HTTP/1.1" 200 29396 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
127.0.0.1 - - [31/Dec/2023:14:11:09 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:11:22 +0100] "GET /gallery HTTP/1.1" 200 29417 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
172.21.0.1 - - [31/Dec/2023:14:11:22 +0100] "GET /gallery HTTP/1.1" 200 29424 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
172.21.0.1 - - [31/Dec/2023:14:11:23 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
172.21.0.1 - - [31/Dec/2023:14:11:23 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "10.225.1.20"
127.0.0.1 - - [31/Dec/2023:14:11:39 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:11:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:11:43 +0100] "GET /gallery HTTP/1.1" 200 116682 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:11:51 +0100] "GET /gallery HTTP/1.1" 200 29428 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:11:51 +0100] "GET /img/no_images.svg HTTP/1.1" 200 337 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:11:51 +0100] "GET /livewire/livewire.js?id=f121a5df HTTP/1.1" 200 320657 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:12:09 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
127.0.0.1 - - [31/Dec/2023:14:12:39 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:12:43 +0100] "POST /livewire/update HTTP/1.1" 200 3203 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:12:43 +0100] "POST /livewire/update HTTP/1.1" 200 69089 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:12:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:12:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:12:48 +0100] "POST /livewire/update HTTP/1.1" 200 6008 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:12:50 +0100] "GET /settings HTTP/1.1" 200 32016 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:13:01 +0100] "POST /livewire/update HTTP/1.1" 200 1566 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:13:01 +0100] "POST /livewire/update HTTP/1.1" 200 6017 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:13:01 +0100] "GET /gallery HTTP/1.1" 200 31010 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:13:02 +0100] "POST /livewire/update HTTP/1.1" 200 6009 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
172.21.0.1 - - [31/Dec/2023:14:13:04 +0100] "GET /profile HTTP/1.1" 200 27305 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:13:09 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:13:15 +0100] "GET /settings HTTP/1.1" 200 32011 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:13:39 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:13:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:13:43 +0100] "GET /gallery HTTP/1.1" 200 116689 "http://gallery.xxxxxxx.xxx/gallery" "Blackbox Exporter/0.24.0" "172.21.0.27"
172.21.0.1 - - [31/Dec/2023:14:13:53 +0100] "GET /all-settings HTTP/1.1" 200 33545 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "-"
127.0.0.1 - - [31/Dec/2023:14:14:09 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
127.0.0.1 - - [31/Dec/2023:14:14:39 +0100] "GET / HTTP/1.1" 302 354 "-" "curl/7.88.1" "-"
172.21.0.1 - - [31/Dec/2023:14:14:43 +0100] "GET / HTTP/1.1" 302 378 "-" "Blackbox Exporter/0.24.0" "172.21.0.27"

When I access the gallery directly with the docker exposed port I got :
image
We can clearly see than the browser try to load the image with the localhost adresse but the service is on other IP on my network. Did I miss a configuratiton I have to add ?
When I try to access the gallery through the reverse proxy it's even worst the brother make request on http:// reather than the https://
image
Is there a parametter I must change to make the application using https rerquest ?

Steps to reproduce the issue

Steps to reproduce the behavior:

  1. Docker compose
  lychee:
    image: lycheeorg/lychee:${LYCHEE_TAG}
    container_name: lychee
    restart: unless-stopped
    networks:
      - internal
    depends_on:
      - mariadb
    environment:
      PUID: 1026
      PGID: 100
      TZ: Europe/Zurich
      DB_CONNECTION: mysql
      DB_HOST: mariadb
      DB_DATABASE: lychee
      DB_USERNAME: lychee
      DB_PORT: 3306
      DB_PASSWORD: ${LYCHEE_DB_PASSWD}
    volumes:
      - /volume1/docker/lychee/config:/config
      - /volume1/docker/lychee/sym:/sym
      - /volume1/docker/lychee/uploads:/uploads
      - /volume1/docker/lychee/etc/nginx/conf.d:/etc/nginx/conf.d
    ports:
      - ${LYCHEE_PORT}:80
    labels:
      logging: promtail
      ch.oopx.docker.container.repository: "docker.io"
      ch.oopx.tag.regex: ^v\d+\.\d+\.\d+$
      ch.oopx.tag.prefix: 'v'

file /etc/nginx/conf.d/custom.conf

server {
    client_max_body_size 1000M;
}

Screenshots
If applicable, add screenshots to help explain your problem.

Output of the diagnostics [REQUIRED]

(Settings => Diagnostics or https://example.com/Diagnostics or php artisan lychee:diagnostics)

    Diagnostics
    -----------
    Error: Wrong property for layout, expected square or justified or masonry or grid, got unjustified.
    Warning: Dropbox import not working. dropbox_key is empty.
    Error: APP_URL does not match the current url. This will break WebAuthn authentication.
    Error: APP_URL does not match the current url. This will prevent images to be properly displayed.
    Info: Latest version of PHP is 8.3
    Warning: Default timezone not properly set; you might experience strange results when importing photos without explicit EXIF timezone
    Warning: git (software) is not available.
    Foreign key: access_permissions.user_id     → users.id             : CASCADE
    Foreign key: albums.parent_id               → albums.id            : RESTRICT
    Foreign key: albums.id                      → base_albums.id       : RESTRICT
    Foreign key: albums.cover_id                → photos.id            : CASCADE
    Foreign key: base_albums.owner_id           → users.id             : RESTRICT
    Foreign key: jobs_history.owner_id          → users.id             : RESTRICT
    Foreign key: photos.album_id                → albums.id            : RESTRICT
    Foreign key: photos.owner_id                → users.id             : RESTRICT
    Foreign key: size_variants.photo_id         → photos.id            : RESTRICT
    Foreign key: sym_links.size_variant_id      → size_variants.id     : RESTRICT
    Foreign key: tag_albums.id                  → base_albums.id       : RESTRICT

    System Information
    ------------------
    You must have administrator rights to see this.

    Config Information
    ------------------
    You must have administrator rights to see this.

Browser and system

Chrrome
If I miss somthing I'm more happy to see my mistake :-)

Thanks

Thank you for this great software you do a great job. I love using it. Best regards and happy new year.

@ildyria
Copy link
Member

ildyria commented Dec 31, 2023

We "fixed" your problem in #2124. 😃

warn

@ildyria ildyria closed this as completed Dec 31, 2023
@ildyria ildyria added the duplicate This issue or pull request already exists label Dec 31, 2023
@Claude-Alexandre
Copy link
Author

Hello @ildyria ,
Thank you so much for the quick reply. I thought it was probably just configuration. I added the parametters below and it's now working perfectly.
Great job on the upgrade by the way.


APP_URL: https://xxxx.xxx
TRUSTED_PROXIES: '*'

If I can make a proposition, it would be nice to have this information on the docker hub page. I'm sure it can help other.
Big thanks anyway have a nice day and happy new year.
❤️

@jessienab
Copy link

jessienab commented May 5, 2024

Hello @ildyria , Thank you so much for the quick reply. I thought it was probably just configuration. I added the parametters below and it's now working perfectly. Great job on the upgrade by the way.


APP_URL: https://xxxx.xxx
TRUSTED_PROXIES: '*'

If I can make a proposition, it would be nice to have this information on the docker hub page. I'm sure it can help other. Big thanks anyway have a nice day and happy new year. ❤️

Hi,
I realize this is an old closed issue.

'*' is too broad for me, what worked was adding the internal Docker IP network as a trusted proxy.
188.xx.xx.xx represents the actual reverse proxy server (my VPS).

- APP_FORCE_HTTPS=true
- TRUSTED_PROXIES='188.xx.xx.xx,10.89.xx.xx/24'

Also to add, my nginx reverse proxy settings

    proxy_set_header Host $host;
    proxy_set_header Scheme $scheme;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header X-Forwarded-Proto https;
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

(I imagine some of those headers may not be necessary)

Not sure if this information should be mentioned somewhere, specific for the Docker README for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants