mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[GH-ISSUE #670] Error 500 when attempting to download ALL songs by any "Artist", but Zipping/Downloading of Albums and Individual Songs works perfectly fine. #483
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#483
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dohlin on GitHub (Oct 16, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/670
Hey, thanks for contributing to Koel! To save time for both of us, please make sure these checkboxes are checked before submitting the issue:
All checked? Now also make sure your issue
Hey guys...I'm stumped! I've searched and searched and cannot find anything similar to the issue I'm seeing.
I'm running the latest Koel version and everything in my instance seems to work perfectly fine...scanning, playing, zipping and downloading of full albums and downloading individual songs, etc.
However, when I attempt to download all songs from a single ARTIST (from the picture of the artist using the 'download' button in the lower right hand corner OR from the artist's page and hitting the "Download All" link), I get an error 500 in the Google Chrome console. Afterwards, in /var/www/koel/storage/logs/laravel.log I find the following:
[2017-10-16 18:34:29] production.ERROR: Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException: The file "/tmp/koel-download-59e4fbb5c2474.zip" does not exist in /var/www/koel/vendor/symfony/http-foundation/File/File.php:37 Stack trace: #0 /var/www/koel/vendor/symfony/http-foundation/BinaryFileResponse.php(94): Symfony\Component\HttpFoundation\File\File->__construct('/tmp/koel-downl...') #1 /var/www/koel/vendor/symfony/http-foundation/BinaryFileResponse.php(53): Symfony\Component\HttpFoundation\BinaryFileResponse->setFile('/tmp/koel-downl...', 'attachment', false, true) #2 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(125): Symfony\Component\HttpFoundation\BinaryFileResponse->__construct('/tmp/koel-downl...', 200, Array, true, 'attachment') #3 /var/www/koel/app/Http/Controllers/API/Download/ArtistController.php(25): Illuminate\Routing\ResponseFactory->download('/tmp/koel-downl...') #4 [internal function]: App\Http\Controllers\API\Download\ArtistController->download(Object(App\Models\Artist)) #5 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(55): call_user_func_array(Array, Array) #6 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(44): Illuminate\Routing\Controller->callAction('download', Array) #7 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\API\Download\ArtistController), 'download') #8 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(160): Illuminate\Routing\Route->runController() #9 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(574): Illuminate\Routing\Route->run() #10 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #11 /var/www/koel/app/Http/Middleware/GetUserFromToken.php(40): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #12 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): App\Http\Middleware\GetUserFromToken->handle(Object(Illuminate\Http\Request), Object(Closure)) #13 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #14 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #15 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure)) #16 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #17 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #18 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), '60', '1') #19 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #20 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #21 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(576): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #22 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(535): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #23 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(513): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #24 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #25 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) #26 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #27 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #28 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #29 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #30 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #31 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #32 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #33 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure)) #34 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #35 /var/www/koel/app/Http/Middleware/UseDifferentConfigIfE2E.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #36 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): App\Http\Middleware\UseDifferentConfigIfE2E->handle(Object(Illuminate\Http\Request), Object(Closure)) #37 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #38 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #39 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure)) #40 /var/www/koel/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #41 /var/www/koel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #42 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #43 /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #44 /var/www/koel/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #45 {main}I've tried understanding what this is saying, and it seems to be getting tripped up on the __construct function...but I don't understand why. I do have php7.0-zip installed and that's the most puzzling part - that all other downloads (again, artist, individual songs, etc.) work fine. I see /zip files pop up in /tmp when I download an album...but doing the exact same thing with an artist nothing shows up in /tmp. So the issue clearly isn't just it can't find the file, it's that the file isn't even getting created.
I should also note that I technically can work around this issue by clicking into the artist page, and shift+clicking all songs, then right-clicking and going to download that way. But is there anyone out there who is smarter than I who would be willing to provide some insight here on why neither the main artist picture's download button nor the "Download All" link on the artist's page might not be working?
Or if nothing else, what else I could do to troubleshoot further why this .zip file isn't even getting created? I checked and the Apache log at /var/log/apache2/error.log doesn't show anything. I'm completely lost as to why 2 seemingly identical functions would be behaving in 2 totally different ways. Thank you!
@dohlin commented on GitHub (Oct 22, 2017):
Is no one else seeing this issue other than me?
@phanan commented on GitHub (Oct 23, 2017):
Sorry, I can't seem to reproduce this issue.
@dohlin commented on GitHub (Oct 23, 2017):
Is there anything else I could do or any other logs I'm unaware of that might shed some more light on what is happening right before this error happens? Right now that error seems like it tells me it can't find the file (because it's never being created), but doesn't give any possible clues as to why. Thanks!