View Issue Details

IDProjectCategoryView StatusLast Update
0007293libeufinnexuspublic2022-08-06 13:55
ReporterChristian Grothoff Assigned To 
PrioritynormalSeveritymajorReproducibilitysometimes
Status newResolutionopen 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
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 $! > libeufin-sandbox.pid
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 \
    $LIBEUFIN_SANDBOX_URL
  break
done
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.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-08-06 13:55 Christian Grothoff New Issue