[GH-ISSUE #680] php artisan koel:sync -v throws exception #482

Closed
opened 2026-02-26 02:33:20 +03:00 by kerem · 4 comments
Owner

Originally created by @gunslingerfry on GitHub (Nov 9, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/680

Ubuntu 16.04
Koel: 3e3004a904 (aka Nov 8th)
Running as a virtual host in Apache2
Music is stored on Google Drive and accessed via google-drive-ocamlfuse

It is failing reliably in the same spot. I wish I could identify where but I don't understand how it is traversing the directory. I thought it was a bad cover file but I've moved that out and no difference. So it appears to be moving on to a new directory but that directory is not identified. It is correct, /var/www/html/koel/storage/framework/cache/data/eb doesn't exist, let alone the subdirectory/file.

Error output:

  368/2412 [▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░]  15% 2 secs18 Clash of Iron.mp3 has no changes – ignoring

                                                                                                                                                                       
  [ErrorException]                                                                                                                                                     
  file_put_contents(/var/www/html/koel/storage/framework/cache/data/eb/29/eb294c927370eb27bdb92407dcdd5f83281ffca3): failed to open stream: No such file or directory  
                                                                                                                                                                       

Exception trace:
 () at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
 Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at n/a:n/a
 file_put_contents() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
 Illuminate\Filesystem\Filesystem->put() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:66
 Illuminate\Cache\FileStore->put() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:175
 Illuminate\Cache\Repository->put() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:291
 Illuminate\Cache\Repository->remember() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:305
 Illuminate\Cache\CacheManager->__call() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221
 Illuminate\Support\Facades\Facade::__callStatic() at /var/www/html/koel/app/Models/File.php:389
 App\Models\File->getCoverFileUnderSameDirectory() at /var/www/html/koel/app/Models/File.php:289
 App\Models\File->generateAlbumCover() at /var/www/html/koel/app/Models/File.php:257
 App\Models\File->sync() at /var/www/html/koel/app/Services/Media.php:80
 App\Services\Media->sync() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221
 Illuminate\Support\Facades\Facade::__callStatic() at /var/www/html/koel/app/Console/Commands/SyncMedia.php:75
 App\Console\Commands\SyncMedia->syncAll() at /var/www/html/koel/app/Console/Commands/SyncMedia.php:55
 App\Console\Commands\SyncMedia->handle() at n/a:n/a
 call_user_func_array() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29
 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87
 Illuminate\Container\BoundMethod::callBoundMethod() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31
 Illuminate\Container\BoundMethod::call() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/Container.php:539
 Illuminate\Container\Container->call() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Console/Command.php:182
 Illuminate\Console\Command->execute() at /var/www/html/koel/vendor/symfony/console/Command/Command.php:264
 Symfony\Component\Console\Command\Command->run() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Console/Command.php:167
 Illuminate\Console\Command->run() at /var/www/html/koel/vendor/symfony/console/Application.php:888
 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/koel/vendor/symfony/console/Application.php:224
 Symfony\Component\Console\Application->doRun() at /var/www/html/koel/vendor/symfony/console/Application.php:125
 Symfony\Component\Console\Application->run() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122
 Illuminate\Foundation\Console\Kernel->handle() at /var/www/html/koel/artisan:35
Originally created by @gunslingerfry on GitHub (Nov 9, 2017). Original GitHub issue: https://github.com/koel/koel/issues/680 Ubuntu 16.04 Koel: 3e3004a9045f16eda15735a4d9a4856beaa28f62 (aka Nov 8th) Running as a virtual host in Apache2 Music is stored on Google Drive and accessed via google-drive-ocamlfuse It is failing reliably in the same spot. I wish I could identify where but I don't understand how it is traversing the directory. I thought it was a bad cover file but I've moved that out and no difference. So it appears to be moving on to a new directory but that directory is not identified. It is correct, /var/www/html/koel/storage/framework/cache/data/eb doesn't exist, let alone the subdirectory/file. Error output: ``` 368/2412 [▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░] 15% 2 secs18 Clash of Iron.mp3 has no changes – ignoring [ErrorException] file_put_contents(/var/www/html/koel/storage/framework/cache/data/eb/29/eb294c927370eb27bdb92407dcdd5f83281ffca3): failed to open stream: No such file or directory Exception trace: () at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122 Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at n/a:n/a file_put_contents() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122 Illuminate\Filesystem\Filesystem->put() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/FileStore.php:66 Illuminate\Cache\FileStore->put() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:175 Illuminate\Cache\Repository->put() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/Repository.php:291 Illuminate\Cache\Repository->remember() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:305 Illuminate\Cache\CacheManager->__call() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221 Illuminate\Support\Facades\Facade::__callStatic() at /var/www/html/koel/app/Models/File.php:389 App\Models\File->getCoverFileUnderSameDirectory() at /var/www/html/koel/app/Models/File.php:289 App\Models\File->generateAlbumCover() at /var/www/html/koel/app/Models/File.php:257 App\Models\File->sync() at /var/www/html/koel/app/Services/Media.php:80 App\Services\Media->sync() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221 Illuminate\Support\Facades\Facade::__callStatic() at /var/www/html/koel/app/Console/Commands/SyncMedia.php:75 App\Console\Commands\SyncMedia->syncAll() at /var/www/html/koel/app/Console/Commands/SyncMedia.php:55 App\Console\Commands\SyncMedia->handle() at n/a:n/a call_user_func_array() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 Illuminate\Container\BoundMethod::callBoundMethod() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 Illuminate\Container\BoundMethod::call() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Container/Container.php:539 Illuminate\Container\Container->call() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Console/Command.php:182 Illuminate\Console\Command->execute() at /var/www/html/koel/vendor/symfony/console/Command/Command.php:264 Symfony\Component\Console\Command\Command->run() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Console/Command.php:167 Illuminate\Console\Command->run() at /var/www/html/koel/vendor/symfony/console/Application.php:888 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/koel/vendor/symfony/console/Application.php:224 Symfony\Component\Console\Application->doRun() at /var/www/html/koel/vendor/symfony/console/Application.php:125 Symfony\Component\Console\Application->run() at /var/www/html/koel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:122 Illuminate\Foundation\Console\Kernel->handle() at /var/www/html/koel/artisan:35 ```
kerem closed this issue 2026-02-26 02:33:20 +03:00
Author
Owner

@phanan commented on GitHub (Nov 9, 2017):

Looks like your cache folder doesn't exist?

<!-- gh-comment-id:343325533 --> @phanan commented on GitHub (Nov 9, 2017): Looks like your cache folder doesn't exist?
Author
Owner

@gunslingerfry commented on GitHub (Nov 9, 2017):

The cache folder exists but the eb cache folder does not. i.e. it's good all the way up to /var/www/html/koel/storage/framework/cache/data

This may not be pertinent.... My audio files are split between audiobooks and music. I started with the music folder, received this error and switched to the parent folder. It scanned the whole audiobooks folder, returned to the music folder and hit the error again.

<!-- gh-comment-id:343328654 --> @gunslingerfry commented on GitHub (Nov 9, 2017): The cache folder exists but the eb cache folder does not. i.e. it's good all the way up to `/var/www/html/koel/storage/framework/cache/data` This may not be pertinent.... My audio files are split between audiobooks and music. I started with the music folder, received this error and switched to the parent folder. It scanned the whole audiobooks folder, returned to the music folder and hit the error again.
Author
Owner

@gunslingerfry commented on GitHub (Nov 11, 2017):

Any ideas or suggestions? Debug output they might help?

<!-- gh-comment-id:343635723 --> @gunslingerfry commented on GitHub (Nov 11, 2017): Any ideas or suggestions? Debug output they might help?
Author
Owner

@ElectronicWar commented on GitHub (Nov 26, 2017):

Make sure all folders belong to the web server user and have sufficient rights plus enough free space on the drive (obviously).

<!-- gh-comment-id:347032316 --> @ElectronicWar commented on GitHub (Nov 26, 2017): Make sure all folders belong to the web server user and have sufficient rights plus enough free space on the drive (obviously).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#482
No description provided.