[GH-ISSUE #217] Logging in takes 10 minutes #155

Closed
opened 2026-02-26 02:32:18 +03:00 by kerem · 11 comments
Owner

Originally created by @partoneoftwo on GitHub (Feb 2, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/217

Running Koel v2.0.2 on Debian 7 and Postgresql and I have installed Koel following instructions I found around. Installation went well without any issues.

The problem is using Koel . It takes 10 minutes to log in, from inside the system it only lists some of the albums I imported. Play does not seem to work and it starts jumping from one song to the next with a nice Browser notification showing for each song.

Originally created by @partoneoftwo on GitHub (Feb 2, 2016). Original GitHub issue: https://github.com/koel/koel/issues/217 Running Koel v2.0.2 on Debian 7 and Postgresql and I have installed Koel following instructions I found around. Installation went well without any issues. The problem is using Koel . It takes 10 minutes to log in, from inside the system it only lists some of the albums I imported. Play does not seem to work and it starts jumping from one song to the next with a nice Browser notification showing for each song.
kerem closed this issue 2026-02-26 02:32:18 +03:00
Author
Owner

@thallian commented on GitHub (Feb 2, 2016):

Maybe there is something in the logs (storage/logs/laravel.log)?
Helped me to find needed php modules on FreeBSD.

<!-- gh-comment-id:178507750 --> @thallian commented on GitHub (Feb 2, 2016): Maybe there is something in the logs (storage/logs/laravel.log)? Helped me to find needed php modules on FreeBSD.
Author
Owner

@partoneoftwo commented on GitHub (Feb 2, 2016):

That logfile surely had a lot of clues.
I might have forgotten to run

ALTER SEQUENCE artists_id_seq RESTART WITH 2;
ALTER SEQUENCE albums_id_seq RESTART WITH 2;

after initializing the database with php artisan koel:init . Have done that now, and trying a resync.
EDIT:So I tried adding just a few album in a folder now. It works better, is very snappy and lets me log in in less than a second. It doesn't play anything yet. It just skips to the next song still.

<!-- gh-comment-id:178512120 --> @partoneoftwo commented on GitHub (Feb 2, 2016): That logfile surely had a lot of clues. I might have forgotten to run > ALTER SEQUENCE artists_id_seq RESTART WITH 2; > ALTER SEQUENCE albums_id_seq RESTART WITH 2; after initializing the database with php artisan koel:init . Have done that now, and trying a resync. EDIT:So I tried adding just a few album in a folder now. It works better, is very snappy and lets me log in in less than a second. It doesn't play anything yet. It just skips to the next song still.
Author
Owner

@thallian commented on GitHub (Feb 2, 2016):

Oh right, postgre needs that, I forgot (altough it seems to work without after a few tries).

Is there something about a mime type function in the logs? I had the same symptom and was missing a php extension.

<!-- gh-comment-id:178546029 --> @thallian commented on GitHub (Feb 2, 2016): Oh right, postgre needs that, I forgot (altough it seems to work without after a few tries). Is there something about a mime type function in the logs? I had the same symptom and was missing a php extension.
Author
Owner

@phanan commented on GitHub (Feb 2, 2016):

It works better, is very snappy and lets me log in in less than a second. It doesn't play anything yet. It just skips to the next song still.

Check your browser's console. What's the error?

<!-- gh-comment-id:178561083 --> @phanan commented on GitHub (Feb 2, 2016): > It works better, is very snappy and lets me log in in less than a second. It doesn't play anything yet. It just skips to the next song still. Check your browser's console. What's the error?
Author
Owner

@partoneoftwo commented on GitHub (Feb 2, 2016):

Media resource http://domain.net:9500/api/07e58cf72730a34493940613cd595e35/play?jwt-GARBLEGARBLEGARBLE.d_HqtCRpKiloHbAzPXPiqMGGF3lGe2KKzQqDGIPDiGA could not be decoded.

No errors in the "server console".

<!-- gh-comment-id:178575961 --> @partoneoftwo commented on GitHub (Feb 2, 2016): > Media resource http://domain.net:9500/api/07e58cf72730a34493940613cd595e35/play?jwt-GARBLEGARBLEGARBLE.d_HqtCRpKiloHbAzPXPiqMGGF3lGe2KKzQqDGIPDiGA could not be decoded. No errors in the "server console".
Author
Owner

@phanan commented on GitHub (Feb 2, 2016):

I think your system is missing some decoders. Check, for example, https://support.mozilla.org/en-US/questions/1065113.

<!-- gh-comment-id:178577407 --> @phanan commented on GitHub (Feb 2, 2016): I think your system is missing some decoders. Check, for example, https://support.mozilla.org/en-US/questions/1065113.
Author
Owner

@phanan commented on GitHub (Feb 2, 2016):

Also don't post the full token.

<!-- gh-comment-id:178581877 --> @phanan commented on GitHub (Feb 2, 2016): Also don't post the full token.
Author
Owner

@partoneoftwo commented on GitHub (Feb 2, 2016):

Fixed the token.

I have now tested on Firefox 43 on Linux and Chrome 47.0.25x on Linux, Windows and Android Nexus.
All my pc browsers do the skipping trick where it shows a new track playing and then skips to the next, the Android browser is saner and seems to be playing plays but does not output sound.

<!-- gh-comment-id:178602479 --> @partoneoftwo commented on GitHub (Feb 2, 2016): Fixed the token. I have now tested on Firefox 43 on Linux and Chrome 47.0.25x on Linux, Windows and Android Nexus. All my pc browsers do the skipping trick where it shows a new track playing and then skips to the next, the Android browser is saner and seems to be playing plays but does not output sound.
Author
Owner

@phanan commented on GitHub (Feb 2, 2016):

No I mean the server, not the client.

<!-- gh-comment-id:178603876 --> @phanan commented on GitHub (Feb 2, 2016): No I mean the server, not the client.
Author
Owner

@partoneoftwo commented on GitHub (Feb 2, 2016):

The problem was the streaming method. I had set it to x-sendfile, to be sure I also tried x-accel-redirect which also didn't work, but I am super mega happy! Reverted to the default php and it does the trick !
Now I have to figure out how to log in after indexing nearly 100.000 songs :) Maybe I will have to use a better server. [closeme]

<!-- gh-comment-id:178619159 --> @partoneoftwo commented on GitHub (Feb 2, 2016): The problem was the streaming method. I had set it to x-sendfile, to be sure I also tried x-accel-redirect which also didn't work, but I am super mega happy! Reverted to the default php and it does the trick ! Now I have to figure out how to log in after indexing nearly 100.000 songs :) Maybe I will have to use a better server. [closeme]
Author
Owner

@phanan commented on GitHub (Feb 2, 2016):

Glad it works!

<!-- gh-comment-id:178623132 --> @phanan commented on GitHub (Feb 2, 2016): Glad it 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#155
No description provided.