View Issue Details

IDProjectCategoryView StatusLast Update
0005484Talerauditorpublic2021-09-02 16:14
ReporterMarcello Stanisci Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.6Fixed in Version0.6 
Summary0005484: Database crash - foreign key "violation".
DescriptionThis happens even after a reset of both exchanges and auditor tables.

Nov 26 11:29:22-200535 taler-auditor-4692 DEBUG Analyzing coins
* First analysis using this auditor, starting audit from scratch
Nov 26 11:29:22-204455 pq-4692 ERROR Query `auditor_balance_summary_insert' failed with result: insert or update on table "auditor_balance_summary" violates foreign key constraint "master_pub_ref"/Key (master_pub)=(\xdd46afd1d5bab825721e46767e266f17e04243090114d7727a3cd287f16d05f9) is not present in table "auditor_exchanges"./ERROR: insert or update on table "auditor_balance_summary" violates foreign key constraint "master_pub_ref"
DETAIL: Key (master_pub)=(\xdd46afd1d5bab825721e46767e266f17e04243090114d7727a3cd287f16d05f9) is not present in table "auditor_exchanges".
/PGRES_FATAL_ERROR/ERROR: insert or update on table "auditor_balance_summary" violates foreign key constraint "master_pub_ref"
DETAIL: Key (master_pub)=(\xdd46afd1d5bab825721e46767e266f17e04243090114d7727a3cd287f16d05f9) is not present in table "auditor_exchanges".

Steps To Reproducejust run:

$ taler-auditor.
Additional InformationHeppens locally on my machine.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Marcello Stanisci

2018-11-30 21:05

reporter   ~0013375

Could just get this error on Tripwire too.

Christian Grothoff

2018-12-01 16:10

manager   ~0013376

Ok, admittedly the error message ought to be improved, but I think you get this because you did not use taler-auditor-exchange first (or not correctly). Basically, the DB complains that the exchange's master public key isn't yet in the table.

Leave this bug open for me to fix the UX, but running taler-auditor-exchange should unblock you.

Marcello Stanisci

2018-12-04 15:03

reporter   ~0013385

It did :-)

Christian Grothoff

2019-01-08 18:11

manager   ~0013449

Nicer error message added in 3ed5db97..feec0d49

Christian Grothoff

2021-09-02 16:14

manager   ~0018279

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2018-11-26 10:43Marcello StanisciNew Issue
2018-11-26 10:43Marcello StanisciStatusnew => assigned
2018-11-26 10:43Marcello StanisciAssigned To => Christian Grothoff
2018-11-26 10:46Marcello StanisciSteps to Reproduce Updated
2018-11-26 10:46Marcello StanisciAdditional Information Updated
2018-11-30 21:05Marcello StanisciNote Added: 0013375
2018-12-01 16:10Christian GrothoffNote Added: 0013376
2018-12-04 15:00Marcello StanisciRelationship addedchild of 0005461
2018-12-04 15:03Marcello StanisciNote Added: 0013385
2018-12-07 17:44Marcello StanisciRelationship deletedchild of 0005461
2019-01-08 18:11Christian GrothoffNote Added: 0013449
2019-01-08 18:11Christian GrothoffStatusassigned => informing
2019-01-08 18:11Christian GrothoffResolutionopen => fixed
2019-01-08 18:11Christian GrothoffFixed in Version => 0.6
2019-01-08 18:11Christian GrothoffProduct Version => git (master)
2019-01-08 18:11Christian GrothoffTarget Version => 0.6
2019-12-20 18:12Christian GrothoffStatusinforming => closed
2021-09-02 16:13Christian Grothoff
2021-09-02 16:14Christian GrothoffNote Added: 0018279