eos icon indicating copy to clipboard operation
eos copied to clipboard

Error 3080004: transaction exceeded the current CPU usage limit imposed on the transaction

Open cppfuns opened this issue 8 years ago • 7 comments

`root@iZ2zea5mjpcmz9m17k56daZ:~/.local/share/eosio/nodeos/config# cleos system newaccount eosio voter2 EOS6u8i7rknHyAd7AdziWSnEsAbyJHA3U9So4R8p2z58cA1KeEDv2 EOS6u8i7rknHyAd7AdziWSnEsAbyJHA3U9So4R8p2z58cA1KeEDv2 --stake-net '50.00 EOS' --stake-cpu '50.00 EOS' 2159748ms thread-0 main.cpp:418 create_action ] result: {"binargs":"0000000000ea30550000000088ab32dd00200000"} arg: {"code":"eosio","action":"buyrambytes","args":{"payer":"eosio","receiver":"voter2","bytes":8192}} 2159750ms thread-0 main.cpp:418 create_action ] result: {"binargs":"0000000000ea30550000000088ab32dd20a107000000000004454f530000000020a107000000000004454f530000000000"} arg: {"code":"eosio","action":"delegatebw","args":{"from":"eosio","receiver":"voter2","stake_net_quantity":"50.0000 EOS","stake_cpu_quantity":"50.0000 EOS","transfer":false}} Error 3080004: transaction exceeded the current CPU usage limit imposed on the transaction Error Details: authorizing account 'eosio' has insufficient cpu resources for this transaction

//------------------------------------------------------------------------------------------------------ root@iZ2zea5mjpcmz9m17k56daZ:~/.local/share/eosio/nodeos/config# cleos get table eosio eosio userres { "rows": [{ "owner": "eosio", "net_weight": "0.0000 EOS", "cpu_weight": "0.0000 EOS", "ram_bytes": 13741145 } ], "more": false } `

cppfuns avatar May 18 '18 06:05 cppfuns

how to buy the cpu

cppfuns avatar May 18 '18 06:05 cppfuns

@bytemaster

  • I transfer and buy ram failed, can you help me ? Thanks

after cleos system undelegatebw, I cannot transfer,. log:

Error 3080002: transaction exceeded the current network usage limit imposed on the transaction
Error Details:
net usage of transaction is too high: 160 > 35

then cleos system --help, have no access to buy net, and I go to buy ram, some errors: log:

cleos system buyram gu2toojzgqge gu2toojzgqge "0.02 EOS"
2500128ms thread-0   main.cpp:428                  create_action        ] result: {"binargs":"a09865ff519a8566a09865ff519a8566c80000000000000004454f5300000000"} arg: {"code":"eosio","action":"buyram","args":{"payer":"gu2toojzgqge","receiver":"gu2toojzgqge","quant":"0.0200 EOS"}} 
Error 3080002: transaction exceeded the current network usage limit imposed on the transaction
Error Details:
net usage of transaction is too high: 128 > 31
  • And the other issue , after cleos system undelegatebw, the sum of staked, delegated and balance is less than I own before undelegatebw, what happened?

kgbook avatar Jun 15 '18 16:06 kgbook

you need to stake enough cpu & net resource (e.g. 0.1 EOS for each) in order to make transactions.

taokayan avatar Jun 20 '18 10:06 taokayan

@cppfuns @taokayan @bytemaster but how to buy net ??? cleos can buy ram, but have no option to buy net, could you please help me ? Thanks

kgbook avatar Jun 22 '18 14:06 kgbook

Error 3080004: transaction exceeded the current CPU usage limit imposed on the transaction is not because the account ran out of CPU, but because the block producer(BP) trying to pack this transaction into a block, which it self ran out of CPU time.

As far as resource limit is concerned, in order to successfully push a transaction to blockchain, there’re two prerequisite:

  • the account itself must have enough resource(RAM, NET, CPU)
  • the block that BP trying to pack transaction inside into must have enough resource(e.g. CPU time)

Inside exceptions.hpp, defines a series exceptions related to resource exhaustion:

https://github.com/EOSIO/eos/blob/796511999b46063640396e9cd691a5262bab8207/libraries/chain/include/eosio/chain/exceptions.hpp#L210-L223

if the account sending a transaction ran out of CPU, it throws leeway_deadline_exception, and tx_cpu_usage_exceeded exception describes the block is out of CPU time.


P.S. @arhag originally add tx_cpu_usage_exceeded in this commit

chengevo avatar Jun 24 '18 17:06 chengevo

I get this error when I try to perform a transaction on jungle... I've staked 100 EOS for bandwidth, yet It doesn't go away

Error: transaction net usage is too high: 120 > 0

I would love to know what could be wrong

feekayo avatar Feb 09 '19 07:02 feekayo

@feekayo Jungle testnet has arbitrarily well funded accounts, with EOS stakes in the millions. 100 simply may not be enough. You may also need to periodically retry, looking for a period of reduced activity. Jungle is often busy with simulated transactions, for testing purposes.

jgiszczak avatar Feb 11 '19 20:02 jgiszczak