mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #90] Problem restarting Media Path Scan after hitting APP_MAX_SCAN_TIME #62
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nodje on GitHub (Dec 17, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/90
Hi,
I've started the Media Path scanning with a 600s timeout but it wasn't enough as my music lib is quite big.
I then modified
APP_MAX_SCAN_TIME=60000in.envand reissued the commandphp artisan initbut got an exception.So I don't know if the new setting has been taken into account, but obviously the scanning is not happening when I click the Scan button, as it did the first time (at least I had some CPU activity and some log activity).
How can I restart the scanning process and monitor it?
How can I change the init paremeter in
.env?How can I simply restart from scratch (erasing the
php artisan initconfig)?-- sorry just discovered
php artisan koel:sync -vfrom the doc, this answers my 2 first questions.@phanan commented on GitHub (Dec 17, 2015):
APP_MAX_SCAN_TIMEuse php'sset_time_limit()and thus has the same limitation – e.g. the server (Apache/nginx) can time out before php's own process. For bigger music lib, the artisan command should be used instead.What config is there to erase?
@nodje commented on GitHub (Dec 17, 2015):
anything that was set by
php artisan initwhen reading.env(mail server, admin name and password etc.)The reason for the sync problem is an exception:
This seems to come from an encoding problem (song with Chinese character in the name or artist)
I don't understand how the scanning can encounter this problem, it should reuse existing artist name instead of recreating it, right?
@phanan commented on GitHub (Dec 17, 2015):
What's your table encoding?
On Thu, Dec 17, 2015 at 2:27 PM, nodje notifications@github.com wrote:
@nodje commented on GitHub (Dec 17, 2015):
good catch:
I guess this applies to tables in the database as well.
And I would guess Laravel is swedish...
So at this point I guess I want to restart the init process: would droping the database and relaunching
php artisan initbe enough?Can I set the encoding in
.env?@phanan commented on GitHub (Dec 17, 2015):
Koel (Laravel) will not create the database for you, so you'll need to create the it with a
utf8_unicode_cicollation manually. And yes, dropping the database should be the faster approach than trying to fix it.@nodje commented on GitHub (Dec 18, 2015):
I got it working, it's great, well done!
How is the
.envfile used though? Is it read at runtime for configuration? Do I just have to change settings in there for them to be taken into account? Specifically,STREAMING_METHODcan just be written in there and will be set at runtime right?Usage of this
.envfile is a bit confusing becausephp artisan initseems to setup configuration once and for all in the database based on it as well.@phanan commented on GitHub (Dec 18, 2015):
Glad you made it. You can read more about .env here:
https://github.com/vlucas/phpdotenv
On Fri, Dec 18, 2015 at 11:03 AM, nodje notifications@github.com wrote: