View Issue Details

IDProjectCategoryView StatusLast Update
0007293libeufinlibeufin-nexuspublic2023-01-08 10:32
ReporterChristian Grothoff Assigned ToMS  
Status closedResolutionfixed 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Target Version0.9.0Fixed in Version0.9.0 
Summary0007293: service not ready, even though responding to HTTP requests
DescriptionBoth nexus and sandbox are not immediately ready for regular requests, even after a 'wget' starts to succeed. See:

libeufin-sandbox serve --port "1$1" \
  > libeufin-sandbox-stdout.log \
  2> libeufin-sandbox-stderr.log &
echo $! >
export LIBEUFIN_SANDBOX_URL="http://localhost:1$1/demobanks/default"
set +e
echo -n "Waiting for Sandbox.."
for n in `seq 1 50`; do
  echo -n "."
  sleep 1
  wget --timeout=1 \
    --tries=3 --waitretry=0 \
    -o /dev/null -O /dev/null \
sleep 1 # NEEDED!
echo OK

Without the extra 'sleep 1', I get on my system:

Waiting for Nexus...OK
Creating a EBICS connection at Nexus..HTTPConnectionPool(host='localhost', port=8082): Max retries exceeded with url: /bank-connections (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc96c06e310>: Failed to establish a new connection: [Errno 111] Connection refused'))
Could not reach nexus at http://localhost:8082/bank-connections

The same happens with the sandbox.
Steps To ReproduceRemove 'sleep 1' lines marked with this bug number in taler-bank-manage-testing (at least on my system).
TagsNo tags attached.


Christian Grothoff

2022-08-25 16:57

manager   ~0019036

MS: I think you 'fixed' this by discovering that we didn't check the wget status, right? Please remember to 'resolve' bugs that you fixed ;-).


2022-09-07 13:37

manager   ~0019098

Yes. Fixed here: 516d8e30ed..

Issue History

Date Modified Username Field Change
2022-08-06 13:55 Christian Grothoff New Issue
2022-08-25 16:57 Christian Grothoff Note Added: 0019036
2022-08-25 16:57 Christian Grothoff Assigned To => MS
2022-08-25 16:57 Christian Grothoff Status new => assigned
2022-09-07 13:37 MS Note Added: 0019098
2022-09-07 13:37 MS Status assigned => resolved
2022-09-07 13:37 MS Resolution open => fixed
2023-01-08 10:31 Christian Grothoff Fixed in Version => 0.9.0
2023-01-08 10:31 Christian Grothoff Target Version => 0.9.0
2023-01-08 10:32 Christian Grothoff Status resolved => closed
2023-04-13 20:38 Florian Dold Category nexus => libeufin-nexus