View Issue Details

IDProjectCategoryView StatusLast Update
0006991Talerexchangepublic2021-09-02 16:14
ReporterFlorian Dold 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
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006991: exchange gives non-actionable error message regarding SQL
DescriptionThis is currently happening on taler-test@gv when calling taler-deployment-prepare after deleting the database:

Aug 13 13:05:41-054427 taler-exchange-dbinit-3577276 WARNING Could not run PSQL on file /home/taler-test/local/share/taler//sql/exchange/drop0000.sql: 1
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Florian Dold

2021-08-13 12:10

manager   ~0018111

Happens after this:

$ dropdb talertest
$ createdb talertest
$ taler-exchange-dbinit -r

Christian Grothoff

2021-08-18 08:30

manager   ~0018116

Well, resetting a fresh DB is "wrong". Before, we logged:

$ taler-exchange-dbinit -r -L INFO
Aug 18 10:20:16-314294 taler-exchange-dbinit-7167 INFO Failed to prepare statement to check patch level. Likely versioning schema does not exist yet, loading patch level 0000!
Aug 18 10:20:16-314356 taler-exchange-dbinit-7167 INFO Applying SQL file `/home/grothoff/share/taler//sql/exchange/drop0000.sql' on database postgres:///taler
Aug 18 10:20:16-366811 taler-exchange-dbinit-7167 WARNING Could not run PSQL on file /home/grothoff/share/taler//sql/exchange/drop0000.sql: 1
Aug 18 10:20:16-366847 taler-exchange-dbinit-7167 ERROR Failed to run SQL logic to setup database versioning logic
Aug 18 10:20:16-366893 taler-exchange-dbinit-7167 WARNING Could not drop tables as requested. Either database was not yet initialized, or permission denied. Consult the logs. Will still try to create new tables.
Aug 18 10:20:16-369497 taler-exchange-dbinit-7167 INFO Failed to prepare statement to check patch level. Likely versioning schema does not exist yet, loading patch level 0000!
Aug 18 10:20:16-369536 taler-exchange-dbinit-7167 INFO Applying SQL file `/home/grothoff/share/taler//sql/exchange/exchange-0000.sql' on database postgres:///taler
Aug 18 10:20:16-436602 taler-exchange-dbinit-7167 INFO Loading SQL resources from `/home/grothoff/share/taler//sql/exchange/exchange-'
Aug 18 10:20:16-437464 taler-exchange-dbinit-7167 INFO Applying SQL file `/home/grothoff/share/taler//sql/exchange/exchange-0001.sql' on database postgres:///taler
Aug 18 10:20:16-546966 taler-exchange-dbinit-7167 INFO Applying SQL file `/home/grothoff/share/taler//sql/exchange/exchange-0002.sql' on database postgres:///taler

I've changed it so that the ERROR is now a WARNING, and the "Could not drop tables as requested" is now an ERROR.

Christian Grothoff

2021-09-02 16:14

manager   ~0018218

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2021-08-13 11:10Florian DoldNew Issue
2021-08-13 11:10Florian DoldStatusnew => assigned
2021-08-13 11:10Florian DoldAssigned To => Christian Grothoff
2021-08-13 11:14Florian DoldCategorymechant backend => exchange
2021-08-13 11:14Florian DoldSummarymechant backend gives non-actionable error message regarding SQL => exchange backend gives non-actionable error message regarding SQL
2021-08-13 11:14Florian DoldSummaryexchange backend gives non-actionable error message regarding SQL => exchange gives non-actionable error message regarding SQL
2021-08-13 12:10Florian DoldNote Added: 0018111
2021-08-18 08:30Christian GrothoffNote Added: 0018116
2021-08-18 08:30Christian GrothoffStatusassigned => informing
2021-08-18 08:30Christian GrothoffResolutionopen => fixed
2021-08-18 08:30Christian GrothoffFixed in Version => 0.9
2021-08-18 08:30Christian GrothoffProduct Version => git (master)
2021-08-18 08:30Christian GrothoffTarget Version => 0.9
2021-08-23 14:23Christian GrothoffFixed in Version0.9 => 0.8
2021-08-23 14:23Christian GrothoffTarget Version0.9 => 0.8
2021-08-24 14:22Christian GrothoffStatusinforming => closed
2021-09-02 16:13Christian Grothoff
2021-09-02 16:14Christian GrothoffNote Added: 0018218