View Issue Details

IDProjectCategoryView StatusLast Update
0007006GNUnetpostgres librarypublic2022-02-26 22:10
ReporterFlorian Dold Assigned ToChristian Grothoff Due Date
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.16.0Fixed in Version0.16.0 
Summary0007006: merchant dbinit does not properly report errors
DescriptionIt just tells me "3".

$ sudo -u taler-merchant-httpd taler-merchant-dbinit -c /etc/taler/taler.conf
2021-08-28T17:17:37.295109+0000 taler-merchant-dbinit-418734 WARNING Could not run PSQL on file /usr/share/taler//sql/merchant/merchant-0000.sql: 3
2021-08-28T17:17:37.295186+0000 taler-merchant-dbinit-418734 ERROR Failed to run SQL logic to setup database versioning logic
2021-08-28T17:17:37.295238+0000 taler-merchant-dbinit-418734 ERROR Failed to initialize tables
TagsNo tags attached.

Activities

Christian Grothoff

2021-08-28 18:23

manager   ~0018139

That's because it doesn't have more: it forks the "psql" binary, and the only thing we have is the psql binary exit code.

Florian Dold

2021-08-28 19:00

developer   ~0018140

Ah. But then why don't we just let psql inherit stderr, so we get a decent error message? And currently the error message *looks* broken. Is the "3" a line number, an exit status or ...? At least we should indicate in the log text that this is the exit status of psql.

Christian Grothoff

2021-08-28 19:54

manager   ~0018141

Fixed error message text and inherited stderr as of 7a4c1fb72..2994fa434

Christian Grothoff

2021-08-28 19:54

manager   ~0018142

(Note that this is a GNUnet change.)

schanzen

2022-02-26 22:10

administrator   ~0018730

0.16.0 released

Issue History

Date ModifiedUsernameFieldChange
2021-08-28 17:22Florian DoldNew Issue
2021-08-28 17:22Florian DoldStatusnew => assigned
2021-08-28 17:22Florian DoldAssigned To => Christian Grothoff
2021-08-28 18:23Christian GrothoffNote Added: 0018139
2021-08-28 18:23Christian GrothoffAssigned ToChristian Grothoff => Florian Dold
2021-08-28 18:23Christian GrothoffStatusassigned => feedback
2021-08-28 19:00Florian DoldNote Added: 0018140
2021-08-28 19:54Christian GrothoffNote Added: 0018141
2021-08-28 19:54Christian GrothoffNote Added: 0018142
2021-08-28 19:54Christian GrothoffStatusfeedback => resolved
2021-08-28 19:54Christian GrothoffResolutionopen => fixed
2021-08-28 19:54Christian GrothoffFixed in Version => 0.8.5
2021-08-28 19:55Christian GrothoffProjectTaler => GNUnet
2021-08-28 19:55Christian GrothoffCategorymechant backend => General
2021-08-28 19:55Christian GrothoffAssigned ToFlorian Dold => Christian Grothoff
2021-08-28 19:55Christian GrothoffCategoryGeneral => postgres library
2021-08-28 19:55Christian GrothoffProduct Version => Git master
2021-08-28 19:55Christian GrothoffFixed in Version0.8.5 => 0.16.0
2021-08-28 19:55Christian GrothoffTarget Version => 0.16.0
2021-10-10 18:14schanzenFixed in Version0.16.0 => 0.15.4
2021-10-10 18:14schanzenTarget Version0.16.0 => 0.15.4
2021-12-31 08:26schanzenTarget Version0.15.4 => 0.16.0
2022-02-22 22:06schanzenFixed in Version => 0.16.0
2022-02-26 22:10schanzenNote Added: 0018730
2022-02-26 22:10schanzenStatusresolved => closed