簡體   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