mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #939] Playback fails with 401 Unauthorized error #605
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#605
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 @p4t5h3 on GitHub (Mar 24, 2019).
Original GitHub issue: https://github.com/koel/koel/issues/939
Hey, thanks for contributing to Koel! To save time for both of us, please make sure these checkboxes are checked before submitting the issue:
All checked? Now also make sure your issue
I freshly installed Koel v3.7.2 via Git on Ubuntu Server 18.04 LTS with a MySQL and nginx set up. I can login and see a test album I added to my media directory. When trying to play it, I get the following warning and error in Firefox (I replaced the domain part on purpose, by the way):
laravel.logis not revealing any insights. Neither does the PHP FPM or nginx error log. The nginx access log just lists the request with a 401 response code.STREAMING_METHODset tophporx-accel-redirectdoes not make a difference./api/datawith all the metadata is loaded successfully.What else could be wrong? 🤔 I did not understand the
X-Media-Rootthing from the nginx sample configuration which I tried to merge with the default site and recommended Laravel configuration. This is an excerpt in which I replaced the media_path setting variable from upstream with the media root path:The directory has the same owner and group (
www-data:www-data) as the app root next to it. I am running out of ideas.@phanan commented on GitHub (Mar 25, 2019):
You're not supposed to set/change the
aliasconfiguration. Just leave it as-is ($upstream_http_x_media_root) and try again.@p4t5h3 commented on GitHub (Mar 25, 2019):
That detail did not make the difference. However I had a fresh attempt today, took the example configuration as it is and adjusted only the
server_nameandfastcgi_passand now it works. So my nginx configuration was the culprit. Possibly because I set up Certbot for Let's Encrypt first based on the default configuration mixed with the recommendations for Laravel.