0

我们正在从 TFVC 转移到 GIT。现在,我们想要重新配置我们现有的 DevOps 代理服务器来缓存我们的 GIT 存储库。但是,很难找到任何文档。

我们正在使用

DevOps Server 2020.1.1

开发人员正在使用

Git-2.33.0.vfs.0.0 (which includes Scalar)

我们做了什么:使用配置 DevOps 代理

TFSConfig Proxy /add /Collection:<MyCollection> /inputs:GvfsProjectName=<MyProject>;GvfsRepositoryName=<MyRepo>

尝试使用克隆存储库

scalar clone --cache-server-url https://<server>:<port>/<repositoryId> <clone-URL>

该命令的跟踪输出显示身份验证错误(没有缓存服务器的克隆有效!)

08:30:07.241373 run-command.c:666       trace: run_command: git-credential-manager-core get
error: gvfs-helper error: '(http:401) Not Authorized'

代理服务器上的“GVFS 缓存维护服务”正在使用已添加到本地管理员的帐户运行。我们还可以看到,服务每 300 秒将代码获取到缓存目录。

在底部您可以找到完整的日志非常感谢任何帮助!

问候,霍尔格

08:29:45.241100 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
08:29:45.242108 run-command.c:666       trace: run_command: git -c init.defaultBranch=master init -- C:/Users/tempAdmin/cachetest/cached/MyRepo/src
08:29:45.270107 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
08:29:45.271108 git.c:522               trace: built-in: git init -- C:/Users/tempAdmin/cachetest/cached/MyRepo/src
Initialized empty Git repository in C:/Users/tempAdmin/cachetest/cached/MyRepo/src/.git/
08:29:45.301106 run-command.c:666       trace: run_command: git ls-remote --symref 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo' HEAD
08:29:45.316092 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
08:29:45.318112 git.c:522               trace: built-in: git ls-remote --symref 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo' HEAD
08:29:45.318112 run-command.c:666       trace: run_command: GIT_DIR=.git git remote-http 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo' 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo'
08:29:45.341105 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:29:45.342107 git.c:814               trace: exec: git-remote-http 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo' 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo'
08:29:45.342107 run-command.c:666       trace: run_command: git-remote-http 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo' 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo'
08:29:45.371091 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:29:46.073270 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:29:46.123855 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:29:46.124874 git.c:814               trace: exec: git-credential-manager-core get
08:29:46.124874 run-command.c:666       trace: run_command: git-credential-manager-core get
08:30:03.826695 run-command.c:666       trace: run_command: 'git credential-manager-core store'
08:30:03.865679 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:03.866695 git.c:814               trace: exec: git-credential-manager-core store
08:30:03.866695 run-command.c:666       trace: run_command: git-credential-manager-core store
Cache server URL: http://ProxyServer:8081/dc2fe178-f572-48dd-bf69-2981064a9770
08:30:04.708063 run-command.c:666       trace: run_command: git sparse-checkout init --cone
08:30:04.716052 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
08:30:04.718063 git.c:522               trace: built-in: git sparse-checkout init --cone
08:30:04.935069 run-command.c:666       trace: run_command: git fetch --quiet origin
08:30:04.946047 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
08:30:04.948064 git.c:522               trace: built-in: git fetch --quiet origin
08:30:04.948064 run-command.c:666       trace: run_command: git fsmonitor--daemon start
08:30:04.958048 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:04.959047 git.c:522               trace: built-in: git fsmonitor--daemon start
starting fsmonitor-daemon in 'C:/Users/tempAdmin/cachetest/cached/MyRepo/src'
08:30:04.979054 run-command.c:666       trace: run_command: git gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:30:04.989066 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:04.990066 git.c:814               trace: exec: git-gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:30:04.990066 run-command.c:666       trace: run_command: git-gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:30:05.015056 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:05.022048 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:30:05.061065 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:05.063050 git.c:814               trace: exec: git-credential-manager-core get
08:30:05.063050 run-command.c:666       trace: run_command: git-credential-manager-core get
08:30:06.383730 run-command.c:666       trace: run_command: 'git credential-manager-core erase'
08:30:06.418025 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:06.419021 git.c:814               trace: exec: git-credential-manager-core erase
08:30:06.419021 run-command.c:666       trace: run_command: git-credential-manager-core erase
08:30:07.203362 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:30:07.239371 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:07.241373 git.c:814               trace: exec: git-credential-manager-core get
08:30:07.241373 run-command.c:666       trace: run_command: git-credential-manager-core get
error: gvfs-helper error: '(http:401) Not Authorized'
08:30:22.284064 run-command.c:666       trace: run_command: GIT_DIR=.git git remote-http origin 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo'
08:30:22.293073 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:22.294074 git.c:814               trace: exec: git-remote-http origin 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo'
08:30:22.294074 run-command.c:666       trace: run_command: git-remote-http origin 'http://DevOpsServer:8080/tfs/Collection%20Shared/MyProject/_git/MyRepo'
08:30:22.306067 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:23.147167 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:30:23.181018 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:30:23.183000 git.c:814               trace: exec: git-credential-manager-core get
08:30:23.183000 run-command.c:666       trace: run_command: git-credential-manager-core get
08:32:03.660045 run-command.c:666       trace: run_command: 'git credential-manager-core store'
08:32:03.695412 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:03.697411 git.c:814               trace: exec: git-credential-manager-core store
08:32:03.697411 run-command.c:666       trace: run_command: git-credential-manager-core store
08:32:04.460792 run-command.c:666       trace: run_command: git gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:32:04.470801 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:04.471793 git.c:814               trace: exec: git-gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:32:04.471793 run-command.c:666       trace: run_command: git-gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:32:04.483796 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:04.488801 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:32:04.527804 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:04.528801 git.c:814               trace: exec: git-credential-manager-core get
08:32:04.528801 run-command.c:666       trace: run_command: git-credential-manager-core get
08:32:05.736973 run-command.c:666       trace: run_command: 'git credential-manager-core erase'
08:32:05.772728 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:05.773741 git.c:814               trace: exec: git-credential-manager-core erase
08:32:05.773741 run-command.c:666       trace: run_command: git-credential-manager-core erase
08:32:06.502207 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:32:06.539331 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:06.540312 git.c:814               trace: exec: git-credential-manager-core get
08:32:06.540312 run-command.c:666       trace: run_command: git-credential-manager-core get
error: gvfs-helper error: '(http:401) Not Authorized: from GET c8a5e107f0a905d6f9f8d7757ddabf9d8b284c9f'
08:32:18.947229 run-command.c:666       trace: run_command: git gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:32:18.955610 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:18.956618 git.c:814               trace: exec: git-gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:32:18.956618 run-command.c:666       trace: run_command: git-gvfs-helper --fallback --cache-server=trust --shared-cache=C:/.scalarCache/url_d18c1e13425abd7d5fd613becb68e850ddc8073f server
08:32:18.967647 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:18.974620 run-command.c:666       trace: run_command: 'git credential-manager-core get'
08:32:19.016811 exec-cmd.c:237          trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
08:32:19.018815 git.c:814               trace: exec: git-credential-manager-core get
08:32:19.018815 run-command.c:666       trace: run_command: git-credential-manager-core get
fatal: User cancelled the authentication prompt.
08:32:24.780412 run-command.c:666       trace: run_command: bash -c 'cat >/dev/tty && read -r line </dev/tty && echo "$line"'
4

0 回答 0