eos icon indicating copy to clipboard operation
eos copied to clipboard

Expired transaction time error

Open jchung00 opened this issue 8 years ago • 8 comments

Version: dawn-v.4.2.0 We started off by deploying the eosio.bios contract on the eosio account:

./cleos.sh set contract eosio /home/ubuntu/eos/eosio.bios -p eosio

This worked without any errors. Later, we deployed the system contract. We did have some problems with the unknown key assertion exception during the process as described in #3553 , but it still got deployed. We deployed the eosio.bios contract onto the eosio account again, and then the system contract again. This worked running the same commands shown above. And then we had to change some things again using the eosio.bios contract so we tried to deploy it again, and ran into the error below. This has persisted and we haven't been able to re-deploy the eosio.bios contract. screen shot 2018-05-29 at 10 26 51 pm

jchung00 avatar May 29 '18 18:05 jchung00

On a second note this might be because the LIB hasn't been moving for a while since some block producing nodes are not syncing, and no blocks are being produced at the moment on this chain.

jchung00 avatar May 29 '18 18:05 jchung00

same error here, with dawn 4.2

brightermatter avatar May 29 '18 20:05 brightermatter

By the way, #3370 resolves the issue.

You may need to enable the core plugins and set the producer-name = eosio

brightermatter avatar May 29 '18 20:05 brightermatter

@brightermatter Those plugins were enabled, and producer-name was set to eosio.

jchung00 avatar May 30 '18 02:05 jchung00

After adding another consumer node, this error started popping up again on our producer node.

brightermatter avatar May 30 '18 14:05 brightermatter

I have the same issue with 4.2, and these plugins were enabled, and produce name is eosio, not fix my problem

douxin avatar Jun 03 '18 03:06 douxin

Problem is that nodeos is not producing blocks. In this case head block is very old. cleos sets expiration time based on head block time. So, first make sure that you nodeos is producing blocks. It should be constantly printing something like

510005ms thread-0   producer_plugin.cpp:1073      produce_block        ] Produced block 00008ffc77f86047... #36860 @ 2018-06-05T20:08:30.000 signed by eosio [trxs: 0, lib: 36859, confirmed: 0]
510502ms thread-0   producer_plugin.cpp:1073      produce_block        ] Produced block 00008ffd7497ca46... #36861 @ 2018-06-05T20:08:30.500 signed by eosio [trxs: 0, lib: 36860, confirmed: 0]

If nodeos is not on your local machine try cleos get info and look for

...
"head_block_time": "2018-06-05T20:10:52",
...

It should be very recent (not more than few seconds off from current time). And should be different each time you re-run cleos get info.

How to make your local nodeos to produce blocks when you start new blockchain (just an example, you may use different parameters):

nodeos  --plugin eosio::wallet_api_plugin --plugin eosio::chain_api_plugin --plugin eosio::producer_plugin --plugin eosio::history_api_plugin --contracts-console --delete-all-blocks --genesis-timestamp now -e

If you want to continure existing (valid!) chain - remove --delete-all-blocks --genesis-timestamp now

@jchung00 feel free to re-open if it didn't help

moskvanaft avatar Jun 05 '18 20:06 moskvanaft

@moskvanaft Please refer to my posted issue: `https://github.com/EOSIO/eos/issues/4172``

I've also checked the head_block_time as you recommended. Although the head_block_time of my local nodeos is updated frequently, but I still encounter this kind of error. Please help.

trungtt198x avatar Jun 17 '18 07:06 trungtt198x