在同一台机器上用堆栈build立两个不同项目的错误

我们有多个我们用堆栈构build的haskell项目。 我们的CI过程在亚马逊上创build实例来运行testing和执行构build。 我们偶尔会得到奇怪的错误。 当我们尝试在同一个实例上运行多个构build时,我怀疑我们会得到它们。 这是我的理解,堆栈应该能够处理这个用例就好了。 在开发计算机上构build两个不同的项目,我从来没有遇到任何问题。

有什么办法来解决这些错误?

有没有办法让堆栈完全隔离运行,所以我们没有得到任何locking或文件错误?

示例错误#1

+ stack setup --docker SQLite3 returned ErrorBusy while attempting to perform step. 

示例错误#2

 + stack build --docker --only-dependencies foundation-0.0.6: configure clock-0.7.2: download ... text-1.2.2.1: copy/register /home/ubuntu/.stack/indices/Hackage/packages/exceptions/0.8.3/exceptions-0.8.3.tar.gz.tmp: renameFile: does not exist (No such file or directory)