mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 23:57:11 -04:00
[GH-ISSUE #219] [Enhancement]: Github OAuth应用程序集成问题 #84
Reference in New Issue
Block a user
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 @starnotes-xj on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/219
Originally assigned to: @asdek on GitHub.
Target Component
Documentation and User Experience
Enhancement Description
Not explaining how to set the Homepage URL and Authorization callback URL resulted in the following error: Be careful!
The redirect_uri is not associated with this application.
The application might be misconfigured or could be trying to redirect you to a website you weren't expecting.
Technical Details
How to set the Homepage URL and Authorization callback URL
Designs and Mockups
No response
Alternative Solutions
No response
Verification
@starnotes-xj commented on GitHub (Mar 20, 2026):
@asdek commented on GitHub (Mar 20, 2026):
hey @starnotes-xj
please, try to use these options to configure it
@starnotes-xj commented on GitHub (Mar 23, 2026):
Now the problem has been solved, just follow the image configuration you provided. But a new issue was discovered, where after clicking on Github login, a window popped up automatically authorizing and then displaying 'authorization cancelled'. But when I refreshed the page, I found that I had already logged in
@starnotes-xj commented on GitHub (Mar 23, 2026):
@asdek commented on GitHub (Mar 23, 2026):
hey @starnotes-xj
unfortunately i couldn't reproduce your issue. it might be related to using a self-signed certificate that your browser doesn't trust - this sometimes causes such behavior.
based on indirect indicators, i tried to identify where this could happen and made the code more reliable in this commit:
https://github.com/vxcontrol/pentagi/commit/260a26cfd45df795c1ec5771a4895538007688d4
please update to the latest version:
let me know if the issue persists after the update
might be you can get some logs from you browser and from pentagi container, it'll be useful for next fixes
@starnotes-xj commented on GitHub (Mar 23, 2026):
Before clicking login:
docker logs pentagi | tail
time="2026-03-24T02:04:24Z" level=info msg="Starting PentAGI 1.2.0-938458e"
2026/03/24 02:04:24 goose: no migrations to run. current version: 20260310
2026/03/24 02:04:24 Migrations ran successfully
time="2026-03-24T02:04:25Z" level=warning msg="failed to initialize graphiti client, continuing without it" error="graphiti health check failed: failed to perform request: Get "http://graphiti:8000/healthcheck": dial tcp 172.29.0.2:8000: connect: connection refused"
time="2026-03-24T02:04:25Z" level=info msg="flow loaded from DB" flow_id=3 provider_name="队伍使用GPT" provider_type=openai user_id=1
time="2026-03-24T02:04:26Z" level=info msg="flow loaded from DB" flow_id=2 provider_name="队伍使用-GPT" provider_type=openai user_id=2
time="2026-03-24T02:04:27Z" level=info msg="SELECT count(*) FROM "users" WHERE (type = 'local')" component=pentagi-gorm duration=8.987552ms rows_returned=0 src="pentagi/pkg/server/services/auth.go:60" type=sql values="[]"
time="2026-03-24T02:04:29Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration=1.448642ms rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:04:29Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:04:35Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:35Z" level=error msg="http request handled error" component=api duration="86.989µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:36Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:36Z" level=error msg="http request handled error" component=api duration="101.464µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:37Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:37Z" level=error msg="http request handled error" component=api duration="70.293µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:39Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:39Z" level=error msg="http request handled error" component=api duration="284.993µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:44Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:44Z" level=error msg="http request handled error" component=api duration="63.797µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:53Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:53Z" level=error msg="http request handled error" component=api duration="96.994µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:05:10Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:05:10Z" level=error msg="http request handled error" component=api duration="68.592µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:05:37Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:05:37Z" level=error msg="http request handled error" component=api duration="97.032µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:05:40Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:05:40Z" level=error msg="http request handled error" component=api duration="88.135µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:09:52Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration="651.145µs" rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:09:52Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:15:23Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration="781.571µs" rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:15:23Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:19:37Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:20:02Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:28:58Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:28:58Z" level=error msg="http request handled error" component=api duration="115.651µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:28:58Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:28:58Z" level=error msg="http request handled error" component=api duration="90.947µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:28:59Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:28:59Z" level=error msg="http request handled error" component=api duration="70.233µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:01Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:01Z" level=error msg="http request handled error" component=api duration="64.083µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:06Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:06Z" level=error msg="http request handled error" component=api duration="65.77µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:15Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:15Z" level=error msg="http request handled error" component=api duration="69.091µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:31Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:31Z" level=error msg="http request handled error" component=api duration="138.027µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:02Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:02Z" level=error msg="http request handled error" component=api duration="64.688µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:33Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:33Z" level=error msg="http request handled error" component=api duration="97.763µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:50Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:50Z" level=error msg="http request handled error" component=api duration="99.081µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:50Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:50Z" level=error msg="http request handled error" component=api duration="68.556µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:51Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:51Z" level=error msg="http request handled error" component=api duration="65.547µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:54Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:54Z" level=error msg="http request handled error" component=api duration="83.765µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
[GIN] 2026/03/24 - 02:29:06 | 403 | 84.318µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:29:15 | 403 | 86.551µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:29:31 | 403 | 160.047µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:29:51 | 307 | 102.654µs | 111.198.122.242 | GET "/api/v1/auth/authorize?provider=github&return_uri=/oauth/result"
[GIN] 2026/03/24 - 02:30:02 | 403 | 86.847µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:30:33 | 403 | 133.027µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:30:50 | 403 | 122.034µs | 111.198.122.242 | POST "/api/v1/graphql"
[GIN] 2026/03/24 - 02:30:50 | 403 | 86.186µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:30:51 | 403 | 81.739µs | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:30:54 | 403 | 105.268µs | 111.198.122.242 | GET "/api/v1/graphql"
@starnotes-xj commented on GitHub (Mar 23, 2026):
After clicking login:
docker logs pentagi | tail
time="2026-03-24T02:04:24Z" level=info msg="Starting PentAGI 1.2.0-938458e"
2026/03/24 02:04:24 goose: no migrations to run. current version: 20260310
2026/03/24 02:04:24 Migrations ran successfully
time="2026-03-24T02:04:25Z" level=warning msg="failed to initialize graphiti client, continuing without it" error="graphiti health check failed: failed to perform request: Get "http://graphiti:8000/healthcheck": dial tcp 172.29.0.2:8000: connect: connection refused"
time="2026-03-24T02:04:25Z" level=info msg="flow loaded from DB" flow_id=3 provider_name="队伍使用GPT" provider_type=openai user_id=1
time="2026-03-24T02:04:26Z" level=info msg="flow loaded from DB" flow_id=2 provider_name="队伍使用-GPT" provider_type=openai user_id=2
time="2026-03-24T02:04:27Z" level=info msg="SELECT count(*) FROM "users" WHERE (type = 'local')" component=pentagi-gorm duration=8.987552ms rows_returned=0 src="pentagi/pkg/server/services/auth.go:60" type=sql values="[]"
time="2026-03-24T02:04:29Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration=1.448642ms rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:04:29Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:04:35Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:35Z" level=error msg="http request handled error" component=api duration="86.989µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:36Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:36Z" level=error msg="http request handled error" component=api duration="101.464µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:37Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:37Z" level=error msg="http request handled error" component=api duration="70.293µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:39Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:39Z" level=error msg="http request handled error" component=api duration="284.993µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:44Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:44Z" level=error msg="http request handled error" component=api duration="63.797µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:04:53Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:04:53Z" level=error msg="http request handled error" component=api duration="96.994µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:05:10Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:05:10Z" level=error msg="http request handled error" component=api duration="68.592µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:05:37Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:05:37Z" level=error msg="http request handled error" component=api duration="97.032µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:05:40Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:05:40Z" level=error msg="http request handled error" component=api duration="88.135µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:09:52Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration="651.145µs" rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:09:52Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:15:23Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration="781.571µs" rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:15:23Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:19:37Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:20:02Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:28:58Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:28:58Z" level=error msg="http request handled error" component=api duration="115.651µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:28:58Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:28:58Z" level=error msg="http request handled error" component=api duration="90.947µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:28:59Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:28:59Z" level=error msg="http request handled error" component=api duration="70.233µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:01Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:01Z" level=error msg="http request handled error" component=api duration="64.083µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:06Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:06Z" level=error msg="http request handled error" component=api duration="65.77µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:15Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:15Z" level=error msg="http request handled error" component=api duration="69.091µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:29:31Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:29:31Z" level=error msg="http request handled error" component=api duration="138.027µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:02Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:02Z" level=error msg="http request handled error" component=api duration="64.688µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:33Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:33Z" level=error msg="http request handled error" component=api duration="97.763µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:50Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:50Z" level=error msg="http request handled error" component=api duration="99.081µs" http_host_name=bigcctf.org.cn http_method=POST http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:50Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:50Z" level=error msg="http request handled error" component=api duration="68.556µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:51Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:51Z" level=error msg="http request handled error" component=api duration="65.547µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:54Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:54Z" level=error msg="http request handled error" component=api duration="83.765µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:30:58Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:30:58Z" level=error msg="http request handled error" component=api duration="68.646µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:31:07Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:31:07Z" level=error msg="http request handled error" component=api duration="82.966µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:31:24Z" level=error msg="api error" code=403 error="cookie claim invalid" message="auth required"
time="2026-03-24T02:31:24Z" level=error msg="http request handled error" component=api duration="67.386µs" http_host_name=bigcctf.org.cn http_method=GET http_path=/api/v1/graphql http_resp_size=62 http_status_code=403 http_uri=/api/v1/graphql net_peer_ip=111.198.122.242 request="api handled"
time="2026-03-24T02:31:47Z" level=info msg="SELECT * FROM "roles" WHERE (id = '2') LIMIT 1" component=pentagi-gorm duration=1.041496ms rows_returned=1 src="pentagi/pkg/server/services/auth.go:507" type=sql values="[2]"
time="2026-03-24T02:31:47Z" level=info msg="SELECT name FROM "privileges" WHERE (role_id = '2')" component=pentagi-gorm duration="788.488µs" rows_returned=0 src="pentagi/pkg/server/services/auth.go:516" type=sql values="[2]"
time="2026-03-24T02:31:47Z" level=info msg="SELECT * FROM "users" WHERE (mail = 'starnotes@qq.com' AND type = 'oauth') LIMIT 1" component=pentagi-gorm duration=1.480504ms rows_returned=1 src="pentagi/pkg/server/services/auth.go:524" type=sql values="[starnotes@qq.com oauth]"
time="2026-03-24T02:31:47Z" level=info msg="user made successful SSO login for 'starnotes@qq.com' 'starnotes'" age=14400 exp=1774333907 gtm=1774319507 prm="[roles.view providers.view screenshots.view screenshots.download screenshots.subscribe msglogs.view msglogs.subscribe termlogs.view termlogs.subscribe flows.create flows.delete flows.edit flows.view flows.subscribe tasks.view tasks.subscribe subtasks.view containers.view agentlogs.view agentlogs.subscribe vecstorelogs.view vecstorelogs.subscribe searchlogs.view searchlogs.subscribe assistants.create assistants.delete assistants.edit assistants.view assistants.subscribe assistantlogs.view assistantlogs.subscribe settings.view settings.providers.view settings.providers.edit settings.providers.subscribe settings.prompts.view settings.prompts.edit usage.view settings.tokens.create settings.tokens.view settings.tokens.edit settings.tokens.delete settings.tokens.subscribe settings.user.view settings.user.edit settings.user.subscribe]" rid=2 tid=oauth uhash=e86f08cc269916a21b94a73f9144c076 uid=2
time="2026-03-24T02:31:47Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration="717.514µs" rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:31:47Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') LIMIT 1" component=pentagi-gorm duration="474.379µs" rows_returned=1 src="pentagi/pkg/server/services/auth.go:831" type=sql values="[2]"
time="2026-03-24T02:31:47Z" level=info msg="SELECT * FROM "roles" WHERE ("id" = '2')" component=pentagi-gorm duration="426.43µs" rows_returned=1 src="pentagi/pkg/server/services/auth.go:831" type=sql values="[2]"
time="2026-03-24T02:31:47Z" level=info msg="SELECT name FROM "privileges" WHERE (role_id = '2')" component=pentagi-gorm duration="347.3µs" rows_returned=0 src="pentagi/pkg/server/services/auth.go:840" type=sql values="[2]"
time="2026-03-24T02:31:47Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
[GIN] 2026/03/24 - 02:31:47 | 304 | 127.526µs | 111.198.122.242 | GET "/assets/apollo-client-DfFN2l6Y.js"
[GIN] 2026/03/24 - 02:31:47 | 304 | 111.528µs | 111.198.122.242 | GET "/assets/react-vendor-DWQhrtRG.js"
[GIN] 2026/03/24 - 02:31:47 | 304 | 132.954µs | 111.198.122.242 | GET "/assets/index-DI14JHqe.css"
[GIN] 2026/03/24 - 02:31:47 | 304 | 153.113µs | 111.198.122.242 | GET "/assets/radix-ui-DEqw2LD_.js"
[GIN] 2026/03/24 - 02:31:47 | 304 | 163.59µs | 111.198.122.242 | GET "/favicon/site.webmanifest"
[GIN] 2026/03/24 - 02:31:47 | 304 | 161.573µs | 111.198.122.242 | GET "/assets/oauth-result-Cz3-ZHsG.js"
[GIN] 2026/03/24 - 02:31:47 | 200 | 2.597221ms | 111.198.122.242 | GET "/api/v1/info"
[GIN] 2026/03/24 - 02:31:47 | 304 | 175.379µs | 111.198.122.242 | GET "/fonts/inter-regular.woff2"
[GIN] 2026/03/24 - 02:31:47 | 304 | 89.503µs | 111.198.122.242 | GET "/favicon/favicon.ico"
[GIN] 2026/03/24 - 02:31:47 | 200 | 2.281327ms | 111.198.122.242 | POST "/api/v1/graphql"
@starnotes-xj commented on GitHub (Mar 23, 2026):
After clicking on Github authorization login, the pop-up window shows a successful URL, but after refreshing, it actually cannot be accessed. Now I have enabled graphiti, which was not enabled when I could log in by refreshing before. Log generated before clicking login:
service ssl crt and key already exist
time="2026-03-24T02:46:36Z" level=info msg="Starting PentAGI 1.2.0-938458e"
2026/03/24 02:46:36 goose: no migrations to run. current version: 20260310
2026/03/24 02:46:36 Migrations ran successfully
time="2026-03-24T02:46:36Z" level=info msg="flow loaded from DB" flow_id=3 provider_name="队伍使用GPT" provider_type=openai user_id=1
time="2026-03-24T02:46:37Z" level=info msg="flow loaded from DB" flow_id=2 provider_name="队伍使用-GPT" provider_type=openai user_id=2
time="2026-03-24T02:46:38Z" level=info msg="SELECT count(*) FROM "users" WHERE (type = 'local')" component=pentagi-gorm duration=2.733982ms rows_returned=0 src="pentagi/pkg/server/services/auth.go:60" type=sql values="[]"
time="2026-03-24T02:46:41Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration=1.108354ms rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:46:41Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:46:43Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
2026/03/24 02:46:51 http: TLS handshake error from 204.76.203.51:33480: tls: first record does not look like a TLS handshake
[GIN] 2026/03/24 - 02:47:19 | 200 | 35.484565261s | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 02:47:19 | 200 | 4.630816ms | 111.198.122.242 | POST "/api/v1/graphql"
time="2026-03-24T02:47:19Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
Log generated after clicking login:
[GIN] 2026/03/24 - 02:47:28 | 307 | 228.218µ s | 111.198.122.242 | GET "/api/v1/auth/authorize?provider=github&return_uri=/oauth/result"
time="2026-03-24T02:47:31Z" level=info msg="SELECT * FROM "roles" WHERE (id = '2') LIMIT 1" component=pentagi-gorm duration="822.793 µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:507" type=sql values="[2]"
time="2026-03-24T02:47:31Z" level=info msg="SELECT name FROM "privileges" WHERE (role_id = '2')" component=pentagi-gorm duration="678.159 µ s" rows_returned=0 src="pentagi/pkg/server/services/auth.go:516" type=sql values="[2]"
time="2026-03-24T02:47:31Z" level=info msg="SELECT * FROM "users" WHERE (mail = ' starnotes@qq.com ' AND type = 'oauth') LIMIT 1" component=pentagi-gorm duration="532.541µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:524" type=sql values="[ starnotes@qq.com oauth]"
time="2026-03-24T02:47:31Z" level=info msg="user made successful SSO login for ' starnotes@qq.com ' 'starnotes'" age=14400 exp=1774334851 gtm=1774320451 prm=" [roles.view providers.view screenshots.view screenshots.download screenshots.subscribe msglogs.view msglogs.subscribe termlogs.view termlogs.subscribe flows.create flows.delete flows.edit flows.view flows.subscribe tasks.view tasks.subscribe subtasks.view containers.view agentlogs.view agentlogs.subscribe vecstorelogs.view vecstorelogs.subscribe searchlogs.view searchlogs.subscribe assistants.create assistants.delete assistants.edit assistants.view assistants.subscribe assistantlogs.view assistantlogs.subscribe settings.view settings.providers.view settings.providers.edit settings.providers.subscribe settings.prompts.view settings.prompts.edit usage.view settings.tokens.create settings.tokens.view settings.tokens.edit settings.tokens.delet e settings.tokens.subscribe settings.user.view settings.user.edit settings.user.subscribe]" rid=2 tid=oauth uhash=e86f08cc269916a21b94a73f9144c076 uid=2
[GIN] 2026/03/24 - 02:47:31 | 303 | 2.132622047s | 111.198.122.242 | GET "/api/v1/auth/login-callback?code=7c37937702c162eb0ed0&state=-Efcp1Hlg7bwDyUbVuepVrbsVFm0wYTvjNbvoU1ircd7ImV4cCI6IjE3NzQzMjA3NDgiLCJwcm92aWRlciI6ImdpdGh1YiIsInJldHVybl91cmkiOiIvb2F1dGgvcmVzdWx0IiwidW5pcSI6IjhWbms1cElick1JN2htb3o4S1pLQUEifQ"
time="2026-03-24T02:47:31Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') LIMIT 1" component=pentagi-gorm duration="734.288 µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:831" type=sql values="[2]"
time="2026-03-24T02:47:31Z" level=info msg="SELECT * FROM "roles" WHERE ("id" = '2')" component=pentagi-gorm duration="510.628 µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:831" type=sql values="[2]"
[GIN] 2026/03/24 - 02:47:31 | 200 | 2.424521ms | 111.198.122.242 | GET "/api/v1/info"
time="2026-03-24T02:47:31Z" level=info msg="SELECT name FROM "privileges" WHERE (role_id = '2')" component=pentagi-gorm duration="513.539 µ s" rows_returned=0 src="pentagi/pkg/server/services/auth.go:840" type=sql values="[2]"
[GIN] 2026/03/24 - 02:47:31 | 200 | 945.828µs | 111.198.122.242 | POST "/api/v1/graphql"
time="2026-03-24T02:47:31Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
[GIN] 2026/03/24 - 02:47:33 | 200 | 2.137839563s | 111.198.122.242 | GET "/api/v1/graphql"
@starnotes-xj commented on GitHub (Mar 23, 2026):
Recreate the container and only start Pentagi.
Before clicking the login button:
service ssl crt and key already exist
time="2026-03-24T02:54:48Z" level=info msg="Starting PentAGI 1.2.0-938458e"
2026/03/24 02:54:48 goose: no migrations to run. current version: 20260310
2026/03/24 02:54:48 Migrations ran successfully
time="2026-03-24T02:54:48Z" level=info msg="flow loaded from DB" flow_id=3 provider_name="队伍使用GPT" provider_type=openai user_id=1
time="2026-03-24T02:54:49Z" level=info msg="flow loaded from DB" flow_id=2 provider_name="队伍使用-GPT" provider_type=openai user_id=2
time="2026-03-24T02:54:50Z" level=info msg="SELECT count(*) FROM "users" WHERE (type = 'local')" component=pentagi-gorm duration=6.456785ms rows_returned=0 src="pentagi/pkg/server/services/auth.go:60" type=sql values="[]"
time="2026-03-24T02:54:53Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration=1.068522ms rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
time="2026-03-24T02:54:53Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
time="2026-03-24T02:54:56Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
[GIN] 2026/03/24 - 02:58:10 | 200 | 202.385µs | 13.60.248.206 | GET "/"
[GIN] 2026/03/24 - 02:58:10 | 200 | 164.195µs | 13.60.248.206 | POST "/"
[GIN] 2026/03/24 - 02:58:10 | 200 | 138.302µs | 13.60.248.206 | POST "/"
[GIN] 2026/03/24 - 02:58:11 | 200 | 199.701µs | 13.60.248.206 | POST "/"
[GIN] 2026/03/24 - 03:00:27 | 304 | 116.773µs | 111.198.122.242 | GET "/login?returnUrl=%2Fflows"
[GIN] 2026/03/24 - 03:00:27 | 200 | 5m30s | 111.198.122.242 | GET "/api/v1/graphql"
[GIN] 2026/03/24 - 03:00:27 | 304 | 184.567µs | 111.198.122.242 | GET "/assets/index-DI14JHqe.css"
[GIN] 2026/03/24 - 03:00:27 | 304 | 36.579µs | 111.198.122.242 | GET "/assets/radix-ui-DEqw2LD_.js"
[GIN] 2026/03/24 - 03:00:27 | 304 | 45.898µs | 111.198.122.242 | GET "/assets/apollo-client-DfFN2l6Y.js"
[GIN] 2026/03/24 - 03:00:27 | 304 | 43.671µs | 111.198.122.242 | GET "/assets/react-vendor-DWQhrtRG.js"
[GIN] 2026/03/24 - 03:00:27 | 304 | 132.418µs | 111.198.122.242 | GET "/assets/index-DC6XiKS4.js"
[GIN] 2026/03/24 - 03:00:27 | 304 | 157.26µs | 111.198.122.242 | GET "/favicon/site.webmanifest"
time="2026-03-24T03:00:27Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') ORDER BY "users"."id" ASC LIMIT 1" component=pentagi-gorm duration="720.542µs" rows_returned=1 src="pentagi/pkg/server/auth/users_cache.go:58" type=sql values="[2]"
[GIN] 2026/03/24 - 03:00:27 | 200 | 2.130534ms | 111.198.122.242 | POST "/api/v1/graphql"
[GIN] 2026/03/24 - 03:00:27 | 304 | 214.424µs | 111.198.122.242 | GET "/favicon/favicon.ico"
[GIN] 2026/03/24 - 03:00:27 | 304 | 171.098µs | 111.198.122.242 | GET "/favicon/favicon.svg"
time="2026-03-24T03:00:27Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
After clicking the login button:
[GIN] 2026/03/24 - 03:00:42 | 307 | 281.137µ s | 111.198.122.242 | GET "/api/v1/auth/authorize?provider=github&return_uri=/oauth/result"
time="2026-03-24T03:00:44Z" level=info msg="SELECT * FROM "roles" WHERE (id = '2') LIMIT 1" component=pentagi-gorm duration="923.711 µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:507" type=sql values="[2]"
time="2026-03-24T03:00:44Z" level=info msg="SELECT name FROM "privileges" WHERE (role_id = '2')" component=pentagi-gorm duration="562.629 µ s" rows_returned=0 src="pentagi/pkg/server/services/auth.go:516" type=sql values="[2]"
time="2026-03-24T03:00:44Z" level=info msg="SELECT * FROM "users" WHERE (mail = ' starnotes@qq.com ' AND type = 'oauth') LIMIT 1" component=pentagi-gorm duration="558.841µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:524" type=sql values="[ starnotes@qq.com oauth]"
time="2026-03-24T03:00:44Z" level=info msg="user made successful SSO login for ' starnotes@qq.com ' 'starnotes'" age=14400 exp=1774335644 gtm=1774321244 prm=" [roles.view providers.view screenshots.view screenshots.download screenshots.subscribe msglogs.view msglogs.subscribe termlogs.view termlogs.subscribe flows.create flows.delete flows.edit flows.view flows.subscribe tasks.view tasks.subscribe subtasks.view containers.view agentlogs.view agentlogs.subscribe vecstorelogs.view vecstorelogs.subscribe searchlogs.view searchlogs.subscribe assistants.create assistants.delete assistants.edit assistants.view assistants.subscribe assistantlogs.view assistantlogs.subscribe settings.view settings.providers.view settings.providers.edit settings.providers.subscribe settings.prompts.view settings.prompts.edit usage.view settings.tokens.create settings.tokens.view settings.tokens.edit settings.tokens.delet e settings.tokens.subscribe settings.user.view settings.user.edit settings.user.subscribe]" rid=2 tid=oauth uhash=e86f08cc269916a21b94a73f9144c076 uid=2
[GIN] 2026/03/24 - 03:00:44 | 303 | 1.858008781s | 111.198.122.242 | GET "/api/v1/auth/login-callback?code=3c5e7364ee6480d8a2fd&state=H0MGJuWPuaZMQNO_bBqCQXD8lV58bvimxJTvgY1poDl7ImV4cCI6IjE3NzQzMjE1NDIiLCJwcm92aWRlciI6ImdpdGh1YiIsInJldHVybl91cmkiOiIvb2F1dGgvcmVzdWx0IiwidW5pcSI6InFmdE0wVjVxQ0laV1pUYnlDT29ZMFEifQ"
time="2026-03-24T03:00:44Z" level=info msg="SELECT * FROM "users" WHERE (id = '2') LIMIT 1" component=pentagi-gorm duration="663.119 µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:831" type=sql values="[2]"
time="2026-03-24T03:00:44Z" level=info msg="SELECT * FROM "roles" WHERE ("id" = '2')" component=pentagi-gorm duration="479.747 µ s" rows_returned=1 src="pentagi/pkg/server/services/auth.go:831" type=sql values="[2]"
time="2026-03-24T03:00:44Z" level=info msg="SELECT name FROM "privileges" WHERE (role_id = '2')" component=pentagi-gorm duration="279.618 µ s" rows_returned=0 src="pentagi/pkg/server/services/auth.go:840" type=sql values="[2]"
[GIN] 2026/03/24 - 03:00:44 | 200 | 2.00285ms | 111.198.122.242 | GET "/api/v1/info"
[GIN] 2026/03/24 - 03:00:44 | 200 | 753.542µs | 111.198.122.242 | POST "/api/v1/graphql"
time="2026-03-24T03:00:44Z" level=info msg="graphql websocket upgrade" component=pentagi-gql uid=2
[GIN] 2026/03/24 - 03:00:47 | 200 | 2.140644953s | 111.198.122.242 | GET "/api/v1/graphql"
@starnotes-xj commented on GitHub (Mar 23, 2026):
But now, due to the excessive number of requests for authorization, reauthorization can now refresh the page and enter through authorization
@asdek commented on GitHub (Apr 22, 2026):
we couldn't reproduce it on our side, please, read changes from #260, might be it should solve the issue, I close one for now...