View Issue Details

IDProjectCategoryView StatusLast Update
0010313Talerexchangepublic2025-08-31 17:09
Reportersebasjm 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
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0 
Target Version1.0 stretch goalsFixed in Version1.0 stretch goals 
Summary0010313: /keys keeps files open to secmods when setup is incompleted
Descriptionreproduced by florian, original found in default trixie setup

I had some wallet asking for /keys, the exchange was delete and re-setup.

When the httpd server was started the numbers of open files started to increase
$ ss | grep exchange | wc -l
411
to /run/taler-exchange/secmod-<any>/server.sock

until 500 and then the logs have

WARNING `accept' failed at secmod_common.c:432 with error: Too many open files

And exchange services stop responding so is not possible to complete the setup with the `offline` tool.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Florian Dold

2025-08-29 17:15

manager   ~0025743

Some further info: The sockets aren't just opened automatically, but whenever the exchange gets /keys requests (that subsequently hang).

We'd expect that even then, the exchange only opens *one* connection to each secmod helper.

But what *actually* happens is that the exchange opens a new connection to the secmod helpers on every (hanging) /keys request.

Florian Dold

2025-08-29 17:17

manager   ~0025744

(Easily reproducible locally via an exchange-httpd process and secmod processes, with a fresh DB, a coin config but without any offline setup. Just curl "/keys" and check number of open sockets.)

Christian Grothoff

2025-08-30 19:58

manager   ~0025746

Fixed this and a bunch of related issues in 0ddc52d90..049951b64

Issue History

Date ModifiedUsernameFieldChange
2025-08-29 17:08sebasjmNew Issue
2025-08-29 17:14Florian DoldAssigned To => Christian Grothoff
2025-08-29 17:14Florian DoldStatusnew => assigned
2025-08-29 17:15Florian DoldNote Added: 0025743
2025-08-29 17:17Florian DoldNote Added: 0025744
2025-08-30 19:58Christian GrothoffNote Added: 0025746
2025-08-30 19:58Christian GrothoffStatusassigned => informing
2025-08-30 19:58Christian GrothoffResolutionopen => fixed
2025-08-30 19:58Christian GrothoffFixed in Version => 1.0 stretch goals
2025-08-30 19:58Christian GrothoffProduct Version => 1.0
2025-08-30 19:58Christian GrothoffTarget Version => 1.0 stretch goals
2025-08-31 17:09Christian GrothoffStatusinforming => closed