LycheeOrg / Lychee-Docker

Docker image for Lychee
https://lycheeorg.github.io/
166 stars 55 forks source link

Filesystem:: write Stream failed #141

Closed dazkarieh closed 8 months ago

dazkarieh commented 1 year ago
image

how this issue happen?

2023-02-12 08:31:44 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed
2023-02-12 08:31:44 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by
2023-02-12 08:31:22 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed
2023-02-12 08:31:22 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by
2023-02-12 08:31:02 UTC -- notice  -- App\Http\Controllers\SessionController::login -- 162 -- User (admin) has logged in from 10.10.10.160
2023-02-12 08:25:19 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed
2023-02-12 08:25:19 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by
2023-02-12 08:25:01 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed
2023-02-12 08:25:01 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by
2023-02-12 08:25:01 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed
2023-02-12 08:25:01 UTC -- error   -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by
2023-02-12 08:22:31 UTC -- error   -- App\Image\Files\NativeLocalFile::assertIsSupportedMediaOrAcceptedRaw -- 338 -- File format not supported
2023-02-12 08:21:42 UTC -- error   -- App\Image\Files\NativeLocalFile::assertIsSupportedMediaOrAcceptedRaw -- 338 -- File format not supported
2023-02-12 08:19:29 UTC -- notice  -- App\Http\Controllers\SessionController::login -- 162 -- User (admin) has logged in from 10.10.10.160
2023-02-12 08:19:16 UTC -- error   -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found
2023-02-12 08:19:02 UTC -- error   -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found
2023-02-12 08:18:46 UTC -- error   -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found
2023-02-12 08:18:42 UTC -- error   -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found
2023-02-12 08:18:35 UTC -- error   -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found
2023-02-12 08:18:16 UTC -- notice  -- up -- 43 -- lychee_albums does not exist!
2023-02-12 08:18:16 UTC -- notice  -- up -- 66 -- lychee_settings does not exist!

here's my diagnostics information

