Open apastuszak opened 3 years ago
just testing this myself
Just installed docker on my apache server then proxied to myself under the /docker subdir
Here are the settings i had en enable for playback to work
http_host = "music.mydomain.com"
http_port = 443
web_path = "/docker"
local_web_path = "http://localhost/"
force_ssl = "true"
for apache i'm just proxying to the same server using these settings
ProxyPass /docker http://192.168.1.12:9191
ProxyPassReverse /docker http://192.168.1.12:9191
Changed the settings, but it still will only play on Firefox on Linux and Mac. Very odd. Docker doesn't really provide logs, so it's tough to troubleshoot.
Strange that just Firefox would work, try adding these to the virtualhost:
ProxyVia On
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Sadly, still not working with those settings. And it's Firefox on Mac and Linux that work. Firefox on Windows does not. This is very odd.
Ok, I think this is fixed. About 80% of my music library is FLAC files. Today I discovered that MP3 files play just fine. So, I turned on transcoding in the WebUI and told it transcode to 256K. Then all the music could play.
I have to assume this is a memory issue with the browser. I'm thinking Firefox on Mac and Linux allows the FLAC file to cache because it has a setting that makes more memory available to a web page that Chromium/WebKit based browsers allow.
So, this is working for me now with transcoding on.
If no developer feels this needs further investigation, please close this issue.
Ok, Chromium based browsers seem to be fixed. Safari still doesn't work. But at least it now shows album art and no longer puts the red circle with a slash through it on the volume icon. I'll keep tinkering.
Seems related to #2514 . I can reproduce this issue without Docker or a reverse proxy, and the description in this older Ampache bug seems very similar (albeit, claim is all formats). But, I see the same Uncaught ReferenceError exception when trying to play FLACs as documented in this bug. Issue with jplayer in some browsers/OS's perhaps?
There's also this bug documented in the Jamstash git. Also references the same jplayer behavior.
Try disabling the flash and javascript players in server settings, leaving the HTML5 player enabled, make sure to tick Apply To All for each and apply
Tried it with just the HTML5 player enabled, Microsoft Edge browser. Still won't play FLACs. With this player, it throws up a "Unsupported" status.
Interestingly, Dev tools is still referencing jplayer. I wouldn't have expected that:
Ampache debug logs throw no errors. The output is the same in a working scenario (FF on Linux). Also no 4xx/5xx HTTP response codes or messages in the Apache error logs.
Also, realize I didn't share my configuration:
Ampache version: Dev branch - Up to date Web server + version: Apache 2.4.46 Server operating system: Fedora 33
Client operating system: Reproducible on the following browsers/systems: Windows Chrome Vivaldi Firefox Edge
Linux Vivaldi Chrome
Updated my dev branch to Ampache 5. I'm now seeing this bug impacting all file types and browsers. Previously, it was just flacs on all browsers, except FF on Fedora 33. With debug logging enabled, there are no exceptions thrown. Previous troubleshooting suggestions are not yielding positive results.
EDIT: I see this being logged:
2021-03-02T17:41:39-05:00 [admin] (Ampache\Module\System\Session) -> 3jst633ud93utd783abp716cr7 has been extended to Tue, 02 Mar 2021 18:41:39 -0500 extension length 3600 2021-03-02T17:41:39-05:00 [admin] (ajax.server) -> Called for page: {stream} 2021-03-02T17:41:39-05:00 [admin] (stream.ajax) -> Called for action {directplay} 2021-03-02T17:41:39-05:00 [admin] (stream.ajax) -> Called for song: {107309} 2021-03-02T17:41:39-05:00 [admin] (Ampache\Module\System\Session) -> Writing to 3jst633ud93utd783abp716cr7 with expiration 1614728499 2021-03-02T17:41:39-05:00 [admin] (Ampache\Module\System\Session) -> 3jst633ud93utd783abp716cr7 has been extended to Tue, 02 Mar 2021 18:41:39 -0500 extension length 3600 2021-03-02T17:41:39-05:00 [admin] (Ampache\Module\Application\ApplicationRunner) -> Found handler "Ampache\Module\Application\Utility\ShowAction" for action "show" 2021-03-02T17:41:39-05:00 [admin] (Ampache\Module\System\Session) -> Writing to 3jst633ud93utd783abp716cr7 with expiration 1614728499 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\System\Session) -> 3jst633ud93utd783abp716cr7 has been extended to Tue, 02 Mar 2021 18:41:40 -0500 extension length 3600 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Application\ApplicationRunner) -> Found handler "Ampache\Module\Application\Stream\PlayItemAction" for action "play_item" 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Application\Stream\AbstractStreamAction) -> Stream Type: web_player Media IDs: [{"object_type":"song","object_id":"107309"}] 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\System\Session) -> Session created: 40c49f3392157cbf53460f09ef006d67 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Application\Stream\AbstractStreamAction) -> Stream Type: web_player Media Count: 1 2021-03-02T17:41:40-05:00 [admin] (stream_playlist.class) -> Adding urls to {40c49f3392157cbf53460f09ef006d67}... 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Application\Stream\AbstractStreamAction) -> Stream Type: web_player Loading URL: 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Playback\Stream_Playlist) -> Generating a {web_player} object... 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\System\Session) -> Writing to 3jst633ud93utd783abp716cr7 with expiration 1614728500 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\System\Session) -> 3jst633ud93utd783abp716cr7 has been extended to Tue, 02 Mar 2021 18:41:40 -0500 extension length 3600 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Application\ApplicationRunner) -> Found handler "Ampache\Module\Application\WebPlayer\ShowEmbeddedAction" for action "show" 2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\System\Session) -> Writing to 3jst633ud93utd783abp716cr7 with expiration 1614728500
Specifically, this line:
2021-03-02T17:41:40-05:00 [admin] (Ampache\Module\Application\Stream\AbstractStreamAction) -> Stream Type: web_player Loading URL:
I suspect 'Loading URL:' should not be empty? I grepped through months of debug logs and can't find this string anywhere. I don't know if it's new with Ampache 5
Issue Template
Description
Describe the bug
Ok, I am running Ampache develop in docker, with port 92 exposed. I then use apache to reverse proxy onto the Intermet. My workstation is running MacOS Big Sur.
When I use Firefox on my Mac, then everything plays just fine through the web interface. If I use any other browser, it doesn't work. I had a friend test with Linux and Windows 10. On Linux, the only browser that worked was Firefox. On WIndows 10, no browsers worked, not even Firefox. To reproduce Steps to reproduce the behavior:
Expected behavior
Music plays in any browser Screenshots
Environment
Client type:
Settings
reverse proxy ampache conf
Ampache config