目录
- 1 腾讯云代码分析简介
- 2 快速部署
- 3 部署过程遇到问题
- 3.1 1045, "Access denied for user 'root'@'172.18.0.4' (using password: YES)"
- 3.2 ERROR 1133 (42000): Can't find any matching row in the user table
- 3.3 ERROR 1054 (42S22): Unknown column 'Password' in 'field list'
- 3.4 ERROR 1064 (42000): You have an error in your SQL syntax;
- 3.5 怎么删除mysql中的用户
- 3.6 怎么查看mysql的SSL配置信息
- 3.7 Service 'client' failed to build (待完善)
- 3.8 Error: Failed to call git rev-parse --git-dir --show-toplevel
- 3.9 No package lsb_relase available
- 3.10 E: Sub-process /usr/bin/dpkg returned an error code (1)
1 腾讯云代码分析简介
-
语言支持:支持 Java/C++/Objective-C/C#/JavaScript/Python/Go/PHP
等数十种语言,覆盖常用编程语言 -
代码检查:通过代码分析精准跟踪管理发现的代码质量缺陷、代码规范问题、代码安全漏洞、无效代码等。目前已集成众多自研、知名开源分析工具,并采用了分层分离架构,可以支持团队快速自助管理工具。
-
代码度量:支持代码圈复杂度、代码重复率和代码统计三个维度对代码进行综合度量。
-
DevOps集成:客户端通过命令行启动方式,通过标准API接口对接上下游系统,可以快速对接各个DevOps调度体系
2 快速部署
2.1 docker部署
2.1.1 下载源码
2.1.2 进入到CodeAnalysis目录
2.1.3 执行
bash ./quick_install.sh docker deploy
2.2 Docker-Compose快速部署
2.2.1 下载代码
bash git clone https://github.com/Tencent/CodeAnalysis.git
2.2.2 进入到cd CodeAnalysis
2.2.3 quick_install.sh
#!/bin/bash
CURRENT_SCRIPT_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")";pwd)
TCA_PROJECT_PATH=${TCA_PROJECT_PATH:-"$CURRENT_SCRIPT_PATH"}
TCA_SCRIPT_ROOT=${TCA_SCRIPT_ROOT:-"$TCA_PROJECT_PATH/scripts"}
source $TCA_SCRIPT_ROOT/utils.sh
source $TCA_SCRIPT_ROOT/base/install_docker.sh
function tca_help() {
LOG_INFO "Support command:"
LOG_INFO "Arg1: Mode, support value: local, docker, docker-compose, help, default:'help'"
LOG_INFO "Arg2: Operate, details: "
LOG_INFO " [local] deploy, install, start, stop, check, log, help. You can run ./quick_install.sh local help to view more details"
LOG_INFO " [docker] deploy, start, stop"
LOG_INFO " [docker-compose] deploy, start, stop, build"
LOG_INFO ""
LOG_INFO "Note:"
LOG_INFO " * Run with local: will help to you install python, mariadb/mysql, redis, nginx. [Only support linux]"
LOG_INFO " * Run with docker: will help you to install docker"
LOG_INFO " * Run with docker-compose: will help you to install docker and docker-compose"
LOG_INFO ""
LOG_INFO "example:"
LOG_INFO " 1. use current machine to deploy tca server, web and client"
LOG_INFO " install TCA on local: ./quick_install.sh local install"
LOG_INFO " install base tools on local: ./quick_install.sh local install base"
LOG_INFO " start TCA on local: ./quick_install.sh local start"
LOG_INFO " start TCA main services on local: ./quick_install.sh local start main"
LOG_INFO " install and start TCA on local: ./quick_install.sh local deploy"
LOG_INFO " check TCA status on local: ./quick_install.sh local check"
LOG_INFO " stop tca on local: ./quick_install.sh local stop"
LOG_INFO ""
LOG_INFO " 2. use docker to deploy tca server, web and client"
LOG_INFO " run all services in a container: ./quick_install.sh docker deploy"
LOG_INFO " start a stopped tca container: ./quick_install.sh docker start"
LOG_INFO " stop a tca container: ./quick_install.sh docker stop"
LOG_INFO ""
LOG_INFO " 3. use docker-compose to deploy tca server, web and client"
LOG_INFO " run TCA with docker-compose: ./quick_install.sh docker-compose deploy"
LOG_INFO " restart TCA with docker-compose: ./quick_install.sh docker-compose start (equal: docker-compose up -d)"
LOG_INFO " rebuild TCA images with docker-compose: ./quick_install.sh docker-compose build"
}
deploy() {
mode=$1
command=$2
options=$3
LOG_INFO "==========================================================="
LOG_INFO " _______ _____ "
LOG_INFO " |__ __| / ____| /\ "
LOG_INFO " | | | | / \ "
LOG_INFO " | | | | / /\ \ "
LOG_INFO " | | | |____ / ____ \ "
LOG_INFO " |_| \_____| /_/ \_\ "
LOG_INFO " "
LOG_INFO "==========================================================="
case "$mode" in
local)
LOG_INFO "Start tca directly. [Only support Linux]"
source $TCA_SCRIPT_ROOT/deploy/tca_local.sh
tca_local_main "$2" "$3"
;;
docker)
LOG_INFO "Start tca using docker"
source $TCA_SCRIPT_ROOT/deploy/tca_docker.sh
interactive_install_docker
tca_docker_main "$2"
;;
docker-compose)
LOG_INFO "Start tca using docker-compose"
source $TCA_SCRIPT_ROOT/deploy/tca_docker_compose.sh
interactive_install_docker
interactive_install_docker_compose
tca_docker_compose_main "$2"
;;
help)
tca_help
;;
*)
LOG_WARN "Mode '$mode' not supported [Support mode: local、docker、docker-compose]"
tca_help
;;
esac
}
deploy "$1" "$2" "$3"
2.2.4 执行命令
bash ./quick_install.sh docker-compose deploy #启动tca_server容器
2.2.5 更新操作
bash ./quick_install.sh docker-compose build #重新构建TCA相关镜像
bash ./quick_install.sh docker-compose stop #停止运行中的TCA容器
bash ./quick_install.sh docker-compose deploy #重新部署TCA相关容器与初始化(或刷新数据)
2.2.6 部署日志信息
[root@centos7 CodeAnalysis]# bash ./quick_install.sh docker-compose deploy
[2022/10/24 21:50:35] [INFO]: ===========================================================
[2022/10/24 21:50:35] [INFO]: _______ _____
[2022/10/24 21:50:35] [INFO]: |__ __| / ____| /\
[2022/10/24 21:50:35] [INFO]: | | | | / \
[2022/10/24 21:50:35] [INFO]: | | | | / /\ \
[2022/10/24 21:50:35] [INFO]: | | | |____ / ____ \
[2022/10/24 21:50:35] [INFO]: |_| \_____| /_/ \_\
[2022/10/24 21:50:35] [INFO]:
[2022/10/24 21:50:35] [INFO]: ===========================================================
[2022/10/24 21:50:35] [INFO]: Start tca using docker-compose
[2022/10/24 21:50:36] [INFO]: Start Docker service
[2022/10/24 21:50:50] [INFO]: * Start Docker success
[2022/10/24 21:50:55] [INFO]: Deploy tca docker-compose
Recreating codeanalysis_mysql_1 ... done
Recreating codeanalysis_redis_1 ... done
wait db [DB default password: xxxxx]
codeanalysis_mysql_1 is up-to-date
Starting codeanalysis_file-server_1 ... done
Using selector: EpollSelector
Operations to perform:
Apply all migrations: admin, auth, authenmgr, authtoken, contenttypes, filemgr, sessions
Running migrations:
No migrations to apply.
codeanalysis_mysql_1 is up-to-date
Starting codeanalysis_login-server_1 ... done
-2022-10-24 13:51:21,871-DEBUG-asyncio: Using selector: EpollSelector
Operations to perform:
Apply all migrations: auth, contenttypes, login, sessions
Running migrations:
No migrations to apply.
-2022-10-24 13:51:23,756-DEBUG-asyncio: Using selector: EpollSelector
Cache table 'login_cache_table' already exists.
创建xxxx作为超级管理员
-2022-10-24 13:51:24,372-DEBUG-asyncio: Using selector: EpollSelector
数据化初始成功
codeanalysis_redis_1 is up-to-date
codeanalysis_mysql_1 is up-to-date
Starting codeanalysis_analysis-server_1 ... done
-2022-10-24 21:51:40,552-DEBUG-asyncio: Using selector: EpollSelector
Operations to perform:
Apply all migrations: admin, auth, authtoken, codelint, codemetric, codeproj, contenttypes, sessions
Running migrations:
No migrations to apply.
-2022-10-24 21:51:48,445-DEBUG-asyncio: Using selector: EpollSelector
-2022-10-24 21:51:49,302-DEBUG-asyncio: Using selector: EpollSelector
用户数据初始成功
codeanalysis_mysql_1 is up-to-date
codeanalysis_redis_1 is up-to-date
Starting codeanalysis_main-server_1 ... done
-2022-10-24 21:52:13,902-DEBUG-asyncio: Using selector: EpollSelector
Operations to perform:
Apply all migrations: admin, auth, authen, authtoken, base, codeproj, contenttypes, django_celery_results, guardian, job, nodemgr, scan_conf, sessions
Running migrations:
No migrations to apply.
-2022-10-24 21:52:20,177-DEBUG-asyncio: Using selector: EpollSelector
Cache table 'codedog_cache_table' already exists.
新增执行环境标签...
-2022-10-24 21:52:21,958-DEBUG-asyncio: Using selector: EpollSelector
新增规则标签...
初始化语言...
初始化来源数据...
初始化/更新Process...
初始化Scan App...
创建CodeDog并使用默认token
将Admins设置为超级管理员...
数据化初始成功
新增默认过滤路径...
-2022-10-24 21:52:24,018-DEBUG-asyncio: Using selector: EpollSelector
删除不存在列表的默认过滤路径...
路径列表为: [], 数量为: 0
-2022-10-24 21:52:25,614-DEBUG-asyncio: Using selector: EpollSelector
-2022-10-24 21:52:25,669-INFO-apps.scan_conf.utils.base: --> [66/1], toollib name: COMMON_CHECKSTYLE
-2022-10-24 21:52:25,677-INFO-apps.scan_conf.utils.base: --> [66/2], toollib name: COMMON_CLOC
-2022-10-24 21:52:25,679-INFO-apps.scan_conf.utils.base: --> [66/3], toollib name: COMMON_COBRA
-2022-10-24 21:52:25,681-INFO-apps.scan_conf.utils.base: --> [66/4], toollib name: COMMON_COBRA_V2_0_0_ALPHA_5
-2022-10-24 21:52:25,683-INFO-apps.scan_conf.utils.base: --> [66/5], toollib name: COMMON_CPD
-2022-10-24 21:52:25,685-INFO-apps.scan_conf.utils.base: --> [66/6], toollib name: COMMON_CPPLINT
-2022-10-24 21:52:25,688-INFO-apps.scan_conf.utils.base: --> [66/7], toollib name: COMMON_DART_CCN
-2022-10-24 21:52:25,690-INFO-apps.scan_conf.utils.base: --> [66/8], toollib name: COMMON_DETEKT_1_7_1
-2022-10-24 21:52:25,693-INFO-apps.scan_conf.utils.base: --> [66/9], toollib name: COMMON_FINDBUGS
-2022-10-24 21:52:25,696-INFO-apps.scan_conf.utils.base: --> [66/10], toollib name: COMMON_LIZARD
-2022-10-24 21:52:25,945-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_CPD数据。。。
-2022-10-24 21:52:25,948-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_COBRA数据。。。
-2022-10-24 21:52:25,951-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_CHECKSTYLE数据。。。
-2022-10-24 21:52:25,954-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_FINDBUGS数据。。。
-2022-10-24 21:52:25,957-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_DART_CCN数据。。。
-2022-10-24 21:52:25,966-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_CLOC数据。。。
-2022-10-24 21:52:25,968-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_COBRA_V2_0_0_ALPHA_5数据。。。
-2022-10-24 21:52:25,971-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_CPPLINT数据。。。
-2022-10-24 21:52:25,975-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_LIZARD数据。。。
-2022-10-24 21:52:25,986-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_DETEKT_1_7_1数据。。。
-2022-10-24 21:52:26,030-INFO-apps.scan_conf.utils.base: --> [66/11], toollib name: COMMON_PMD
-2022-10-24 21:52:26,032-INFO-apps.scan_conf.utils.base: --> [66/12], toollib name: COMMON_SCALASTYLE
-2022-10-24 21:52:26,034-INFO-apps.scan_conf.utils.base: --> [66/13], toollib name: COMMON_SPOTBUGS
-2022-10-24 21:52:26,037-INFO-apps.scan_conf.utils.base: --> [66/14], toollib name: LINUX_ANDROID_TOOL
-2022-10-24 21:52:26,040-INFO-apps.scan_conf.utils.base: --> [66/15], toollib name: LINUX_ARM64_CPPCHECK
-2022-10-24 21:52:26,049-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_SCALASTYLE数据。。。
-2022-10-24 21:52:26,057-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_PMD数据。。。
-2022-10-24 21:52:26,058-INFO-apps.scan_conf.utils.base: --> [66/16], toollib name: LINUX_ARM64_DART_SDK
-2022-10-24 21:52:26,064-INFO-apps.scan_conf.utils.base: 开始保存工具依赖COMMON_SPOTBUGS数据。。。
-2022-10-24 21:52:26,067-INFO-apps.scan_conf.utils.base: --> [66/17], toollib name: LINUX_ARM64_GO
-2022-10-24 21:52:26,076-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_CPPCHECK数据。。。
-2022-10-24 21:52:26,080-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_GO数据。。。
-2022-10-24 21:52:26,083-INFO-apps.scan_conf.utils.base: --> [66/18], toollib name: LINUX_ARM64_GOMETALINTER
-2022-10-24 21:52:26,089-INFO-apps.scan_conf.utils.base: --> [66/19], toollib name: LINUX_ARM64_JDK_8
-2022-10-24 21:52:26,094-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ANDROID_TOOL数据。。。
-2022-10-24 21:52:26,100-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_JDK_8数据。。。
-2022-10-24 21:52:26,111-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_DART_SDK数据。。。
-2022-10-24 21:52:26,114-INFO-apps.scan_conf.utils.base: --> [66/20], toollib name: LINUX_ARM64_LUA_5_3_4
-2022-10-24 21:52:26,125-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_GOMETALINTER数据。。。
-2022-10-24 21:52:26,132-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_LUA_5_3_4数据。。。
-2022-10-24 21:52:26,148-INFO-apps.scan_conf.utils.base: --> [66/21], toollib name: LINUX_ARM64_MONO
-2022-10-24 21:52:26,150-INFO-apps.scan_conf.utils.base: --> [66/22], toollib name: LINUX_ARM64_NODE
-2022-10-24 21:52:26,152-INFO-apps.scan_conf.utils.base: --> [66/23], toollib name: LINUX_ARM64_PYTHON27
-2022-10-24 21:52:26,154-INFO-apps.scan_conf.utils.base: --> [66/24], toollib name: LINUX_ARM64_PYTHON37
-2022-10-24 21:52:26,157-INFO-apps.scan_conf.utils.base: --> [66/25], toollib name: LINUX_ARM64_SCC
-2022-10-24 21:52:26,159-INFO-apps.scan_conf.utils.base: --> [66/26], toollib name: LINUX_CPPCHECK
-2022-10-24 21:52:26,168-INFO-apps.scan_conf.utils.base: --> [66/27], toollib name: LINUX_DART_SDK
-2022-10-24 21:52:26,171-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_MONO数据。。。
-2022-10-24 21:52:26,173-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_NODE数据。。。
-2022-10-24 21:52:26,177-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_PYTHON27数据。。。
-2022-10-24 21:52:26,181-INFO-apps.scan_conf.utils.base: --> [66/28], toollib name: LINUX_GCC_5_4
-2022-10-24 21:52:26,190-INFO-apps.scan_conf.utils.base: --> [66/29], toollib name: LINUX_GO
-2022-10-24 21:52:26,193-INFO-apps.scan_conf.utils.base: --> [66/30], toollib name: LINUX_GOMETALINTER
-2022-10-24 21:52:26,203-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_SCC数据。。。
-2022-10-24 21:52:26,207-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_CPPCHECK数据。。。
-2022-10-24 21:52:26,212-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_ARM64_PYTHON37数据。。。
-2022-10-24 21:52:26,221-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_GCC_5_4数据。。。
-2022-10-24 21:52:26,233-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_GO数据。。。
-2022-10-24 21:52:26,236-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_GOMETALINTER数据。。。
-2022-10-24 21:52:26,240-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_DART_SDK数据。。。
-2022-10-24 21:52:26,399-INFO-apps.scan_conf.utils.base: --> [66/31], toollib name: LINUX_INFER
-2022-10-24 21:52:26,401-INFO-apps.scan_conf.utils.base: --> [66/32], toollib name: LINUX_JDK_8
-2022-10-24 21:52:26,404-INFO-apps.scan_conf.utils.base: --> [66/33], toollib name: LINUX_LUA_5_3_4
-2022-10-24 21:52:26,407-INFO-apps.scan_conf.utils.base: --> [66/34], toollib name: LINUX_LUACHECK
-2022-10-24 21:52:26,410-INFO-apps.scan_conf.utils.base: --> [66/35], toollib name: LINUX_MONO
-2022-10-24 21:52:26,413-INFO-apps.scan_conf.utils.base: --> [66/36], toollib name: LINUX_NODE
-2022-10-24 21:52:26,417-INFO-apps.scan_conf.utils.base: --> [66/37], toollib name: LINUX_PYTHON27
-2022-10-24 21:52:26,423-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_INFER数据。。。
-2022-10-24 21:52:26,425-INFO-apps.scan_conf.utils.base: --> [66/38], toollib name: LINUX_PYTHON37
-2022-10-24 21:52:26,430-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_JDK_8数据。。。
-2022-10-24 21:52:26,434-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_LUA_5_3_4数据。。。
-2022-10-24 21:52:26,442-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_LUACHECK数据。。。
-2022-10-24 21:52:26,449-INFO-apps.scan_conf.utils.base: --> [66/39], toollib name: LINUX_SCC
-2022-10-24 21:52:26,455-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_MONO数据。。。
-2022-10-24 21:52:26,459-INFO-apps.scan_conf.utils.base: --> [66/40], toollib name: LINUX_SWIFTLINT
-2022-10-24 21:52:26,463-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_NODE数据。。。
-2022-10-24 21:52:26,464-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_PYTHON27数据。。。
-2022-10-24 21:52:26,476-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_SCC数据。。。
-2022-10-24 21:52:26,483-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_PYTHON37数据。。。
-2022-10-24 21:52:26,490-INFO-apps.scan_conf.utils.base: 开始保存工具依赖LINUX_SWIFTLINT数据。。。
-2022-10-24 21:52:26,533-INFO-apps.scan_conf.utils.base: --> [66/41], toollib name: MAC_ANDROID_TOOL
-2022-10-24 21:52:26,535-INFO-apps.scan_conf.utils.base: --> [66/42], toollib name: MAC_CPPCHECK
-2022-10-24 21:52:26,538-INFO-apps.scan_conf.utils.base: --> [66/43], toollib name: MAC_DART_SDK
-2022-10-24 21:52:26,540-INFO-apps.scan_conf.utils.base: --> [66/44], toollib name: MAC_GO
-2022-10-24 21:52:26,542-INFO-apps.scan_conf.utils.base: --> [66/45], toollib name: MAC_GOMETALINTER
-2022-10-24 21:52:26,545-INFO-apps.scan_conf.utils.base: --> [66/46], toollib name: MAC_INFER_V0_15_0
-2022-10-24 21:52:26,551-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_ANDROID_TOOL数据。。。
-2022-10-24 21:52:26,559-INFO-apps.scan_conf.utils.base: --> [66/47], toollib name: MAC_JDK_8
-2022-10-24 21:52:26,565-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_DART_SDK数据。。。
-2022-10-24 21:52:26,570-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_CPPCHECK数据。。。
-2022-10-24 21:52:26,573-INFO-apps.scan_conf.utils.base: --> [66/48], toollib name: MAC_LUA_5_3_4
-2022-10-24 21:52:26,577-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_GOMETALINTER数据。。。
-2022-10-24 21:52:26,583-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_GO数据。。。
-2022-10-24 21:52:26,589-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_INFER_V0_15_0数据。。。
-2022-10-24 21:52:26,599-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_LUA_5_3_4数据。。。
-2022-10-24 21:52:26,600-INFO-apps.scan_conf.utils.base: --> [66/49], toollib name: MAC_LUACHECK
-2022-10-24 21:52:26,608-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_JDK_8数据。。。
-2022-10-24 21:52:26,614-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_LUACHECK数据。。。
-2022-10-24 21:52:26,619-INFO-apps.scan_conf.utils.base: --> [66/50], toollib name: MAC_MONO
-2022-10-24 21:52:26,634-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_MONO数据。。。
-2022-10-24 21:52:26,682-INFO-apps.scan_conf.utils.base: --> [66/51], toollib name: MAC_NODE
-2022-10-24 21:52:26,684-INFO-apps.scan_conf.utils.base: --> [66/52], toollib name: MAC_PYTHON27
-2022-10-24 21:52:26,686-INFO-apps.scan_conf.utils.base: --> [66/53], toollib name: MAC_PYTHON37
-2022-10-24 21:52:26,688-INFO-apps.scan_conf.utils.base: --> [66/54], toollib name: MAC_SCC
-2022-10-24 21:52:26,691-INFO-apps.scan_conf.utils.base: --> [66/55], toollib name: MAC_SWIFTLINT
-2022-10-24 21:52:26,695-INFO-apps.scan_conf.utils.base: --> [66/56], toollib name: WINDOWS_CPPCHECK
-2022-10-24 21:52:26,701-INFO-apps.scan_conf.utils.base: --> [66/57], toollib name: WINDOWS_DART_SDK
-2022-10-24 21:52:26,705-INFO-apps.scan_conf.utils.base: --> [66/58], toollib name: WINDOWS_GO
-2022-10-24 21:52:26,711-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_PYTHON27数据。。。
-2022-10-24 21:52:26,715-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_SCC数据。。。
-2022-10-24 21:52:26,721-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_SWIFTLINT数据。。。
-2022-10-24 21:52:26,726-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_NODE数据。。。
-2022-10-24 21:52:26,729-INFO-apps.scan_conf.utils.base: 开始保存工具依赖MAC_PYTHON37数据。。。
-2022-10-24 21:52:26,733-INFO-apps.scan_conf.utils.base: --> [66/59], toollib name: WINDOWS_JDK_8
-2022-10-24 21:52:26,738-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_CPPCHECK数据。。。
-2022-10-24 21:52:26,745-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_DART_SDK数据。。。
-2022-10-24 21:52:26,753-INFO-apps.scan_conf.utils.base: --> [66/60], toollib name: WINDOWS_LUACHECK
-2022-10-24 21:52:26,757-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_JDK_8数据。。。
-2022-10-24 21:52:26,761-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_GO数据。。。
-2022-10-24 21:52:26,783-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_LUACHECK数据。。。
-2022-10-24 21:52:26,807-INFO-apps.scan_conf.utils.base: --> [66/61], toollib name: WINDOWS_MONO
-2022-10-24 21:52:26,809-INFO-apps.scan_conf.utils.base: --> [66/62], toollib name: WINDOWS_NODE
-2022-10-24 21:52:26,811-INFO-apps.scan_conf.utils.base: --> [66/63], toollib name: WINDOWS_PYTHON27
-2022-10-24 21:52:26,814-INFO-apps.scan_conf.utils.base: --> [66/64], toollib name: WINDOWS_PYTHON37
-2022-10-24 21:52:26,816-INFO-apps.scan_conf.utils.base: --> [66/65], toollib name: WINDOWS_SCC
-2022-10-24 21:52:26,820-INFO-apps.scan_conf.utils.base: --> [66/66], toollib name: WINDOWS_STYLECOP
-2022-10-24 21:52:26,830-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_MONO数据。。。
-2022-10-24 21:52:26,835-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_PYTHON27数据。。。
-2022-10-24 21:52:26,837-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_NODE数据。。。
-2022-10-24 21:52:26,851-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_STYLECOP数据。。。
-2022-10-24 21:52:26,854-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_PYTHON37数据。。。
-2022-10-24 21:52:26,862-INFO-apps.scan_conf.utils.base: 开始保存工具依赖WINDOWS_SCC数据。。。
Finish load [common_checkstyle;common_cloc;common_cobra;common_cobra_v2_0_0_alpha_5;common_cpd;common_cpplint;common_dart_ccn;common_detekt_1_7_1;common_findbugs;common_lizard;common_pmd;common_scalastyle;common_spotbugs;linux_android_tool;linux_arm64_cppcheck;linux_arm64_dart_sdk;linux_arm64_go;linux_arm64_gometalinter;linux_arm64_jdk_8;linux_arm64_lua_5_3_4;linux_arm64_mono;linux_arm64_node;linux_arm64_python27;linux_arm64_python37;linux_arm64_scc;linux_cppcheck;linux_dart_sdk;linux_gcc_5_4;linux_go;linux_gometalinter;linux_infer;linux_jdk_8;linux_lua_5_3_4;linux_luacheck;linux_mono;linux_node;linux_python27;linux_python37;linux_scc;linux_swiftlint;mac_android_tool;mac_cppcheck;mac_dart_sdk;mac_go;mac_gometalinter;mac_infer_v0_15_0;mac_jdk_8;mac_lua_5_3_4;mac_luacheck;mac_mono;mac_node;mac_python27;mac_python37;mac_scc;mac_swiftlint;windows_cppcheck;windows_dart_sdk;windows_go;windows_jdk_8;windows_luacheck;windows_mono;windows_node;windows_python27;windows_python37;windows_scc;windows_stylecop;]
-2022-10-24 21:52:29,110-INFO-apps.scan_conf.utils.base: --> [66/1], checktool name: codedog_0Day_checker
-2022-10-24 21:52:29,111-INFO-apps.scan_conf.utils.base: --> [66/2], checktool name: amani
-2022-10-24 21:52:29,113-INFO-apps.scan_conf.utils.base: --> [66/3], checktool name: androidlint
-2022-10-24 21:52:29,114-INFO-apps.scan_conf.utils.base: --> [66/4], checktool name: checkstyle
-2022-10-24 21:52:29,116-INFO-apps.scan_conf.utils.base: --> [66/5], checktool name: clang
-2022-10-24 21:52:29,117-INFO-apps.scan_conf.utils.base: --> [66/6], checktool name: clangwarning
-2022-10-24 21:52:29,118-INFO-apps.scan_conf.utils.base: --> [66/7], checktool name: cobra
-2022-10-24 21:52:29,119-INFO-apps.scan_conf.utils.base: --> [66/8], checktool name: codecount
-2022-10-24 21:52:29,121-INFO-apps.scan_conf.utils.base: --> [66/9], checktool name: collie
-2022-10-24 21:52:29,160-INFO-apps.scan_conf.utils.base: --> [66/10], checktool name: compass
-2022-10-24 21:52:29,372-INFO-apps.scan_conf.utils.base: 开始保存工具codecount数据。。。
-2022-10-24 21:52:29,418-INFO-apps.scan_conf.utils.base: 开始保存工具codedog_0Day_checker数据。。。
-2022-10-24 21:52:29,479-INFO-apps.scan_conf.utils.base: 开始保存工具amani数据。。。
-2022-10-24 21:52:29,664-INFO-apps.scan_conf.utils.base: 开始保存工具collie数据。。。
-2022-10-24 21:52:29,757-INFO-apps.scan_conf.utils.base: 开始保存工具compass数据。。。
-2022-10-24 21:52:30,079-INFO-apps.scan_conf.utils.base: 开始保存工具cobra数据。。。
-2022-10-24 21:52:30,159-INFO-apps.scan_conf.utils.base: 开始保存工具clang数据。。。
-2022-10-24 21:52:30,724-INFO-apps.scan_conf.utils.base: 开始保存工具androidlint数据。。。
-2022-10-24 21:52:30,750-INFO-apps.scan_conf.utils.base: 开始保存工具clangwarning数据。。。
-2022-10-24 21:52:30,768-INFO-apps.scan_conf.utils.base: 开始保存工具checkstyle数据。。。
-2022-10-24 21:52:39,950-INFO-apps.scan_conf.utils.base: --> [66/11], checktool name: cpd
-2022-10-24 21:52:39,952-INFO-apps.scan_conf.utils.base: --> [66/12], checktool name: cppcheck
-2022-10-24 21:52:39,955-INFO-apps.scan_conf.utils.base: --> [66/13], checktool name: cpplint
-2022-10-24 21:52:39,957-INFO-apps.scan_conf.utils.base: --> [66/14], checktool name: customfilescan
-2022-10-24 21:52:39,959-INFO-apps.scan_conf.utils.base: --> [66/15], checktool name: customscan
-2022-10-24 21:52:39,961-INFO-apps.scan_conf.utils.base: --> [66/16], checktool name: dartanalyzer
-2022-10-24 21:52:39,967-INFO-apps.scan_conf.utils.base: --> [66/17], checktool name: detekt
-2022-10-24 21:52:39,971-INFO-apps.scan_conf.utils.base: --> [66/18], checktool name: eslint
-2022-10-24 21:52:39,984-INFO-apps.scan_conf.utils.base: --> [66/19], checktool name: eslint_typescript
-2022-10-24 21:52:39,993-INFO-apps.scan_conf.utils.base: --> [66/20], checktool name: eslint_vue
-2022-10-24 21:52:40,033-INFO-apps.scan_conf.utils.base: 开始保存工具cpd数据。。。
-2022-10-24 21:52:40,041-INFO-apps.scan_conf.utils.base: 开始保存工具customfilescan数据。。。
-2022-10-24 21:52:40,090-INFO-apps.scan_conf.utils.base: 开始保存工具customscan数据。。。
-2022-10-24 21:52:40,833-INFO-apps.scan_conf.utils.base: 开始保存工具cpplint数据。。。
-2022-10-24 21:52:42,030-INFO-apps.scan_conf.utils.base: 开始保存工具detekt数据。。。
-2022-10-24 21:52:42,457-INFO-apps.scan_conf.utils.base: 开始保存工具cppcheck数据。。。
-2022-10-24 21:52:43,002-INFO-apps.scan_conf.utils.base: 开始保存工具eslint_vue数据。。。
-2022-10-24 21:52:43,297-INFO-apps.scan_conf.utils.base: 开始保存工具eslint数据。。。
-2022-10-24 21:52:43,368-INFO-apps.scan_conf.utils.base: 开始保存工具eslint_typescript数据。。。
-2022-10-24 21:52:45,542-INFO-apps.scan_conf.utils.base: 开始保存工具dartanalyzer数据。。。
-2022-10-24 21:53:34,336-INFO-apps.scan_conf.utils.base: --> [66/21], checktool name: fbrjs
-2022-10-24 21:53:34,338-INFO-apps.scan_conf.utils.base: --> [66/22], checktool name: findbugs
-2022-10-24 21:53:34,341-INFO-apps.scan_conf.utils.base: --> [66/23], checktool name: flake8
-2022-10-24 21:53:34,343-INFO-apps.scan_conf.utils.base: --> [66/24], checktool name: flawfinder
-2022-10-24 21:53:34,345-INFO-apps.scan_conf.utils.base: --> [66/25], checktool name: flow
-2022-10-24 21:53:34,351-INFO-apps.scan_conf.utils.base: --> [66/26], checktool name: golangcilint
-2022-10-24 21:53:34,354-INFO-apps.scan_conf.utils.base: --> [66/27], checktool name: gometalinter
-2022-10-24 21:53:34,357-INFO-apps.scan_conf.utils.base: --> [66/28], checktool name: htmlcs
-2022-10-24 21:53:34,373-INFO-apps.scan_conf.utils.base: --> [66/29], checktool name: infer_cpp
-2022-10-24 21:53:34,389-INFO-apps.scan_conf.utils.base: --> [66/30], checktool name: infer_java
-2022-10-24 21:53:34,443-INFO-apps.scan_conf.utils.base: 开始保存工具fbrjs数据。。。
-2022-10-24 21:53:34,458-INFO-apps.scan_conf.utils.base: 开始保存工具flow数据。。。
-2022-10-24 21:53:34,908-INFO-apps.scan_conf.utils.base: 开始保存工具golangcilint数据。。。
-2022-10-24 21:53:34,925-INFO-apps.scan_conf.utils.base: 开始保存工具infer_cpp数据。。。
-2022-10-24 21:53:34,983-INFO-apps.scan_conf.utils.base: 开始保存工具infer_java数据。。。
-2022-10-24 21:53:35,222-INFO-apps.scan_conf.utils.base: 开始保存工具htmlcs数据。。。
-2022-10-24 21:53:35,338-INFO-apps.scan_conf.utils.base: 开始保存工具flake8数据。。。
-2022-10-24 21:53:35,630-INFO-apps.scan_conf.utils.base: 开始保存工具gometalinter数据。。。
-2022-10-24 21:53:36,131-INFO-apps.scan_conf.utils.base: 开始保存工具flawfinder数据。。。
-2022-10-24 21:53:36,786-INFO-apps.scan_conf.utils.base: 开始保存工具findbugs数据。。。
-2022-10-24 21:54:02,564-INFO-apps.scan_conf.utils.base: --> [66/31], checktool name: infer_objectivec
-2022-10-24 21:54:02,567-INFO-apps.scan_conf.utils.base: --> [66/32], checktool name: jaaf
-2022-10-24 21:54:02,569-INFO-apps.scan_conf.utils.base: --> [66/33], checktool name: jafc
-2022-10-24 21:54:02,572-INFO-apps.scan_conf.utils.base: --> [66/34], checktool name: jafc_beta
-2022-10-24 21:54:02,576-INFO-apps.scan_conf.utils.base: --> [66/35], checktool name: jaff
-2022-10-24 21:54:02,578-INFO-apps.scan_conf.utils.base: --> [66/36], checktool name: jaff_beta
-2022-10-24 21:54:02,587-INFO-apps.scan_conf.utils.base: --> [66/37], checktool name: javawarning
-2022-10-24 21:54:02,598-INFO-apps.scan_conf.utils.base: --> [66/38], checktool name: ktlint
-2022-10-24 21:54:02,613-INFO-apps.scan_conf.utils.base: --> [66/39], checktool name: kunlunM
-2022-10-24 21:54:02,632-INFO-apps.scan_conf.utils.base: --> [66/40], checktool name: lizard
-2022-10-24 21:54:02,711-INFO-apps.scan_conf.utils.base: 开始保存工具jaaf数据。。。
-2022-10-24 21:54:02,787-INFO-apps.scan_conf.utils.base: 开始保存工具lizard数据。。。
-2022-10-24 21:54:02,844-INFO-apps.scan_conf.utils.base: 开始保存工具jafc_beta数据。。。
-2022-10-24 21:54:03,038-INFO-apps.scan_conf.utils.base: 开始保存工具jaff_beta数据。。。
-2022-10-24 21:54:03,166-INFO-apps.scan_conf.utils.base: 开始保存工具kunlunM数据。。。
-2022-10-24 21:54:03,167-INFO-apps.scan_conf.utils.base: 开始保存工具infer_objectivec数据。。。
-2022-10-24 21:54:03,173-INFO-apps.scan_conf.utils.base: 开始保存工具jafc数据。。。
-2022-10-24 21:54:03,202-INFO-apps.scan_conf.utils.base: 开始保存工具ktlint数据。。。
-2022-10-24 21:54:03,288-INFO-apps.scan_conf.utils.base: 开始保存工具jaff数据。。。
-2022-10-24 21:54:03,331-INFO-apps.scan_conf.utils.base: 开始保存工具javawarning数据。。。
-2022-10-24 21:54:06,905-INFO-apps.scan_conf.utils.base: --> [66/41], checktool name: luacheck
-2022-10-24 21:54:06,907-INFO-apps.scan_conf.utils.base: --> [66/42], checktool name: phpcs
-2022-10-24 21:54:06,909-INFO-apps.scan_conf.utils.base: --> [66/43], checktool name: pmd
-2022-10-24 21:54:06,911-INFO-apps.scan_conf.utils.base: --> [66/44], checktool name: pylint
-2022-10-24 21:54:06,914-INFO-apps.scan_conf.utils.base: --> [66/45], checktool name: regexfilescan
-2022-10-24 21:54:06,919-INFO-apps.scan_conf.utils.base: --> [66/46], checktool name: regexscan
-2022-10-24 21:54:06,923-INFO-apps.scan_conf.utils.base: --> [66/47], checktool name: regexscanner
-2022-10-24 21:54:06,932-INFO-apps.scan_conf.utils.base: --> [66/48], checktool name: rips
-2022-10-24 21:54:06,939-INFO-apps.scan_conf.utils.base: --> [66/49], checktool name: scalastyle
-2022-10-24 21:54:06,943-INFO-apps.scan_conf.utils.base: --> [66/50], checktool name: semgrep
-2022-10-24 21:54:07,087-INFO-apps.scan_conf.utils.base: 开始保存工具pmd数据。。。
-2022-10-24 21:54:07,103-INFO-apps.scan_conf.utils.base: 开始保存工具regexfilescan数据。。。
-2022-10-24 21:54:07,324-INFO-apps.scan_conf.utils.base: 开始保存工具rips数据。。。
-2022-10-24 21:54:07,347-INFO-apps.scan_conf.utils.base: 开始保存工具regexscan数据。。。
-2022-10-24 21:54:07,359-INFO-apps.scan_conf.utils.base: 开始保存工具regexscanner数据。。。
-2022-10-24 21:54:07,948-INFO-apps.scan_conf.utils.base: 开始保存工具scalastyle数据。。。
-2022-10-24 21:54:08,213-INFO-apps.scan_conf.utils.base: 开始保存工具luacheck数据。。。
-2022-10-24 21:54:09,048-INFO-apps.scan_conf.utils.base: 开始保存工具pylint数据。。。
-2022-10-24 21:54:09,247-INFO-apps.scan_conf.utils.base: 开始保存工具phpcs数据。。。
-2022-10-24 21:54:10,728-INFO-apps.scan_conf.utils.base: 开始保存工具semgrep数据。。。
-2022-10-24 21:55:02,230-INFO-apps.scan_conf.utils.base: --> [66/51], checktool name: shellcheck
-2022-10-24 21:55:02,232-INFO-apps.scan_conf.utils.base: --> [66/52], checktool name: spotbugs
-2022-10-24 21:55:02,234-INFO-apps.scan_conf.utils.base: --> [66/53], checktool name: tca_plugin_sqlcheck
-2022-10-24 21:55:02,236-INFO-apps.scan_conf.utils.base: --> [66/54], checktool name: stylecop
-2022-10-24 21:55:02,239-INFO-apps.scan_conf.utils.base: --> [66/55], checktool name: stylelint
-2022-10-24 21:55:02,263-INFO-apps.scan_conf.utils.base: --> [66/56], checktool name: swiftlint
-2022-10-24 21:55:02,278-INFO-apps.scan_conf.utils.base: --> [66/57], checktool name: tca_ql_cpp
-2022-10-24 21:55:02,288-INFO-apps.scan_conf.utils.base: --> [66/58], checktool name: tca_ql_go
-2022-10-24 21:55:02,296-INFO-apps.scan_conf.utils.base: --> [66/59], checktool name: tca_ql_js
-2022-10-24 21:55:02,306-INFO-apps.scan_conf.utils.base: --> [66/60], checktool name: tca_ql_php
-2022-10-24 21:55:02,541-INFO-apps.scan_conf.utils.base: 开始保存工具tca_plugin_sqlcheck数据。。。
-2022-10-24 21:55:02,626-INFO-apps.scan_conf.utils.base: 开始保存工具tca_ql_js数据。。。
-2022-10-24 21:55:02,646-INFO-apps.scan_conf.utils.base: 开始保存工具tca_ql_cpp数据。。。
-2022-10-24 21:55:02,690-INFO-apps.scan_conf.utils.base: 开始保存工具tca_ql_go数据。。。
-2022-10-24 21:55:02,695-INFO-apps.scan_conf.utils.base: 开始保存工具stylelint数据。。。
-2022-10-24 21:55:02,902-INFO-apps.scan_conf.utils.base: 开始保存工具tca_ql_php数据。。。
-2022-10-24 21:55:04,057-INFO-apps.scan_conf.utils.base: 开始保存工具stylecop数据。。。
-2022-10-24 21:55:04,121-INFO-apps.scan_conf.utils.base: 开始保存工具swiftlint数据。。。
-2022-10-24 21:55:04,231-INFO-apps.scan_conf.utils.base: 开始保存工具shellcheck数据。。。
-2022-10-24 21:55:04,751-INFO-apps.scan_conf.utils.base: 开始保存工具spotbugs数据。。。
-2022-10-24 21:55:28,022-INFO-apps.scan_conf.utils.base: --> [66/61], checktool name: tca_ql_php_beta
-2022-10-24 21:55:28,024-INFO-apps.scan_conf.utils.base: --> [66/62], checktool name: tca_ql_python
-2022-10-24 21:55:28,027-INFO-apps.scan_conf.utils.base: --> [66/63], checktool name: tscan_cpp
-2022-10-24 21:55:28,031-INFO-apps.scan_conf.utils.base: --> [66/64], checktool name: tscan_lua
-2022-10-24 21:55:28,034-INFO-apps.scan_conf.utils.base: --> [66/65], checktool name: tscan_csharp
-2022-10-24 21:55:28,041-INFO-apps.scan_conf.utils.base: --> [66/66], checktool name: unusedresource
-2022-10-24 21:55:28,167-INFO-apps.scan_conf.utils.base: 开始保存工具unusedresource数据。。。
-2022-10-24 21:55:28,300-INFO-apps.scan_conf.utils.base: 开始保存工具tca_ql_php_beta数据。。。
-2022-10-24 21:55:28,315-INFO-apps.scan_conf.utils.base: 开始保存工具tca_ql_python数据。。。
-2022-10-24 21:55:28,434-INFO-apps.scan_conf.utils.base: 开始保存工具tscan_csharp数据。。。
-2022-10-24 21:55:28,497-INFO-apps.scan_conf.utils.base: 开始保存工具tscan_lua数据。。。
-2022-10-24 21:55:28,603-INFO-apps.scan_conf.utils.base: 开始保存工具tscan_cpp数据。。。
Finish load [0daychecker;amani;androidlint;checkstyle;clang;clangwarning;cobra;codecount;collie;compass;cpd;cppcheck;cpplint;customfilescan;customscan;dartanalyzer;detekt;eslint;eslint_typescript;eslint_vue;fbrjs;findbugs;flake8;flawfinder;flow;golangcilint;gometalinter;htmlcs;infer_cpp;infer_java;infer_objectivec;jaaf;jafc;jafc_beta;jaff;jaff_beta;javawarning;ktlint;kunlunM;lizard;luacheck;phpcs;pmd;pylint;regexfilescan;regexscan;regexscanner;rips;scalastyle;semgrep;shellcheck;spotbugs;sqlcheck;stylecop;stylelint;swiftlint;tca_ql_cpp;tca_ql_go;tca_ql_js;tca_ql_php;tca_ql_php_beta;tca_ql_python;tsccpp;tsclua;tscsharp;unusedresource;]
-2022-10-24 21:55:33,095-DEBUG-asyncio: Using selector: EpollSelector
-2022-10-24 21:55:37,644-INFO-apps.scan_conf.utils.base: --> [57/1], checkpackage name: 【Android】危险权限分析
-2022-10-24 21:55:37,645-INFO-apps.scan_conf.utils.base: --> [57/2], checkpackage name: 【Android】动态权限调用分析
-2022-10-24 21:55:37,649-INFO-apps.scan_conf.utils.base: --> [57/3], checkpackage name: 【Android】隐私合规检查
-2022-10-24 21:55:37,652-INFO-apps.scan_conf.utils.base: --> [57/4], checkpackage name: 【C/C++】基础规则包
-2022-10-24 21:55:37,655-INFO-apps.scan_conf.utils.base: --> [57/5], checkpackage name: 【C#】基础规则包
-2022-10-24 21:55:37,661-INFO-apps.scan_conf.utils.base: --> [57/6], checkpackage name: 【Css】基础规则包
-2022-10-24 21:55:37,666-INFO-apps.scan_conf.utils.base: --> [57/7], checkpackage name: 【Go】基础规则包
-2022-10-24 21:55:37,670-INFO-apps.scan_conf.utils.base: --> [57/8], checkpackage name: 【Html】基础规则包
-2022-10-24 21:55:37,672-INFO-apps.scan_conf.utils.base: --> [57/9], checkpackage name: 【Java】基础规则包
-2022-10-24 21:55:37,676-INFO-apps.scan_conf.utils.base: --> [57/10], checkpackage name: 【JavaScript】基础规则包
-2022-10-24 21:55:37,873-INFO-apps.scan_conf.utils.base: 开始保存规则包[【C#】基础规则包]数据。。。
-2022-10-24 21:55:38,411-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Html】基础规则包]数据。。。
-2022-10-24 21:55:38,457-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Css】基础规则包]数据。。。
-2022-10-24 21:55:38,906-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Android】危险权限分析]数据。。。
-2022-10-24 21:55:38,943-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Android】动态权限调用分析]数据。。。
-2022-10-24 21:55:39,224-INFO-apps.scan_conf.utils.base: 开始保存规则包[【JavaScript】基础规则包]数据。。。
-2022-10-24 21:55:39,518-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Go】基础规则包]数据。。。
-2022-10-24 21:55:39,841-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Android】隐私合规检查]数据。。。
-2022-10-24 21:55:40,366-INFO-apps.scan_conf.utils.base: 开始保存规则包[【C/C++】基础规则包]数据。。。
-2022-10-24 21:55:41,199-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Java】基础规则包]数据。。。
-2022-10-24 21:55:41,903-INFO-apps.scan_conf.utils.base: --> [57/11], checkpackage name: 【Kotlin】基础规则包
-2022-10-24 21:55:41,905-INFO-apps.scan_conf.utils.base: --> [57/12], checkpackage name: 【Lua】基础规则包
-2022-10-24 21:55:41,908-INFO-apps.scan_conf.utils.base: --> [57/13], checkpackage name: 【Objective-C】基础规则包
-2022-10-24 21:55:41,910-INFO-apps.scan_conf.utils.base: --> [57/14], checkpackage name: 【PHP】基础规则包
-2022-10-24 21:55:41,914-INFO-apps.scan_conf.utils.base: --> [57/15], checkpackage name: 【Python】基础规则包
-2022-10-24 21:55:41,916-INFO-apps.scan_conf.utils.base: --> [57/16], checkpackage name: 【Ruby】基础规则包
-2022-10-24 21:55:41,918-INFO-apps.scan_conf.utils.base: --> [57/17], checkpackage name: 【Scala】基础规则包
-2022-10-24 21:55:41,926-INFO-apps.scan_conf.utils.base: --> [57/18], checkpackage name: 【Swift】基础规则包
-2022-10-24 21:55:41,930-INFO-apps.scan_conf.utils.base: --> [57/19], checkpackage name: 【Typescript】基础规则包
-2022-10-24 21:55:41,938-INFO-apps.scan_conf.utils.base: --> [57/20], checkpackage name: 【VisualBasic】基础规则包
-2022-10-24 21:55:42,160-INFO-apps.scan_conf.utils.base: 开始保存规则包[【VisualBasic】基础规则包]数据。。。
-2022-10-24 21:55:42,270-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Ruby】基础规则包]数据。。。
-2022-10-24 21:55:42,298-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Scala】基础规则包]数据。。。
-2022-10-24 21:55:42,362-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Swift】基础规则包]数据。。。
-2022-10-24 21:55:42,400-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Objective-C】基础规则包]数据。。。
-2022-10-24 21:55:42,761-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Typescript】基础规则包]数据。。。
-2022-10-24 21:55:42,782-INFO-apps.scan_conf.utils.base: 开始保存规则包[【PHP】基础规则包]数据。。。
-2022-10-24 21:55:42,949-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Python】基础规则包]数据。。。
-2022-10-24 21:55:42,997-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Kotlin】基础规则包]数据。。。
-2022-10-24 21:55:43,415-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Lua】基础规则包]数据。。。
-2022-10-24 21:55:43,714-INFO-apps.scan_conf.utils.base: --> [57/21], checkpackage name: 【Vue】基础规则包
-2022-10-24 21:55:43,716-INFO-apps.scan_conf.utils.base: --> [57/22], checkpackage name: 【Objective-C】代码规范规则包
-2022-10-24 21:55:43,718-INFO-apps.scan_conf.utils.base: --> [57/23], checkpackage name: 依赖漏洞规则包
-2022-10-24 21:55:43,720-INFO-apps.scan_conf.utils.base: --> [57/24], checkpackage name: 【C/C++】代码质量缺陷规则包
-2022-10-24 21:55:43,722-INFO-apps.scan_conf.utils.base: --> [57/25], checkpackage name: 【NodeJs】强化安全规则包
-2022-10-24 21:55:43,726-INFO-apps.scan_conf.utils.base: --> [57/26], checkpackage name: 【Java】强化API分析
-2022-10-24 21:55:43,738-INFO-apps.scan_conf.utils.base: --> [57/27], checkpackage name: 【Python】强化Djang框架安全规则
-2022-10-24 21:55:43,742-INFO-apps.scan_conf.utils.base: --> [57/28], checkpackage name: 【Go】强化Go安全规则
-2022-10-24 21:55:43,756-INFO-apps.scan_conf.utils.base: --> [57/29], checkpackage name: 【Java】强化安全规则
-2022-10-24 21:55:43,809-INFO-apps.scan_conf.utils.base: --> [57/30], checkpackage name: 【PHP】强化PHP安全规则
-2022-10-24 21:55:44,176-INFO-apps.scan_conf.utils.base: 开始保存规则包[依赖漏洞规则包]数据。。。
-2022-10-24 21:55:44,223-INFO-apps.scan_conf.utils.base: 开始保存规则包[【C/C++】代码质量缺陷规则包]数据。。。
-2022-10-24 21:55:44,274-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Java】强化安全规则]数据。。。
-2022-10-24 21:55:44,285-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Go】强化Go安全规则]数据。。。
-2022-10-24 21:55:44,296-INFO-apps.scan_conf.utils.base: 开始保存规则包[【NodeJs】强化安全规则包]数据。。。
-2022-10-24 21:55:44,298-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Python】强化Djang框架安全规则]数据。。。
-2022-10-24 21:55:44,689-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Vue】基础规则包]数据。。。
-2022-10-24 21:55:44,721-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Objective-C】代码规范规则包]数据。。。
-2022-10-24 21:55:44,765-INFO-apps.scan_conf.utils.base: 开始保存规则包[【PHP】强化PHP安全规则]数据。。。
-2022-10-24 21:55:45,459-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Java】强化API分析]数据。。。
-2022-10-24 21:55:45,925-INFO-apps.scan_conf.utils.base: --> [57/31], checkpackage name: 【Python】强化Python安全规则
-2022-10-24 21:55:45,927-INFO-apps.scan_conf.utils.base: --> [57/32], checkpackage name: 【PHP】强化ThinkPHP框架安全规则
-2022-10-24 21:55:45,929-INFO-apps.scan_conf.utils.base: --> [57/33], checkpackage name: 前端框架检查
-2022-10-24 21:55:45,932-INFO-apps.scan_conf.utils.base: --> [57/34], checkpackage name: 【iOS】隐私合规检查
-2022-10-24 21:55:45,934-INFO-apps.scan_conf.utils.base: --> [57/35], checkpackage name: Log4j漏洞
-2022-10-24 21:55:45,937-INFO-apps.scan_conf.utils.base: --> [57/36], checkpackage name: Logback漏洞
-2022-10-24 21:55:45,940-INFO-apps.scan_conf.utils.base: --> [57/37], checkpackage name: 【全语种】开源合规检查
-2022-10-24 21:55:45,945-INFO-apps.scan_conf.utils.base: --> [57/38], checkpackage name: 【C/C++】减包扫描
-2022-10-24 21:55:45,953-INFO-apps.scan_conf.utils.base: --> [57/39], checkpackage name: 【Java】减包扫描
-2022-10-24 21:55:45,967-INFO-apps.scan_conf.utils.base: --> [57/40], checkpackage name: 【Objective-C】减包扫描
-2022-10-24 21:55:46,183-INFO-apps.scan_conf.utils.base: 开始保存规则包[Logback漏洞]数据。。。
-2022-10-24 21:55:46,366-INFO-apps.scan_conf.utils.base: 开始保存规则包[【iOS】隐私合规检查]数据。。。
-2022-10-24 21:55:46,503-INFO-apps.scan_conf.utils.base: 开始保存规则包[Log4j漏洞]数据。。。
-2022-10-24 21:55:46,556-INFO-apps.scan_conf.utils.base: 开始保存规则包[【PHP】强化ThinkPHP框架安全规则]数据。。。
-2022-10-24 21:55:46,611-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Objective-C】减包扫描]数据。。。
-2022-10-24 21:55:46,647-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Python】强化Python安全规则]数据。。。
-2022-10-24 21:55:46,704-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Java】减包扫描]数据。。。
-2022-10-24 21:55:46,806-INFO-apps.scan_conf.utils.base: 开始保存规则包[前端框架检查]数据。。。
-2022-10-24 21:55:47,278-INFO-apps.scan_conf.utils.base: 开始保存规则包[【C/C++】减包扫描]数据。。。
-2022-10-24 21:55:47,336-INFO-apps.scan_conf.utils.base: 开始保存规则包[【全语种】开源合规检查]数据。。。
-2022-10-24 21:55:47,628-INFO-apps.scan_conf.utils.base: --> [57/41], checkpackage name: 【C/C++】推荐规则包
-2022-10-24 21:55:47,630-INFO-apps.scan_conf.utils.base: --> [57/42], checkpackage name: 【Go】推荐规则包
-2022-10-24 21:55:47,632-INFO-apps.scan_conf.utils.base: --> [57/43], checkpackage name: 【JavaScript】推荐规则包
-2022-10-24 21:55:47,636-INFO-apps.scan_conf.utils.base: --> [57/44], checkpackage name: 【Kotlin】推荐规则包
-2022-10-24 21:55:47,638-INFO-apps.scan_conf.utils.base: --> [57/45], checkpackage name: 【Objective-C】推荐规则包
-2022-10-24 21:55:47,640-INFO-apps.scan_conf.utils.base: --> [57/46], checkpackage name: 【Python】推荐规则包
-2022-10-24 21:55:47,648-INFO-apps.scan_conf.utils.base: --> [57/47], checkpackage name: 【Swift】推荐规则包
-2022-10-24 21:55:47,658-INFO-apps.scan_conf.utils.base: --> [57/48], checkpackage name: 【Vue】推荐规则包
-2022-10-24 21:55:47,671-INFO-apps.scan_conf.utils.base: --> [57/49], checkpackage name: 【PHP】安全检查2.0
-2022-10-24 21:55:47,682-INFO-apps.scan_conf.utils.base: --> [57/50], checkpackage name: 【Go】基础安全
-2022-10-24 21:55:48,306-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Swift】推荐规则包]数据。。。
-2022-10-24 21:55:48,644-INFO-apps.scan_conf.utils.base: 开始保存规则包[【PHP】安全检查2.0]数据。。。
-2022-10-24 21:55:49,006-INFO-apps.scan_conf.utils.base: 开始保存规则包[【C/C++】推荐规则包]数据。。。
-2022-10-24 21:55:49,066-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Vue】推荐规则包]数据。。。
-2022-10-24 21:55:49,194-INFO-apps.scan_conf.utils.base: 开始保存规则包[【JavaScript】推荐规则包]数据。。。
-2022-10-24 21:55:49,204-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Kotlin】推荐规则包]数据。。。
-2022-10-24 21:55:49,512-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Go】推荐规则包]数据。。。
-2022-10-24 21:55:49,639-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Objective-C】推荐规则包]数据。。。
-2022-10-24 21:55:50,568-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Go】基础安全]数据。。。
-2022-10-24 21:55:50,576-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Python】推荐规则包]数据。。。
-2022-10-24 21:55:51,284-INFO-apps.scan_conf.utils.base: --> [57/51], checkpackage name: 【Java】基础安全
-2022-10-24 21:55:51,286-INFO-apps.scan_conf.utils.base: --> [57/52], checkpackage name: 【JavaScript】基础安全
-2022-10-24 21:55:51,289-INFO-apps.scan_conf.utils.base: --> [57/53], checkpackage name: 【PHP】基础安全
-2022-10-24 21:55:51,290-INFO-apps.scan_conf.utils.base: --> [57/54], checkpackage name: 【Python】基础安全
-2022-10-24 21:55:51,293-INFO-apps.scan_conf.utils.base: --> [57/55], checkpackage name: 【全语种】semgrep敏感信息扫描
-2022-10-24 21:55:51,294-INFO-apps.scan_conf.utils.base: --> [57/56], checkpackage name: 【Go】单元测试有效性验证
-2022-10-24 21:55:51,297-INFO-apps.scan_conf.utils.base: --> [57/57], checkpackage name: 【ThinkPHP】安全规则
-2022-10-24 21:55:51,406-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Go】单元测试有效性验证]数据。。。
-2022-10-24 21:55:52,252-INFO-apps.scan_conf.utils.base: 开始保存规则包[【PHP】基础安全]数据。。。
-2022-10-24 21:55:52,280-INFO-apps.scan_conf.utils.base: 开始保存规则包[【ThinkPHP】安全规则]数据。。。
-2022-10-24 21:55:53,255-INFO-apps.scan_conf.utils.base: 开始保存规则包[【全语种】semgrep敏感信息扫描]数据。。。
-2022-10-24 21:55:53,291-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Python】基础安全]数据。。。
-2022-10-24 21:55:53,369-INFO-apps.scan_conf.utils.base: 开始保存规则包[【JavaScript】基础安全]数据。。。
-2022-10-24 21:55:53,441-INFO-apps.scan_conf.utils.base: 开始保存规则包[【Java】基础安全]数据。。。
Finish load [android_dangerous_permissions; android_dynamic_permissions; android_privacy_compliance; base_cpp; base_cs; base_css; base_go; base_html; base_java; base_javascript; base_kotlin; base_lua; base_oc; base_php; base_python; base_ruby; base_scala; base_swift; base_typescript; base_visualbasic; base_vue; code_spec_oc; dependency_vul; enhance_cpp; enhance_safety_js; enhanced_api_java; enhanced_safety_django; enhanced_safety_go; enhanced_safety_java; enhanced_safety_php; enhanced_safety_python; enhanced_safety_thinkphp; front_end_framework_check; ios_privacy_compliance; log4j_vul; logback_vul; open_source_check; package_reduction_cpp; package_reduction_java; package_reduction_oc; recommend_cpp; recommend_go; recommend_javascript; recommend_kotlin; recommend_oc; recommend_python; recommend_swift; recommend_vue; rips; safety_go; safety_java; safety_javascript; safety_php; safety_python; semgrep_sensitive; test_case_verify_go; thinkphp_sec]
-2022-10-24 21:55:54,640-DEBUG-asyncio: Using selector: EpollSelector
Building client
Step 1/9 : FROM python:3.7.12-slim
---> 67290a4b6a03
Step 2/9 : RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && echo 'deb http://mirrors.tencent.com/debian/ bullseye main non-free contrib' > /etc/apt/sources.list && echo 'deb http://mirrors.tencent.com/debian/ bullseye-updates main non-free contrib' >> /etc/apt/sources.list && echo 'deb http://mirrors.tencent.com/debian-security bullseye-security main non-free contrib' >> /etc/apt/sources.list
---> Using cache
---> 8d92e10b0c43
Step 3/9 : ARG EXTRA_TOOLS="curl wget python3-dev git git-lfs vim-tiny gcc locales subversion telnet procps openssh-client"
---> Using cache
---> 0a91ae691465
Step 4/9 : RUN apt-get update && apt-get install -y --no-install-recommends $EXTRA_TOOLS && apt-get clean && echo "LC_ALL=zh_CN.UTF-8" >> /etc/environment && echo "zh_CN.UTF-8 UTF-8" > /etc/locale.gen && echo "LANG=zh_CN.UTF-8" > /etc/locale.conf && locale-gen && ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime && rm -rf /var/cache/apt/* /root/.cache
---> Using cache
---> c1e7c0bd9d9c
Step 5/9 : WORKDIR /workspace/client
---> Using cache
---> d9aab9ad2395
Step 6/9 : COPY requirements requirements
---> Using cache
---> 6aa6f8e27d6b
Step 7/9 : RUN pip3 install --no-cache-dir -U pip && pip3 install --no-cache-dir -r requirements/app_reqs.pip && bash requirements/install.sh
---> Running in 4a89b350dc75
Requirement already satisfied: pip in /usr/local/lib/python3.7/site-packages (21.2.4)
Collecting pip
Downloading pip-22.3-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
Successfully uninstalled pip-21.2.4
Successfully installed pip-22.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Collecting psutil
Downloading psutil-5.9.3-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (291 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 291.4/291.4 kB 543.7 kB/s eta 0:00:00
Collecting pyaes
Downloading pyaes-1.6.1.tar.gz (28 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyyaml==5.3.1
Downloading PyYAML-5.3.1.tar.gz (269 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.4/269.4 kB 3.9 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pymongo
Downloading pymongo-4.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (483 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 483.9/483.9 kB 6.5 MB/s eta 0:00:00
Collecting ijson
Downloading ijson-3.1.4-cp37-cp37m-manylinux2010_x86_64.whl (126 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.3/126.3 kB 15.7 MB/s eta 0:00:00
Collecting html5lib
Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 kB 16.4 MB/s eta 0:00:00
Collecting openpyxl
Downloading openpyxl-3.0.10-py2.py3-none-any.whl (242 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.1/242.1 kB 12.8 MB/s eta 0:00:00
Collecting rsa==4.7.2
Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting tqdm
Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 23.4 MB/s eta 0:00:00
Collecting pyasn1>=0.1.3
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 kB 5.4 MB/s eta 0:00:00
Collecting dnspython<3.0.0,>=1.16.0
Downloading dnspython-2.2.1-py3-none-any.whl (269 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 269.1/269.1 kB 12.6 MB/s eta 0:00:00
Collecting six>=1.9
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting webencodings
Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
Collecting et-xmlfile
Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Building wheels for collected packages: pyyaml, pyaes
Building wheel for pyyaml (setup.py): started
Building wheel for pyyaml (setup.py): finished with status 'done'
Created wheel for pyyaml: filename=PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl size=44636 sha256=511fe7487e1328b5cc74f754da929d05f8865f31675074318111a8791d015b54
Stored in directory: /tmp/pip-ephem-wheel-cache-rdbzck7c/wheels/be/0a/b5/61bf53b0964c16fb1c4512bc0a25f065520bba389330c38b58
Building wheel for pyaes (setup.py): started
Building wheel for pyaes (setup.py): finished with status 'done'
Created wheel for pyaes: filename=pyaes-1.6.1-py3-none-any.whl size=26363 sha256=64b8ade42616c320601d625e93911605472ab319d4a357df29bb2e6349f3540b
Stored in directory: /tmp/pip-ephem-wheel-cache-rdbzck7c/wheels/54/8b/3c/35cb7293dc63d635f413135ba2606e5f8318bd40724b2e53a0
Successfully built pyyaml pyaes
Installing collected packages: webencodings, pyasn1, pyaes, ijson, tqdm, six, rsa, pyyaml, psutil, et-xmlfile, dnspython, pymongo, openpyxl, html5lib
Successfully installed dnspython-2.2.1 et-xmlfile-1.1.0 html5lib-1.1 ijson-3.1.4 openpyxl-3.0.10 psutil-5.9.3 pyaes-1.6.1 pyasn1-0.4.8 pymongo-4.3.2 pyyaml-5.3.1 rsa-4.7.2 six-1.16.0 tqdm-4.64.1 webencodings-0.5.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Removing intermediate container 4a89b350dc75
---> 9234ae5ff1a0
Step 8/9 : COPY . .
---> 0dbc55f1b240
Step 9/9 : CMD [ "python3", "codepuppy.py", "localscan"]
---> Running in c9e6f43b85fc
Removing intermediate container c9e6f43b85fc
---> 461ba76040b6
Successfully built 461ba76040b6
Successfully tagged tencenttca/tca-client:latest
WARNING: Image for service client was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
codeanalysis_redis_1 is up-to-date
codeanalysis_mysql_1 is up-to-date
Creating codeanalysis_client_1 ...
codeanalysis_main-server_1 is up-to-date
Creating codeanalysis_scmproxy_1 ...
codeanalysis_login-server_1 is up-to-date
Creating codeanalysis_client_1 ... done
Creating codeanalysis_scmproxy_1 ... done
Creating codeanalysis_main-worker_1 ... done
Creating codeanalysis_main-beat_1 ... done
Creating codeanalysis_analysis-worker_1 ... done
Creating codeanalysis_nginx_1 ... done
Creating codeanalysis_file-nginx_1 ... done
[2022/10/24 21:58:04] [INFO]: ===========================================================
[2022/10/24 21:58:04] [INFO]: _______ _____
[2022/10/24 21:58:04] [INFO]: |__ __| / ____| /\
[2022/10/24 21:58:04] [INFO]: | | | | / \
[2022/10/24 21:58:04] [INFO]: | | | | / /\ \
[2022/10/24 21:58:04] [INFO]: | | | |____ / ____ \
[2022/10/24 21:58:04] [INFO]: |_| \_____| /_/ \_\
[2022/10/24 21:58:04] [INFO]:
[2022/10/24 21:58:04] [INFO]: ===========================================================
[2022/10/24 21:58:04] [INFO]: | docker-compose 部署说明 |
[2022/10/24 21:58:04] [INFO]: | 默认部署以下服务 |
[2022/10/24 21:58:04] [INFO]: | - mysql, redis, nginx |
[2022/10/24 21:58:04] [INFO]: | - main-server, main-worker, main-beat |
[2022/10/24 21:58:04] [INFO]: | - analysis-server, analysis-worker |
[2022/10/24 21:58:04] [INFO]: | - scmproxy |
[2022/10/24 21:58:04] [INFO]: | - login-server |
[2022/10/24 21:58:04] [INFO]: | - file-server, file-nginx |
[2022/10/24 21:58:04] [INFO]: | |
[2022/10/24 21:58:04] [INFO]: | 数据缓存路径 |
[2022/10/24 21:58:04] [INFO]: | - mysql数据:./.docker_data/mysql |
[2022/10/24 21:58:04] [INFO]: | - redis数据:./.docker_data/redis |
[2022/10/24 21:58:04] [INFO]: | - 本地文件数据:./.docker_data/filedata |
[2022/10/24 21:58:04] [INFO]: | |
[2022/10/24 21:58:04] [INFO]: | 日志缓存路径 |
[2022/10/24 21:58:04] [INFO]: | - main-server:./.docker_data/logs/main_server/ |
[2022/10/24 21:58:04] [INFO]: | - main-worker:./.docker_data/logs/main_worker/ |
[2022/10/24 21:58:04] [INFO]: | - main-beat:/.docker_data/logs/main_beat/ |
[2022/10/24 21:58:04] [INFO]: | - analysis-server:./.docker_data/logs/analysis_server/ |
[2022/10/24 21:58:04] [INFO]: | - analysis-worker:./.docker_data/logs/analysis_worker/ |
[2022/10/24 21:58:04] [INFO]: | - scmproxy: ./.docker_data/logs/scmproxy/ |
[2022/10/24 21:58:04] [INFO]: | - file-server: ./.docker_data/logs/file-server/ |
[2022/10/24 21:58:04] [INFO]: | - file-nginx: ./.docker_data/logs/file-nginx/ |
[2022/10/24 21:58:04] [INFO]: | - login-server: ./.docker_data/logs/login-server/ |
[2022/10/24 21:58:04] [INFO]: | |
[2022/10/24 21:58:04] [INFO]: ===========================================================
[2022/10/24 21:58:04] [INFO]: 部署文档:https://tencent.github.io/CodeAnalysis/zh/quickStarted/deploySever.html
[2022/10/24 21:58:04] [INFO]: Q&A文档:https://tencent.github.io/CodeAnalysis/zh/quickStarted/FAQ.html
[2022/10/24 21:58:04] [INFO]:
[root@centos7 CodeAnalysis]#
2.2.7 部署成功界面
2.3 源代码快速部署
2.3.1 下载源码
2.3.2 进入到CodeAnalysis目录
2.3.3 执行
bash ./quick_install.sh local deploy
执行该命令会做以下四个步骤:
- Install:检测本地 Python3.7、Mariadb/MySQL、Redis 与
Nginx,如果不存在会提示安装 - Init:部署 TCA Server、Web与Client,并进行初始化
- Start:启动 TCA、Server、Web与Client
- Check:检测 TCA 的运行状态
注意:在运行过程中,脚本会检测本地是否安装了相关基础软件(Python3.7、MySQL/Mariadb、Redis、Nignx),如果未安装会输出以下的类似提示语:
Do you want to install [Redis] by this script? Please enter:[Y/N]
如果确定通过脚本安装可以输入Y
3 部署过程遇到问题
3.1 1045, “Access denied for user ‘root’@‘172.18.0.4’ (using password: YES)”
报错具体信息:
codeanalysis_mysql_1 is up-to-date
Creating codeanalysis_file-server_1 ... done
Using selector: EpollSelector
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
return Database.connect(**conn_params)
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 353, in __init__
self.connect()
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 633, in connect
self._request_authentication()
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 907, in _request_authentication
auth_packet = self._read_packet()
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 725, in _read_packet
packet.raise_for_error()
File "/usr/local/lib/python3.7/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "/usr/local/lib/python3.7/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'172.18.0.4' (using password: YES)")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 29, in <module>
main()
File "manage.py", line 25, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 395, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 330, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 371, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 85, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/migrate.py", line 75, in handle
self.check(databases=[database])
File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 396, in check
databases=databases,
File "/usr/local/lib/python3.7/site-packages/django/core/checks/registry.py", line 70, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/usr/local/lib/python3.7/site-packages/django/core/checks/database.py", line 13, in check_database_backends
issues.extend(conn.validation.check(**kwargs))
File "/usr/local/lib/python3.7/site-packages/django/db/backends/mysql/validation.py", line 9, in check
issues.extend(self._check_sql_mode(**kwargs))
File "/usr/local/lib/python3.7/site-packages/django/db/backends/mysql/validation.py", line 13, in _check_sql_mode
if not (self.connection.sql_mode & {'STRICT_TRANS_TABLES', 'STRICT_ALL_TABLES'}):
File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 376, in sql_mode
with self.cursor() as cursor:
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 259, in cursor
return self._cursor()
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 235, in _cursor
self.ensure_connection()
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
self.connect()
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/base/base.py", line 200, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python3.7/site-packages/django/utils/asyncio.py", line 26, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
return Database.connect(**conn_params)
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 353, in __init__
self.connect()
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 633, in connect
self._request_authentication()
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 907, in _request_authentication
auth_packet = self._read_packet()
File "/usr/local/lib/python3.7/site-packages/pymysql/connections.py", line 725, in _read_packet
packet.raise_for_error()
File "/usr/local/lib/python3.7/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "/usr/local/lib/python3.7/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'172.18.0.4' (using password: YES)")
[2022/10/22 11:38:45] [ERROR]: init file server failed
解决方法:
请教大佬后,查找docker-compose的版本是1.25.1 升级到1.27.2,此问题便解决。
3.2 ERROR 1133 (42000): Can’t find any matching row in the user table
执行:
set password for root@localhost = password(‘xxxxx’);的提示信息
解决方法:
select Host,User from user;
把localhost换成是%
set password for ‘root’@‘%’=password(‘xxxxx’);
CREATE USER 'root'@'xxxx' IDENTIFIED BY 'xxxxx';
GRANT ALL PRIVILEGES ON * . * TO 'root'@'xxx';
FLUSH PRIVILEGES;
3.3 ERROR 1054 (42S22): Unknown column ‘Password’ in ‘field list’
在mysql中,执行select Host,User,Password from user;
的提示信息
解决方法:
在mysql中已经没有password这个字段了,password
字段改成authentication_string
。
select Host,User,authentication_string from user;
3.4 ERROR 1064 (42000): You have an error in your SQL syntax;
现象:
退出mysql命令,输入quit();
提示
check the manual that corresponds to your MySQL server version for the right syntax to use near ‘quit()’ at line 1
解决方法:
改成输入quit;
便可以解决。
3.5 怎么删除mysql中的用户
执行语句:
DELETE FROM mysql.user WHERE Host='localhost' AND user='TCA_MYSQL_USERNAME';
DELETE FROM mysql.user WHERE Host='172.1xx.xx.xx' AND user='root';
3.6 怎么查看mysql的SSL配置信息
解决方法:
执行命令:
show variables like '%ssl%';
3.7 Service ‘client’ failed to build (待完善)
dpkg: error processing package git-lfs (--configure):
installed git-lfs package post-installation script subprocess returned error exit status 2
Setting up python3-dev (3.9.2-3) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Errors were encountered while processing:
git-lfs
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'client' failed to build : The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends $EXTRA_TOOLS && apt-get clean && echo "LC_ALL=zh_CN.UTF-8" >> /etc/environment && echo "zh_CN.UTF-8 UTF-8" > /etc/locale.gen && echo "LANG=zh_CN.UTF-8" > /etc/locale.conf && locale-gen && ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime && rm -rf /var/cache/apt/* /root/.cache' returned a non-zero code: 100
[2022/10/24 11:28:10] [INFO]: ===========================================================
解决方法:
第一种方式:
sudo mv /var/lib/dpkg/info/ /var/lib/dpkg/info_old/
sudo mkdir /var/lib/dpkg/info/
sudo apt-get update
然后在重新执行。
3.8 Error: Failed to call git rev-parse --git-dir --show-toplevel
报错信息:
Error: Failed to call git rev-parse --git-dir --show-toplevel: “fatal: not a git repository (or any of the parent directories): .git\n”
解决方法:
git init //解决上述问题:Error: Failed to call git rev-parse --git-dir: exit status 128
git lfs install
3.9 No package lsb_relase available
解决方法:
yum install redhat-lsb-core-4.1-27.el7.centos.1.x86_64
3.10 E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up git-lfs (2.13.2-1+b5) ...
dpkg: error processing package git-lfs (--configure):
installed git-lfs package post-installation script subprocess returned error exit status 2
Setting up python3-lib2to3 (3.9.2-1) ...
Setting up python3-distutils (3.9.2-1) ...
Setting up libpython3.9-dev:amd64 (3.9.2-1) ...
Setting up gcc (4:10.2.1-1) ...
Setting up python3.9-dev (3.9.2-1) ...
Setting up libpython3-dev:amd64 (3.9.2-3) ...
Setting up python3-dev (3.9.2-3) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Errors were encountered while processing:
git-lfs
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'client' failed to build : The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends $EXTRA_TOOLS && apt-get clean && echo "LC_ALL=zh_CN.UTF-8" >> /etc/environment && echo "zh_CN.UTF-8 UTF-8" > /etc/locale.gen && echo "LANG=zh_CN.UTF-8" > /etc/locale.conf && locale-gen && ln -sf /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime && rm -rf /var/cache/apt/* /ro
解决方法:
排查方法:对比和排查法。
第一步:对比:找其他环境,如centos、ubuntu等,是否可以安装
第二步:排查:能安装的环境和不能安装的环境差别
第三步:排查发现是由于环境上边安装有软件A导致的,卸载软件A后,重新安装bash ./quick_install.sh docker-compose deploy
就可以。然后再把软件A给安装上。然后再重新执行bash ./quick_install.sh docker-compose start