Diagnostics
    -------
    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: 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: 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
    Foreign key: user_base_album.base_album_id  → base_albums.id       : CASCADE
    Foreign key: user_base_album.user_id        → users.id             : CASCADE

    System Information
    --------------
    Lychee Version (git):                    ?? (60c6f34) -- Could not compare.
    DB Version:                              4.7.0

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

    System:                                  Linux
    PHP Version:                             8.1.12
    PHP User agent:                          Lychee/4 (https://lycheeorg.github.io/)
    Timezone:                                UTC
    Max uploaded file size:                  100M
    Max post size:                           100M
    Max execution time:                      3600
    MySQL Version:                           10.10.3-MariaDB-1:10.10.3+maria~ubu2204

    exec() Available:                        yes
    Imagick Available:                       1
    Imagick Enabled:                         1
    Imagick Version:                         1691
    GD Version:                              2.3.3
    Number of foreign key:                   11 found.
    Lychee total space:                      158.12 MB
    Upload folder space:                     8.00 B
    System total space:                      402.30 GB
    System free space:                       361.56 GB (89%)

    Config Information
    --------------
    version:                                 040700
    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:                                    简体中文
    layout:                                  1
    image_overlay_type:                      desc
    default_license:                         none
    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
    site_owner:                              John Smith
    landing_title:                           John Smith
    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 v4
    footer_show_copyright:                   1
    site_copyright_begin:                    2019
    site_copyright_end:                      2019
    footer_additional_text:                  
    footer_show_social_media:                0
    public_search:                           0
    SL_enable:                               0
    SL_for_admin:                            0
    public_recent:                           0
    recent_age:                              1
    public_starred:                          0
    grants_download:                         0
    photos_wraparound:                       1
    map_display:                             0
    zip64:                                   1
    map_display_public:                      0
    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
    public_photos_hidden:                    1
    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
qwerty287 commented 1 year ago

Plesse provide more information: Does this happen with any image? Did it work once? What's in the logs?

dazkarieh commented 1 year ago
  1. Plesse update to 4.7.1 (won't fix the issue though)
  2. Provide more information: Does this happen with any image? Did it work once? What's in the logs?

2023-02-12 08:31:44 UTC -- error -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed 2023-02-12 08:31:44 UTC -- error -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by 2023-02-12 08:31:22 UTC -- error -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed 2023-02-12 08:31:22 UTC -- error -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by 2023-02-12 08:31:02 UTC -- notice -- App\Http\Controllers\SessionController::login -- 162 -- User (admin) has logged in from 10.10.10.160 2023-02-12 08:25:19 UTC -- error -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed 2023-02-12 08:25:19 UTC -- error -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by 2023-02-12 08:25:01 UTC -- error -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed 2023-02-12 08:25:01 UTC -- error -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by 2023-02-12 08:25:01 UTC -- error -- App\Image\Files\FlysystemFile::write -- 79 -- Filesystem::writeStream failed 2023-02-12 08:25:01 UTC -- error -- App\Image\Files\FlysystemFile::write -- 85 -- Filesystem::writeStream failed; caused by 2023-02-12 08:22:31 UTC -- error -- App\Image\Files\NativeLocalFile::assertIsSupportedMediaOrAcceptedRaw -- 338 -- File format not supported 2023-02-12 08:21:42 UTC -- error -- App\Image\Files\NativeLocalFile::assertIsSupportedMediaOrAcceptedRaw -- 338 -- File format not supported 2023-02-12 08:19:29 UTC -- notice -- App\Http\Controllers\SessionController::login -- 162 -- User (admin) has logged in from 10.10.10.160 2023-02-12 08:19:16 UTC -- error -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found 2023-02-12 08:19:02 UTC -- error -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found 2023-02-12 08:18:46 UTC -- error -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found 2023-02-12 08:18:42 UTC -- error -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found 2023-02-12 08:18:35 UTC -- error -- App\Http\Middleware\AdminUserStatus::handle -- 57 -- Admin user not found 2023-02-12 08:18:16 UTC -- notice -- up -- 43 -- lychee_albums does not exist! 2023-02-12 08:18:16 UTC -- notice -- up -- 66 -- lychee_settings does not exist!

dazkarieh commented 1 year ago

d

Plesse provide more information: Does this happen with any image? Did it work once? What's in the logs?

yes,every upload failed,i cannt found out the reason yet

dazkarieh commented 1 year ago

Xnip2023-02-12_19-30-02 i've reinstalled 4.7.0 version, this bug reproduced again, and my NAS showed insufficient ramdisk space

dazkarieh commented 1 year ago
Lychee Version: 4.7.0 (release)
Lychee Commit:  60c6f34
https://github.com/LycheeOrg/Lychee/commit/60c6f34d77c2dc7f85b317de1e53fd5ffbc3308f
-------------------------------------
**** Delaying startup (30 seconds)... ****
**** Make sure the /conf and /uploads folders exist ****
**** Create the symbolic link for the /uploads folder ****
**** Create the symbolic link for the /sym folder ****
**** Create the symbolic link to the old Lychee-Laravel 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 ****

In Connection.php line 760:

  SQLSTATE[HY000] [1130] Host '172.*.*.3' is not allowed to connect to this   
  MariaDB server (SQL: select * from information_schema.tables where table_sc  
  hema = lychee and table_name = migrations and table_type = 'BASE TABLE')     

In Connector.php line 70:

  SQLSTATE[HY000] [1130] Host '172.*.*.3' is not allowed to connect to this   
  MariaDB server                                                               

**** Make sure user.css exists and symlink it ****
**** Create user and use PUID/PGID ****
        User UID :      0
        User GID :      0
**** Make sure Laravel's log exists ****
**** Set Permissions ****
**** Start cron daemon ****
Starting periodic command scheduler: cron.
**** Setup complete, starting the server. ****
dazkarieh commented 1 year ago

when i open http://ip:port, it says:

500
HttpException
SQLSTATE[HY000] [1130] Host '172.29.20.3' is not allowed to connect to this MariaDB server (SQL: select * from information_schema.tables where table_schema = lychee and table_name = configs and table_type = 'BASE TABLE')
d7415 commented 1 year ago

That's pretty clear. That IP address doesn't have access to your MariaDB.