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

Uploads over 12MB silently fail, with no errors in log. #2207

Closed
purplefoxdigital opened this issue Jan 17, 2024 · 6 comments · Fixed by #2140
Closed

Uploads over 12MB silently fail, with no errors in log. #2207

purplefoxdigital opened this issue Jan 17, 2024 · 6 comments · Fixed by #2140
Labels
bug Something isn't working

Comments

@purplefoxdigital
Copy link

purplefoxdigital commented Jan 17, 2024

Detailed description of the problem [REQUIRED]

Any photo uploaded over 12MB will not upload completely, and will instead place a file of exactly 12MB in public\livewire-tmp\ and then silently fail with no errors.

Note: Does not happen when LIVEWIRE_ENABLED=false is set in .env.

Steps to reproduce the issue

Steps to reproduce the behavior:

  1. Go to any album
  2. Click on upload photos
  3. Add any photo over 12MB
  4. Upload bar will jump to some point below 100%, Upload box will dissapear (possibly related to #2129?), and no photo will show up on the album.

Output of the diagnostics [REQUIRED]

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

    Diagnostics
    -----------
        Warning: Dropbox import not working. dropbox_key is empty.
        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
     
    System Information
    ------------------
        Lychee Version (release):                5.0.3
        DB Version:                              5.0.3
        
        composer install:                        --no-dev
        APP_ENV:                                 production
        APP_DEBUG:                               false
        APP_URL:                                 set
        APP_DIR:                                 default
        LOG_VIEWER_ENABLED:                      true
        LIVEWIRE_ENABLED:                        true
        
        System:                                  Linux
        PHP Version:                             8.2.14
        PHP User agent:                          Lychee/4 (https://lycheeorg.github.io/)
        Timezone:                                UTC
        Max uploaded file size:                  500M
        Max post size:                           500M
        Livewire chunk size:                     12.00 MB
        Max execution time:                      200
        MySQL Version:                           10.5.23-MariaDB-cll-lve
        
        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:                                 050003
        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
        image_overlay_type:                      desc
        default_license:                         reserved
        compression_quality:                     80
        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
        site_owner:                              TobieMutt
        landing_title:                           
        landing_subtitle:                        
        sm_facebook_url:                       
        sm_flickr_url:                     
        sm_twitter_url:              
        sm_instagram_url:
        sm_youtube_url:                         
        landing_background:                   
        site_title:                              TobieMutt
        footer_show_copyright:                   1
        site_copyright_begin:                    2023
        site_copyright_end:                      2024
        footer_additional_text:                  
        footer_show_social_media:                0
        search_public:                           0
        SL_enable:                               0
        SL_for_admin:                            0
        recent_age:                              1
        grants_download:                         1
        photos_wraparound:                       1
        map_display:                             0
        zip64:                                   1
        map_display_public:                      0
        map_provider:                            Wikimedia
        force_32bit_ids:                         1
        map_include_subalbums:                   0
        update_check_every_days:                 3
        has_exiftool:                            0
        share_button_visible:                    0
        import_via_symlink:                      0
        has_ffmpeg:                              0
        location_decoding:                       0
        location_decoding_timeout:               30
        location_show:                           0
        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
        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
        ffmpeg_path:                             
        ffprobe_path:                            
        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
        back_button_url:                         /

Browser and system

Firefox and Windows 10

@ildyria
Copy link
Member

ildyria commented Jan 18, 2024

I'll need to double check that one. That is slightly upsetting.

@ildyria ildyria added the bug Something isn't working label Jan 18, 2024
@lilian-pouliquen
Copy link

I can confirm the bug: when I upload a media, for example, a video, which is over 12 MB, the box disappears before the item gets to 100%.
I noticed that if you press F12 to look at the JS console, the file is actually being uploaded. Once the media is uploaded (in the console), it stops the upload, even if there are other media in the queue. Refreshing the page will make the uploaded photo/video appears.

I hope this can help!

@ildyria
Copy link
Member

ildyria commented Jan 24, 2024

I noticed that if you press F12 to look at the JS console, the file is actually being uploaded. Once the media is uploaded (in the console), it stops the upload, even if there are other media in the queue. Refreshing the page will make the uploaded photo/video appears.

I still haven't had time to investigate fully this issue. That being said I am working on adding a feedback processing. See: #2239
Lychee v5 no longer displays the "processing" step once the upload is completed.

@purplefoxdigital
Copy link
Author

purplefoxdigital commented Jan 24, 2024

I noticed that if you press F12 to look at the JS console, the file is actually being uploaded. Once the media is uploaded (in the console), it stops the upload, even if there are other media in the queue. Refreshing the page will make the uploaded photo/video appears.

No matter how long I wait after the file has appeared to finish uploading, the console just shows waiting... and refreshing doesn't make the photo appear.

It doesn't seem to be uploading all the chunks, however. I've tested with files varying from just over 12mb to well over 100, it always seems to miss the last chunk, that or it isn't showing up in the console for whatever reason.

@deppchef
Copy link

deppchef commented Feb 2, 2024

I can confirm the bug: when I upload a media, for example, a video, which is over 12 MB, the box disappears before the item gets to 100%. I noticed that if you press F12 to look at the JS console, the file is actually being uploaded. Once the media is uploaded (in the console), it stops the upload, even if there are other media in the queue. Refreshing the page will make the uploaded photo/video appears.

Hi,
looks like i'm encountering the same issue. the upload bars of some picture get stuck and at some point the box disappears and not all images have been uploaded afterwards.

additionally i get the following error message on the diagnosis page:
Error: sys_get_temp_dir() is not readable, this will prevent you from uploading pictures.
i thought it might be connected to this...

setting livewire to "false" solved the issue for me as well (even with the error message)

I'm on a hosted webserver and only have FTP access (no SSH / shell) - so my options are a bit limited...

@ildyria
Copy link
Member

ildyria commented Feb 3, 2024

Found the bug. Fix will be available soon (TM). :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

4 participants