/etc/pki/nssdb 错误
运行命令:
GIT_CURL_VERBOSE=1 git clone git_repo_url
会输出详细错误信息
Cloning into 'fp_sdk'...
* Couldn't find host xxx.com in the .netrc file; using defaults
* About to connect() to xxx.com port 443 (#0)
* Trying 10.44.52.77...
* Connected to xxx.com (10.44.52.77) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* Unable to initialize NSS database
* Initializing NSS with certpath: none
* Unable to initialize NSS
* Closing connection 0
fatal: unable to access 'https://git-biz.qianxin-inc.cn/dlp/mousika/fp_sdk.git/': Problem with the SSL CA cert (path? access rights?)
最后发现是系统中libsqlite3.so.0 不在正常位置,导致系统无法调用,打不开nssdb( sqlite格式数据库)
运行 certutil 命令即可发现此问题。