Hi,
When I run the Lean-CLI Interactive Live mode, the following error happened:
ERROR:: Runtime Error: Timeout waiting for brokerage response for brokerage order id 77 lean id 23
Timeout waiting for brokerage response for brokerage order id 77 lean id 23
and with this error:
TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): JTS-CCPDispatcherS15-226: Couldn't write to log file - java.io.IOException: write beyond end of stream
InteractiveBrokersBrokerage.OnIbAutomaterErrorDataReceived(): java: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
Thank you very much.
Varad Kabade
Hi Shaohua Lu,
Please get in touch with support@quantconnect.com and attach the full logs.
Best,
Varad Kabade
Pavel M
I am also experiencing the same “write beyond end of stream” problem with TWS gateway 10.19.1n under Windows Server 2016 with latest Lean.Brokerage.InteractiveBrokers (SHA: 38824da3c6cbe71480398ff0f179cb7c99ee6663). I would appreciate your help.
Desi Monk
I started seeing this on my ubuntu host during live trading start up TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): JTS-EServerSocket-86: Couldn't write to log file - java.io.IOException: write beyond end of stream. Later lean crashses due to stack over flow
Stack overflow.
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(System.String, OpenFlags, Int32)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, System.IO.FileOptions, Int64)
at System.IO.Strategies.OSFileStreamStrategy..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, System.IO.FileOptions, Int64)
at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)
at QuantConnect.Lean.Engine.DataFeeds.DefaultDataProvider.Fetch(System.String)
at QuantConnect.Lean.Engine.DataFeeds.DownloaderDataProvider.GetStream(System.String)
at QuantConnect.Lean.Engine.DataFeeds.BaseDownloaderDataProvider.DownloadOnce(System.String, System.Action`1<System.String>)
at QuantConnect.Lean.Engine.DataFeeds.DownloaderDataProvider.Fetch(System.String)
at QuantConnect.Lean.Engine.DataFeeds.ZipDataCacheProvider.Cache(System.String, CachedZipFile ByRef)
at QuantConnect.Lean.Engine.DataFeeds.ZipDataCacheProvider.GetZipEntries(System.String)
at QuantConnect.Lean.Engine.DataFeeds.BacktestingChainProvider.GetZipEntries(QuantConnect.Symbol, System.DateTime, QuantConnect.Resolution)
at QuantConnect.Lean.Engine.DataFeeds.BacktestingChainProvider+<GetSymbols>d__7.MoveNext()
at System.Collections.Generic.HashSet`1[[System.__Canon, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral,
Martin Molinero
Hey Desi Monk
We've released a fix related for IB live trading using the lean cli. Please update your version to the latest 1.0.192, ‘pip install --upgrade lean’. If the issue persist, please contact support with detailed logs (--verbose) so we can solve the issue ASAP.
Regarding ‘java.io.IOException: write beyond end of stream’ IB errors this is a known error by interactive brokers, which we've reported but causes no malfunction, so it has not been addressed to the date.
Thank you
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Shaohua Lu
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!