1

i try to deploy a contact using Eris Platform, i followed the tutorial in the documentation of Eris ( https://monax.io/docs/tutorials/getting-started/index.html?redirect_from_eris=true#fnref:1 ) but when i get to the step of deploying a contract i got this Error:

root@abday-Lenovo-IdeaPad-Z510:~/.eris/apps/library# eris pkgs do --chain library_chain --address $addr --compiler 192.168.99.100:2376
Performing action. This can sometimes take a wee while
Executing Job                                 defaultAddr
Executing Job                                 setStorageBase
Executing Job                                 deployStorageK
failed to send HTTP request Post http://192.168.99.100:2376/compile: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"
Error compiling contracts
Post http://192.168.99.100:2376/compile: malformed HTTP response "\x15\x03\x01\x00\x02\x02\x16"

Container interactive-58a4f2a7-fe59-40b3-bc2c-90c1c544364a exited with status 1

192.168.99.100:2376 : this is my docker-machine ip address

this is my contract :

contract Library {
  string storedData;

  function set(string x) {
    storedData = x;
  }

  function get() constant returns (string retVal) {
    return storedData;
  }
}

and this is my epm.yaml file :

jobs:

- name: setStorageBase
  job:
    set:
      val: "Book Title"

- name: deployStorageK
  job:
    deploy:
      contract: library.sol
      wait: true

- name: setStorage
  job:
    call:
      destination: $deployStorageK
      data: set $setStorageBase
      wait: true

- name: queryStorage
  job:
    query-contract:
      destination: $deployStorageK
      data: get

- name: assertStorage
  job:
    assert:
      key: $queryStorage
      relation: eq
      val: $setStorageBase

any idea about this ? thank you


this is what's i got @Zach , a different error :

root@abday-Lenovo-IdeaPad-Z510:~/.eris/apps/idi# eris pkgs do --chain testchain --address 92B92269AC1E8081B9FD4A4F1F35884B97D8E348 --compiler http://172.17.0.4:9099
Performing action. This can sometimes take a wee while
Executing Job                                 defaultAddr
Executing Job                                 setStorageBase
Executing Job                                 deployStorageK
Executing Job                                 setStorage
ABI Error                                 abi=
                                         data=
                                         dest=
                                       rawErr=Abi doesn't exist for =>  abi

There has been an error in finding or in using your ABI. ABI's are "Application Binary
Interface" and they are what let us know how to talk to smart contracts.

These little json files can be read by a variety of things which need to talk to smart
contracts so they are quite necessary to be able to find and use properly.

The ABIs are saved after the deploy events. So if there was a glitch in the matrix,
we apologize in advance.

The marmot recovery checklist is...
  * ensure your chain is running and you have enough validators online
  * ensure that your contracts successfully deployed
  * if you used imports or have multiple contracts in one file check the instance
    variable in the deploy and the abi variable in the call/query-contract
  * make sure you're calling or querying the right function
  * make sure you're using the correct variables for job results


Container interactive-f048917d-8248-429f-8728-2c393b9425f5 exited with status 1 
2

The --compiler flag should be the IP of the compilers service rather than the docker-machine hosts ip.

By default you can omit the flag to use the remote hosted compilers.

Since it looks like you're trying to use the local compiler via the docker image, you can use the --local-compilers flag on version 0.12.0 of eris.

For version 0.11.4, you'll need to run: eris services start compilers && eris services inspect NetworkSettings.IPAddress to get the correct IP, and append http:// to the beginning and port "9099" to the end.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.