[GH-ISSUE #1165] [PANIC RECOVER] interface conversion: interface {} is string, not openid.Provider #6329

Closed
opened 2026-04-20 16:54:37 -05:00 by GiteaMirror · 20 comments
Owner

Originally created by @Ducky6944 on GitHub (Jul 23, 2025).
Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1165

Description

Using docker env to configure OIDC with Authentik. Was working until this latest build.

If there's anything you need please let me know.

vikunja  | time=2025-07-23T05:32:40.996Z level=INFO msg="[PANIC RECOVER] interface conversion: interface {} is string, not openid.Provider goroutine 435 [running]:\ncode.vikunja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1.1()\n\t/go/pkg/mo
d/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:99 +0x156\npanic({0x1602fa0?, 0xc000906000?})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/runtime/panic.go:792 +0x132\ncode.vikunja.io/api/pkg/m
odules/auth/openid.GetProvider({0xc000509bd9?, 0x17ba18e?})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid/providers.go:108 +0x1d0\ncode.vikunja.io/api/pkg/modules/auth/openid.getProviderAndOidcTokens({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vik
unja.io/api/pkg/modules/auth/openid/openid.go:416 +0x97\ncode.vikunja.io/api/pkg/modules/auth/openid.HandleCallback({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid/openid.go:123 +0x45\ncode.vikunja.io/api/pkg/routes.regis
terAPIRoutes.RateLimit.func32.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/routes/rate_limit.go:72 +0x5a5\ncode.vikunja.io/api/pkg/routes.registerAPIRoutes.func1.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/routes/rou
tes.go:244 +0x1a4\ngithub.com/labstack/echo/v4.(*Echo).add.func1({0x2376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/echo.go:581 +0x45\ngithub.com/labstack/echo/v4/middleware.CORSWithConfig.func1.1({0x2
376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/cors.go:280 +0x89f\ncode.vikunja.io/api/pkg/routes.setupStaticFrontendFilesHandler.static.func2.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vi
kunja.io/api/pkg/routes/static.go:144 +0x4c7\ngithub.com/labstack/echo/v4/middleware.GzipWithConfig.func1.1({0x2376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/compress.go:90 +0x26e\ncode.vik
unja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1({0x2376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:130 +0x111\ncode.vikunja.io/api/pkg/routes.NewEcho.slogHTTPMidd
leware.func1.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/routes/routes.go:94 +0x7f\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc00057e908, {0x2357dc0, 0xc000751420}, 0xc000400280)\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-
20250124112709-682dfde74c31/echo.go:668 +0x323\nnet/http.serverHandler.ServeHTTP({0x2353608?}, {0x2357dc0?, 0xc000751420?}, 0x6?)\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:3301 +0x8e\nnet/http.(*conn).serve(0xc
0002e0c60, {0x235a4a8, 0xc000158810})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:2102 +0x625\ncreated by net/http.(*Server).Serve in goroutine 26\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/s
rc/net/http/server.go:3454 +0x485\n\ngoroutine 1 [chan receive, 11 minutes]:\ncode.vikunja.io/api/pkg/cmd.init.func31(0xc00024b400?, {0x17b0e8f?, 0x4?, 0x17b0e93?})\n\t/go/src/code.vikunja.io/api/pkg/cmd/web.go:155 +0x117\ngithub.com/spf13/cobra.(*Command
).execute(0x2d664c0, {0xc00003e120, 0x0, 0x0})\n\t/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1019 +0xa91\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x2d664c0)\n\t/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148 +0x46f\ngithub.com/spf13
/cobra.(*Command).Execute(...)\n\t/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071\ncode.vikunja.io/api/pkg/cmd.Execute()\n\t/go/src/code.vikunja.io/api/pkg/cmd/cmd.go:44 +0x1a\nmain.main()\n\t/go/src/code.vikunja.io/api/main.go:22 +0xf\n\ngorout
ine 24 [chan receive, 11 minutes]:\ngithub.com/ThreeDotsLabs/watermill/message.(*Router).Run(0xc000000000, {0x2359ec0?, 0x2eb1d80?})\n\t/go/pkg/mod/github.com/!three!dots!labs/watermill@v1.4.7/message/router.go:390 +0x258\ncode.vikunja.io/api/pkg/events.I
nitEvents()\n\t/go/src/code.vikunja.io/api/pkg/events/events.go:113 +0x41a\ncode.vikunja.io/api/pkg/initialize.FullInit.func1()\n\t/go/src/code.vikunja.io/api/pkg/initialize/init.go:125 +0x185\ncreated by code.vikunja.io/api/pkg/initializ\n" component=http
vikunja  | time=2025-07-23T05:32:40.996Z level=INFO msg="POST /api/v1/auth/openid/authentikid/callback" component=http status=500 remote_ip=x.x.x.x latency=639.849µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Fire
fox/140.0"

Vikunja Version

Docker Unstable sha256:cfb0e12a7d92567f9bc292d1430f18b990a846593b6e59cda6f3c0102405a327

Browser and version

Zen (Firefox 140)

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @Ducky6944 on GitHub (Jul 23, 2025). Original GitHub issue: https://github.com/go-vikunja/vikunja/issues/1165 ### Description Using docker env to configure OIDC with Authentik. Was working until this latest build. If there's anything you need please let me know. ```logs vikunja | time=2025-07-23T05:32:40.996Z level=INFO msg="[PANIC RECOVER] interface conversion: interface {} is string, not openid.Provider goroutine 435 [running]:\ncode.vikunja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1.1()\n\t/go/pkg/mo d/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:99 +0x156\npanic({0x1602fa0?, 0xc000906000?})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/runtime/panic.go:792 +0x132\ncode.vikunja.io/api/pkg/m odules/auth/openid.GetProvider({0xc000509bd9?, 0x17ba18e?})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid/providers.go:108 +0x1d0\ncode.vikunja.io/api/pkg/modules/auth/openid.getProviderAndOidcTokens({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vik unja.io/api/pkg/modules/auth/openid/openid.go:416 +0x97\ncode.vikunja.io/api/pkg/modules/auth/openid.HandleCallback({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid/openid.go:123 +0x45\ncode.vikunja.io/api/pkg/routes.regis terAPIRoutes.RateLimit.func32.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/routes/rate_limit.go:72 +0x5a5\ncode.vikunja.io/api/pkg/routes.registerAPIRoutes.func1.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/routes/rou tes.go:244 +0x1a4\ngithub.com/labstack/echo/v4.(*Echo).add.func1({0x2376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/echo.go:581 +0x45\ngithub.com/labstack/echo/v4/middleware.CORSWithConfig.func1.1({0x2 376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/cors.go:280 +0x89f\ncode.vikunja.io/api/pkg/routes.setupStaticFrontendFilesHandler.static.func2.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vi kunja.io/api/pkg/routes/static.go:144 +0x4c7\ngithub.com/labstack/echo/v4/middleware.GzipWithConfig.func1.1({0x2376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/compress.go:90 +0x26e\ncode.vik unja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1({0x2376c80, 0xc0005101e0})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:130 +0x111\ncode.vikunja.io/api/pkg/routes.NewEcho.slogHTTPMidd leware.func1.1({0x2376c80, 0xc0005101e0})\n\t/go/src/code.vikunja.io/api/pkg/routes/routes.go:94 +0x7f\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc00057e908, {0x2357dc0, 0xc000751420}, 0xc000400280)\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0- 20250124112709-682dfde74c31/echo.go:668 +0x323\nnet/http.serverHandler.ServeHTTP({0x2353608?}, {0x2357dc0?, 0xc000751420?}, 0x6?)\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:3301 +0x8e\nnet/http.(*conn).serve(0xc 0002e0c60, {0x235a4a8, 0xc000158810})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:2102 +0x625\ncreated by net/http.(*Server).Serve in goroutine 26\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/s rc/net/http/server.go:3454 +0x485\n\ngoroutine 1 [chan receive, 11 minutes]:\ncode.vikunja.io/api/pkg/cmd.init.func31(0xc00024b400?, {0x17b0e8f?, 0x4?, 0x17b0e93?})\n\t/go/src/code.vikunja.io/api/pkg/cmd/web.go:155 +0x117\ngithub.com/spf13/cobra.(*Command ).execute(0x2d664c0, {0xc00003e120, 0x0, 0x0})\n\t/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1019 +0xa91\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x2d664c0)\n\t/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1148 +0x46f\ngithub.com/spf13 /cobra.(*Command).Execute(...)\n\t/go/pkg/mod/github.com/spf13/cobra@v1.9.1/command.go:1071\ncode.vikunja.io/api/pkg/cmd.Execute()\n\t/go/src/code.vikunja.io/api/pkg/cmd/cmd.go:44 +0x1a\nmain.main()\n\t/go/src/code.vikunja.io/api/main.go:22 +0xf\n\ngorout ine 24 [chan receive, 11 minutes]:\ngithub.com/ThreeDotsLabs/watermill/message.(*Router).Run(0xc000000000, {0x2359ec0?, 0x2eb1d80?})\n\t/go/pkg/mod/github.com/!three!dots!labs/watermill@v1.4.7/message/router.go:390 +0x258\ncode.vikunja.io/api/pkg/events.I nitEvents()\n\t/go/src/code.vikunja.io/api/pkg/events/events.go:113 +0x41a\ncode.vikunja.io/api/pkg/initialize.FullInit.func1()\n\t/go/src/code.vikunja.io/api/pkg/initialize/init.go:125 +0x185\ncreated by code.vikunja.io/api/pkg/initializ\n" component=http vikunja | time=2025-07-23T05:32:40.996Z level=INFO msg="POST /api/v1/auth/openid/authentikid/callback" component=http status=500 remote_ip=x.x.x.x latency=639.849µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Fire fox/140.0" ``` ### Vikunja Version Docker Unstable sha256:cfb0e12a7d92567f9bc292d1430f18b990a846593b6e59cda6f3c0102405a327 ### Browser and version Zen (Firefox 140) ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Jul 23, 2025):

Fixed in 2b497e6265, please check with the next unstable build (should be ready for deployment in ~30min, also on try).

<!-- gh-comment-id:3106677587 --> @kolaente commented on GitHub (Jul 23, 2025): Fixed in https://github.com/go-vikunja/vikunja/commit/2b497e62650c925db98f6d27791989c265575ae7, please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Author
Owner

@Ducky6944 commented on GitHub (Jul 23, 2025):

Unfortunately, it still seems to be an issue on sha256:b0abdf0a87c524d47e05bc6d12b5051e894bf198f15ed0215a85a500103c60c3.

The response from this request POST https://{MY DOMAIN}/api/v1/auth/openid/authentikid/callback is {"message":"Internal Server Error"}.

The [PANIC RECOVER] as before.

<!-- gh-comment-id:3107848311 --> @Ducky6944 commented on GitHub (Jul 23, 2025): Unfortunately, it still seems to be an issue on `sha256:b0abdf0a87c524d47e05bc6d12b5051e894bf198f15ed0215a85a500103c60c3`. The response from this request `POST https://{MY DOMAIN}/api/v1/auth/openid/authentikid/callback` is `{"message":"Internal Server Error"}`. The `[PANIC RECOVER]` as before.
Author
Owner

@kolaente commented on GitHub (Jul 23, 2025):

Which Vikunja version is that? From the vikunja version command or the about dialogue in the web ui

<!-- gh-comment-id:3108169695 --> @kolaente commented on GitHub (Jul 23, 2025): Which Vikunja version is that? From the `vikunja version` command or the about dialogue in the web ui
Author
Owner

@Ducky6944 commented on GitHub (Jul 23, 2025):

Vikunja version v0.24.1-1628-97a7e40c

<!-- gh-comment-id:3108221312 --> @Ducky6944 commented on GitHub (Jul 23, 2025): `Vikunja version v0.24.1-1628-97a7e40c`
Author
Owner

@kolaente commented on GitHub (Jul 23, 2025):

And still the same trace?

<!-- gh-comment-id:3108241062 --> @kolaente commented on GitHub (Jul 23, 2025): And still the same trace?
Author
Owner

@Ducky6944 commented on GitHub (Jul 23, 2025):

vikunja  | time=2025-07-23T13:12:49.629Z level=INFO msg="[PANIC RECOVER] interface conversion: interface {} is string, not *o
penid.Provider goroutine 374 [running]:\ncode.vikunja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1.1()\n\t/go/
pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:99 +0x156\npanic({0x16030e0?, 0x
c0003ac450?})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/runtime/panic.go:792 +0x132\ncode.vikunja.i
o/api/pkg/modules/auth/openid.GetProvider({0xc00068c199?, 0x17ba42e?})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid
/providers.go:108 +0xdb\ncode.vikunja.io/api/pkg/modules/auth/openid.getProviderAndOidcTokens({0x2377260, 0xc000c5e000})\n\t/
go/src/code.vikunja.io/api/pkg/modules/auth/openid/openid.go:416 +0x97\ncode.vikunja.io/api/pkg/modules/auth/openid.HandleCal
lback({0x2377260, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid/openid.go:123 +0x45\ncode.vikunja.io/
api/pkg/routes.registerAPIRoutes.RateLimit.func32.1({0x2377260, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/routes/rate
_limit.go:72 +0x5a5\ncode.vikunja.io/api/pkg/routes.registerAPIRoutes.func1.1({0x2377260, 0xc000c5e000})\n\t/go/src/code.viku
nja.io/api/pkg/routes/routes.go:244 +0x1a4\ngithub.com/labstack/echo/v4.(*Echo).add.func1({0x2377260, 0xc000c5e000})\n\t/go/p
kg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/echo.go:581 +0x45\ngithub.com/labstack/echo/v4/middlewa
re.CORSWithConfig.func1.1({0x2377260, 0xc000c5e000})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde
74c31/middleware/cors.go:280 +0x89f\ncode.vikunja.io/api/pkg/routes.setupStaticFrontendFilesHandler.static.func2.1({0x2377260
, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/routes/static.go:144 +0x4c7\ngithub.com/labstack/echo/v4/middleware.GzipW
ithConfig.func1.1({0x2377260, 0xc000c5e000})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/mi
ddleware/compress.go:90 +0x26e\ncode.vikunja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1({0x2377260, 0xc000c5
e000})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:130 +0x111\ncode.v
ikunja.io/api/pkg/routes.NewEcho.slogHTTPMiddleware.func1.1({0x2377260, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/rou
tes/routes.go:94 +0x7f\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc00053cb48, {0x23583a0, 0xc000b362a0}, 0xc0002f6280)\
n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/echo.go:668 +0x323\nnet/http.serverHandler.Serv
eHTTP({0x2353be8?}, {0x23583a0?, 0xc000b362a0?}, 0x6?)\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/ne
t/http/server.go:3301 +0x8e\nnet/http.(*conn).serve(0xc000204990, {0x235aa88, 0xc00068a240})\n\t/go/pkg/mod/golang.org/toolch
ain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:2102 +0x625\ncreated by net/http.(*Server).Serve in goroutine 9\n\t/go
/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:3454 +0x485\n\ngoroutine 1 [chan receive]:\n
code.vikunja.io/api/pkg/cmd.init.func31(0xc00022d600?, {0x17b112f?, 0x4?, 0x17b1133?})\n\t/go/src/code.vikunja.io/api/pkg/cmd
/web.go:155 +0x117\ngithub.com/spf13/cobra.(*Command).execute(0x2d664c0, {0xc0001c40d0, 0x0, 0x0})\n\t/go/pkg/mod/github.com/
spf13/cobra@v1.9.1/command.go:1019 +0xa91\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x2d664c0)\n\t/go/pkg/mod/github.com/sp
f13/cobra@v1.9.1/command.go:1148 +0x46f\ngithub.com/spf13/cobra.(*Command).Execute(...)\n\t/go/pkg/mod/github.com/spf13/cobra
@v1.9.1/command.go:1071\ncode.vikunja.io/api/pkg/cmd.Execute()\n\t/go/src/code.vikunja.io/api/pkg/cmd/cmd.go:44 +0x1a\nmain.m
ain()\n\t/go/src/code.vikunja.io/api/main.go:22 +0xf\n\ngoroutine 25 [select]:\ndatabase/sql.(*DB).connectionOpener(0xc000584
270, {0x235aac0, 0xc00013c050})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/database/sql/sql.go:1261
+0x87\ncreated by database/sql.OpenDB in goroutine 1\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/data
base/sql/sql.go:841 +0x130\n\ngoroutine 39 [select]:\ngithub.com/robfig/cron/v3.(*Cron).run(0xc000230280)\n\t/go/pkg/mod/gith
ub.com/robfig/cron/v3@v3.0.1/cron.go:263 +0xb3c\ncreated by github.com/\n" component=http

vikunja  | time=2025-07-23T13:12:49.629Z level=INFO msg="POST /api/v1/auth/openid/authentikid/callback" component=http status
=500 remote_ip=x.x.x.x latency=642.011µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101
 Firefox/140.0"
<!-- gh-comment-id:3108289758 --> @Ducky6944 commented on GitHub (Jul 23, 2025): ```logs vikunja | time=2025-07-23T13:12:49.629Z level=INFO msg="[PANIC RECOVER] interface conversion: interface {} is string, not *o penid.Provider goroutine 374 [running]:\ncode.vikunja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1.1()\n\t/go/ pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:99 +0x156\npanic({0x16030e0?, 0x c0003ac450?})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/runtime/panic.go:792 +0x132\ncode.vikunja.i o/api/pkg/modules/auth/openid.GetProvider({0xc00068c199?, 0x17ba42e?})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid /providers.go:108 +0xdb\ncode.vikunja.io/api/pkg/modules/auth/openid.getProviderAndOidcTokens({0x2377260, 0xc000c5e000})\n\t/ go/src/code.vikunja.io/api/pkg/modules/auth/openid/openid.go:416 +0x97\ncode.vikunja.io/api/pkg/modules/auth/openid.HandleCal lback({0x2377260, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/modules/auth/openid/openid.go:123 +0x45\ncode.vikunja.io/ api/pkg/routes.registerAPIRoutes.RateLimit.func32.1({0x2377260, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/routes/rate _limit.go:72 +0x5a5\ncode.vikunja.io/api/pkg/routes.registerAPIRoutes.func1.1({0x2377260, 0xc000c5e000})\n\t/go/src/code.viku nja.io/api/pkg/routes/routes.go:244 +0x1a4\ngithub.com/labstack/echo/v4.(*Echo).add.func1({0x2377260, 0xc000c5e000})\n\t/go/p kg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/echo.go:581 +0x45\ngithub.com/labstack/echo/v4/middlewa re.CORSWithConfig.func1.1({0x2377260, 0xc000c5e000})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde 74c31/middleware/cors.go:280 +0x89f\ncode.vikunja.io/api/pkg/routes.setupStaticFrontendFilesHandler.static.func2.1({0x2377260 , 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/routes/static.go:144 +0x4c7\ngithub.com/labstack/echo/v4/middleware.GzipW ithConfig.func1.1({0x2377260, 0xc000c5e000})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/mi ddleware/compress.go:90 +0x26e\ncode.vikunja.io/api/pkg/routes.NewEcho.Recover.RecoverWithConfig.func2.1({0x2377260, 0xc000c5 e000})\n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/middleware/recover.go:130 +0x111\ncode.v ikunja.io/api/pkg/routes.NewEcho.slogHTTPMiddleware.func1.1({0x2377260, 0xc000c5e000})\n\t/go/src/code.vikunja.io/api/pkg/rou tes/routes.go:94 +0x7f\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc00053cb48, {0x23583a0, 0xc000b362a0}, 0xc0002f6280)\ n\t/go/pkg/mod/github.com/kolaente/echo/v4@v4.0.0-20250124112709-682dfde74c31/echo.go:668 +0x323\nnet/http.serverHandler.Serv eHTTP({0x2353be8?}, {0x23583a0?, 0xc000b362a0?}, 0x6?)\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/ne t/http/server.go:3301 +0x8e\nnet/http.(*conn).serve(0xc000204990, {0x235aa88, 0xc00068a240})\n\t/go/pkg/mod/golang.org/toolch ain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:2102 +0x625\ncreated by net/http.(*Server).Serve in goroutine 9\n\t/go /pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/net/http/server.go:3454 +0x485\n\ngoroutine 1 [chan receive]:\n code.vikunja.io/api/pkg/cmd.init.func31(0xc00022d600?, {0x17b112f?, 0x4?, 0x17b1133?})\n\t/go/src/code.vikunja.io/api/pkg/cmd /web.go:155 +0x117\ngithub.com/spf13/cobra.(*Command).execute(0x2d664c0, {0xc0001c40d0, 0x0, 0x0})\n\t/go/pkg/mod/github.com/ spf13/cobra@v1.9.1/command.go:1019 +0xa91\ngithub.com/spf13/cobra.(*Command).ExecuteC(0x2d664c0)\n\t/go/pkg/mod/github.com/sp f13/cobra@v1.9.1/command.go:1148 +0x46f\ngithub.com/spf13/cobra.(*Command).Execute(...)\n\t/go/pkg/mod/github.com/spf13/cobra @v1.9.1/command.go:1071\ncode.vikunja.io/api/pkg/cmd.Execute()\n\t/go/src/code.vikunja.io/api/pkg/cmd/cmd.go:44 +0x1a\nmain.m ain()\n\t/go/src/code.vikunja.io/api/main.go:22 +0xf\n\ngoroutine 25 [select]:\ndatabase/sql.(*DB).connectionOpener(0xc000584 270, {0x235aac0, 0xc00013c050})\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/database/sql/sql.go:1261 +0x87\ncreated by database/sql.OpenDB in goroutine 1\n\t/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.5.linux-amd64/src/data base/sql/sql.go:841 +0x130\n\ngoroutine 39 [select]:\ngithub.com/robfig/cron/v3.(*Cron).run(0xc000230280)\n\t/go/pkg/mod/gith ub.com/robfig/cron/v3@v3.0.1/cron.go:263 +0xb3c\ncreated by github.com/\n" component=http vikunja | time=2025-07-23T13:12:49.629Z level=INFO msg="POST /api/v1/auth/openid/authentikid/callback" component=http status =500 remote_ip=x.x.x.x latency=642.011µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" ```
Author
Owner

@kolaente commented on GitHub (Jul 23, 2025):

Should be fixed in 7243a10fb2

<!-- gh-comment-id:3108574978 --> @kolaente commented on GitHub (Jul 23, 2025): Should be fixed in https://github.com/go-vikunja/vikunja/commit/7243a10fb213ab998e43902cb62e040a16150e39
Author
Owner

@Ducky6944 commented on GitHub (Jul 23, 2025):

Currently getting the following. Still 500 on the callback POST.
vikunja | time=2025-07-23T16:01:03.943Z level=ERROR msg="invalid cached provider type: string"

<!-- gh-comment-id:3109249767 --> @Ducky6944 commented on GitHub (Jul 23, 2025): Currently getting the following. Still 500 on the callback POST. `vikunja | time=2025-07-23T16:01:03.943Z level=ERROR msg="invalid cached provider type: string"`
Author
Owner

@kolaente commented on GitHub (Jul 24, 2025):

are you using redis?

<!-- gh-comment-id:3112677383 --> @kolaente commented on GitHub (Jul 24, 2025): are you using redis?
Author
Owner

@Ducky6944 commented on GitHub (Jul 24, 2025):

I am, if I disable redis, I'm able to log in, but I know longer see any of my tasks.

<!-- gh-comment-id:3113282331 --> @Ducky6944 commented on GitHub (Jul 24, 2025): I am, if I disable redis, I'm able to log in, but I know longer see any of my tasks.
Author
Owner

@kolaente commented on GitHub (Jul 24, 2025):

I've added debug logging around this in bbd3567e43, can you try again with debug logging (and redis enabled)?

<!-- gh-comment-id:3113594139 --> @kolaente commented on GitHub (Jul 24, 2025): I've added debug logging around this in https://github.com/go-vikunja/vikunja/commit/bbd3567e43a18c05730fbe260c4bd5cb8f9ce72b, can you try again with debug logging (and redis enabled)?
Author
Owner

@Ducky6944 commented on GitHub (Jul 24, 2025):

All logs generated attached after a fresh restart. I replaced my URLs with {vikunja.instance} and {authentik.instance}

vikunja  | time=2025-07-24T18:23:48.934Z level=INFO msg="No config file found, using default or config from environment variables."
vikunja  | time=2025-07-24T18:23:48.935Z level=DEBUG msg="Redis initialized"
vikunja  | time=2025-07-24T18:23:48.935Z level=INFO msg="Running migrations…"
vikunja  | time=2025-07-24T18:23:48.969Z level=INFO msg="Ran all migrations successfully."
vikunja  | time=2025-07-24T18:23:48.970Z level=DEBUG msg="[Task Reminder Cron] Timezone is GMT"
vikunja  | time=2025-07-24T18:23:48.970Z level=INFO msg="Vikunja version v0.24.1-1634-bbd3567e"
vikunja  | time=2025-07-24T18:23:48.970Z level=DEBUG msg="CORS enabled with origins: http://127.0.0.1:*, http://localhost:*, https://{vikunja.instance}"
vikunja  | ⇨ http server started on [::]:3456
vikunja  | time=2025-07-24T18:24:00.000Z level=DEBUG msg="[Task Reminder Cron] Looking for reminders between 2025-07-24 18:24:00 +0000 GMT and 2025-07-24 18:25:00 +0000 GMT to send..."
vikunja  | time=2025-07-24T18:24:00.005Z level=DEBUG msg="[Task Reminder Cron] Found 0 reminders"
vikunja  | time=2025-07-24T18:24:00.012Z level=DEBUG msg="[Undone Overdue Tasks Reminder] Sending reminders to 0 users"
vikunja  | time=2025-07-24T18:24:07.131Z level=INFO msg="GET /assets/OpenSans_wght__e4849d7d-Ce425S3K.woff2" component=http status=304 remote_ip=10.0.1.64 latency=432.086µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:07.159Z level=INFO msg="GET /assets/Quicksand_wght__6d82d68f-Di7i6vOW.woff2" component=http status=304 remote_ip=10.0.1.64 latency=89.031µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-core.prod.js" component=http status=200 remote_ip=10.0.1.64 latency=246.511µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /sw.js" component=http status=200 remote_ip=10.0.1.64 latency=645.895µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-routing.prod.js" component=http status=200 remote_ip=10.0.1.64 latency=107.505µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-sw.js" component=http status=200 remote_ip=10.0.1.64 latency=61.687µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-strategies.prod.js" component=http status=200 remote_ip=10.0.1.64 latency=153.375µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:09.136Z level=INFO msg="GET /auth/openid/authentikid?code=b916eee8ce7c40ee95995e098f7b9922&state=4b79ooruy97" component=http status=200 remote_ip=10.0.1.64 latency=130.393µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:09.164Z level=INFO msg="GET /assets/index-CxhwML8j.css" component=http status=304 remote_ip=10.0.1.64 latency=901.103µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:09.166Z level=INFO msg="GET /assets/index-CSAAu3d0.js" component=http status=304 remote_ip=10.0.1.64 latency=2.518156ms user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:09.534Z level=INFO msg="GET /api/v1/info" component=http status=200 remote_ip=10.0.1.64 latency=289.304886ms user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0"
vikunja  | time=2025-07-24T18:24:09.554Z level=DEBUG msg="stored cached provider has an invalid type string, value: \xff\xc7\x7f\x03\x01\x01\bProvider\x01\xff\x80\x00\x01\f\x01\x04Name\x01\f\x00\x01\x03Key\x01\f\x00\x01\x0fOriginalAuthURL\x01\f\x00\x01\aAuthURL\x01\f\x00\x01\tLogoutURL\x01\f\x00\x01\bClientID\x01\f\x00\x01\x05Scope\x01\f\x00\x01\rEmailFallback\x01\x02\x00\x01\x10UsernameFallback\x01\x02\x00\x01\rForceUserInfo\x01\x02\x00\x01\fClientSecret\x01\f\x00\x01\fOauth2Config\x01\xff\x82\x00\x00\x00\\\xff\x81\x03\x01\x01\x06Config\x01\xff\x82\x00\x01\x05\x01\bClientID\x01\f\x00\x01\fClientSecret\x01\f\x00\x01\bEndpoint\x01\xff\x84\x00\x01\vRedirectURL\x01\f\x00\x01\x06Scopes\x01\xff\x86\x00\x00\x00O\xff\x83\x03\x01\x01\bEndpoint\x01\xff\x84\x00\x01\x04\x01\aAuthURL\x01\f\x00\x01\rDeviceAuthURL\x01\f\x00\x01\bTokenURL\x01\f\x00\x01\tAuthStyle\x01\x04\x00\x00\x00\x16\xff\x85\x02\x01\x01\b[]string\x01\xff\x86\x00\x01\f\x00\x00\xfe\x02\xf4\xff\x80\x01\fAuthentik ID\x01\vauthentikid\x013https://{authentik.instance}/application/o/vikunja/\x015https://{authentik.instance}/application/o/authorize/\x01?https://{authentik.instance}/application/o/vikunja/end-session/\x01(T9a0ocGS8DHaIVZcIXh28bveNbWeuzvrY9QCiE3L\x01\x14openid profile email\x04\xff\x80LTsIprGSE3iajwpjlbRfYkS4V7MPyxx9m1p1x9oJj92BOz10KumX6pg4avtEtOSVDEmHAFYGpi7Mb2SB7OVHrif570S2pODeMqSnd4faxOz4LKb2NvC4M3ponhcFggqT\x01\x01(T9a0ocGS8DHaIVZcIXh28bveNbWeuzvrY9QCiE3L\x01\xff\x80LTsIprGSE3iajwpjlbRfYkS4V7MPyxx9m1p1x9oJj92BOz10KumX6pg4avtEtOSVDEmHAFYGpi7Mb2SB7OVHrif570S2pODeMqSnd4faxOz4LKb2NvC4M3ponhcFggqT\x01\x015https://{authentik.instance}/application/o/authorize/\x012https://{authentik.instance}/application/o/device/\x011https://{authentik.instance}/application/o/token/\x00\x02\x03\x06openid\aprofile\x05email\x00\x00"
vikunja  | time=2025-07-24T18:24:09.554Z level=ERROR msg="invalid cached provider type: string"
vikunja  | time=2025-07-24T18:24:09.554Z level=INFO msg="POST /api/v1/auth/openid/authentikid/callback" component=http status=200 remote_ip=10.0.1.64 latency=106.386µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Fire
<!-- gh-comment-id:3114481050 --> @Ducky6944 commented on GitHub (Jul 24, 2025): All logs generated attached after a fresh restart. I replaced my URLs with {vikunja.instance} and {authentik.instance} ```log vikunja | time=2025-07-24T18:23:48.934Z level=INFO msg="No config file found, using default or config from environment variables." vikunja | time=2025-07-24T18:23:48.935Z level=DEBUG msg="Redis initialized" vikunja | time=2025-07-24T18:23:48.935Z level=INFO msg="Running migrations…" vikunja | time=2025-07-24T18:23:48.969Z level=INFO msg="Ran all migrations successfully." vikunja | time=2025-07-24T18:23:48.970Z level=DEBUG msg="[Task Reminder Cron] Timezone is GMT" vikunja | time=2025-07-24T18:23:48.970Z level=INFO msg="Vikunja version v0.24.1-1634-bbd3567e" vikunja | time=2025-07-24T18:23:48.970Z level=DEBUG msg="CORS enabled with origins: http://127.0.0.1:*, http://localhost:*, https://{vikunja.instance}" vikunja | ⇨ http server started on [::]:3456 vikunja | time=2025-07-24T18:24:00.000Z level=DEBUG msg="[Task Reminder Cron] Looking for reminders between 2025-07-24 18:24:00 +0000 GMT and 2025-07-24 18:25:00 +0000 GMT to send..." vikunja | time=2025-07-24T18:24:00.005Z level=DEBUG msg="[Task Reminder Cron] Found 0 reminders" vikunja | time=2025-07-24T18:24:00.012Z level=DEBUG msg="[Undone Overdue Tasks Reminder] Sending reminders to 0 users" vikunja | time=2025-07-24T18:24:07.131Z level=INFO msg="GET /assets/OpenSans_wght__e4849d7d-Ce425S3K.woff2" component=http status=304 remote_ip=10.0.1.64 latency=432.086µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:07.159Z level=INFO msg="GET /assets/Quicksand_wght__6d82d68f-Di7i6vOW.woff2" component=http status=304 remote_ip=10.0.1.64 latency=89.031µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-core.prod.js" component=http status=200 remote_ip=10.0.1.64 latency=246.511µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /sw.js" component=http status=200 remote_ip=10.0.1.64 latency=645.895µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-routing.prod.js" component=http status=200 remote_ip=10.0.1.64 latency=107.505µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-sw.js" component=http status=200 remote_ip=10.0.1.64 latency=61.687µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:08.030Z level=INFO msg="GET /workbox-v7.3.0/workbox-strategies.prod.js" component=http status=200 remote_ip=10.0.1.64 latency=153.375µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:09.136Z level=INFO msg="GET /auth/openid/authentikid?code=b916eee8ce7c40ee95995e098f7b9922&state=4b79ooruy97" component=http status=200 remote_ip=10.0.1.64 latency=130.393µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:09.164Z level=INFO msg="GET /assets/index-CxhwML8j.css" component=http status=304 remote_ip=10.0.1.64 latency=901.103µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:09.166Z level=INFO msg="GET /assets/index-CSAAu3d0.js" component=http status=304 remote_ip=10.0.1.64 latency=2.518156ms user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:09.534Z level=INFO msg="GET /api/v1/info" component=http status=200 remote_ip=10.0.1.64 latency=289.304886ms user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0" vikunja | time=2025-07-24T18:24:09.554Z level=DEBUG msg="stored cached provider has an invalid type string, value: \xff\xc7\x7f\x03\x01\x01\bProvider\x01\xff\x80\x00\x01\f\x01\x04Name\x01\f\x00\x01\x03Key\x01\f\x00\x01\x0fOriginalAuthURL\x01\f\x00\x01\aAuthURL\x01\f\x00\x01\tLogoutURL\x01\f\x00\x01\bClientID\x01\f\x00\x01\x05Scope\x01\f\x00\x01\rEmailFallback\x01\x02\x00\x01\x10UsernameFallback\x01\x02\x00\x01\rForceUserInfo\x01\x02\x00\x01\fClientSecret\x01\f\x00\x01\fOauth2Config\x01\xff\x82\x00\x00\x00\\\xff\x81\x03\x01\x01\x06Config\x01\xff\x82\x00\x01\x05\x01\bClientID\x01\f\x00\x01\fClientSecret\x01\f\x00\x01\bEndpoint\x01\xff\x84\x00\x01\vRedirectURL\x01\f\x00\x01\x06Scopes\x01\xff\x86\x00\x00\x00O\xff\x83\x03\x01\x01\bEndpoint\x01\xff\x84\x00\x01\x04\x01\aAuthURL\x01\f\x00\x01\rDeviceAuthURL\x01\f\x00\x01\bTokenURL\x01\f\x00\x01\tAuthStyle\x01\x04\x00\x00\x00\x16\xff\x85\x02\x01\x01\b[]string\x01\xff\x86\x00\x01\f\x00\x00\xfe\x02\xf4\xff\x80\x01\fAuthentik ID\x01\vauthentikid\x013https://{authentik.instance}/application/o/vikunja/\x015https://{authentik.instance}/application/o/authorize/\x01?https://{authentik.instance}/application/o/vikunja/end-session/\x01(T9a0ocGS8DHaIVZcIXh28bveNbWeuzvrY9QCiE3L\x01\x14openid profile email\x04\xff\x80LTsIprGSE3iajwpjlbRfYkS4V7MPyxx9m1p1x9oJj92BOz10KumX6pg4avtEtOSVDEmHAFYGpi7Mb2SB7OVHrif570S2pODeMqSnd4faxOz4LKb2NvC4M3ponhcFggqT\x01\x01(T9a0ocGS8DHaIVZcIXh28bveNbWeuzvrY9QCiE3L\x01\xff\x80LTsIprGSE3iajwpjlbRfYkS4V7MPyxx9m1p1x9oJj92BOz10KumX6pg4avtEtOSVDEmHAFYGpi7Mb2SB7OVHrif570S2pODeMqSnd4faxOz4LKb2NvC4M3ponhcFggqT\x01\x015https://{authentik.instance}/application/o/authorize/\x012https://{authentik.instance}/application/o/device/\x011https://{authentik.instance}/application/o/token/\x00\x02\x03\x06openid\aprofile\x05email\x00\x00" vikunja | time=2025-07-24T18:24:09.554Z level=ERROR msg="invalid cached provider type: string" vikunja | time=2025-07-24T18:24:09.554Z level=INFO msg="POST /api/v1/auth/openid/authentikid/callback" component=http status=200 remote_ip=10.0.1.64 latency=106.386µs user_agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Fire ```
Author
Owner

@ZuluWhiskey commented on GitHub (Jul 25, 2025):

I had the same issue and I think I've found the cause for myself at least. Perhaps the same for you @typkrft?
Within the documentation on this page, it suggests the following for unstable:

auth:
  openid:
    enabled: true
    redirecturl: https://vikunja.mydomain.com/auth/openid/  <---- slash at the end is important
    providers:
      <provider-id1>:
        name: <provider1-name>
        authurl: <auth-url>  <----- Used for OIDC Discovery, usually the issuer
        clientid: <vikunja client-id>
        clientsecret: <vikunja client-secret>
        scope: openid profile email
        forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false
      <provider-id2>:
        name: <provider2-name>
        authurl: <auth-url>  <----- Used for OIDC Discovery, usually the issuer
        clientid: <vikunja client-id>
        clientsecret: <vikunja client-secret>
        scope: openid profile email
        forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false

The stable syntax is as follows:

auth:
  openid:
    enabled: true
    redirecturl: https://vikunja.mydomain.com/auth/openid/  <---- slash at the end is important
    providers:
      - name: <provider-name>
        authurl: <auth-url>  <----- Used for OIDC Discovery, usually the issuer
        clientid: <vikunja client-id>
        clientsecret: <vikunja client-secret>
        scope: openid profile email
        forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false
      - name: <provider2-name>
        authurl: <auth-url>  <----- Used for OIDC Discovery, usually the issuer
        clientid: <vikunja client-id>
        clientsecret: <vikunja client-secret>
        scope: openid profile email
        forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false

I personally had mistakenly configured my instance running unstable using the following (only relevant snippet included):

    providers:
      <provider-id1>:
        - name: <provider1-name>
          authurl: <auth-url>  <----- Used for OIDC Discovery, usually the issuer

So a combination of stable & unstable by adding the hyphen - before name:. Removing that hyphen (and fixing the indentation) fixed my issue straight away.

<!-- gh-comment-id:3117749457 --> @ZuluWhiskey commented on GitHub (Jul 25, 2025): I had the same issue and I think I've found the cause for myself at least. Perhaps the same for you @typkrft? Within the documentation on [this page](https://vikunja.io/docs/openid/#step-2-configure-vikunja), it suggests the following for **unstable**: ``` auth: openid: enabled: true redirecturl: https://vikunja.mydomain.com/auth/openid/ <---- slash at the end is important providers: <provider-id1>: name: <provider1-name> authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer clientid: <vikunja client-id> clientsecret: <vikunja client-secret> scope: openid profile email forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false <provider-id2>: name: <provider2-name> authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer clientid: <vikunja client-id> clientsecret: <vikunja client-secret> scope: openid profile email forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false ``` The **stable** syntax is as follows: ``` auth: openid: enabled: true redirecturl: https://vikunja.mydomain.com/auth/openid/ <---- slash at the end is important providers: - name: <provider-name> authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer clientid: <vikunja client-id> clientsecret: <vikunja client-secret> scope: openid profile email forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false - name: <provider2-name> authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer clientid: <vikunja client-id> clientsecret: <vikunja client-secret> scope: openid profile email forceuserinfo: false # Optional: Set to true to always use UserInfo endpoint instead of ID token claims, defaults to false ``` I personally had mistakenly configured my instance running **unstable** using the following (only relevant snippet included): ``` providers: <provider-id1>: - name: <provider1-name> authurl: <auth-url> <----- Used for OIDC Discovery, usually the issuer ``` So a combination of stable & unstable by adding the hyphen `-` before `name:`. Removing that hyphen (and fixing the indentation) fixed my issue straight away.
Author
Owner

@Ducky6944 commented on GitHub (Jul 25, 2025):

I was using configuration through Environmental variables, which was working. However setting the same config through the config file results in the same issue.

<!-- gh-comment-id:3120034047 --> @Ducky6944 commented on GitHub (Jul 25, 2025): I was using configuration through Environmental variables, which was working. However setting the same config through the config file results in the same issue.
Author
Owner

@Ducky6944 commented on GitHub (Jul 25, 2025):

@kolaente I restored a VM to the last day it worked for me which is 07-20. If you need any information from that let me know.

If you've got a chance maybe you could provide some guidance while this is being worked on. I am looking to export my tasks and bring them over to the current copy of the VM. On the current copy simply disabling redis resolves the login issue, but I lose all my tasks.

eg:

      # VIKUNJA_KEYVALUE_TYPE: redis
      # VIKUNJA_REDIS_ENABLED: true
      # VIKUNJA_REDIS_HOST: vikunja-redis:6379

Unfortunately if I export my tasks from the web browser from the 07-20 VM. Almost none of my tasks are exported. I can reenter them manually, but it's probably going to take me most of a day to do so. Any ideas? If not no big deal, appreciate the help so far.

I'm going to try and muck around the database and see what I can find in there.

EDIT:

I was able to get my tasks back. During my troubleshooting it looks like I changed an authentik setting and it was creating a new user in the database. Reverting that change resolved the tasks issue. However, exporting the tasks still doesn't export all tasks, just fyi. Additionally, Re-enabling redis breaks it again.

<!-- gh-comment-id:3120708603 --> @Ducky6944 commented on GitHub (Jul 25, 2025): @kolaente I restored a VM to the last day it worked for me which is 07-20. If you need any information from that let me know. If you've got a chance maybe you could provide some guidance while this is being worked on. I am looking to export my tasks and bring them over to the current copy of the VM. On the current copy simply disabling redis resolves the login issue, but I lose all my tasks. eg: ```yaml # VIKUNJA_KEYVALUE_TYPE: redis # VIKUNJA_REDIS_ENABLED: true # VIKUNJA_REDIS_HOST: vikunja-redis:6379 ``` Unfortunately if I export my tasks from the web browser from the 07-20 VM. Almost none of my tasks are exported. I can reenter them manually, but it's probably going to take me most of a day to do so. Any ideas? If not no big deal, appreciate the help so far. I'm going to try and muck around the database and see what I can find in there. EDIT: I was able to get my tasks back. During my troubleshooting it looks like I changed an authentik setting and it was creating a new user in the database. Reverting that change resolved the tasks issue. However, exporting the tasks still doesn't export all tasks, just fyi. Additionally, Re-enabling redis breaks it again.
Author
Owner

@kolaente commented on GitHub (Jul 28, 2025):

I've pushed another change in de917467cb which should make this work again. Please check with the next unstable build.

I was able to get my tasks back. During my troubleshooting it looks like I changed an authentik setting and it was creating a new user in the database. Reverting that change resolved the tasks issue. However, exporting the tasks still doesn't export all tasks, just fyi.

@typkrft But you can see all tasks? They are just not exported fully?

<!-- gh-comment-id:3126408458 --> @kolaente commented on GitHub (Jul 28, 2025): I've pushed another change in https://github.com/go-vikunja/vikunja/commit/de917467cb1ea156282004e314322362a6bc8122 which should make this work again. Please check with the next unstable build. > I was able to get my tasks back. During my troubleshooting it looks like I changed an authentik setting and it was creating a new user in the database. Reverting that change resolved the tasks issue. However, exporting the tasks still doesn't export all tasks, just fyi. @typkrft But you can see all tasks? They are just not exported fully?
Author
Owner

@Ducky6944 commented on GitHub (Jul 30, 2025):

@kolaente Lastest unstable is confirmed working for me with Redis.

I can see all tasks in the GUI but they are not exported. Eg: various tasks I cannot see in the JSON. There are a number of null entries under buckets. If there's anything I can provide I'm more than happy to.

An example of the data in the exported JSON.

0.tasks.length == 3 0.buckets == 4 0.task_buckets == 33 0.positions = 122

<!-- gh-comment-id:3136958981 --> @Ducky6944 commented on GitHub (Jul 30, 2025): @kolaente Lastest unstable is confirmed working for me with Redis. I can see all tasks in the GUI but they are not exported. Eg: various tasks I cannot see in the JSON. There are a number of null entries under buckets. If there's anything I can provide I'm more than happy to. An example of the data in the exported JSON. `0.tasks.length == 3` `0.buckets == 4` `0.task_buckets == 33` `0.positions = 122`
Author
Owner

@kolaente commented on GitHub (Jul 30, 2025):

Does the export work without redis?

<!-- gh-comment-id:3137370900 --> @kolaente commented on GitHub (Jul 30, 2025): Does the export work without redis?
Author
Owner

@Ducky6944 commented on GitHub (Jul 30, 2025):

Just tested the current unstable and the export does not work for me with or without redis disabled.

<!-- gh-comment-id:3137453903 --> @Ducky6944 commented on GitHub (Jul 30, 2025): Just tested the current unstable and the export does not work for me with or without redis disabled.
Author
Owner

@kolaente commented on GitHub (Aug 1, 2025):

@typkrft can you open a new issue about this? seems unrelated to this one.

<!-- gh-comment-id:3144313761 --> @kolaente commented on GitHub (Aug 1, 2025): @typkrft can you open a new issue about this? seems unrelated to this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#6329