View Issue Details

IDProjectCategoryView StatusLast Update
0009122Talerexchangepublic2024-08-28 23:31
Reportersebasjm Assigned ToChristian Grothoff  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.13Fixed in Version0.13 
Summary0009122: sql error after an aml program fails [2h]
DescriptionI get this error after some error in the aml program script

i'm unable to recover the kyc process of the account

LOG

Aug 23 18:13:18 T480s taler-exchange-httpd[513600]: (HFZ7A1FMTT4TKX8T4CEWVANF2M) ERROR Statement lookup_pending_legitimization returned more than one result, but there must be at most one when using GNUNET_PQ_eval_prepared_singleton_select
Aug 23 18:13:18 T480s taler-exchange-httpd[513600]: (HFZ7A1FMTT4TKX8T4CEWVANF2M) ERROR Assertion failed at pq_eval.c:234.
Aug 23 18:13:18 T480s taler-exchange-httpd[513600]: (HFZ7A1FMTT4TKX8T4CEWVANF2M) ERROR Assertion failed at taler-exchange-httpd_kyc-upload.c:479.
TagsNo tags attached.

Relationships

related to 0009104 closedChristian Grothoff problems with the integration between kyc challenger and exchange [2h] 

Activities

Christian Grothoff

2024-08-24 10:33

manager   ~0023042

Can you please attach a dump of your exchange database?

Christian Grothoff

2024-08-24 10:36

manager   ~0023043

Suspicion: there are *two* entries in legitimization_processes with the same legitimization_measure_serial_id. Then the first left join has two results, and the 2nd left join returns two sets of attributes, and we return both and thus two results.

Christian Grothoff

2024-08-24 10:36

manager   ~0023044

Question: why do we even NEED the encrypted attributes here?

Christian Grothoff

2024-08-24 10:38

manager   ~0023045

the kyc-start endpoint immediately discards them => if we keep this, split the endpoint into two.

Christian Grothoff

2024-08-24 10:39

manager   ~0023046

kyc-upload needs them for an idempotency check. But it has a measure index, which could be used to disambiguate the query and ensure a unique result! => split the DB API in two, one that takes an additional measure index for the query, and a 2nd that doesn't return the attributes.

Christian Grothoff

2024-08-24 14:50

manager   ~0023048

Should be fixed in 79f312df..c98b47d1

Issue History

Date Modified Username Field Change
2024-08-23 23:58 sebasjm New Issue
2024-08-23 23:58 sebasjm Status new => assigned
2024-08-23 23:58 sebasjm Assigned To => Christian Grothoff
2024-08-24 09:34 Christian Grothoff Target Version git (master) => 0.13
2024-08-24 10:33 Christian Grothoff Note Added: 0023042
2024-08-24 10:36 Christian Grothoff Note Added: 0023043
2024-08-24 10:36 Christian Grothoff Note Added: 0023044
2024-08-24 10:38 Christian Grothoff Note Added: 0023045
2024-08-24 10:39 Christian Grothoff Note Added: 0023046
2024-08-24 10:39 Christian Grothoff Summary sql error after an aml program fails => sql error after an aml program fails [2h]
2024-08-24 10:41 Christian Grothoff Relationship added related to 0009104
2024-08-24 14:50 Christian Grothoff Status assigned => resolved
2024-08-24 14:50 Christian Grothoff Resolution open => fixed
2024-08-24 14:50 Christian Grothoff Fixed in Version => 0.13
2024-08-24 14:50 Christian Grothoff Note Added: 0023048
2024-08-28 23:31 Christian Grothoff Status resolved => closed