I started the process of downloading the "usstock-1min" bundle last night around 6pm ET. I ran the following code:
from quantrocket.zipline import create_usstock_bundle
create_usstock_bundle("usstock-1min")
{'status': 'success', 'msg': 'successfully created usstock-1min bundle'}
from quantrocket.zipline import ingest_bundle
ingest a subset of securities first
ingest_bundle("usstock-1min")
{'status': 'the data will be ingested asynchronously'}then ingest everything
ingest_bundle("usstock-1min")
{'status': 'the data will be ingested asynchronously'}
The download process started almost 15 hours ago. When it started it appeared to be downloading correctly. Below is a snapshot of the logs when it started:
quantrocket-zipline-1|Ingesting minute bars for FIBBG000BLM0V1 (3298 of 24911)
quantrocket-zipline-1|Ingesting minute bars for FIBBG000BLMDK5 (3299 of 24911)
quantrocket-zipline-1|Ingesting minute bars for FIBBG000BLMDQ9 (3300 of 24911)
This morning when I checked on the progress I noticed a bunch of errors in the logs. Below are a couple of snapshots of the logs:
2024-03-19 23:56:54 quantrocket.zipline: INFO [usstock-1min] Ingesting minute bars for 24911 securities in usstock-1min bundle
2024-03-20 00:02:12 quantrocket.zipline: ERROR Traceback (most recent call last):
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_ingest_py", line 82, in mule_ingest_bundle
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_ingest_py", line 126, in _call_ingest_func
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_usstock_usstock_py", line 106, in ingest
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_usstock_usstock_py", line 537, in ingest
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_usstock_usstock_py", line 560, in _wait_for_minute_workers
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "/opt/conda/lib/python3.9/threading.py", line 973, in _bootstrap_inner
2024-03-20 00:02:12 quantrocket.zipline: ERROR self.run()
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "/opt/conda/lib/python3.9/threading.py", line 910, in run
2024-03-20 00:02:12 quantrocket.zipline: ERROR self._target(*self._args, **self._kwargs)
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_usstock_usstock_py", line 503, in wrapper
2024-03-20 00:02:12 quantrocket.zipline: ERROR File "sym://qrocket_qrzipline_bundles_usstock_usstock_py", line 614, in _sync_minute_bars_for_sid
2024-03-20 00:02:12 quantrocket.zipline: ERROR RuntimeError: No active exception to reraise
2024-03-20 00:02:12 quantrocket.zipline: ERROR
2024-03-20 01:09:03 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
2024-03-20 03:29:54 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
2024-03-20 03:29:54 quantrocket.license-service: ERROR failure checking license:
2024-03-20 03:29:54 quantrocket.license-service: ERROR ClientError('An error occurred (InvalidSignatureException) when calling the Query operation: Signature expired: 20240320T032954Z is now earlier than 20240320T033129Z (20240320T034629Z - 15 min.)')
2024-03-20 04:20:52 quantrocket.license-service: ERROR failure checking license:
2024-03-20 04:20:52 quantrocket.license-service: ERROR ClientError('An error occurred (InvalidSignatureException) when calling the Query operation: Signature expired: 20240320T042052Z is now earlier than 20240320T042146Z (20240320T043646Z - 15 min.)')
2024-03-20 05:40:33 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
2024-03-20 05:40:33 quantrocket.license-service: ERROR failure checking license:
2024-03-20 05:40:33 quantrocket.license-service: ERROR ClientError('An error occurred (InvalidSignatureException) when calling the Query operation: Signature expired: 20240320T054033Z is now earlier than 20240320T054146Z (20240320T055646Z - 15 min.)')
2024-03-20 08:13:51 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
2024-03-20 09:31:49 quantrocket.license-service: ERROR failure checking license:
2024-03-20 09:31:49 quantrocket.license-service: ERROR ClientError('An error occurred (InvalidSignatureException) when calling the Query operation: Signature expired: 20240320T093149Z is now earlier than 20240320T093259Z (20240320T094759Z - 15 min.)')
2024-03-20 10:50:18 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
2024-03-20 12:51:25 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
and in the detailed logs it's showing the following:
quantrocket-license-service-1|fetching license profile for d618........083a
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:51:23 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-blotter-1|recycling spooler after 90 tasks
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:51:23 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-blotter-1|OOOPS the spooler is no more...trying respawn...
quantrocket-blotter-1|spawned the uWSGI spooler on dir /var/tmp/uwsgi/spool with pid 81
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:51:24 +0000] "GET /master/securities.csv?vendors=ibkr&fields=ibkr_ConId HTTP/1.1" 400 137 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:51:24 +0000] "GET /master/securities.csv?vendors=alpaca&fields=alpaca_AssetId HTTP/1.1" 400 139 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:51:24 +0000] "GET /account/balances.csv?latest=True&fields=Account&fields=Broker HTTP/1.1" 400 77 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:51:24 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:51:24 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.9 - - [20/Mar/2024:12:51:25 +0000] "GET /account/balances.csv?latest=True&fields=NetLiquidation&fields=Paper HTTP/1.1" 400 77 "-" "python-urllib3/1.26.8"
quantrocket-flightlog-1|2024-03-20 12:51:25 quantrocket.license-service: WARNING AccountCheckError('account service unavailable, so live trading features will be disabled')
quantrocket-houston-1|172.18.0.9 - - [20/Mar/2024:12:51:25 +0000] "POST /flightlog/handler HTTP/1.1" 200 5 "-" "-"
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:52:25 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:52:25 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:53:25 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:53:25 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.7 - - [20/Mar/2024:12:53:28 +0000] "POST /ibgrouter/registration/ibg1 HTTP/1.1" 200 5 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:54:25 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:54:25 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:55:25 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:55:25 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-license-service-1|fetching license profile for d618........083a
quantrocket-houston-1|172.18.0.9 - - [20/Mar/2024:12:56:25 +0000] "GET /account/balances.csv?latest=True&fields=NetLiquidation&fields=Paper HTTP/1.1" 400 77 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.4 - - [20/Mar/2024:12:56:26 +0000] "GET /ibg1/gateway HTTP/1.1" 200 22 "-" "python-requests/2.27.1"
quantrocket-houston-1|172.18.0.16 - - [20/Mar/2024:12:56:26 +0000] "GET /ibgrouter/gateways?status=running HTTP/1.1" 200 3 "-" "python-urllib3/1.26.8"
quantrocket-houston-1|172.18.0.7 - - [20/Mar/2024:12:56:28 +0000] "POST /ibgrouter/registration/ibg1 HTTP/1.1" 200 5 "-" "python-requests/2.27.1"
Is the process ongoing and I just need to wait for it to complete (despite being close to 15 hours now) or is there an issue?
Thanks.