繁体   English   中英

警告:无效凭证行——该行来自哪里?

[英]warning: invalid credential line -- where is the line coming from?

我在 Windows 10 上使用“Git Bash here”window。我经常(但不总是)使用 git 命令得到这个:

$ git pull
warning: invalid credential line: Unable to initialize the New Relic .NET Agent log file.  Please make sure the logs directory is writeable.
# after that warning, a standard git-gui--askpass window pops up to ask me for credentials.

我已经查看了这个这个以及其他一些问题。 他们没有帮助。

我已经从 Windows 凭证管理器中删除了所有与 git 相关的凭证。

我已经确定 New Relic .NET Agent不再安装在我的机器上(如果有的话)。 我错了。。。看我的回答

我最好的猜测是某处有一些文件,里面有这段文字

Unable to initialize the New Relic .NET Agent log file.  Please make sure the logs directory is writeable.

git 正在读取该文件。 我怎样才能弄清楚它是什么文件?

关于我的机器的更多信息,略有编辑:

$ git --version
git version 2.27.0.windows.1

$ git config -l 
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=schannel
core.autocrlf=false
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager
user.name=rpresser
user.email=rpresser@****.com
gui.recentrepo=C:/Users/rpresser/source/repos/*****
gui.recentrepo=C:/Users/rpresser/source/repos/*****

$ cat ~/.gitconfig
[user]
        name = rpresser
        email = rpresser@****.com
[gui]
        recentrepo = C:/Users/rpresser/source/repos/*****
        recentrepo = C:/Users/rpresser/source/repos/*****

我已经确定 New Relic .NET Agent 不再安装在我的机器上(如果有的话)。

好吧,我错了。 New Relic .NET Agent仍然部分安装在我的机器上,删除它确实解决了问题

出现该消息是因为 git-credential-manager.exe 显然调用了 .NET 程序集来访问已保存的 Windows 凭据。 (我通过查看 ProcMon 结果发现了这一点。)NewRelic 分析器配置为在每次 .NET 启动时启动,并决定是否附加分析器。 它遇到了那个错误——拒绝访问日志目录——因为该目录只允许 IIS 个应用程序池; 几个月前我一直在我的机器上使用 NR 代理来调试我们如何在我们的服务器上使用它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM