Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/366.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TFS无法使用“创建”;sqlite3\db.lock';因为它正被另一个进程使用”;_Tfs - Fatal编程技术网

TFS无法使用“创建”;sqlite3\db.lock';因为它正被另一个进程使用”;

TFS无法使用“创建”;sqlite3\db.lock';因为它正被另一个进程使用”;,tfs,Tfs,在TFS 2017中,我们已从旧的xaml构建定义切换到新的构建定义。当我们尝试构建项目时,它失败,出现以下错误: 为什么在构建时会锁定sqlite数据库?什么配置错误会导致这种情况?确保您没有签入不需要的文件和文件夹(即bin、obj和.vs文件夹)。为了排除这些内容,如果使用TFVC,您可能需要使用.tfignore文件;如果使用git,您可能需要使用.gitignore文件。我最近发现,我们的一位开发人员在Visual Studio 2017中在TFS服务器上手动构建了该项目,即使关闭了

在TFS 2017中,我们已从旧的xaml构建定义切换到新的构建定义。当我们尝试构建项目时,它失败,出现以下错误:



为什么在构建时会锁定sqlite数据库?什么配置错误会导致这种情况?

确保您没有签入不需要的文件和文件夹(即bin、obj和.vs文件夹)。为了排除这些内容,如果使用TFVC,您可能需要使用.tfignore文件;如果使用git,您可能需要使用.gitignore文件。

我最近发现,我们的一位开发人员在Visual Studio 2017中在TFS服务器上手动构建了该项目,即使关闭了VS,文件似乎也被它锁定。重新启动TFS服务器解决了此问题。

.vs,其中的文件不应签入TFS。

感谢您的响应!这些文件不是签入的一部分。我发现我们的一位开发人员最近在TFS服务器上的Visual Studio 2017中手动构建了该项目,如果vs关闭,文件似乎会被它锁定。TFS服务器的重新启动解决了该问题。将在等待至少2天后将此作为答案。谢谢@Robert,TFS服务器重新启动修复了我的问题。
Starting: Build
******************************************************************************
Current agent version: '2.117.2'
******************************************************************************
Starting: Initialize Job
******************************************************************************
Prepare build directory.
One or more errors occurred. (One or more errors occurred. (The process cannot access the file 'E:\agent builds\agent1\1\s\Server\.vs\Server\v15\Server\sqlite3\db.lock' because it is being used by another process.)) (The process cannot access the file 'E:\agent builds\agent1\1\s\Server\.vs\Server\v15\Server\sqlite3\db.lock' because it is being used by another process.)
******************************************************************************
Finishing: Initialize Job
******************************************************************************
******************************************************************************
Finishing: Build
******************************************************************************