View Issue Details

IDProjectCategoryView StatusLast Update
0009709Talerexchangepublic2025-04-10 13:53
Reporterreynir Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version0.14 
Summary0009709: Configs in /usr/share/taler-exchange/config.d/ does not seem to be loaded
DescriptionAccording to this section configuration files in /usr/share/taler-exchange/config.d/ are loaded as default values: https://docs.taler.net/taler-exchange-manual.html#configuration-fundamentals

However, when I run taler-exchange.target I get errors that {AGGREGATOR,CLOSER,TRANSFER,WIREWATCH}_IDLE_SLEEP_INTERVAL are not defined. However, I can confirm they are defined in /usr/share/taler-exchange/config.d/exchange.conf.

I also had to define KEY_DIR for the taler-exchange-secmod-* sections even if it is defined as KEY_DIR = ${TALER_DATA_HOME}secmod-cs/keys in the default secmod.conf files.
Additional InformationThe output of taler-exchange-config --diagnostics does not include the *_IDLE_SLEEP_INTERVAL variables. The header of the output is:

#
# Configuration file diagnostics
#
# Entry point: /etc/taler-exchange/taler-exchange.conf
#
# Files Loaded:
# /etc/taler-exchange/taler-exchange.conf
# + /etc/taler-exchange/conf.d/exchange-business.conf
# ++ /etc/taler-exchange/conf.d/../secrets/exchange-accountcredentials-1.secret.conf (loaded secret section exchange-accountcredentials-1)
# + /etc/taler-exchange/conf.d/exchange-coins.conf
# + /etc/taler-exchange/conf.d/exchange-secmod.conf
# + /etc/taler-exchange/conf.d/exchange-system.conf
# ++ /etc/taler-exchange/conf.d/../secrets/exchange-db.secret.conf (loaded secret section exchangedb-postgres)
# + /etc/taler-exchange/overrides.conf
#
# Installation paths:
# IPK_DATADIR = /usr/share/taler-exchange/
# IPK_LIBDIR = /usr/lib/x86_64-linux-gnu/taler-exchange/
# IPK_BINDIR = /usr/bin/
# IPK_LOCALEDIR = /usr/
# IPK_LOCALEDIR = /usr/share/locale/
# IPK_DOCDIR = /usr/share/icons/
# IPK_DOCDIR = /usr/share/doc/taler-exchange/
# IPK_LIBEXECDIR = /usr/taler-exchange/libexec/
# IPK_SELF_PREFIX = /usr/
#
TagsNo tags attached.

Activities

Christian Grothoff

2025-04-08 13:37

manager   ~0024442

Which version is this? Specifically,

taler-exchange-config -v and
gnunet-config -v

might be helpful. I just tried on my system, there it of course works...

reynir

2025-04-08 15:32

reporter   ~0024443

# taler-exchange-config -v
taler-exchange-config v0.14.5-git-2cadb9e
# gnunet-config -v
gnunet-config vdebian-0.23.2_rc.1 git-688e7d6
2025-04-08T15:31:23.936604+0200 gnunet-config-15892 ERROR Unreadable configuration file `(null)', exiting ..

reynir

2025-04-08 17:20

reporter   ~0024444

I used the apt repository mentioned in the manual. Apt reports the versions to be 0.14.5 and 0.23.2~rc.1 respectively.

Christian Grothoff

2025-04-08 19:20

manager   ~0024449

Is this Ubuntu or Debian?

reynir

2025-04-09 09:58

reporter   ~0024459

It is debian 12

Christian Grothoff

2025-04-09 10:51

manager   ~0024466

Can you please try
# apt update
# apt upgrade

I don't see how this would have been broken in the past, but your version is rather old already, and maybe we had something broken briefly.

reynir

2025-04-09 11:40

reporter   ~0024471

I upgraded, but I still get complaints about variables not being defined

$ taler-exchange-config -v
taler-exchange-config v0.14.9-git-fd5b688
$ gnunet-config -v
gnunet-config v0.24.0-debian
2025-04-09T11:39:24.341447+0200 gnunet-config-1502 ERROR Unreadable configuration file `(null)', exiting ...

Christian Grothoff

2025-04-10 13:53

manager   ~0024497

Hmm. I see. That log message is actually telling. Seems like GNUNET_CONFIGURATION_default_filename() returns NULL, which it does if it cannot find a configuration file under any of the default locations. Which could make sense, because you didn't actually install GNUnet, so there are no config files for it to find. So that explains why you get an error there and I do not, as I have the GNUnet config files. Anyway, that's a minor GNUnet issue which I've fixed in d98ca65ca..61e696500. Sadly doesn't explain at all why your taler-exchange-config doesn't find the variables. That said, you did try the original commands after the "apt upgrade", right? And it still doesn't find the defaults?

Next I guess "strace taler-exchange-config --diagnostics" might be useful to see what it does *try* to do. But very, very strange.

Issue History

Date Modified Username Field Change
2025-04-08 13:08 reynir New Issue
2025-04-08 13:08 reynir Status new => assigned
2025-04-08 13:08 reynir Assigned To => Christian Grothoff
2025-04-08 13:37 Christian Grothoff Note Added: 0024442
2025-04-08 13:37 Christian Grothoff Status assigned => feedback
2025-04-08 15:32 reynir Note Added: 0024443
2025-04-08 15:32 reynir Status feedback => assigned
2025-04-08 17:20 reynir Note Added: 0024444
2025-04-08 19:20 Christian Grothoff Note Added: 0024449
2025-04-09 09:58 reynir Note Added: 0024459
2025-04-09 10:51 Christian Grothoff Note Added: 0024466
2025-04-09 11:40 reynir Note Added: 0024471
2025-04-10 13:53 Christian Grothoff Note Added: 0024497