LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.35k stars 299 forks source link

Needs more error information #1914

Closed xieguigang closed 1 year ago

xieguigang commented 1 year ago

Detailed description of the problem [REQUIRED]

Hi, i get stuck for upload new image to lychee gallery: just can not upload the image to lychee album. When i upload a new image to the gallery, lychee always say Failed, with no more useful error information prompt. I can not figure out how to solve this problem.

image image

Steps to reproduce the issue

Steps to reproduce the behavior:

  1. get lychee from latest git source
  2. run php composer
  3. setup lychee environment
  4. can not upload a new image to any album

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)

here is the diagnostics output that may be helpful:

Diagnostics
-----------
Warning: /mnt/ossfs/lychee/upload/ has permissions 0777, but should have 2775
Warning: /mnt/ossfs/lychee/public/sym/ has permissions 0777, but should have 2775
Warning: '/mnt/ossfs/lychee/public/dist/user.css' does not exist or has insufficient read/write privileges.
Warning: Dropbox import not working. dropbox_key is empty.
Info: Latest version of PHP is 8.2
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            : NO ACTION
Foreign key: albums.id                      ¡ú base_albums.id       : NO ACTION
Foreign key: albums.cover_id                ¡ú photos.id            : CASCADE
Foreign key: base_albums.owner_id           ¡ú users.id             : NO ACTION
Foreign key: jobs_history.owner_id          ¡ú users.id             : NO ACTION
Foreign key: photos.album_id                ¡ú albums.id            : NO ACTION
Foreign key: photos.owner_id                ¡ú users.id             : NO ACTION
Foreign key: size_variants.photo_id         ¡ú photos.id            : NO ACTION
Foreign key: sym_links.size_variant_id      ¡ú size_variants.id     : NO ACTION
Foreign key: tag_albums.id                  ¡ú base_albums.id       : NO ACTION

System Information
------------------
Lychee Version (git):                    master (a52fd8e) -- Up to date (25 minutes ago).
DB Version:                              4.9.4

composer install:                        --no-dev
APP_ENV:                                 production
APP_DEBUG:                               false

System:                                  Linux
PHP Version:                             8.1.20
PHP User agent:                          Lychee/4 (https://lycheeorg.github.io/)
Timezone:                                UTC
Max uploaded file size:                  256M
Max post size:                           256M
Max execution time:                      0
MySQL Version:                           8.0.28

exec() Available:                        yes
Imagick Available:                       1
Imagick Enabled:                         1
Imagick Version:                         1809
GD Version:                              2.3.3
Number of foreign key:                   11 found.

Config Information
------------------
version:                                 040904
check_for_updates:                       0
sorting_photos_col:                      taken_at
sorting_photos_order:                    ASC
sorting_albums_col:                      max_taken_at
sorting_albums_order:                    ASC
imagick:                                 1
skip_duplicates:                         0
small_max_width:                         0
small_max_height:                        360
medium_max_width:                        1920
medium_max_height:                       1080
lang:                                    en
layout:                                  1
image_overlay_type:                      desc
default_license:                         CC-BY-NC-SA-4.0
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:                     1
site_owner:                              i@xieguigang.me
landing_title:                           xieguigang
landing_subtitle:                        Cats, Dogs & Humans Photography
sm_facebook_url:                         https://www.facebook.com/JohnSmith
sm_flickr_url:                           https://www.flickr.com/JohnSmith
sm_twitter_url:                          https://www.twitter.com/JohnSmith
sm_instagram_url:                        https://instagram.com/JohnSmith
sm_youtube_url:                          https://www.youtube.com/JohnSmith
landing_background:                      dist/cat.webp
site_title:                              Lychee@xieguigang.me
footer_show_copyright:                   1
site_copyright_begin:                    1989
site_copyright_end:                      2089
footer_additional_text:                  i@xieguigang.me
footer_show_social_media:                0
public_search:                           1
SL_enable:                               1
SL_for_admin:                            1
recent_age:                              1
grants_download:                         1
photos_wraparound:                       1
map_display:                             1
zip64:                                   1
map_display_public:                      1
map_provider:                            Wikimedia
force_32bit_ids:                         1
map_include_subalbums:                   1
update_check_every_days:                 3
has_exiftool:                            1
share_button_visible:                    1
import_via_symlink:                      0
has_ffmpeg:                              1
location_decoding:                       1
location_decoding_timeout:               30
location_show:                           1
location_show_public:                    1
rss_enable:                              1
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
public_photos_hidden:                    0
new_photos_notification:                 0
legacy_id_redirection:                   1
zip_deflate_level:                       6
SA_enabled:                              1
default_album_protection:                1
album_decoration:                        layers
album_decoration_orientation:            row
allow_username_change:                   1
auto_fix_orientation:                    1
use_job_queues:                          0
random_album_id:                         starred
use_last_modified_date_when_no_exif_date: 0

Browser and system

xieguigang commented 1 year ago

Problem solved by set debug option to 1 in .env file.😅