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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Cannot upload Album/Artist cover art. Fresh install

    Koel
    2
    5
    249
    Loading More Posts
    • 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.
    • P
      proxy21 last edited by

      Hi everyone. Fresh install of both Cloudron then Koel via Linode So far everything is working well except two features.

      versions
      App Title and VersionKoel 5.1.13
      Package Versiondev.koel.cloudronapp@1.1.9
      

      First I cannot upload any image files to albums or artist via the web interface(drag and drop). If I upload a img file via FTP to the library folder then scan it. It will no be detected. I've tried both file name (cover/folder) and both file types .jpg/.png along with large and small file sizes and no luck whatsoever.

      Secondly I can upload music files both .flac/.mp3 via the web interface but I have a file size limit of around 2MB. If I upload song files via FTP the scan will detect the albums and song no issue no matter the size.

      looking through some old github issues there might be an issue around folder permissions but I can only speculate.

      Let me know if there are any logs I can pull or if any additional info is needed. Thanks

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @proxy21 last edited by

        @proxy21 Indeed, I see an error in the logs:

        [2022-02-01 05:36:16] production.ERROR: Intervention\Image\Exception\NotWritableException: Can't write image data to path (/app/code/public/img/covers/655a4594d76f164bfdce95c03b93f6b3f4869b23.jpeg) in /app/code/vendor/intervention/image/src/Intervention/Image/Image.php:150
        Stack trace:
        #0 /app/code/app/Services/ImageWriter.php(37): Intervention\Image\Image->save()
        #1 /app/code/app/Services/MediaMetadataService.php(42): App\Services\ImageWriter->writeFromBinaryData()
        #2 /app/code/app/Http/Controllers/API/AlbumCoverController.php(25): App\Services\MediaMetadataService->writeAlbumCover()
        #3 /app/code/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\API\AlbumCoverController->update()
        #4 /app/code/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction()
        #5 /app/code/vendor/laravel/framework/src/Illuminate/Routing/Route.php(262): Illuminate\Routing\ControllerDispatcher->dispatch()
        #6 /app/code/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
        #7 /app/code/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\Routing\Route->run()
        
        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          Deja vu... I already reported this a while ago - https://github.com/koel/koel/issues/1254

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            I started a thread here - https://forum.cloudron.io/topic/6424/deploying-apps-that-treat-code-as-data to figure what to do for such situations.

            P 1 Reply Last reply Reply Quote 1
            • P
              proxy21 @girish last edited by

              @girish Thanks! This helped a lot.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB