Code Monkey home page Code Monkey logo

Comments (4)

dmytrotkk avatar dmytrotkk commented on June 28, 2024 1

Hey @nate-staked
Thank you for such detailed logs and explanations.

It looks like node register transaction took more gas than it was originally expected (3.5m) so it ran out of gas. We'll create a hotfix for this particular transaction ASAP. We'll ping you when the release of skale-node will be shipped so you can update.

Also, we have a ticket about the new approach of gas estimation in the skale.py library - it will be implemented in the nearest future.

from node-cli.

nate-staked avatar nate-staked commented on June 28, 2024

I tried upgrading to a version 0.10.1-beta.1 at Ebru's direction:

export NODE_VERSION_NUM=0.10.1-beta.1
sudo -E bash -c "curl -L https://skale-cli.sfo2.cdn.digitaloceanspaces.com/beta/skale-${NODE_VERSION_NUM}-`uname -s`-`uname -m` >  /usr/local/bin/skale-${NODE_VERSION_NUM}"
sudo chmod +x /usr/local/bin/skale-${NODE_VERSION_NUM}
ln -fs /usr/local/bin/skale-${NODE_VERSION_NUM} /usr/local/bin/skale

skale node update ./env

but still got the same error: https://rinkeby.etherscan.io/tx/0x1eef3ce1ad0f1bbe96c2317f88916652a082c622caccffd166834a0ae1f4e658

skale_api logs:

[2020-08-26 20:34:51 +0000] [8] [DEBUG] POST /create-node
[2020-08-26 20:35:21,840 INFO] core.node - MainThread -
====================================================================================================
Node create started
IP: 52.249.250.53
Public IP: 52.249.250.53
Port: 10000
Name: skale-1
====================================================================================================

[2020-08-26 20:35:21,939 INFO] skale.contracts.manager - MainThread - create_node: 52.249.250.53:10000, public ip: 52.249.250.53 name: skale-1
[2020-08-26 20:35:21,946 INFO] skale.transactions.tools - MainThread - Dry run tx: createNode, sender: 0x9e6737c6C3B69397c439d1D2084D8d1dDB8669C9, wallet: RPCWallet, gasLimit: 3500000
[2020-08-26 20:35:21,980 INFO] skale.transactions.tools - MainThread - Tx: createNode, sender: 0x9e6737c6C3B69397c439d1D2084D8d1dDB8669C9, wallet: RPCWallet, gasLimit: 3500000, gasPrice: 1250000000
[2020-08-26 20:36:08,837 INFO] skale.utils.web3_utils - MainThread - Current block number is 7087888, waiting for 5 confimration blocks to be mined
[2020-08-26 20:37:34,282 ERROR] core.node - MainThread - Node creation failed
Traceback (most recent call last):
  File "/usr/src/admin/core/node.py", line 91, in register
    confirmation_blocks=NODE_REGISTER_CONFIRMATION_BLOCKS
  File "/usr/local/lib/python3.7/dist-packages/skale/contracts/base_contract.py", line 84, in wrapper
    tx_res.raise_for_status()
  File "/usr/local/lib/python3.7/dist-packages/skale/transactions/result.py", line 98, in raise_for_status
    raise TransactionFailedError(f'Transaction failed. '
skale.transactions.result.TransactionFailedError: Transaction failed. See receipt AttributeDict({'blockHash': HexBytes('0x71f4ca90f8f4f9faca550decf373bbf2206681a6e605925e4d9c556672fd307d'), 'blockNumber': 7087889, 'contractAddress': None, 'cumulativeGasUsed': 3814470, 'from': '0x9e6737c6C3B69397c439d1D2084D8d1dDB8669C9', 'gasUsed': 3359496, 'logs': [], 'logsBloom': HexBytes('0x00
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'), 'status': 0, 'to': '0x139360fc743b1DA2adb43F5999E28998Da3b6285', 'transactionHash': HexBytes('0x1eef3ce1ad0f1bbe96c2317f88916652a082c622caccffd166834a0ae1f4e658'), 'transactionIndex': 3})

from node-cli.

dmytrotkk avatar dmytrotkk commented on June 28, 2024

@nate-staked 👋

We pushed a hotfix for this issue to the alpine-hard-upgrade branch in the skale-node.
Now you can update your software and try to register again:

  1. Re-check your .env file - CONTAINER_CONFIGS_STREAM should be equal to alpine-hard-upgrade
  2. Run skale node update --yes [PATH-TO-ENV-FILE]
  3. Register a node: skale node register

Feel free to close the issue if you will be able to register a node after this fix.

from node-cli.

nate-staked avatar nate-staked commented on June 28, 2024

that worked 🎉

https://rinkeby.etherscan.io/tx/0x0e28a8c10f7efba3a36767f37f84e010dadc8678e7bc1e720ae7adda6cb274c1

thanks!

from node-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.