View Issue Details

IDProjectCategoryView StatusLast Update
0006508Talertaler-merchant-demospublic2021-08-24 14:23
ReporterChristian Grothoff 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
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Versiongit (master) 
Target Version0.8Fixed in Version0.8 
Summary0006508: launching taler-merchant-demos fails with strange error
DescriptionAfter configuring the port, I get:

$ taler-merchant-demos --serve-http blog
WARNING:taler.util.talerconfig:no base directory found
*** Starting uWSGI 2.0.19.1 (64bit) on [Sat Aug 22 21:54:49 2020] ***
compiled with version: 8.4.0 on 04 July 2020 21:45:29
os: Linux-4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24)
nodename: lifeline
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 32
current working directory: /home/grothoff/research/taler/taler-merchant-demos
detected binary path: /home/grothoff/.local/bin/uwsgi
your processes number limit is 256903
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on :8080 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:35301 (port auto-assigned) fd 3
Python version: 3.8.5 (default, Aug 2 2020, 15:09:07) [GCC 10.2.0]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x55ecd80e8f40
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 145840 bytes (142 KB) for 1 cores
*** Operational MODE: single process ***
WARNING:taler.util.talerconfig:no base directory found
Traceback (most recent call last):
  File "./talermerchantdemos/blog/__init__.py", line 1, in <module>
    from talermerchantdemos.blog.blog import app
  File "./talermerchantdemos/blog/blog.py", line 40, in <module>
    BACKEND_BASE_URL = TC["frontends"]["backend"].value_string(required=True)
  File "/home/grothoff/.local/lib/python3.8/site-packages/taler/util/talerconfig.py", line 173, in value_string
    raise ConfigurationError(
taler.util.talerconfig.ConfigurationError: Missing required option 'BACKEND' in section 'FRONTENDS'
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 43434)
spawned uWSGI worker 1 (pid: 43437, cores: 1)
spawned uWSGI http 1 (pid: 43438)

Several things wrong here:
1) there is no documentation, not even on how to build (configure, make install)
2) there is no documentation on the options to set
3) if the configuration is required (there should be sane defaults), and the configuration is wrong, then the process should print a GOOD error message
4) if the configuration is badly messed up, the process should EXIT and not continue to run as it does now
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2020-08-22 20:05

manager   ~0016704

I now learned the solution is:

$ taler-config -s frontends -o backend -V https://backend.tet.taler.net/
$ taler-config -s frontends -o backend_apikey -V "ApiKey Sandbox"

Anyway, the error messages are horrible, the non-exiting is horrible, and the documentation is horrible.

Christian Grothoff

2020-08-23 10:19

manager   ~0016712

Torsten already added good instructions here on how to install.

Issue History

Date ModifiedUsernameFieldChange
2020-08-22 20:04Christian GrothoffNew Issue
2020-08-22 20:05Christian GrothoffNote Added: 0016704
2020-08-23 10:19Christian GrothoffAssigned To => Christian Grothoff
2020-08-23 10:19Christian GrothoffStatusnew => informing
2020-08-23 10:19Christian GrothoffResolutionopen => fixed
2020-08-23 10:19Christian GrothoffFixed in Version => 0.8
2020-08-23 10:19Christian GrothoffNote Added: 0016712
2021-08-24 14:23Christian GrothoffStatusinforming => closed
2026-08-23 14:16Florian DoldCategoryMerchant frontends (Python3) => taler-merchant-demos