player icon indicating copy to clipboard operation
player copied to clipboard

Songs won't play

Open nickian opened this issue 3 years ago • 13 comments

The app looks amazing and everything seems to work as expected, until I tap on a song to play it. Nothing happens. I don't see any errors come up in my NGINX log as I'm using the app. How can I go about debugging this?

nickian avatar Nov 23 '21 08:11 nickian

did you check storage/logs/laravel.log for anything?

pandalanax avatar Nov 26 '21 09:11 pandalanax

Nothing happens there. I tried tail -f storage/logs/laravel.log and tried interacting with the app in my desktop browser and iOS. Nothing comes up in the log.

nickian avatar Nov 26 '21 20:11 nickian

Everything works fine on desktop, but I do see this error in the console. I don't know if it's related:

Uncaught (in promise) Error: Request failed with status code 404
    exports https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    onreadystatechange https://mydomain.com/js/app.js?id=0319a44fcbff388a451d:2

nickian avatar Nov 26 '21 20:11 nickian

This really doesn't have enough information for me to even start to debug. Please give more info e.g., What version are you using? OS? Does your server have HTTPS? What do your files look like?

phanan avatar Dec 05 '21 16:12 phanan

It happens to me, too. I also can not play music sometimes, even I saw 206 status code in apache log about the request.

AngelPone avatar Dec 06 '21 09:12 AngelPone

Not saying that this is the reason to our specific case here, but typically files need to be bueffered first. Currently Koel has the limitation of not displaying the footer Now Playing panel right away (due to the library we're using), but it has to wait for some buffering to be done first. This limitation is at the top of my list.

phanan avatar Dec 06 '21 10:12 phanan

I'm running v5.18 on Ubuntu 20.04 with PHP-FPM 7.4 and NGINX.

I'm not sure if these errors are related. In the browser, music plays, but I see these errors in the console:

XHR GET https://music.mydomain.com/api/6a647fecf76b5d0772a3c0ef417a01f8/info [HTTP/2 404 Not Found 44ms]
Uncaught (in promise) Error: Request failed with status code 404
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    onreadystatechange https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    promise callback*jXzy/c.prototype.request https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    exports https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    request https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    get https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    get https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetch https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    l https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetch https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    fetchSongInfo https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    fetchSongInfo https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    n https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    <anonymous> https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    b https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    SONG_STARTED https://music.mydomain.com/js/31.501d8ea5a8a271fa88a6.js:1
    $emit https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    emit https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    restart https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    k https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
    k https://music.mydomain.com/js/app.js?id=0319a44fcbff388a451d:2
app.js:2:222668
Error: Promised response from onMessage listener went out of scope 5 background.js:8:59712

Nothing shows up when I tail -f to the webserver log or the laravel log while interacting with the app in the browser or on my iPhone.

nickian avatar Dec 06 '21 18:12 nickian

Does Koel use a standard Laravel NGINX virtual host, or do you have to do something custom? Why aren't there any virtual host examples listed in the Documentation?

nickian avatar Dec 06 '21 18:12 nickian

There’s one right in the repo.

On Mon 6. Dec 2021 at 19:41 Nick @.***> wrote:

Does Koel use a standard Laravel NGINX virtual host, or do you have to do something custom? Why aren't there any virtual host examples listed in the Documentation?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/koel/player/issues/53#issuecomment-987053947, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3UXEI6K7JC5I2NDIEHLUPT7XHANCNFSM5IS3X77A .

phanan avatar Dec 06 '21 19:12 phanan

Ah, I see it now. Thanks. Mine was slightly different, so I updated it, but nothing changed with the phone app behavior.

Could this be related to the newest iOS? Have you tested with 15.1.1?

nickian avatar Dec 06 '21 20:12 nickian

I'm using it with my iPhone (15.1.1). I don't think it's an app problem tbh.

Am Mo., 6. Dez. 2021 um 21:32 Uhr schrieb Nick @.***>:

Ah, I see it now. Thanks. Mine was slightly different, so I updated it, but nothing changed with the phone app behavior.

Could this be related to the newest iOS? Have you tested with 15.1.1?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/koel/player/issues/53#issuecomment-987184013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3USGERNPWQSYL2KAWR3UPUMUDANCNFSM5IS3X77A .

phanan avatar Dec 06 '21 22:12 phanan

I am also unable to play anything from the iOS app, but it works fine through browser and on desktop. Is TLS required on the server for it to work?

vesubian avatar Jan 17 '22 23:01 vesubian

Yes, please enable SSL.

On Tue 18. Jan 2022 at 00:39 vesubian @.***> wrote:

I am also unable to play anything from the iOS app, but it works fine through browser and on desktop. Is TLS required on the server for it to work?

— Reply to this email directly, view it on GitHub https://github.com/koel/player/issues/53#issuecomment-1014956398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5O3UTXWPV2STFCDOFCLCLUWSSCZANCNFSM5IS3X77A . You are receiving this because you commented.Message ID: @.***>

phanan avatar Jan 17 '22 23:01 phanan