View Issue Details

IDProjectCategoryView StatusLast Update
0010189Talerexchangepublic2025-07-17 14:32
Reporterpax Assigned ToChristian Grothoff  
PrioritynormalSeveritytweakReproducibilityalways
Status feedbackResolutionopen 
Product Version1.0 
Summary0010189: taler-fakebank-run fails with ERROR Configuration fails to specify option `CURRENCY' in section `exchange'!
DescriptionHi,

I'm trying to set this up, as you probably guessed from my other issues... ;)

I want to run the fakebank to just try the basics but when I run it it fails:

taler-fakebank-run --signup-bonus=NZD:100
2025-07-16T08:04:22.242652+0000 taler-fakebank-run-34978 ERROR Configuration fails to specify option `CURRENCY' in section `exchange'!

The thing is that my taler-exchange.conf's [exchange] part contains the configuration it's asking for, so no idea why that fails... Even specifying the taler-exchange.conf with the -c parameter doesn't solve it...

[exchange]
CURRENCY = NZD

# Smallest currency unit handled by the underlying bank system. Taler payments
# can make payments smaller than this units, but interactions with external
# systems is always rounded to this unit.
CURRENCY_ROUND_UNIT = NZD:0.01
Steps To Reproducetaler-fakebank-run --signup-bonus=NZD:100
TagsNo tags attached.

Activities

pax

2025-07-16 22:55

reporter   ~0025508

Do I see this correct that the taler-fakebank actually needs a separate config file that specifies [bank] with CURRENCY instead of the [exchange] it mentions in the error message?

Christian Grothoff

2025-07-16 23:00

manager   ~0025509

While I think it would actually make sense to change it to require the section name to be "[bank]", the code clearly does look in the "[exchange]" section for the CURRENCY option. (see taler-fakebank-run.c, TALER_config_get_currency()).

I just did:
$ cat test.conf
[exchange]
CURRENCY = CHF

$ taler-fakebank-run -c test.conf

---and it runs fine.

pax

2025-07-16 23:29

reporter   ~0025510

Strange.... I'll try a fresh set up on a new VM and try that... I might have messed it all up a bit anyway.... Will keep you updated

Issue History

Date Modified Username Field Change
2025-07-16 10:07 pax New Issue
2025-07-16 20:27 Christian Grothoff Assigned To => Christian Grothoff
2025-07-16 20:27 Christian Grothoff Status new => assigned
2025-07-16 22:55 pax Note Added: 0025508
2025-07-16 23:00 Christian Grothoff Note Added: 0025509
2025-07-16 23:29 pax Note Added: 0025510
2025-07-17 14:32 Christian Grothoff Severity minor => tweak
2025-07-17 14:32 Christian Grothoff Status assigned => feedback
2025-07-17 14:32 Christian Grothoff Category other => exchange