VSTS私人托管代理将自己拒之门外 [英] VSTS Private hosted agent locking himself out

查看:68
本文介绍了VSTS私人托管代理将自己拒之门外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我在免费托管代理上使用了240分钟,所以我决定在计算机上设置一个私有代理.

Since I've used my 240 Minutes off a free hosted agent, I decided to set a private one up on my machine.

我几乎只使用了

I pretty much just used the FAQ to set up the Agent and install it was a Windows Service running under my account:

不幸的是,每当我在构建队列时,都会得到以下信息:

Unfortunately, whenever I queue a build, I get the following ere:

下载任务:NuGetCommand进程无法访问文件 'C:\Users\matthias.mueller\Desktop\Stuff\Privat\Agent\_work\_tasks\NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b\2.0.24\node_modules\nuget-task-common\NuGet\CredentialProvider\Newtonsoft.Json.dll' 因为它正在被另一个进程使用.

Downloading task: NuGetCommand The process cannot access the file 'C:\Users\matthias.mueller\Desktop\Stuff\Privat\Agent\_work\_tasks\NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b\2.0.24\node_modules\nuget-task-common\NuGet\CredentialProvider\Newtonsoft.Json.dll' because it is being used by another process.

我检查并删除了此文件夹,甚至编写了一个小程序来检查谁在锁定此文件.但是有趣的是,在构建过程之外没有人将其锁定,因此看起来过程本身有问题吗?

I checked and deleted this folder and even wrote a small program, which checks, who is locking this file. But interesting enough, outside of the build process nobody is locking it, so it seems like it is the process itself having a problem?

说句公道话,由于我试图在多个用户下运行该服务,并且还搜索了类似的问题,因此我无法提供更多信息,但是我找不到关于某些文件锁定的任何信息.我还重新启动了PC,停止了所有程序和进程等,但没有任何帮助.

To be fair, I cant tell much more, since I tried to run the service under several users and also googled similar problems, but I couldn't find anything regarding the lock of certain files. I also restarted the PC, stopped all programs and processes etc., but nothing helped.

关于文件锁定是否存在一些已知问题?

Are there some known problems regarding the lock of files?

推荐答案

请从以下几个方面对问题进行故障排除:

Please troubleshooting the issue with below aspects:

  1. 检测正在使用的文件和文件夹

  1. detect files and folders in use

您可以使用 Proess Monitor 流程浏览器等.

防病毒排除

如果在构建过程中使用的是MSBuild,请同时从以下方面进行检查:

If you are using MSBuild during your build, please also check with below aspects:

  1. MSBuild和/nodeReuse:false
  2. MSBuild和/maxcpucount:[n]
  1. MSBuild and /nodeReuse:false
  2. MSBuild and /maxcpucount:[n]

更多详细信息,您可以参考

More details, you can refer File- and folder-in-use errors.

这篇关于VSTS私人托管代理将自己拒之门外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