创建触发器失败,日志如下

nsq consumer:ERR 3 [task.it.report/it.report] error querying nsqlookupd (nsqlookupd:4161/lookup?topic=task.it.report) - got response 404 Not Found “{"message":"TOPIC_NOT_FOUND"}”

2022-07-29T07:22:09.321+0800 INFO multicluster/service/clusters.go:581 [ClusterApplyUpgradeAgent] UpgradeAgent cluster local-20220720090044 successed

2022-07-29T07:22:39.328+0800 INFO multicluster/service/clusters.go:581 [ClusterApplyUpgradeAgent] UpgradeAgent cluster local-20220720090044 successed

2022-07-29T07:24:34.883+0800 INFO label/service/label.go:241 user:admin DeleteLabelsAndBindingsByProject labelbindingIDs:[] {“requestID”: “9a74e9a2-5ff6-4348-8006-c1a7011fbc35”}

2022-07-29T07:24:34.927+0800 INFO environment/service/environment.go:2132 [admin] delete product nft-web-env-dev {“requestID”: “9a74e9a2-5ff6-4348-8006-c1a7011fbc35”}

2022-07-29T07:24:34.936+0800 INFO environment/service/environment.go:2132 [admin] delete product nft-web-env-qa {“requestID”: “9a74e9a2-5ff6-4348-8006-c1a7011fbc35”}

2022-07-29T07:24:34.937+0800 ERROR common/service/stats.go:42 [LogProductStats] error: multiple write errors: [{write errors: [{E11000 duplicate key error collection: zadig.statistics index: req_id_1_user_1_event_1_start_time_1_end_time_1 dup key: { req_id: “9a74e9a2-5ff6-4348-8006-c1a7011fbc35”, user: “admin”, event: “DeleteProduct”, start_time: 1659050674, end_time: 1659050674 }}]}, {}] {“requestID”: “9a74e9a2-5ff6-4348-8006-c1a7011fbc35”}

2022-07-29T07:25:10.453+0800 INFO git/gitlab/token.go:63 Starting to refresh gitlab token

2022-07-29T07:25:10.654+0800 INFO git/gitlab/token.go:80 gitlab token for client [4] changed from [461af78c363aebf8fb2b5f69c7808cedbc2f68e7eb72e1b760b00edf0d4585c9] to [55a0bf2b7106166bd0bd6611f2fb786f02b797c323e6567ffc87b783ef9f7d43]

2022-07-29T07:25:51.712+0800 DEBUG common/service/workflow.go:201 Going to add webhooks map[{owner:gamefi namespace:gamefi repo:nft.web source:gitlab name:trigger1}:{hookUniqueID:{owner:gamefi namespace:gamefi repo:nft.web source:gitlab name:trigger1} codeHostID:4}] {“requestID”: “8106585a-9622-42c8-aea8-6ce8771a78b7”}

2022-07-29T07:25:51.716+0800 INFO service/webhook/controller.go:262 Adding webhook {“owner”: “gamefi”, “namespace”: “gamefi”, “repo”: “nft.web”, “ref”: “workflow-nft-web-new-workflow-qa-trigger1”}

2022-07-29T07:25:51.721+0800 INFO service/webhook/controller.go:270 Creating webhook {“owner”: “gamefi”, “namespace”: “gamefi”, “repo”: “nft.web”, “ref”: “workflow-nft-web-new-workflow-qa-trigger1”}

2022-07-29T07:25:51.833+0800 ERROR service/webhook/controller.go:274 Failed to create webhook {“owner”: “gamefi”, “namespace”: “gamefi”, “repo”: “nft.web”, “address”: “https://git.oooaaabb.org”, “ref”: “workflow-nft-web-new-workflow-qa-trigger1”, “error”: "[403 Forbidden] "}

2022-07-29T07:25:51.834+0800 ERROR common/service/workflow.go:272 Failed to add gitlab webhook {hookUniqueID:{owner:gamefi namespace:gamefi repo:nft.web source:gitlab name:trigger1} codeHostID:4}, err: [403 Forbidden] {“requestID”: “8106585a-9622-42c8-aea8-6ce8771a78b7”}

2022-07-29T07:25:51.834+0800 ERROR service/workflow/workflow.go:524 Failed to process webhook, err: 1 error occurred:

  • [403 Forbidden]
Failed to create webhook {“owner”: “gamefi”, “namespace”: “gamefi”, “repo”: “nft.web”, “address”: “https://git.oooaaabb.org”, “ref”: “workflow-nft-web-new-workflow-qa-trigger1”, “error”: "[403 Forbidden] "}

403 forbidden?

状态码是400,日志里面提示403

400是zadig的状态码 实际原因是gitlab给出403 也就是无权限 这个你自己看吧

这个403是gitlab给的?具体是gitlab的哪个接口导致?可以告知下么?

创建webhook