404 for every image after upgrade to docker v6 #2606
-
Lychee versionv6.0.0 Which PHP version are you using?PHP 8.2 Detailed description of the problemHi, V5 instance had no warning, correct permissions and no issue whatsoever. v6 says in diagnostics "/uploads/small2x is owned by group www-data, but should be owned by one out of users, lychee" but lychee@836861f59027:/var/www/html/Lychee$ ls -alh /uploads/
total 442K
drwxrwsr-x 13 lychee lychee 13 Jun 13 23:07 .
drwxr-xr-x 1 root root 4.0K Oct 27 15:17 ..
drwxrwsr-x 2 lychee lychee 819 Oct 27 14:22 big
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 import
drwxrwsr-x 2 lychee lychee 1.6K Mar 6 2024 medium
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 medium2x
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 original
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 raw
drwxrwsr-x 2 lychee lychee 1.6K Mar 6 2024 small
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 small2x
drwxrwsr-x 2 lychee lychee 1.6K Mar 6 2024 thumb
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 thumb2x
drwxrwsr-x 2 lychee lychee 3 Mar 6 2024 tracks
lychee@836861f59027:/var/www/html/Lychee$ I've spent the last 3 hours debugging this issue but no matter what I do everything stays broken 😢 Steps to reproduce the issue
Newly uploaded images are displayed correctly, but previously uploaded ones are not. Diagnostics [REQUIRED]Diagnostics
-----------
Warning: /v**********************lic/uploads/ is owned by group www-data, but should be owned by one out of users, lychee
Warning: /v**********************lic/uploads/ has permissions 0755, but should have 2775
Error: /v**********************lic/uploads/ is not writable by users, lychee
Warning: /v**********************lic/uploads/thumb is owned by group www-data, but should be owned by one out of users, lychee
Warning: /v**********************lic/uploads/thumb has permissions 0755, but should have 2775
Error: /v**********************lic/uploads/thumb is not writable by users, lychee
Warning: /v**********************lic/uploads/original is owned by group www-data, but should be owned by one out of users, lychee
Warning: /v**********************lic/uploads/original has permissions 0755, but should have 2775
Error: /v**********************lic/uploads/original is not writable by users, lychee
Warning: /v**********************lic/uploads/medium2x is owned by group www-data, but should be owned by one out of users, lychee
Warning: /v**********************lic/uploads/medium2x has permissions 0755, but should have 2775
Error: /v**********************lic/uploads/medium2x is not writable by users, lychee
Warning: /v**********************lic/uploads/small2x is owned by group www-data, but should be owned by one out of users, lychee
Warning: /v**********************lic/uploads/small2x has permissions 0755, but should have 2775
Error: /v**********************lic/uploads/small2x is not writable by users, lychee
Warning: 5 more directories with wrong owner
Warning: 5 more directories with wrong permissions
Warning: 5 more inaccessible directories
Warning: You may experience problems when uploading a photo of large size. Take a look in the FAQ for details.
Warning: You may experience problems when uploading a photo of large size. Take a look in the FAQ for details.
Info: Latest version of PHP is 8.3
Info: git (software) is not available.
Info: Have you considered supporting Lychee? :)
System Information
------------------
Lychee Version (tag): v6.0.0 (d25cd64) -- Up to date (-2.3496148528666E-6 years ago).
DB Version: 6.0.0
composer install: --no-dev
APP_ENV: production
APP_DEBUG: false
APP_URL: set
APP_DIR: default
LOG_VIEWER_ENABLED: true
VUEJS_ENABLED: true
PHOTO_PIPES: true
System: Linux
PHP Version: 8.2.24
PHP User agent: Lychee/4 (https://lycheeorg.github.io/)
Timezone: Europe/Paris
Max uploaded file size: 2M
Max post size: 8M
Chunk size: 0.00 B
Max execution time: 0
PostgreSQL Version: PostgreSQL 17.0 (Debian 17.0-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
exec() Available: yes
Imagick Available: 1
Imagick Enabled: 1
Imagick Version: 1691
GD Version: 2.3.3
Number of foreign key: 12 found.
Config Information
------------------
version: 060000
check_for_updates: 0
sorting_photos_col: taken_at
sorting_photos_order: DESC
sorting_albums_col: max_taken_at
sorting_albums_order: DESC
imagick: 1
skip_duplicates: 0
small_max_width: 0
small_max_height: 360
medium_max_width: 1920
medium_max_height: 1080
lang: en
image_overlay_type: exif
default_license: reserved
compression_quality: 90
grants_full_photo_access: 1
delete_imported: 0
mod_frame_enabled: 1
mod_frame_refresh: 30
thumb_2x: 1
small_2x: 1
medium_2x: 1
landing_page_enable: 0
force_migration_in_production: 0
search_public: 1
hide_version_number: 1
SL_enable: 0
SL_for_admin: 0
recent_age: 1
grants_download: 0
photos_wraparound: 1
map_display: 1
zip64: 1
map_display_public: 1
map_provider: Wikimedia
force_32bit_ids: 0
map_include_subalbums: 0
update_check_every_days: 3
has_exiftool: 1
share_button_visible: 0
import_via_symlink: 0
has_ffmpeg: 1
location_decoding: 0
location_decoding_timeout: 30
location_show: 1
location_show_public: 0
rss_enable: 0
rss_recent_days: 7
rss_max_items: 100
prefer_available_xmp_metadata: 0
editor_enabled: 1
lossless_optimization: 0
swipe_tolerance_x: 150
swipe_tolerance_y: 250
local_takestamp_video_formats: .avi|.mov
log_max_num_line: 1000
unlock_password_photos_with_url_param: 0
nsfw_visible: 1
nsfw_blur: 0
nsfw_warning: 0
nsfw_warning_admin: 0
nsfw_banner_override:
map_display_direction: 1
album_subtitle_type: oldstyle
upload_processing_limit: 4
new_photos_notification: 0
legacy_id_redirection: 1
zip_deflate_level: 6
default_album_protection: 1
allow_username_change: 1
album_decoration: layers
album_decoration_orientation: row
auto_fix_orientation: 1
use_job_queues: 0
random_album_id: starred
use_last_modified_date_when_no_exif_date: 0
layout: justified
date_format_photo_thumb: M j, Y, g:i:s A e
date_format_photo_overlay: M j, Y, g:i:s A e
date_format_sidebar_uploaded: M j, Y, g:i:s A e
date_format_sidebar_taken_at: M j, Y, g:i:s A e
date_format_hero_min_max: F Y
date_format_hero_created_at: M j, Y, g:i:s A T
date_format_album_thumb: M Y
upload_chunk_size: 0
nsfw_banner_blur_backdrop: 0
search_pagination_limit: 1000
search_minimum_length_required: 4
photo_layout_justified_row_height: 320
photo_layout_masonry_column_width: 300
photo_layout_grid_column_width: 250
photo_layout_square_column_width: 200
photo_layout_gap: 12
display_thumb_album_overlay: always
display_thumb_photo_overlay: hover
default_album_thumb_aspect_ratio: 1/1
use_album_compact_header: 0
login_button_position: left
back_button_enabled: 0
back_button_text: Return to Home
current_job_processing_visible: 1
SA_random_thumbs: 0
job_processing_queue_visible: 1
login_required: 0
enable_unsorted: 1
enable_starred: 1
enable_recent: 1
enable_on_this_day: 1
login_required_root_only: 1
dark_mode_enabled: 1
show_keybinding_help_popup: 0
show_keybinding_help_button: 1
disable_se_call_for_actions: 0
enable_se_preview: 0
slideshow_timeout: 5
keep_original_untouched: 1
hide_nsfw_in_smart_albums_and_search: 1 Browser & System [REQUIRED]Up-to-date Fedora 40 and Firefox. Application running on Docker inside an up-to-date Debian 12 VM. Please confirm (incomplete submissions will not be addressed)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I smell something related to user permissions on your docker install / docker compose? |
Beta Was this translation helpful? Give feedback.
Well, looks like it's fixed 🥳 the issue was that
root
wasn't allowed to write in the NFS share.For anyone coming across this issue in the future:
By default, NFS share "squash"
root
privileges, androot
gets mapped as a guest user, from the share's point of view.You can use an option called
no_root_squash
on bare NFS setups, which corresponds to amaproot
user and group permissions in TrueNAS such as:This was the fix for me, no errors anymore in boot script, and no issue found in diagnostics!
Thank you again, I really love Lychee, and I've been using it for quite a few years, keep up the good work 💯