Tencent / CodeAnalysis

Static Code Analysis - 静态代码分析
https://tencent.github.io/CodeAnalysis/
Other
1.67k stars 286 forks source link

再使用扫描分析方案的配置规则:compass,出现两个问题:配置镨误 或工具分析错误 #1186

Open fanky357 opened 1 month ago

fanky357 commented 1 month ago

配置镨误 出现的log如下: 2024-09-29 14:39:09,756-ERROR: method(post) call fails on error: HTTP Error 400: Bad Request 2024-09-29 14:39:09,756-INFO: retrying method(post) after 30 seconds 2024-09-29 14:39:39,839-ERROR: api request error: {"status":400,"msg":"No more workers, please try again later!"} url: http://192.168.201.107:8080/communicate/beat 2024-09-29 14:39:39,839-ERROR: method(post) call fails on error: HTTP Error 400: Bad Request 2024-09-29 14:39:39,839-INFO: retrying method(post) after 30 seconds 2024-09-29 14:40:09,917-ERROR: api request error: {"status":400,"msg":"No more workers, please try again later!"} url: http://192.168.201.107:8080/communicate/beat 2024-09-29 14:40:09,917-ERROR: method(post) call fails on error: HTTP Error 400: Bad Request 2024-09-29 14:40:09,917-WARNING: method(post) call still fails after 2 retries 2024-09-29 14:40:09,917-ERROR: License heartbeat stop fail, HTTP Error 400: Bad Request 2024-09-29 14:40:09,918-WARNING: task status code is 204 2024-09-29 14:40:09,918-WARNING: task messsage: TaskError: Error[204]: No more compass workers! Please check the limit of your license. 2024-09-29 14:40:09,919-INFO: task result: /opt/jenkins/scan-tools/tca-client/data/taskdirs/task_747/task_response.json

工具分析错误 出现的log如下: 2024-09-29 13:51:39,909-INFO: TCA Client v20240716.1(OpenSource Beta) 2024-09-29 13:51:39,910-INFO: Task is created from codedog_client. 2024-09-29 13:51:39,910-INFO: start to run task: Tool_16, execute_processes: ['analyze', 'datahandle'] 2024-09-29 13:51:40,152-INFO: License is valid. 2024-09-29 13:51:40,396-INFO: task start : <class 'task.model.analyze.AnalyzeTask'> 2024-09-29 13:51:40,396-INFO: pre_analyze start. 2024-09-29 13:51:40,396-INFO: start __checkout_source_dir. 2024-09-29 13:51:40,396-INFO: 本地项目,直接复用传入的source_dir. 2024-09-29 13:51:40,396-INFO: load_source_dir done. source_dir insert env. sourcedir: /opt/jenkins/workspace/ibc_cipher_platform/svs/healthy_check 2024-09-29 13:51:40,412-INFO: pre_analyze done. 2024-09-29 13:51:40,412-INFO: Codemetric only scans main code (exclude test_source, auto_generate_source, third_party_source). 2024-09-29 13:51:40,412-INFO: Codelint only scans main code. 2024-09-29 13:51:54,651-INFO: 2024-09-29 13:51:54.650541969 +0800 CST [FATAL] No more workers, please try again later! 2024-09-29 13:51:54,668-INFO: 没有生成结果文件 2024-09-29 13:51:59,864-WARNING: task status code is 211 2024-09-29 13:51:59,865-WARNING: task messsage: AnalyzeTaskError: Error[211]: 工具执行错误 2024-09-29 13:51:59,866-INFO: task result: /opt/jenkins/scan-tools/tca-client/data/taskdirs/task_526/task_response.json

cyw3 commented 1 month ago

应该是触发了并发数量限制