[GH-ISSUE #1967] Internal Server Error #1047

Closed
opened 2026-02-26 02:35:04 +03:00 by kerem · 3 comments
Owner

Originally created by @amakiell on GitHub (Jun 24, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/1967

just followed these instructions on debian (mx) https://computingforgeeks.com/setup-personal-audio-streaming-server-with-koel/

go to log in on browser and get Internal Server Error

Illuminate\Database\QueryException
SQLSTATE[HY000] [1698] Access denied for user 'user'@'localhost' (Connection: mysql, SQL: select * from licenses order by created_at desc limit 1)
GET 127.0.0.1:8000
PHP 8.2.28 — Laravel 11.45.1

this line is highlighted

$license = License::query()->latest()->first();

What to do?

(silly question, why cant this thing just have an installer?)

Originally created by @amakiell on GitHub (Jun 24, 2025). Original GitHub issue: https://github.com/koel/koel/issues/1967 just followed these instructions on debian (mx) https://computingforgeeks.com/setup-personal-audio-streaming-server-with-koel/ go to log in on browser and get Internal Server Error Illuminate\Database\QueryException SQLSTATE[HY000] [1698] Access denied for user 'user'@'localhost' (Connection: mysql, SQL: select * from `licenses` order by `created_at` desc limit 1) GET 127.0.0.1:8000 PHP 8.2.28 — Laravel 11.45.1 this line is highlighted $license = License::query()->latest()->first(); What to do? (silly question, why cant this thing just have an installer?)
kerem closed this issue 2026-02-26 02:35:04 +03:00
Author
Owner

@phanan commented on GitHub (Jun 25, 2025):

Run php koel:init --no-assets.

<!-- gh-comment-id:3003557891 --> @phanan commented on GitHub (Jun 25, 2025): Run `php koel:init --no-assets`.
Author
Owner

@amakiell commented on GitHub (Jun 26, 2025):

ok got further down the list, now I get this:

http://127.0.0.1:8000/

Symfony Exception
Symfony Docs
ErrorException
HTTP 500 Internal Server Error
file_put_contents(/var/www/koel/storage/framework/views/13c9472f866ac10b368b775c8b89b615.php): Failed to open stream: Permission denied
ErrorException
Show exception properties

in /var/www/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php (line 204)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> handleError (line 256)
HandleExceptions->Illuminate\Foundation\Bootstrap{closure}()
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php file_put_contents (line 204)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php -> put (line 196)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php -> compile (line 67)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/View.php -> get (line 209)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/View.php -> getContents (line 192)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/View.php -> renderContents (line 161)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php -> render (line 95)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> render (line 847)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> renderExceptionContent (line 828)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> convertExceptionToResponse (line 807)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> prepareResponse (line 706)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> renderExceptionResponse (line 594)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> render (line 219)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> renderHttpResponse (line 196)
in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> handleException (line 256)
HandleExceptions->Illuminate\Foundation\Bootstrap{closure}()

<!-- gh-comment-id:3006891166 --> @amakiell commented on GitHub (Jun 26, 2025): ok got further down the list, now I get this: http://127.0.0.1:8000/ Symfony Exception Symfony Docs [ErrorException](http://127.0.0.1:8000/#trace-box-1) HTTP 500 Internal Server Error file_put_contents(/var/www/koel/storage/framework/views/13c9472f866ac10b368b775c8b89b615.php): Failed to open stream: Permission denied ErrorException Show exception properties in[ /var/www/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php ](file:///var/www/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php#L204)(line 204) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> handleError (line 256) HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}() in /var/www/koel/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php file_put_contents (line 204) in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php -> put (line 196) in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php -> compile (line 67) in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/View.php -> get (line 209) in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/View.php -> getContents (line 192) in /var/www/koel/vendor/laravel/framework/src/Illuminate/View/View.php -> renderContents (line 161) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php -> render (line 95) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> render (line 847) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> renderExceptionContent (line 828) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> convertExceptionToResponse (line 807) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> prepareResponse (line 706) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php -> renderExceptionResponse (line 594) in[ /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php ](file:///var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php#L256)-> render (line 219) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> renderHttpResponse (line 196) in /var/www/koel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php -> handleException (line 256) HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
Author
Owner

@phanan commented on GitHub (Jun 26, 2025):

You're encountering a file permission error. Make sure the folder is readwritable by your web user. Better yet, follow the official documentation.

<!-- gh-comment-id:3006911754 --> @phanan commented on GitHub (Jun 26, 2025): You're encountering a file permission error. Make sure the folder is readwritable by your web user. Better yet, follow the official documentation.
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#1047
No description provided.