[2026-09-25 03:49:23] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 04:38:07] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 05:20:50] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 05:21:01] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 05:22:16] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 05:23:27] [DEMO] ========================================
[2026-09-25 05:23:27] [DEMO] STARTING DEMO TRADING RUNNER
[2026-09-25 05:23:27] [DEMO] ========================================
[2026-09-25 05:23:30] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:05:52] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:06:04] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:06:14] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:06:43] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:07:18] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:08:06] [SERVICES] All services started in foreground mode
[2026-09-25 06:09:31] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:10:19] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:56:54] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 06:59:23] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:35:22] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:36:46] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:37:38] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:39:03] [BOOT] Stale PID lock detected, recovering {"pid":4071502}
[2026-09-25 07:39:03] [BOOT] Market Data Scheduler starting {"pid":1189349,"timeframes":[15,30,45,60,90],"symbols":["BTCUSD","AVAXUSD","SANDUSD","SHIBUSD"],"trading_enabled":"true"}
[2026-09-25 07:39:03] [BOOT] Market Data Scheduler starting {"timeframes":[15,30,45,60,90],"trading_enabled":"true"}
[2026-09-25 07:39:14] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:39:14] [PERSISTENCE] Selected Driver: File
[2026-09-25 07:39:24] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:39:34] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:39:45] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:39:55] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:39:55] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":1,"error":"DB connection failed: Connection timed out"}
[2026-09-25 07:40:07] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:40:10] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:40:10] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":2,"error":"DB connection failed: Connection timed out"}
[2026-09-25 07:40:25] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:40:25] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":3,"error":"DB connection failed: Connection timed out"}
[2026-09-25 07:40:27] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:40:40] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:40:40] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":4,"error":"DB connection failed: Connection timed out"}
[2026-09-25 07:40:55] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:40:55] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":5,"error":"DB connection failed: Connection timed out"}
[2026-09-25 07:41:00] [ORDER_STATUS_POLLER][FATAL] Could not connect to database after retries. Exiting.
[2026-09-25 07:41:52] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 07:42:08] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:23:56] [WS][CONFIG] Using Delta LIVE WebSocket (fallback) {"environment":"LIVE","url":"wss://socket.delta.exchange"}
[2026-09-25 08:23:56] [WS][LOCK] Lock acquired. PID: 1222651
[2026-09-25 08:23:56] [WS] Starting Main Loop {"state":"DISCONNECTED"}
[2026-09-25 08:23:56] [WS][STATE] Changed to: CONNECTING
[2026-09-25 08:23:56] [WS] Attempting handshake... {"url":"wss://socket.delta.exchange","attempt":1}
[2026-09-25 08:23:56] [WS] Sending subscription {"symbols":["BTCUSD"]}
[2026-09-25 08:23:57] [WS][STATE] Changed to: CONNECTED
[2026-09-25 08:23:57] [WS] ✅ CONNECTED and Subscribed
[2026-09-25 08:24:42] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:24:42] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":1,"error":"DB connection failed: Connection timed out"}
[2026-09-25 08:24:57] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:24:57] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":2,"error":"DB connection failed: Connection timed out"}
[2026-09-25 08:25:12] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:25:12] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":3,"error":"DB connection failed: Connection timed out"}
[2026-09-25 08:25:27] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:25:27] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":4,"error":"DB connection failed: Connection timed out"}
[2026-09-25 08:25:37] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:25:42] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:25:42] [ORDER_STATUS_POLLER][ERROR] DB Connection failed, retrying... {"attempt":5,"error":"DB connection failed: Connection timed out"}
[2026-09-25 08:25:47] [ORDER_STATUS_POLLER][FATAL] Could not connect to database after retries. Exiting.
[2026-09-25 08:27:06] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:27:23] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 08:59:29] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:39:36] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:40:15] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:40:53] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:43:25] [BOOT] Market Data Scheduler starting {"pid":1314069,"timeframes":[15,30,45,60,90],"symbols":["BTCUSD","AVAXUSD","SANDUSD","SHIBUSD"],"trading_enabled":"true"}
[2026-09-25 09:43:25] [BOOT] Market Data Scheduler starting {"timeframes":[15,30,45,60,90],"trading_enabled":"true"}
[2026-09-25 09:43:35] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:43:35] [PERSISTENCE] Selected Driver: File
[2026-09-25 09:43:45] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:43:47] == STARTING PIPELINE INTEGRATION TEST ==
[2026-09-25 09:43:57] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:44:36] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 09:48:06] [BOOT] Market Data Scheduler starting {"pid":1318473,"timeframes":[15,30,45,60,90],"symbols":["BTCUSD","AVAXUSD","SANDUSD","SHIBUSD"],"trading_enabled":"true"}
[2026-09-25 09:48:06] [BOOT] Market Data Scheduler starting {"timeframes":[15,30,45,60,90],"trading_enabled":"true"}
[2026-09-25 09:53:53] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:18:09] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:19:19] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:21:02] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:21:24] [EXCHANGE_RATE][SUCCESS] USD to INR rate fetched {"rate":96.02,"source":"API"}
[2026-09-25 10:21:24] [EXCHANGE_RATE][CACHE] Using cached rate {"rate":96.02,"age_sec":0}
[2026-09-25 10:21:24] [EXCHANGE_RATE][CACHE] Using cached rate {"rate":96.02,"age_sec":0}
[2026-09-25 10:21:25] [RATE_LIMIT] Request rate limited {"key":"TEST_KEY","tokens":1.0013580322265625e-5,"capacity":5}
[2026-09-25 10:21:28] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:21:35] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:21:45] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:23:24] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:23:24] [PERSISTENCE] Selected Driver: File
[2026-09-25 10:23:39] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 10:23:55] [NOTIFY] Candle closed {"symbol":"BTCUSD","tf":15,"open":1790311135}
[2026-09-25 10:23:55] [TELEGRAM][SUCCESS] Message sent to 6659714850
[2026-09-25 10:24:54] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:06:54] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:07:19] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:08:07] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:08:12] [MIGRATION] Creating many-to-many telegram subscriber-broker mapping
[2026-09-25 11:08:32] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:09:00] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:48:53] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:48:55] [MIGRATION] Creating telegram_subscribers table
[2026-09-25 11:49:05] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:49:33] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:50:20] [DB][FATAL] Connection failed {"host":"brato.dnshfe.com","user":"primaryk_crypto-nordtech","db":"primaryk_cryptoAlgo","error":"Connection timed out","attempt":1}
[2026-09-25 11:53:40] [MIGRATION] Adding broker_account_id to telegram_subscribers table
