[GH-ISSUE #1904] When I run php artisan koel:doctor #1028

Closed
opened 2026-02-26 02:34:59 +03:00 by kerem · 1 comment
Owner

Originally created by @IamPatticus on GitHub (Feb 28, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/1904

I get the following:

Session directory storage/framework/sessions is readable/writable ........................................... OK
Cache directory storage/framework/cache is readable/writable ................................................ OK
Log directory storage/logs is readable/writable ............................................................. OK

Illuminate\Database\QueryException

SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from licenses order by created_at desc limit 1)

at vendor/laravel/framework/src/Illuminate/Database/Connection.php:829
825▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
826▕ );
827▕ }
828▕
➜ 829▕ throw new QueryException(
830▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
831▕ );
832▕ }
833▕ }

  +23 vendor frames 

24 app/Services/LicenseService.php:79
Illuminate\Database\Eloquent\Builder::first()

25 app/Services/LicenseService.php:135
App\Services\LicenseService::getStatus()

root@4f78b0315246:/var/www/html#

Originally created by @IamPatticus on GitHub (Feb 28, 2025). Original GitHub issue: https://github.com/koel/koel/issues/1904 I get the following: Session directory storage/framework/sessions is readable/writable ........................................... OK Cache directory storage/framework/cache is readable/writable ................................................ OK Log directory storage/logs is readable/writable ............................................................. OK Illuminate\Database\QueryException SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `licenses` order by `created_at` desc limit 1) at vendor/laravel/framework/src/Illuminate/Database/Connection.php:829 825▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 826▕ ); 827▕ } 828▕ ➜ 829▕ throw new QueryException( 830▕ $this->getName(), $query, $this->prepareBindings($bindings), $e 831▕ ); 832▕ } 833▕ } +23 vendor frames 24 app/Services/LicenseService.php:79 Illuminate\Database\Eloquent\Builder::first() 25 app/Services/LicenseService.php:135 App\Services\LicenseService::getStatus() root@4f78b0315246:/var/www/html#
kerem closed this issue 2026-02-26 02:34:59 +03:00
Author
Owner

@phanan commented on GitHub (May 1, 2025):

Please follow the template.

<!-- gh-comment-id:2844301819 --> @phanan commented on GitHub (May 1, 2025): Please follow the template.
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#1028
No description provided.