Cardano-db-sync: 在 insertTxIn 中数据库查找失败:tx 哈希(erikd/shelley-32byte-address-hash)

创建于 2020-06-06  ·  15评论  ·  资料来源: input-output-hk/cardano-db-sync

[db-sync- node:Info :26] [2020-06-06 07:26:00.07 UTC] Cardano.Db 提示位于插槽 7790,块 410
[db-sync- node:Info :31] [2020-06-06 07:26:00.07 UTC] 运行数据库线程
[db-sync- node:Info :31] [2020-06-06 07:26:00.25 UTC] Shelley:不需要回滚:db tip slot is 7790 ledger tip slot is 7790
[db-sync- node:Error :31] [2020-06-06 07:26:01.02 UTC] 在 insertTxIn 中数据库查找失败:tx 哈希 75c62cb4a2bbc63ccff6b518de7f18beef9eb18988298229bbcef441
[db-sync- node:Info :31] [2020-06-06 07:26:01.02 UTC] 关闭数据库线程

最有用的评论

你想离最前沿多近? 我有一个 WIP 分支,目前似乎在 F&F 上正常工作,但它生机勃勃,甚至还没有经过适当的测试。

这里是晚上 9 点。 分支是erikd/shelley-32byte-address-hash 。 如果你打破它,你可以保留两块!

所有15条评论

那是哪个网络? 我知道唯一应该工作的是@disassemblershelley_qa网络。

这是 shelley_qa

我明天去看看。

好的谢谢。 请检查这个:

[db-sync- node:Info :32] [2020-06-06 07:43:26.86 UTC] Shelley:不需要回滚:db tip slot is 27908 ledger tip slot is 27908
[db-sync- node:Info :32] [2020-06-06 07:43:27.15 UTC] epochPluginInsertBlock:在纪元表中插入第 21 纪元的行
[db-sync- node:Error :32] [2020-06-06 07:43:27.16 UTC] updateEpochNum.insertEpoch 中的数据库查找失败:纪元编号 21
...
[db-sync- node:Error :78] [2020-06-06 07:42:37.72 UTC] updateEpochNum.insertEpoch 中的数据库查找失败:纪元编号 22

[db-sync- node:Info :283] [2020-06-06 08:00:52.38 UTC] 启动 chainSyncClient
[db-sync- node:Info :283] [2020-06-06 08:00:52.45 UTC] Cardano.Db 提示位于插槽 47627,块 2180
[db-sync- node:Info :288] [2020-06-06 08:00:52.45 UTC] 运行数据库线程
[db-sync- node:Info :288] [2020-06-06 08:00:52.61 UTC] Shelley:不需要回滚:db tip slot is 47627 ledger tip slot is 47627
[db-sync- node:Error :288] [2020-06-06 08:00:53.11 UTC] 在 insertTxIn 中数据库查找失败:tx hash 54481fa557bd1872a2ce35271e3641cd619da2e31dd773b67f3ed
[db-sync- node:Info :288] [2020-06-06 08:00:53.11 UTC] 关闭数据库线程
[db-sync- node:Error :291] [2020-06-06 08:00:53.11 UTC] recvMsgRollForward: AsyncCancelled

  • 另一个开始

[db-sync- node:Info :104] [2020-06-06 08:01:49.52 UTC] Cardano.Db 提示位于插槽 47874,块 2193
[db-sync- node:Info :109] [2020-06-06 08:01:49.52 UTC] 运行数据库线程
[db-sync- node:Info :109] [2020-06-06 08:01:49.78 UTC] Shelley:不需要回滚:db tip slot is 47874 ledger tip slot is 47874
[db-sync- node:Error :109] [2020-06-06 08:01:50.26 UTC] 数据库查找在 insertTxIn 中失败:tx 哈希 78b4e35754058760705ea08c1234291e4c891e84735a3e8e8475a32
[db-sync- node:Info :109] [2020-06-06 08:01:50.26 UTC] 关闭数据库线程
[db-sync- node:Error :112] [2020-06-06 08:01:50.29 UTC] recvMsgRollForward: AsyncCancelled

我们在 FF 上也有同样的错误:

