Waves icon indicating copy to clipboard operation
Waves copied to clipboard

TransactionValidationError. Tx with such id aready present.

Open dbykov opened this issue 9 years ago • 3 comments

I'm using waves_0.7.8_all.deb on Ubuntu. After reboot, node gives me this error:

java.lang.Exception: TransactionValidationError(GenericError(Tx id(exc. for some PaymentTransactions) cannot be duplicated. Current height is: 633381. Tx with such id aready present),{"type":4,"id":"EHUNme71H6LME1Whz7jg8Ajs7XebUuZEhdD9LsgHX8iF","sender":"3PJuaHc38E2GNaU5t2dHupRXAGT54DMMhCk","senderPublicKey":"4Ki6tWAF8jxHfZqThQseEa71pB5VYEJAEyey7U5zMiiJ","fee":100000,"timestamp":1503316280387,"signature":"3huCjogZpxmGpXhQ6HXU8Fq6shNQ8iRKcQeAamSKhR4hEfXnKQtLGZLDn9j4Njb6PJjQB1fUFxkfn3ddarsrTsV6","recipient":"3P9D1oU27JVxf3i9y2zWhh2fBGkc4fovGEo","assetId":"4eT6R8R2XuTcBuTHiXVQsh2dN2mg3c2Qnp95EWBNHygg","amount":1288984270,"feeAsset":null,"attachment":""})

How can i fix it?

dbykov avatar Oct 06 '17 15:10 dbykov

Full log:

systemd[1]: Started Waves node.
waves[10840]: INFO  c.w.Application$ - Starting...
waves[10840]: INFO  kamon.Kamon$Instance - Initializing Kamon...
waves[10840]: INFO  a.event.slf4j.Slf4jLogger - Slf4jLogger started
waves[10840]: INFO  c.w.Application$ - Waves v0.7.8 Blockchain Id: W
waves[10840]: INFO  c.w.s.BlockchainUpdaterImpl - Constructing BlockchainUpdaterImpl, total blocks: 633600, persisted: 633380, topMemDiff: 0, bottomMemDiff: 0
waves[10840]: INFO  c.w.s.BlockchainUpdaterImpl - State rebuild started, total blocks: 633600, persisted: 633380, topMemDiff: 0, bottomMemDiff: 0
waves[10840]: ERROR c.w.actor.RootActorSystem$ - Error while initializing actor system wavesplatform
waves[10840]: java.lang.Exception: TransactionValidationError(GenericError(Tx id(exc. for some PaymentTransactions) cannot be duplicated. Current height is: 633381. Tx with such id aready present),{"type":4,"id":"EHUNme71H6LME1Whz7jg8Ajs7XebUuZEhdD9LsgHX8iF","sender":"3PJuaHc38E2GNaU5t2dHupRXAGT54DMMhCk","senderPublicKey":"4Ki6tWAF8jxHfZqThQseEa71pB5VYEJAEyey7U5zMiiJ","fee":100000,"timestamp":1503316280387,"signature":"3huCjogZpxmGpXhQ6HXU8Fq6shNQ8iRKcQeAamSKhR4hEfXnKQtLGZLDn9j4Njb6PJjQB1fUFxkfn3ddarsrTsV6","recipient":"3P9D1oU27JVxf3i9y2zWhh2fBGkc4fovGEo","assetId":"4eT6R8R2XuTcBuTHiXVQsh2dN2mg3c2Qnp95EWBNHygg","amount":1288984270,"feeAsset":null,"attachment":""})
systemd[1]: waves.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: waves.service: Unit entered failed state.
systemd[1]: waves.service: Failed with result 'exit-code'.
systemd[1]: Stopped Waves node.

dbykov avatar Oct 06 '17 15:10 dbykov

I couldn't start my node also, had the same message as you:

  • ERROR [main] c.w.actor.RootActorSystem$ - Error while initializing actor system wavesplatform java.lang.Exception: TransactionValidationError(GenericError(Tx id(exc. for some PaymentTransactions) cannot be duplicated. Current height is: 765457. Tx with such id aready present),{"type":4,"id":"BPrkJXm8EE8eTA3kX7ae39ZfwvrBsYPfy1bstK1KHfs6","sender":"3PE5ZLLSdrryLZ6TSCJZhimY9HxmQT8m4Ty","senderPublicKey":"DPjswXJgPJwepuohsKzkSRvfFxDCZQ7hBUBqksoN2a2M","fee":100000,"timestamp":1511518072240,"signature":"Yf4fQRsknTuqdacz2JyvjKk8cToqjoepDS48EdLC3xPxFUepvb8LRog6oJG3kd8wxfgbiu6xK8WRUPGerDBcsS4","recipient":"3P4kAfTst9EU9mGWRVF6EQ5CSttmEwcHjVo","assetId":null,"amount":5000000,"feeAsset":null,"attachment":""})

how I fixed it?

  • by deleting the state.dat file and waiting for like 17h for the "repair" by waves for the 765456 blocks

more info given here


in my case - it seems due to less RAM - waves could not finish some tasks?

  • and this rendered then waves "unusable" afterwards :-(

it would be great if waves could "heal itself" without user intervention in such cases
  • waves 0.7.9
  • java 1.8.0_151

on request more info available

MeInTheFuture avatar Nov 25 '17 08:11 MeInTheFuture

Solved since version 0.8. Lack of memory is not the issue since 0.9 with LevelDB. But it's hard to repair the corrupted state anyway. The simplest solution for such situations is to rebuild the state from scratch.

alexeykiselev avatar Feb 15 '18 13:02 alexeykiselev