Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

cleos create account hangs in v1.6.0 #6698

Closed
ashishchandr70 opened this issue Feb 5, 2019 · 4 comments
Closed

cleos create account hangs in v1.6.0 #6698

ashishchandr70 opened this issue Feb 5, 2019 · 4 comments

Comments

@ashishchandr70
Copy link

Hi

I was able to create accounts using cleos create account using v1.3.x and then I upgraded (recently) to v1.6.0. Now, cleos create account does not work. Here is the output from the cleos create account printed using print-request and print-response command line options.

You can see that it is not returning after submitting push_transaction.

I have tried this on Ubuntu 18.04 and Ubuntu 16.04.

~$ cleos --verbose --print-request --print-response create account eosio testacct EOS7QA1JufqTEijsuS8HQcbFfjK47d2a91WMsrKQYVG3Vp7UpaNc4 EOS7QA1JufqTEijsuS8HQcbFfjK47d2a91WMsrKQYVG3Vp7UpaNc4
REQUEST:
---------------------
POST /v1/chain/get_info HTTP/1.0
Host: 127.0.0.1:8888
content-length: 0
Accept: */*
Connection: close


---------------------
RESPONSE:
---------------------
{
  "server_version": "3fddb727",
  "chain_id": "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f",
  "head_block_num": 1,
  "last_irreversible_block_num": 0,
  "last_irreversible_block_id": "0000000000000000000000000000000000000000000000000000000000000000",
  "head_block_id": "00000001bcf2f448225d099685f14da76803028926af04d2607eafcf609c265c",
  "head_block_time": "2018-06-01T12:00:00.000",
  "head_block_producer": "",
  "virtual_block_cpu_limit": 200000,
  "virtual_block_net_limit": 1048576,
  "block_cpu_limit": 200000,
  "block_net_limit": 1048576,
  "server_version_string": "v1.6.0"
}
---------------------
REQUEST:
---------------------
POST /v1/wallet/get_public_keys HTTP/1.0
Host: /home/passwordis1234/eosio-wallet/keosd.sock:
content-length: 0
Accept: */*
Connection: close


---------------------
RESPONSE:
---------------------
[
  "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
  "EOS7QA1JufqTEijsuS8HQcbFfjK47d2a91WMsrKQYVG3Vp7UpaNc4"
]
---------------------
REQUEST:
---------------------
POST /v1/chain/get_required_keys HTTP/1.0
Host: 127.0.0.1:8888
content-length: 838
Accept: */*
Connection: close

{
  "transaction": {
    "expiration": "2018-06-01T12:00:30",
    "ref_block_num": 0,
    "ref_block_prefix": 0,
    "max_net_usage_words": 0,
    "max_cpu_usage_ms": 0,
    "delay_sec": 0,
    "context_free_actions": [],
    "actions": [{
        "account": "eosio",
        "name": "newaccount",
        "authorization": [{
            "actor": "eosio",
            "permission": "active"
          }
        ],
        "data": "0000000000ea3055000000192193b1ca010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000"
      }
    ],
    "transaction_extensions": []
  },
  "available_keys": [
    "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
    "EOS7QA1JufqTEijsuS8HQcbFfjK47d2a91WMsrKQYVG3Vp7UpaNc4"
  ]
}
---------------------
RESPONSE:
---------------------
{
  "required_keys": [
    "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"
  ]
}
---------------------
REQUEST:
---------------------
POST /v1/wallet/sign_transaction HTTP/1.0
Host: /home/passwordis1234/eosio-wallet/keosd.sock:
content-length: 859
Accept: */*
Connection: close

