After weeks of struggling with home network bugs, I’m finally back at being able to test Sakia again
and encounter an error that might not be due to my home network.
Here’s my root_server.yml file:
Guilder-Test:
display: European Basic Guilder Test
nodes:
AbE4R2fg4hmf6FPYuSuxx9MC9abnSMaPPenoYp8kHsf6:
- "BMAS guilder-test.eu.org 443"
This is the result of testing:
[me@MyComupter sakia]$ sakia --currency=Guilder-Test --debug
[2276] PyInstaller Bootloader 3.x
[2276] LOADER: executable is /opt/sakia/sakia.bin
[2276] LOADER: homepath is /opt/sakia
[2276] LOADER: _MEIPASS2 is NULL
[2276] LOADER: archivename is /opt/sakia/sakia.bin
[2276] LOADER: Extracting binaries
[2276] LOADER: Executing self as child
[2276] LOADER: set _MEIPASS2 to /opt/sakia
[2276] LOADER: LD_LIBRARY_PATH=/opt/sakia
[2277] PyInstaller Bootloader 3.x
[2277] LOADER: executable is /opt/sakia/sakia.bin
[2277] LOADER: homepath is /opt/sakia
[2277] LOADER: _MEIPASS2 is /opt/sakia
[2277] LOADER: archivename is /opt/sakia/sakia.bin
[2277] LOADER: Already in the child - running user's code.
[2277] LOADER: Python library: /opt/sakia/libpython3.5m.so.1.0
[2277] LOADER: Loaded functions from Python library.
[2277] LOADER: Manipulating environment (sys.path, sys.prefix)
[2277] LOADER: Pre-init sys.path is /opt/sakia/base_library.zip:/opt/sakia
[2277] LOADER: sys.prefix is /opt/sakia
[2277] LOADER: Setting runtime options
[2277] LOADER: Initializing python
[2277] LOADER: Overriding Python's sys.path
[2277] LOADER: Post-init sys.path is /opt/sakia/base_library.zip:/opt/sakia
[2277] LOADER: Setting sys.argv
[2277] LOADER: setting sys._MEIPASS
[2277] LOADER: importing modules from CArchive
[2277] LOADER: extracted struct
[2277] LOADER: callfunction returned...
[2277] LOADER: extracted pyimod01_os_path
[2277] LOADER: callfunction returned...
[2277] LOADER: extracted pyimod02_archive
[2277] LOADER: callfunction returned...
[2277] LOADER: extracted pyimod03_importers
[2277] LOADER: callfunction returned...
[2277] LOADER: Installing PYZ archive with Python modules.
[2277] LOADER: PYZ archive: out00-PYZ.pyz
[2277] LOADER: Running pyiboot01_bootstrap.py
[2277] LOADER: Running pyi_rth_qt5.py
[2277] LOADER: Running pyi_rth_multiprocessing.py
[2277] LOADER: Running pyi_rth_pkgres.py
[2277] LOADER: Running main.py
DEBUG:meta:prepare:Initializing meta database
DEBUG:meta:upgrade_database:Begin upgrade of database...
DEBUG:meta:upgrade_database:Upgrading to version 0...
DEBUG:meta:create_all_tables:Initialiazing all databases
DEBUG:meta:upgrade_database:Upgrading to version 1...
DEBUG:meta:add_ud_rythm_parameters:Add ud rythm parameters to blockchains table
DEBUG:meta:upgrade_database:Upgrading to version 2...
DEBUG:meta:add_contacts:Add contacts table
DEBUG:meta:upgrade_database:Upgrading to version 3...
DEBUG:meta:add_sentry_property:Add sentry property
DEBUG:meta:upgrade_database:Upgrading to version 4...
DEBUG:meta:add_last_state_change_property:Add last state change property
DEBUG:meta:upgrade_database:Upgrading to version 5...
DEBUG:meta:refactor_transactions:Refactor transactions
DEBUG:meta:upgrade_database:Upgrading to version 6...
DEBUG:meta:drop_incorrect_nodes:Drop incorrect nodes
DEBUG:meta:upgrade_database:Upgrading to version 7...
DEBUG:meta:insert_last_mass_attribute:Insert last_mass attribute
DEBUG:meta:upgrade_database:End upgrade of database...
DEBUG:network:add_connector:AbE4R connected
DEBUG:node:connect_current_block:[AbE4R] Websocket block WSServerHandshakeError : 502, message='Invalid response status'
DEBUG:node:connect_peers:[AbE4R] Websocket peer WSServerHandshakeError : 502, message='Invalid response status'
DEBUG:node:safe_request:[AbE4R] status code != 200 => 502 (<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
)
DEBUG:node:change_state_and_emit:[AbE4R] Changing state 1 > 2
DEBUG:node:request_current_block:[AbE4R] Could not connect to any BMA endpoint
DEBUG:node:safe_request:[AbE4R] status code != 200 => 502 (<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
)
DEBUG:node:request_peers:[AbE4R] Could not connect to any BMA endpoint
DEBUG:node:connect_peers:[AbE4R] Websocket peer WSServerHandshakeError : 502, message='Invalid response status'
DEBUG:node:connect_current_block:[AbE4R] Websocket block WSServerHandshakeError : 502, message='Invalid response status'
DEBUG:node:safe_request:[AbE4R] status code != 200 => 502 (<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
)
DEBUG:node:request_peers:[AbE4R] Could not connect to any BMA endpoint
DEBUG:node:safe_request:[AbE4R] status code != 200 => 502 (<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
)
DEBUG:node:request_current_block:[AbE4R] Could not connect to any BMA endpoint
DEBUG:node:safe_request:[AbE4R] status code != 200 => 502 (<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
)
DEBUG:node:request_peers:[AbE4R] Could not connect to any BMA endpoint
DEBUG:blockchain:initialize_blockchain:Requesting blockchain parameters
DEBUG:network:stop_coroutines:Start closing
DEBUG:network:stop_coroutines:Closing 1 websockets
DEBUG:network:stop_coroutines:Closed
ERROR:quamash._QEventLoop:Task was destroyed but it is pending!
task: <Task pending coro=<NetworkService.discovery_loop() running at sakia/services/network.py:178> wait_for=<Future pending cb=[Task._wakeup()]>>
[2276] LOADER: Back to parent (RC: 0)
[2276] LOADER: Doing cleanup
[2276] LOADER: Freeing archive status for /opt/sakia/sakia.bin
[me@MyComputer sakia]$
So I’m getting 502 Bad Gateway errors, yet when accessing the site, I don’t get Bad Gateway errors.
Does anyone from the dev team have any ideas what could be the cause?