Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Lychee
  3. Bug: All Photo's being deleted when using rotate button

Bug: All Photo's being deleted when using rotate button

Scheduled Pinned Locked Moved Solved Lychee
8 Posts 2 Posters 1.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • randyjcR Offline
    randyjcR Offline
    randyjc
    wrote on last edited by randyjc
    #1

    Issue

    When using the rotate function inside Lychee inside an album, the pics inside the album seems to be getting wiped and leaves you with one picture in the album.

    Steps to reproduce:

    1. Open Lychee
    2. Some album
    3. Open picture
    4. Use rotate functions (right)
    5. Error message: Error - could not delete files
    6. Go back to the album
    7. Hit refresh

    Excepected result:

    Rotating picture to the desired position

    Actual result:

    Only 1 picture is visible and the rest is deleted? Or just not visible anymore.

    Video

    https://files.cloudbasis.nl/yAhu8/laqurOLu46.mp4

    Log message (what I could find)

    Jul 10 22:50:21 <REMOVED> - - [10/Jul/2023:20:50:21 +0000] "POST /api/PhotoEditor::rotate HTTP/1.1" 500 91 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/<REMOVED>"
    

    Diagnostics

    https://paste.cloudbasis.nl/?f1c5965508406608#AFSYmUCVEHhNuNqa4Avk54UDoGqUeSNY3H29LM583Xy5

    Is anybody able to reproduce this? If so, Ill go upstream to create an ticket. Meanwhile Ill restore my backup and leave the rotate function alone for now.

    1 Reply Last reply
    1
    • randyjcR Offline
      randyjcR Offline
      randyjc
      wrote on last edited by randyjc
      #2

      When viewing the diagnostics I noticed that I had some permission issues.
      Tried to fix that via CLI php /app/code/artisan lychee:fix-permission --dry-run=0
      But I think I cannot do that due to the read-only file system?

      https://paste.cloudbasis.nl/?34a6d73d92805d78#36AR6STpiHDMsqbuN6RxpUBn7w8X3nvKiukjPzT7cpLn

      girishG 1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        When I rotate some files, it shows an error in the UI. But the picture itself gets rotated fine and even the backend returns 200. It seems the UI is timing out and thinks it's an error. I can't reproduce the emptying out/deleting all files though (this seems dangerous). If this is reproducible, I would report it upstream for sure.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          This is the error I see, but despite this the file is rotated.

          image.png

          1 Reply Last reply
          0
          • randyjcR Offline
            randyjcR Offline
            randyjc
            wrote on last edited by
            #5

            Yeah, I have to do some more research.. I'm gonna install Cloudron on a different VM and try to reproduce it with different ways of my setup.

            Maybe it's because of the permissions issues I have.. Because I've imported all of my photo's via FTP and then use a custom script to import them..

            https://git.cloudbasis.nl/randyjc/Cloudron/raw/branch/main/lychee-sync.sh

            I'll do some more digging, and if I find something Ill report back

            girishG 1 Reply Last reply
            1
            • randyjcR randyjc

              When viewing the diagnostics I noticed that I had some permission issues.
              Tried to fix that via CLI php /app/code/artisan lychee:fix-permission --dry-run=0
              But I think I cannot do that due to the read-only file system?

              https://paste.cloudbasis.nl/?34a6d73d92805d78#36AR6STpiHDMsqbuN6RxpUBn7w8X3nvKiukjPzT7cpLn

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @randyjc said in Bug: All Photo's being deleted when using rotate button:

              Tried to fix that via CLI php /app/code/artisan lychee:fix-permission --dry-run=0

              I have fixed this now in the latest package. With the perm fix, the rotation issues also seem gone. Can you try after updating?

              1 Reply Last reply
              1
              • randyjcR randyjc

                Yeah, I have to do some more research.. I'm gonna install Cloudron on a different VM and try to reproduce it with different ways of my setup.

                Maybe it's because of the permissions issues I have.. Because I've imported all of my photo's via FTP and then use a custom script to import them..

                https://git.cloudbasis.nl/randyjc/Cloudron/raw/branch/main/lychee-sync.sh

                I'll do some more digging, and if I find something Ill report back

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @randyjc said in Bug: All Photo's being deleted when using rotate button:

                https://git.cloudbasis.nl/randyjc/Cloudron/raw/branch/main/lychee-sync.sh

                To be clear of perm issues, maybe you can run artisan as sudo -E -u www-data php /app/code/artisan . That's how the package does it. You can see https://git.cloudron.io/cloudron/lychee-app for reference.

                1 Reply Last reply
                1
                • randyjcR Offline
                  randyjcR Offline
                  randyjc
                  wrote on last edited by
                  #8

                  @girish I can confirm that the issue is now resolved, BIG THANKS!

                  🕺

                  1 Reply Last reply
                  0
                  • nebulonN nebulon marked this topic as a question on
                  • nebulonN nebulon has marked this topic as solved on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search