[GH-ISSUE #1134] Oops! Koel installation or upgrade didn't finish successfully. #657

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

Originally created by @yuri25 on GitHub (Dec 3, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/1134

Describe the bug
When I execute a command php artisan koel:init I get this error:

To reproduce
Steps to reproduce the behavior:
1.php artisan koel:init
2. Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙 https://koel.phanan.net/docs

Generating app key
JWT secret exists -- skipping
Migrating database
Oops! Koel installation or upgrade didn't finish successfully.
Please try again, or visit https://koel.phanan.net/docs for manual installation.
😥 Sorry for this. You deserve better.

Expected behavior
I was expecting a successful installation

Screenshots
The console message does not make sense to take a screenshot

Environment

  • Koel version [v4.2.2]
  • OS: [ Ubuntu 18.04.3 LTS]
  • Browser [Chrome 78.0.3904.108]
  • PHP version [php-fpm v7.3.11]
  • Node version [v12.10.0]

Additional context
Please help solve the problem.
Thanks.

Originally created by @yuri25 on GitHub (Dec 3, 2019). Original GitHub issue: https://github.com/koel/koel/issues/1134 **Describe the bug** When I execute a command `php artisan koel:init` I get this error: **To reproduce** Steps to reproduce the behavior: 1.`php artisan koel:init` 2. Attempting to install or upgrade Koel. Remember, you can always install/upgrade manually following the guide here: 📙 https://koel.phanan.net/docs Generating app key JWT secret exists -- skipping Migrating database Oops! Koel installation or upgrade didn't finish successfully. Please try again, or visit https://koel.phanan.net/docs for manual installation. 😥 Sorry for this. You deserve better. **Expected behavior** I was expecting a successful installation **Screenshots** The console message does not make sense to take a screenshot **Environment** - Koel version [v4.2.2] - OS: [ Ubuntu 18.04.3 LTS] - Browser [Chrome 78.0.3904.108] - PHP version [php-fpm v7.3.11] - Node version [v12.10.0] **Additional context** Please help solve the problem. Thanks.
kerem closed this issue 2026-02-26 02:33:52 +03:00
Author
Owner

@nickian commented on GitHub (Dec 3, 2019):

I had the same problem. Took forever for me to figure this out, since the documentation doesn't do a good job of explaining dependencies.

I got it working by doing the following:

sudo apt-get install libpng-dev
composer install
npm install
npm install --global yarn
php artisan koel:init

Also, make sure you point your server to the root, not to the public directory.

I feel like this app should have release branches with the front end already built. This is very difficult to install unless you're familiar with all of these front-end tools and how they work.

<!-- gh-comment-id:561406400 --> @nickian commented on GitHub (Dec 3, 2019): I had the same problem. Took forever for me to figure this out, since the documentation doesn't do a good job of explaining dependencies. I got it working by doing the following: `sudo apt-get install libpng-dev` `composer install` `npm install` `npm install --global yarn` `php artisan koel:init` Also, make sure you point your server to the root, not to the public directory. I feel like this app should have release branches with the front end already built. This is very difficult to install unless you're familiar with all of these front-end tools and how they work.
Author
Owner

@yuri25 commented on GitHub (Dec 5, 2019):

It turned out, though not the first time, thanks. I had to perform

rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
npm install

And then your advice. The server is running.
If you can still ask ... The service works only for the administrator or for the user that the administrator has registered. How can you make a site so that music is available to any site visitors? To do this, you need to create another site and so that it interacts with the server via api? Or is there some kind of ready-made solution? I would like to see examples of sites working on this engine or interacting with it through api. If not difficult, please provide links.

<!-- gh-comment-id:562038670 --> @yuri25 commented on GitHub (Dec 5, 2019): It turned out, though not the first time, thanks. I had to perform ``` rm -rf node_modules rm package-lock.json yarn.lock npm cache clear --force npm install ``` And then your advice. The server is running. If you can still ask ... The service works only for the administrator or for the user that the administrator has registered. How can you make a site so that music is available to any site visitors? To do this, you need to create another site and so that it interacts with the server via api? Or is there some kind of ready-made solution? I would like to see examples of sites working on this engine or interacting with it through api. If not difficult, please provide links.
Author
Owner

@nickian commented on GitHub (Dec 5, 2019):

I'm not sure about that. I'm not familiar enough with this app yet. Doesn't seem like that is something this was built for, but could probably be done with the API.

<!-- gh-comment-id:562040509 --> @nickian commented on GitHub (Dec 5, 2019): I'm not sure about that. I'm not familiar enough with this app yet. Doesn't seem like that is something this was built for, but could probably be done with the API.
Author
Owner

@yuri25 commented on GitHub (Dec 5, 2019):

In any case, thanks for the help in solving the problem. Thank you very much.

<!-- gh-comment-id:562043743 --> @yuri25 commented on GitHub (Dec 5, 2019): In any case, thanks for the help in solving the problem. Thank you very much.
Author
Owner

@TheLegendaryMarc commented on GitHub (Dec 6, 2019):

Same Problem, no solution works...

<!-- gh-comment-id:562485450 --> @TheLegendaryMarc commented on GitHub (Dec 6, 2019): Same Problem, no solution works...
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#657
No description provided.