mirror of
https://github.com/koel/koel.git
synced 2026-04-25 00:36:03 +03:00
[GH-ISSUE #2181] [Bug]: Cannot log in on production even though credentials are correct (no password recovery option) #1113
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#1113
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 @richardt1984 on GitHub (Dec 19, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/2181
Originally assigned to: @phanan on GitHub.
Read the Troubleshooting guide.
Reproduction steps
php artisan tinker.Hash::check.Expected behavior
After entering correct credentials, the user should be authenticated and redirected to the Koel dashboard.
Actual behavior
Login fails silently. The login page reloads or stays in place.
No error message is shown.
User is not authenticated even though credentials are correct.
There is also no “Forgot password” option available.
Logs
No relevant errors appear in storage/logs/laravel.log during login attempts.
Browser console also shows no errors.
Koel version
Latest version from the Koel GitHub repository (installed via git clone).
How did you install Koel?
Compiled from source
Additional information
Hash::checkreturns true).This behavior makes Koel difficult to trust in production, especially due to the lack of a password recovery option.
@phanan commented on GitHub (Dec 19, 2025):
I wouldn't install an app using the
masterbranch and say it's not "production ready."The password recovery option is only available if you configure a mailer. No mailer (default) means no email sending, which means no password recovery.
Now with all that done, I find it pretty weird that you have no error whatsoever. Try Preserve Log in Dev Tools Network tab. Also try setting
APP_DEBUG=truein.envfile.@richardt1984 commented on GitHub (Dec 19, 2025):
Hi
Thank you for your response and clarifications. I understand your points regarding the master branch not being intended as production-ready and the requirement for a configured mailer to enable password recovery.
Regarding the login issue:
I have confirmed that the database connection works correctly and that the admin user’s password hash is valid (Hash::check returns true).
I have cleared caches, restarted services, and verified APP_KEY and APP_DEBUG settings.
Despite this, the login form reloads without authentication, and no errors are shown in storage/logs/laravel.log or the browser console, even when DevTools is used.
It seems that the login failure is not related to credentials, password hashing, or caching, and I cannot identify any relevant error messages.
Could you advise on the next steps for debugging why authentication is silently failing in this environment? For example, are there known issues with session handling, middleware, or HTTPS configuration that could prevent logins from completing?
Thank you for your guidance.
Best regards,
Richardt
@phanan commented on GitHub (Dec 19, 2025):
I actually now think that there’s something wrong with your server setup.
The fact that there’s no log whatsoever may be an indication that the
request doesn’t reach the application at all. Have you tried running
koel:doctor?
On Fri, Dec 19, 2025 at 21:49 richardt1984 @.***> wrote: