mirror of
https://github.com/koel/koel.git
synced 2026-04-26 09:15:59 +03:00
[GH-ISSUE #1436] 500 Internal Server Error on koel_ip:port/api/me #821
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#821
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 @vvzvlad on GitHub (Mar 27, 2022).
Original GitHub issue: https://github.com/koel/koel/issues/1436
I installed koel, set up a connection to the database and scanned the songs. Everything is ok. But I can't get into the control panel, a red frame appears around the login form when I enter my username and password (by the way, don't you think the "invalid credentials" indication when you get error 500 is misleading to the user?) After making sure that the password is correct, I went into the browser console and saw that the request to the api ends with an error 500. How do I solve this problem?

@andrewwippler commented on GitHub (Apr 1, 2022):
You are running apache2 and will need to
sudo a2enmod rewrite && sudo systemctl restart apache2.@alexeydk78 commented on GitHub (Apr 8, 2022):
If I need a rewrite module, then I need some directives in server config, right?
@andrewwippler commented on GitHub (Apr 8, 2022):
That's right. Here is an example:
@alexeydk78 commented on GitHub (Apr 9, 2022):
Ok. This is my virtualhost definition:
Still getting 500 error. Is there any log where I can find source of the error? There is nothing in apache's error log.
@andrewwippler commented on GitHub (Apr 25, 2022):
The web appliclation is the source of the 500 error. Generally, you would look at the application's logs for those error messages. Since koel is a PHP application, you will find the error messages in PHP's error log.
A quick glance at your config shows that you are defining
OptionsandAllowOverride. You should only define one or the other.AllowOverridegives the web application control to define its needs whereas theOptionsis the server administrator forcing the use of these options only.Apache configuration files work in ACL fashion. What is listed first has priority over the remaining entries. Your config is basically saying, the web application can only index and follow symlinks, but koel needs more permissions from the webserver. The
AllowOverride Allline is never considered by apache since theOptionsis listed first.I have already written too much concerning a simple fix (
remove the options line), but I hope with this extra knowledge you can look at PHP's error logs and tweakOptionsto grant only the necessary permissions koel needs. This is the best security practice over what I previously suggested - granting full access:AllowOverride All.@phanan commented on GitHub (May 16, 2022):
I'll go ahead and close the issue, as it has nothing to do with Koel, and I can't provide server-setup support.