-
Notifications
You must be signed in to change notification settings - Fork 683
Description
Helm安装1.15.0 ce版本后选择资源配置为空在,补全space_resources后可以选择资源配置了,但是部署会出现部署失败
提示:
应用空间创建失败: failed to create new space in db, error: failed to update repository path: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)
查看csghub-server日志:
: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)","source":"space.go:122"}
{"time":"2026-01-21T01:47:21.065796584Z","level":"ERROR","msg":"Failed to create space","error":"failed to create new space in db, error: failed to update repository path: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)","trace_id":"dcd2d8d644e3d47b8caebf106318a8a7","source":"space.go:203"}
{"time":"2026-01-21T01:47:21.06585316Z","level":"INFO","msg":"http request","ip":"10.42.0.0","method":"POST","latency(ms)":102,"status":500,"current_user":"root","auth_type":"JWT","url":"/api/v1/spaces","full_path":"/api/v1/spaces","trace_id":"dcd2d8d644e3d47b8caebf106318a8a7"}
{"time":"2026-01-21T01:47:27.535985283Z","level":"INFO","msg":"http request","trace_id":"d6b139f74cb184377537f5afa356db50","method":"GET","url":"http://csghub-runner:8082/api/v1/cluster/7e139087-1b37-4a98-88fa-f0a225192a3f","status":200,"latency(ms)":19}
2026/01/21 01:47:27 WARN: bun: query "" has [0xc001952308] args, but no placeholders
[bun] 01:47:27.635 UPDATE 832µs UPDATE "repositories" AS "repository" SET path = 'root/test_space', git_path = 'spaces_root/test_space' WHERE (id = 2554) AND "repository"."deleted_at" IS NULL RETURNING * pgdriver.Error: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)
{"time":"2026-01-21T01:47:27.635444142Z","level":"ERROR","msg":"failed to create new space in db","req":{"namespace":"root","name":"test_space","nickname":"testspace","description":"test","private":false,"license":"apache-2.0","default_branch":"main","type":"space","admin":"","tool_count":0,"star_count":0,"commit_files":null,"sdk":"gradio","sdk_version":"","driver_version":"","cover_image_url":"","template":"","env":"","secrets":"","variables":"","resource_id":1,"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","order_detail_id":0,"min_replica":0},"error":"failed to update repository path: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)","source":"space.go:122"}
{"time":"2026-01-21T01:47:27.635521712Z","level":"ERROR","msg":"Failed to create space","error":"failed to create new space in db, error: failed to update repository path: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)","trace_id":"d6b139f74cb184377537f5afa356db50","source":"space.go:203"}
{"time":"2026-01-21T01:47:27.635610284Z","level":"INFO","msg":"http request","ip":"10.42.0.0","method":"POST","latency(ms)":120,"status":500,"current_user":"root","auth_type":"JWT","url":"/api/v1/spaces","full_path":"/api/v1/spaces","trace_id":"d6b139f74cb184377537f5afa356db50"}
{"time":"2026-01-21T01:47:42.19260896Z","level":"INFO","msg":"http request","trace_id":"f8f7e8bde570268f9f977b52624559a4","method":"GET","url":"http://csghub-runner:8082/api/v1/cluster/7e139087-1b37-4a98-88fa-f0a225192a3f","status":200,"latency(ms)":19}
2026/01/21 01:47:42 WARN: bun: query "" has [0xc000feaa08] args, but no placeholders
[bun] 01:47:42.294 UPDATE 908µs UPDATE "repositories" AS "repository" SET path = 'root/test_space', git_path = 'spaces_root/test_space' WHERE (id = 2555) AND "repository"."deleted_at" IS NULL RETURNING * pgdriver.Error: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)
{"time":"2026-01-21T01:47:42.294883553Z","level":"ERROR","msg":"failed to create new space in db","req":{"namespace":"root","name":"test_space","nickname":"testspace","description":"test","private":false,"license":"apache-2.0","default_branch":"main","type":"space","admin":"","tool_count":0,"star_count":0,"commit_files":null,"sdk":"gradio","sdk_version":"","driver_version":"","cover_image_url":"","template":"","env":"","secrets":"","variables":"","resource_id":1,"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","order_detail_id":0,"min_replica":0},"error":"failed to update repository path: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)","source":"space.go:122"}
{"time":"2026-01-21T01:47:42.294929913Z","level":"ERROR","msg":"Failed to create space","error":"failed to create new space in db, error: failed to update repository path: failed to update repository path: ERROR: duplicate key value violates unique constraint "idx_repositories_git_path" (SQLSTATE=23505)","trace_id":"f8f7e8bde570268f9f977b52624559a4","source":"space.go:203"}
{"time":"2026-01-21T01:47:42.294974463Z","level":"INFO","msg":"http request","ip":"10.42.0.0","method":"POST","latency(ms)":123,"status":500,"current_user":"root","auth_type":"JWT","url":"/api/v1/spaces","full_path":"/api/v1/spaces","trace_id":"f8f7e8bde570268f9f977b52624559a4"}
{"time":"2026-01-21T01:47:45.174424122Z","level":"INFO","msg":"http request","ip":"10.42.1.108","method":"POST","latency(ms)":2,"status":200,"current_user":"","auth_type":"ApiKey","url":"/api/v1/webhook/runner","full_path":"/api/v1/webhook/runner","trace_id":"e04cffdd34674e2383a61688584c1c6b"}
{"time":"2026-01-21T01:47:45.174474624Z","level":"INFO","msg":"cluster_event_received","event":{"event_type":"runner.cluster.update","event_time":1768960065,"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","runner_name":"","data_type":"object","data":{"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","cluster_config":"config","region":"region-0","zone":"","provider":"","enable":false,"storage_class":"","status":"Running","endpoint":"http://csghub-runner:8082","network_interface":"","mode":"incluster","app_endpoint":"http://kourier-internal.kourier-system.svc.cluster.local"}}}
{"time":"2026-01-21T01:47:45.174635077Z","level":"INFO","msg":"processing cluster event","event":{"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","cluster_config":"config","region":"region-0","zone":"","provider":"","enable":false,"storage_class":"","status":"Running","endpoint":"http://csghub-runner:8082","network_interface":"","mode":"incluster","app_endpoint":"http://kourier-internal.kourier-system.svc.cluster.local"}}
{"time":"2026-01-21T01:48:45.17557499Z","level":"INFO","msg":"http request","ip":"10.42.1.108","method":"POST","latency(ms)":2,"status":200,"current_user":"","auth_type":"ApiKey","url":"/api/v1/webhook/runner","full_path":"/api/v1/webhook/runner","trace_id":"2594298e8e7f41769bd0dbff0b90fa83"}
{"time":"2026-01-21T01:48:45.175932941Z","level":"INFO","msg":"cluster_event_received","event":{"event_type":"runner.cluster.update","event_time":1768960125,"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","runner_name":"","data_type":"object","data":{"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","cluster_config":"config","region":"region-0","zone":"","provider":"","enable":false,"storage_class":"","status":"Running","endpoint":"http://csghub-runner:8082","network_interface":"","mode":"incluster","app_endpoint":"http://kourier-internal.kourier-system.svc.cluster.local"}}}
{"time":"2026-01-21T01:48:45.176030619Z","level":"INFO","msg":"processing cluster event","event":{"cluster_id":"7e139087-1b37-4a98-88fa-f0a225192a3f","cluster_config":"config","region":"region-0","zone":"","provider":"","enable":false,"storage_class":"","status":"Running","endpoint":"http://csghub-runner:8082","network_interface":"","mode":"incluster","app_endpoint":"http://kourier-internal.kourier-system.svc.cluster.local"}}