Connection to localhost 5432 port [tcp/postgresql] succeeded!
Started cardano-db-sync.service.
[db-sync-node:Info:4] [2020-06-06 11:25:32.78 UTC] NetworkMagic: RequiresMagic 42
[db-sync-node:Info:4] [2020-06-06 11:25:32.80 UTC] Initial genesis distribution populated. Hash 20472065206e2065207320692073202d20482061207320682020202020202020
[db-sync-node:Info:4] [2020-06-06 11:25:32.80 UTC] Total genesis supply of Ada: 11000000000.000000
[db-sync-node:Info:4] [2020-06-06 11:25:32.80 UTC] epochPluginOnStartup: Checking
[db-sync-node:Info:4] [2020-06-06 11:25:32.81 UTC] localInitiatorNetworkApplication: connecting to node via "/run/cardano-node/node.socket"
[db-sync-node.Handshake:Info:20] [2020-06-06 11:25:32.81 UTC] [String "Send MsgProposeVersions (fromList [(NodeToClientV_2,TInt 42)])",String "LocalHandshakeTrace",String "ConnectionId {localAddress = LocalAddress {getFilePath = \"\"}, r>
[db-sync-node.Handshake:Info:20] [2020-06-06 11:25:32.81 UTC] [String "Recv MsgAcceptVersion NodeToClientV_2 (TInt 42)",String "LocalHandshakeTrace",String "ConnectionId {localAddress = LocalAddress {getFilePath = \"\"}, remoteAddress = >
[db-sync-node:Info:25] [2020-06-06 11:25:32.81 UTC] Starting chainSyncClient
[db-sync-node:Info:25] [2020-06-06 11:25:32.83 UTC] Cardano.Db tip is at empty (genesis)
[db-sync-node:Info:29] [2020-06-06 11:25:32.83 UTC] Running DB thread
[db-sync-node:Info:29] [2020-06-06 11:25:33.20 UTC] insertShelleyBlock: slot 0, block 0, hash 48b458d41a00acad75b02658e2de3cd4e87f7b3804aaab56aa9d418ce44c2cb7
[db-sync-node:Info:29] [2020-06-06 11:25:33.92 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 0
[db-sync-node:Info:29] [2020-06-06 11:25:34.03 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 1
[db-sync-node:Info:29] [2020-06-06 11:25:34.11 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 2
[db-sync-node:Info:29] [2020-06-06 11:25:34.19 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 3
[db-sync-node:Info:29] [2020-06-06 11:25:34.28 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 4
[db-sync-node:Info:29] [2020-06-06 11:25:34.36 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 5
[db-sync-node:Info:29] [2020-06-06 11:25:34.44 UTC] epochPluginInsertBlock: Inserting row in epoch table for epoch 6
[db-sync-node:Error:29] [2020-06-06 11:25:34.46 UTC] DB lookup fail in insertTxIn: tx hash 46dc1395de27ce13f943d509ce701b61d25a6828bb169b72521d47cf41fc591a
[db-sync-node:Info:29] [2020-06-06 11:25:34.46 UTC] Shutting down DB thread
[db-sync-node:Error:32] [2020-06-06 11:25:34.46 UTC] recvMsgRollForward: AsyncCancelled

本地转载。

整个事情仍在进行中。 我只是在星期四才开始工作,而且只有很少的测试。 这个特殊的错误是由于其中一个底层库中创世分布中地址的表示发生了变化。

我知道底层库中将发生至少 1 项重大更改。

花了最后 2 个多小时来调查这个。 DB lookup fail in insertTxIn是由于未能找到链上交易中引用的 UTxO 输出造成的。 这很可能是因为共识层和db-sync都有采用雪莱创世并将其转换为初始 UTxO 集的代码。 如果 thjs 代码的两个实现在操作上不相同,我们将遇到此故障。

解决方案是使用一点代码将 Shelley Genesis 转换为 UTxO 集,并且该代码应该位于cardano-ledger-specs

开始尝试将ShelleyGenesis相关内容移至cardano-ledger-specs并遇到一些相当棘手的问题。 这是不太可能在今天或明天,甚至要解决。

任何ETA家伙? @erikd @rhyslbw thx

你想离最前沿多近? 我有一个 WIP 分支,目前似乎在 F&F 上正常工作,但它生机勃勃,甚至还没有经过适当的测试。

这里是晚上 9 点。 分支是erikd/shelley-32byte-address-hash 。 如果你打破它,你可以保留两块!

谢谢你检查>作品>结束。

重新打开,因为修复程序尚未合并到主版本。

这已合并到master。 关闭。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

xdzurman picture xdzurman  ·  3评论

refi93 picture refi93  ·  15评论

wkoder picture wkoder  ·  4评论

dmitrystas picture dmitrystas  ·  28评论

alexqrid picture alexqrid  ·  11评论