View Issue Details

IDProjectCategoryView StatusLast Update
0004758Talerobsolete componentpublic2016-11-20 02:26
ReporterMarcello Stanisci Assigned ToMarcello Stanisci 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
PriorityhighSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.2Fixed in Version0.2 
Summary0004758: unix socket not created by python script
DescriptionWhen the bank is launched by 'taler-bank-manage serve-uwsgi', the expected
unix domain sockets in /tmp are not created. If instead the bank is launched with:

uwsgi --emperor <PFX>/share/taler-bank/vassals-unix/

then the sockets are correctly created.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Marcello Stanisci

2016-11-03 13:45

reporter   ~0011412

Adding the Python guru :-)

Florian Dold

2016-11-03 15:23

manager   ~0011413

Why do we even have sockets in the global '/tmp'? I don't understand the problem well enough to give any advice.

Is there a reason we need to use uwsgi's emperor/vassal mechanism? Can't we just have two uwsgi services, one for the bank's admin interface and one for the frontent, both run separately by gnunet-arm?

Marcello Stanisci

2016-11-03 16:30

reporter   ~0011414

We use the emperor thing because is the uwsgi way of running multi app/instances
services, and we launch both apps with one command. It is also handier to launch
the bank manually for quickly looking at the output.

Basically, any vassal gets configured in a .ini file, and in those files you
indicate where on the filesystem you want your sockets created.
Sockets in /tmp are just a default value we have for vassals (as we don't want
to save on git tripwire's specific paths like ~/sockets/). It can be changed in
<PFX>/share/taler-bank/vassals-unix/*.ini.

The good side of your solution is that we don't move away part of the configuration
from ~/.config/taler.conf. I'm not strictly against.

Florian Dold

2016-11-03 18:35

manager   ~0011417

Hmm, I wouldn't be completely opposed to using uwsgi's vassals/emperor, but it seems like it's more of a pain than a gain.

So unless it simplifies things a lot, we should just have two separate services!

Marcello Stanisci

2016-11-04 12:47

reporter   ~0011425

Fixed in 174dab7. Actually preferred changing the implementation to your
suggestion instead of indagating why the Emperor does not create sockets.
(test) config file in deployment also updated.

Issue History

Date ModifiedUsernameFieldChange
2016-11-03 12:07Marcello StanisciNew Issue
2016-11-03 12:07Marcello StanisciStatusnew => assigned
2016-11-03 12:07Marcello StanisciAssigned To => Marcello Stanisci
2016-11-03 12:37Marcello StanisciAdditional Information Updated
2016-11-03 12:38Marcello StanisciPrioritynormal => high
2016-11-03 13:45Marcello StanisciNote Added: 0011412
2016-11-03 15:23Florian DoldNote Added: 0011413
2016-11-03 16:30Marcello StanisciNote Added: 0011414
2016-11-03 18:35Florian DoldNote Added: 0011417
2016-11-04 12:47Marcello StanisciNote Added: 0011425
2016-11-04 12:47Marcello StanisciStatusassigned => informing
2016-11-04 12:47Marcello StanisciResolutionopen => fixed
2016-11-15 14:41rootProduct Version => git (master)
2016-11-15 14:41rootFixed in Version => 0.2
2016-11-15 14:41rootTarget Version => 0.2
2016-11-20 02:26Christian GrothoffStatusinforming => closed
2022-08-23 18:26Christian GrothoffCategorybank (demonstrator) => py bank (demonstrator, obsolete)
2023-12-03 00:23Christian GrothoffCategorypy bank (demonstrator, obsolete) => obsolete componet
2023-12-11 19:08Florian DoldCategoryobsolete componet => obsolete component