[{
    "expiration": "2018-06-01T12:00:30",
    "ref_block_num": 0,
    "ref_block_prefix": 0,
    "max_net_usage_words": 0,
    "max_cpu_usage_ms": 0,
    "delay_sec": 0,
    "context_free_actions": [],
    "actions": [{
        "account": "eosio",
        "name": "newaccount",
        "authorization": [{
            "actor": "eosio",
            "permission": "active"
          }
        ],
        "data": "0000000000ea3055000000192193b1ca010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000"
      }
    ],
    "transaction_extensions": [],
    "signatures": [],
    "context_free_data": []
  },[
    "EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV"
  ],
  "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f"
]
---------------------
RESPONSE:
---------------------
{
  "expiration": "2018-06-01T12:00:30",
  "ref_block_num": 0,
  "ref_block_prefix": 0,
  "max_net_usage_words": 0,
  "max_cpu_usage_ms": 0,
  "delay_sec": 0,
  "context_free_actions": [],
  "actions": [{
      "account": "eosio",
      "name": "newaccount",
      "authorization": [{
          "actor": "eosio",
          "permission": "active"
        }
      ],
      "data": "0000000000ea3055000000192193b1ca010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000"
    }
  ],
  "transaction_extensions": [],
  "signatures": [
    "SIG_K1_Km8PUMS7EaQHYJwMM6QEgJyrxrUTqJXgJJTpXe9KAKr6MD9Uf6ZVgTjftXiM9pVRJa3oGqFZaLMHn5v48UeB5B98eoVM4Q"
  ],
  "context_free_data": []
}
---------------------
REQUEST:
---------------------
POST /v1/chain/push_transaction HTTP/1.0
Host: 127.0.0.1:8888
content-length: 516
Accept: */*
Connection: close

{
  "signatures": [
    "SIG_K1_Km8PUMS7EaQHYJwMM6QEgJyrxrUTqJXgJJTpXe9KAKr6MD9Uf6ZVgTjftXiM9pVRJa3oGqFZaLMHn5v48UeB5B98eoVM4Q"
  ],
  "compression": "none",
  "packed_context_free_data": "",
  "packed_trx": "5e35115b00000000000000000000010000000000ea305500409e9a2264b89a010000000000ea305500000000a8ed3232660000000000ea3055000000192193b1ca010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c01000000010000000100034ac0e0e9ed208be9a71617287c864089f0c64a4ace5653192cd2f391a3c5d71c0100000000"
}
---------------------


@heifner
Copy link
Contributor

heifner commented Feb 5, 2019

  • What platform?
  • Did you compile, or download binaries?
  • I find it odd that get_info returned the first block. Is your nodeos producing blocks?

@ashishchandr70
Copy link
Author

Hi @heifner

I have tried this on Ubuntu 18.04 and Ubuntu 16.04.

Used the instructions per https://github.com/EOSIO/eos#ubuntu-1804-debian-package-install

Here is the output of the nodeos - don't see it producing any blocks. Am I supposed to do anything different to get it to produce blocks (if that indeed is the issue)? Don't think I did anything like that in v1.3.x.

Thanks for looking at this.

~$ nodeos --contracts-console
info 2019-02-04T23:04:58.581 thread-0 chain_plugin.cpp:335 plugin_initialize ] initializing chain plugin
info 2019-02-04T23:04:58.588 thread-0 block_log.cpp:134 open ] Log is nonempty
info 2019-02-04T23:04:58.588 thread-0 block_log.cpp:161 open ] Index is nonempty
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:422 plugin_initialize ] configured http to listen on 127.0.0.1:8888
info 2019-02-04T23:04:58.589 thread-0 net_plugin.cpp:2762 plugin_initialize ] Initialize net plugin
info 2019-02-04T23:04:58.589 thread-0 net_plugin.cpp:2787 plugin_initialize ] host: 0.0.0.0 port: 9876
info 2019-02-04T23:04:58.589 thread-0 net_plugin.cpp:2859 plugin_initialize ] my node_id is 94ace547e61b94a820d20bf4e53fcfc281e0fd3dc4d9eff5675e3764e68aeecf
info 2019-02-04T23:04:58.589 thread-0 main.cpp:107 main ] nodeos version v1.6.0
info 2019-02-04T23:04:58.589 thread-0 main.cpp:108 main ] eosio root is /home/passwordis1234/.local/share
info 2019-02-04T23:04:58.589 thread-0 main.cpp:109 main ] nodeos using configuration file /home/passwordis1234/.local/share/eosio/nodeos/config/config.ini
info 2019-02-04T23:04:58.589 thread-0 main.cpp:110 main ] nodeos data directory is /home/passwordis1234/.local/share/eosio/nodeos/data
info 2019-02-04T23:04:58.589 thread-0 chain_plugin.cpp:731 plugin_startup ] starting chain in read/write mode
info 2019-02-04T23:04:58.589 thread-0 chain_plugin.cpp:735 plugin_startup ] Blockchain started; head block is #1, genesis timestamp is 2018-06-01T12:00:00.000
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:486 plugin_startup ] start listening for http requests
info 2019-02-04T23:04:58.589 thread-0 chain_api_plugin.cpp:77 plugin_startup ] starting chain_api_plugin
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/abi_bin_to_json
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/abi_json_to_bin
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_abi
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_account
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_block
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_block_header_state
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_code
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_code_hash
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_currency_balance
info 2019-02-04T23:04:58.589 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_currency_stats
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_info
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_producer_schedule
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_producers
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_raw_abi
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_raw_code_and_abi
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_required_keys
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_scheduled_transactions
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_table_by_scope
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_table_rows
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/get_transaction_id
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/push_block
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/push_transaction
info 2019-02-04T23:04:58.590 thread-0 http_plugin.cpp:556 add_handler ] add api url: /v1/chain/push_transactions
info 2019-02-04T23:04:58.590 thread-0 net_plugin.cpp:2879 plugin_startup ] starting listener, max clients is 25
info 2019-02-04T23:04:58.590 thread-0 producer_plugin.cpp:749 plugin_startup ] producer plugin: plugin_startup() begin
info 2019-02-04T23:04:58.590 thread-0 producer_plugin.cpp:783 plugin_startup ] producer plugin: plugin_startup() end

@heifner
Copy link
Contributor

heifner commented Feb 5, 2019

Your nodeos is not producing blocks. See https://developers.eos.io/eosio-home/docs/getting-the-software#section-step-1-2-start-nodeos

Specifically, you need:
nodeos -e -p eosio --contracts-console

@ashishchandr70
Copy link
Author

Thanks @heifner. It works now. Appreciate it very much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants