Terra-地形部署计数器 - 错误:命令失败:CP伪像/计数器{-aarch64,}。

发布于 2025-01-18 11:48:45 字数 3306 浏览 4 评论 0 原文

我一直在关注并采取了所有概述的步骤(多次从头开始尝试,重新安装生锈等),但是当我使用Terrain Deploy命令时,请始终遇到以下错误。

我感谢任何帮助,了解导致此错误的原因,在网上搜索时我找不到其他情况。提前致谢!

命令: 地形部署计数器-Signer Test1

错误:

using pre-baked 'test1' wallet on localterra as signer
    Finished release [optimized] target(s) in 0.07s
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 ...
    Finished release [optimized] target(s) in 0.05s
Creating intermediate hash for counter.wasm ...
28087be6244b6ac0071f90002a5851f080c61c3212c2c4be348e01fcb54f97bb  ./target/wasm32-unknown-unknown/release/counter.wasm
Optimizing counter.wasm ...
Creating hashes ...
b410547cb1a425635024aa93be1e6324f5afae602528f6e98fefd6ed5dd47749  counter.wasm
Info: sccache stats after 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
done
Finished, status of exit status: 0
cp: missing destination file operand after 'artifacts/counter{-aarch64,}.wasm'
Try 'cp --help' for more information.
    Error: Command failed: cp artifacts/counter{-aarch64,}.wasm
    cp: missing destination file operand after 'artifacts/counter{-aarch64,}.wasm'
    Try 'cp --help' for more information.

I have been following the the Terra CosmWasm smart contract tutorial and have taken all steps outlined (tried from scratch multiple times, re-installed Rust, etc.) but always get the following error when I use the terrain deploy command.

I'd appreciate any help to understand what is causing this error, I wasn't able to find any other cases when searching online. Thanks in advance!

Command:
terrain deploy counter --signer test1

Error:

using pre-baked 'test1' wallet on localterra as signer
    Finished release [optimized] target(s) in 0.07s
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 ...
    Finished release [optimized] target(s) in 0.05s
Creating intermediate hash for counter.wasm ...
28087be6244b6ac0071f90002a5851f080c61c3212c2c4be348e01fcb54f97bb  ./target/wasm32-unknown-unknown/release/counter.wasm
Optimizing counter.wasm ...
Creating hashes ...
b410547cb1a425635024aa93be1e6324f5afae602528f6e98fefd6ed5dd47749  counter.wasm
Info: sccache stats after 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
done
Finished, status of exit status: 0
cp: missing destination file operand after 'artifacts/counter{-aarch64,}.wasm'
Try 'cp --help' for more information.
    Error: Command failed: cp artifacts/counter{-aarch64,}.wasm
    cp: missing destination file operand after 'artifacts/counter{-aarch64,}.wasm'
    Try 'cp --help' for more information.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

萌吟 2025-01-25 11:48:45

我发现了,我在此处遵循M1 Mac的说明: https://docs.terra.money/docs/develop/dapp/quick-start/using-terrain-localterra.html

nvm install --lts
nvm use --lts

,然后使用此命令安装地形,而不是在Terra中学院视频(2022年4月): NPM安装-G @Terra -Money/Terrain

I figured it out, I followed the instructions for M1 Macs here: https://docs.terra.money/docs/develop/dapp/quick-start/using-terrain-localterra.html

nvm install --lts
nvm use --lts

and then used this command to install Terrain, not the one in the Terra Academy video (Apr. 2022): npm install -g @terra-money/terrain

寄居人 2025-01-25 11:48:45

我之前遇到了完全相同的错误。
我认为您使用以下命令下载了地形。

npm install --global @iboss/terrain

我删除了此软件包并使用了以下命令。

npm install --global @terra-money/terrain

我希望这会有所帮助。

I met exactly same error before.
I think you downloaded terrain using following command.

npm install --global @iboss/terrain

I removed this package and used following command.

npm install --global @terra-money/terrain

I hope this will be help.

简单 2025-01-25 11:48:45

不确定是否已经解决了此问题,但是可能有效的解决方案:

添加

-

地形部署计数器之后 - 不重建-Signer bombay-Network testnet

命令(或Terrain Terrain exploy Counter-Signer Tester-Signer Test1我认为,我认为,我使用以上一个)

Not sure if this issue has been solved already, but a solution that may work:

add

--no-rebuild

after the

terrain deploy counter --signer bombay --network testnet

command(or terrain deploy counter --signer test1 I think, I used the above one)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文