mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #2164] [Bug]: 500 error after initial setup with Forward Auth (Authentik) #1102
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#1102
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 @Anduin2017 on GitHub (Nov 7, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/2164
Originally assigned to: @phanan on GitHub.
Read the Troubleshooting guide.
Reproduction steps
I first factory reset my koel:
I set my configuration:
My docker compose:
My caddy config:
My authentik config:
I checked every where. I believe everything is correct.
However, when I open my instance:
https://musics.aiursoft.com, it authenticated successfully via authentik. But it keeps asking me for Koel password.If I login with the initial admin password, I see an error:
If I call
https://musics.aiursoft.com/api/data, I get:Symfony\Component\Routing\Exception\RouteNotFoundException - Internal Server Error
Route [login] not defined.
PHP 8.4.8
Laravel 12.35.0
musics.aiursoft.com
Stack Trace
0 - vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:526
1 - vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:871
2 - vendor/laravel/framework/src/Illuminate/Foundation/Configuration/ApplicationBuilder.php:278
3 - vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:117
4 - vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:104
5 - vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:87
6 - vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:61
7 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
8 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
9 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:821
10 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:800
11 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:764
12 - vendor/laravel/framework/src/Illuminate/Routing/Router.php:753
13 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:200
14 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:180
15 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
16 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31
17 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
18 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
19 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:51
20 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
21 - vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php:27
22 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
23 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:109
24 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
25 - vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:61
26 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
27 - vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:58
28 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
29 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php:22
30 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
31 - vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePathEncoding.php:26
32 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
33 - vendor/laravel/nightwatch/src/Hooks/GlobalMiddleware.php:53
34 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219
35 - vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137
36 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175
37 - vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144
38 - public/index.php:56
Request
GET /api/data
Headers
Route Context
controller: App\Http\Controllers\API\FetchInitialDataController
route name: generated::Weea8oPVPI6c9P72
middleware: api, auth, Laravel\Nightwatch\Hooks\RouteMiddleware
Route Parameters
No route parameter data available.
Database Queries
personal_access_tokenswheretoken= 'e3b0c44298fc1c149afbf4c89HIDDEN' limit 1 (1.38 ms)personal_access_tokenswheretoken= 'e3b0c44298fc1c149afbf4c89HIDDEN' limit 1 (0.32 ms)Expected behavior
User sign in successfully.
Actual behavior
After authentik, still requires password. After password, 500 error.
Logs
Attached,
Koel version
Attached
How did you install Koel?
Official Docker image
Additional information
@phanan commented on GitHub (Nov 7, 2025):
What's the output of the
koel:doctorcommand?@Anduin2017 commented on GitHub (Nov 7, 2025):
Then I: