CounterpartyXCP / counterparty-core

Counterparty Protocol Reference Implementation
http://counterparty.io
MIT License
287 stars 206 forks source link

Gunicorn Alternative?? #2483

Closed adamkrellenstein closed 1 month ago

adamkrellenstein commented 1 month ago

This appeared when I shutdown with Waitress:

2024-10-20T02:24:04.187+00:00 - [   DEBUG] - API Request - Get Valid Assets By Owner (verbose=true address=bc1q5jkphpsns0dnsmv6jde4uz34rmdgqzvdehu5lw)                                                              
2024-10-20T02:24:04.188+00:00 - [   DEBUG] - API Request - Get Balances By Addresses (verbose=true addresses=1DtU6ECcpubup7QbmG1sP89568jexucS2P limit=50)                                                           
2024-10-20T02:24:04.189+00:00 - [   DEBUG] - API Request - Get Mempool Events By Addresses (verbose=true addresses=bc1qrjhe5r2ekjy28p3dl50zuwc0rjjjthpyhdd5ee limit=1000 show_unconfirmed=true) - Response 200 - 5ms
2024-10-20T02:24:04.193+00:00 - [   DEBUG] - API Request - Get Valid Assets By Owner (verbose=true address=bc1q5jkphpsns0dnsmv6jde4uz34rmdgqzvdehu5lw) - Response 200 - 6ms                                         
2024-10-20T02:24:04.208+00:00 - [   DEBUG] - API Request - Get Balances By Addresses (verbose=true addresses=1DtU6ECcpubup7QbmG1sP89568jexucS2P limit=50) - Response 200 - 20ms                                     
2024-10-20T02:24:04.434+00:00 - [   DEBUG] - API Request - Get Events By Addresses (verbose=true addresses=bc1q9kcw8jhqlr64llkcww8dlpl77lcjkvrt3fnvau limit=1000 show_unconfirmed=true event_name=ENHANCED_SEND,ASSE
T_ISSUANCE,DISPENSE,OPEN_DISPENSER,REFILL_DISPENSER,RESET_ISSUANCE,ASSET_CREATION,DISPENSER_UPDATE,NEW_FAIRMINT,NEW_FAIRMINTER)                                                                                     
2024-10-20T02:24:04.437+00:00 - [   DEBUG] - API Request - Get Events By Addresses (verbose=true addresses=bc1q9kcw8jhqlr64llkcww8dlpl77lcjkvrt3fnvau limit=1000 show_unconfirmed=true event_name=ENHANCED_SEND,ASSE
T_ISSUANCE,DISPENSE,OPEN_DISPENSER,REFILL_DISPENSER,RESET_ISSUANCE,ASSET_CREATION,DISPENSER_UPDATE,NEW_FAIRMINT,NEW_FAIRMINTER) - Response 200 - 3ms                                                                
^C2024-10-20T02:24:05.329+00:00 - [ WARNING] - Keyboard interrupt!                                                                                                                                                  
2024-10-20T02:24:05.330+00:00 - [    INFO] - Stopping API Server...                                                                                                                                                 
2024-10-20T02:24:05.331+00:00 - [    INFO] - Stopping API Watcher...                                                                                                                                                
2024-10-20T02:24:07.332+00:00 - [   ERROR] - API Server did not stop in time. Terminating...                                                                                                                        
2024-10-20T02:24:07.333+00:00 - [    INFO] - Stopping API Status Poller...                                                                                                                                          
2024-10-20T02:24:07.558+00:00 - [    INFO] - Stopping API Server v1...                                                                                                                                              
2024-10-20T02:24:08.206+00:00 - [   DEBUG] - Creating connection to `/home/adam_krellenstein/.local/share/counterparty/counterparty.db`...                                                                          
/usr/lib/python3.11/multiprocessing/pool.py:345: RuntimeWarning: coroutine 'BlockchainWatcher.handle' was never awaited                                                                                             
  def _setup_queues(self):                                                                                                                                                                                          
RuntimeWarning: Enable tracemalloc to get the object allocation traceback                                                                                                                                           
2024-10-20T02:24:08.217+00:00 - [    INFO] - Closing database connections...                                                                                                                                        
2024-10-20T02:24:08.218+00:00 - [    INFO] - Stopping AddrIndexRs thread...                                                                                                                                         
2024-10-20T02:24:08.218+00:00 - [    INFO] - Shutting down logging...                                                                                                                                               
2024-10-20T02:24:08.219+00:00 - [   DEBUG] - Creating connection to `/home/adam_krellenstein/.local/share/counterparty/counterparty.api.db`...                                                                      
ERROR:root:SQLITE_LOG: recovered 1 frames from WAL file /ramdisk/counterparty/counterparty.api.db-wal (283) SQLITE_NOTICE_RECOVER_WAL                                                                               
2024-10-20T02:24:08.221+00:00 - [    INFO] - Shutdown complete.                                                                                      
adamkrellenstein commented 1 month ago

See https://github.com/CounterpartyXCP/counterparty-core/issues/2494