0

为了部署我的第一个 DAPP,我一直在学习本教程

https://docs.terra.money/docs/develop/dapp/quick-start/using-terrain-localterra.html

我已经运行了它以安装 localterra 并运行 docker

git clone --branch v0.5.2 --depth 1 https://github.com/terra-money/localterra
cd localterra
docker-compose up

其次,我搭建了我的 dApp

 terrain new my-terra-dappcd 
 cd my-terra-dapp 
 npm install

我在第三步,部署时遇到了问题

跑步时

 terrain deploy counter --signer validator

我明白了

我怎么可能解决这个错误?

非常感谢您的回答,谢谢!

 Finished release [optimized] target(s) in 0.09s
Running script 'optimize': 'docker run --rm -v "$(pwd)":/code --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry cosmwasm/rust-optimizer:0.12.3
'
Info: RUSTC_WRAPPER=sccache
Info: sccache stats before build
Compile requests                      0
Compile requests executed             0
Cache hits                            0
Cache misses                          0
Cache timeouts                        0
Cache read errors                     0
Forced recaches                       0
Cache write errors                    0
Compilation failures                  0
Cache errors                          0
Non-cacheable compilations            0
Non-cacheable calls                   0
Non-compilation calls                 0
Unsupported compiler calls            0
Average cache write               0.000 s
Average cache read miss           0.000 s
Average cache read hit            0.000 s
Failed distributed compilations       0
Cache location                  Local disk: "/root/.cache/sccache"
Cache size                            0 bytes
Max cache size                       10 GiB
Building contract in /code ...
 Updating crates.io index
Killed
Finished, status of exit status: 137
 Error: ENOENT: no such file or directory, open 'artifacts/counter.wasm'
 Code: ENOENT


4

1 回答 1

0

看来 Docker 内存不足;您链接的教程提到了这个潜在的问题,并建议增加 Docker 可用的内存量。

于 2022-02-04T09:40:22.173 回答