【问题标题】:Cannot deploy smart contract with Eris / Monax无法使用 Eris / Monax 部署智能合约
【发布时间】:2016-12-01 13:11:04
【问题描述】:

我正在关注Getting Started Tutorial,使用 eris 版本 0.12.0

我停留在部署智能合约的地方 ~/.eris/apps/idi/idi.sol

eris pkgs do --chain simplechain --address $addr

随机出现以下两个错误:

Performing action. This can sometimes take a wee while
Could not perform pkg action service: Could not perform pkg action: Docker: {"m
ssage":"Cannot link to a non running container: /simplechain-a49e7fc2-45d4-44df
83bf-1dfab6246c13 AS /interactive-67fff395-600b-4161-912b-df11dc6b2807/chain"}

或:

Performing action. This can sometimes take a wee while
Could not perform pkg action service: Docker: {"message":"Invalid container name
(.eris_tmp_-798bc8a1-70bb-45fd-ac23-8468503cdbad), only [a-zA-Z0-9][a-zA-Z0-9_.
-] are allowed"}

当我安装 eris 版本 0.11.4 时,错误如下所示:

Performing action. This can sometimes take a wee while
Sorry, the marmots were unable to load the eris-pm jobs file. Please check your
path.
ERROR =>                        Unsupported Config Type ""

Container interactive-39ac3a49-52fa-4f1d-953e-1662b1af7f21 exited with status 1

我多次重启了 Docker Quickstart Terminal,还删除了 VirtualBox 中的默认虚拟机。

我做错了什么?感谢您的帮助!

【问题讨论】:

  • 我遇到了完全相同的问题。 (无效的容器名称错误,无法执行 pkg 操作)。你解决了这个问题吗?我确保 package.json 文件中没有空间,并且 iris 在 docker-machine 上运行良好)。
  • 如果我在 .eris 文件夹上运行,我得到了无效的容器名称错误,并且我得到了“发布 compilers.monax.io:10120: dial tcp:lookup compilers.monax.io on 10.0.2.3:53:没有这样的主机”当我在 idi 文件夹中运行它时

标签: smartcontracts eris-blockchain


【解决方案1】:

除了大卫的回答,你还应该跑 eval $(docker-machine env eris) 激活 docker-image。

【讨论】:

    【解决方案2】:

    我一直错过正在运行的 eris docker-machine。你可以检查一下

    docker-machine ls
    

    您可以使用以下方法重新创建它:

    docker-machine create -d virtualbox eris
    

    感谢 Monax / Eris 团队的快速帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-15
      • 2022-08-05
      • 2022-12-06
      • 2021-09-23
      • 2021-10-09
      • 2022-12-24
      相关资源
      最近更新 更多