[GH-ISSUE #1271] php artisan koel:init not working #725

Closed
opened 2026-02-26 02:34:05 +03:00 by kerem · 2 comments
Owner

Originally created by @softmind-su on GitHub (Jan 4, 2021).
Original GitHub issue: https://github.com/koel/koel/issues/1271

Describe the bug
When I run php artisan koel:init, the installation process stops before migration step.

To reproduce
Steps to reproduce the behavior:

  1. Following the instructions at https://docs.koel.dev/#manually

Expected behavior
To complete the installation of koel.

Screenshots
https://ibb.co/fS4K5Mw

Environment

  • Koel version 4.4.0
  • OS: Ubuntu 20.04
  • PHP version 7.4.3
  • Composer version 1.10.19
  • MySQL version 8.0.22

Additional context
There is something wrong in the app/Console/Commands/InitCommand.php file at method maybeSetUpDatabase in the try catch statement.

Originally created by @softmind-su on GitHub (Jan 4, 2021). Original GitHub issue: https://github.com/koel/koel/issues/1271 **Describe the bug** When I run `php artisan koel:init`, the installation process stops before migration step. **To reproduce** Steps to reproduce the behavior: 1. Following the instructions at https://docs.koel.dev/#manually **Expected behavior** To complete the installation of koel. **Screenshots** https://ibb.co/fS4K5Mw **Environment** - Koel version 4.4.0 - OS: Ubuntu 20.04 - PHP version 7.4.3 - Composer version 1.10.19 - MySQL version 8.0.22 **Additional context** There is something wrong in the `app/Console/Commands/InitCommand.php` file at method `maybeSetUpDatabase` in the `try catch` statement.
kerem 2026-02-26 02:34:05 +03:00
Author
Owner

@BrookeDot commented on GitHub (Jan 5, 2021):

You'll need to provide more details here. Can you tell us more about what you are seeing in InitCommand.php? Also make sure that .env has the correct database information.

Also is this a new install or an upgrade? do you have the PDO extension installed?

<!-- gh-comment-id:754371122 --> @BrookeDot commented on GitHub (Jan 5, 2021): You'll need to provide more details here. Can you tell us more about what you are seeing in `InitCommand.php`? Also make sure that `.env` has the correct database information. Also is this a new install or an upgrade? do you have the PDO extension installed?
Author
Owner

@softmind-su commented on GitHub (Jan 5, 2021):

You'll need to provide more details here. Can you tell us more about what you are seeing in InitCommand.php? Also make sure that .env has the correct database information.

Also is this a new install or an upgrade? do you have the PDO extension installed?

I re-installed all requirements and and now this problem disappeared.

<!-- gh-comment-id:754558941 --> @softmind-su commented on GitHub (Jan 5, 2021): > You'll need to provide more details here. Can you tell us more about what you are seeing in `InitCommand.php`? Also make sure that `.env` has the correct database information. > > Also is this a new install or an upgrade? do you have the PDO extension installed? I re-installed all requirements and and now this problem disappeared.
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#725
No description provided.