代码之家  ›  专栏  ›  技术社区  ›  Robert Ryan O'Neill

TFS无法使用“sqlite3”生成\数据库锁定'因为它正被另一个进程使用”

  •  1
  • Robert Ryan O'Neill  · 技术社区  · 6 年前

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


    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
    ******************************************************************************
    

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

    2 回复  |  直到 6 年前
        1
  •  3
  •   Robert Ryan O'Neill    6 年前

        2
  •  0
  •   Steve L.    6 年前

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

        3
  •  0
  •   Amer Jamaeen    6 年前

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