Hey guys, I'm having a bit of hard time fixing this:
Algorithm.Initialize() Error: InteractiveBrokersBrokerage.CheckIbAutomaterError(): ExistingSessionDetected - An existing session was detected and will not be automatically disconnected. Please close the existing session manually. Stack Trace: InteractiveBrokersBrokerage.CheckIbAutomaterError(): ExistingSessionDetected - An existing session was detected and will not be automatically disconnected. Please close the existing session manually.
I'm not logged in with TWS or anywhere else.
The only connection I've established was thru a single QC live node.
Am I missing any termination button? Or what's the procedure here?
Thanks
Alberto
Alberto_Papel
Quick update.
I've found a way to disconnect, but it's very DYO:
I've cloned the project, deleted the original version and lunched the cloned onto the live node. That worked.
I'm sure you guys have a more “professional” way to deal with this?
Alexandre Catarino
Hi Alberto_Papel ,
Thank you for the report.
Apparently, when we terminate the live algorithm by either clicking on Liquidate or Stop, the connection to IB via IB Gateway that has been opened takes some time to close and/or communicate to IB servers that it was closed. Because of that, a quick (re)deployment fails with that error message.
We are aware of the issue, which is recent, and are working on a solution.
Your workaround is fine, but you will lose the track record of the algorithm.
Best regards,
Alex
A Leo
Hi QuantConnect Team,
The latest comment above which was provided by QuantConnect in January 2022 indicated that you are working on a solution. However, almost two years later I am experiencing the same issue today. Any update on this? thank you.
Jared Broad
@A Leo thanks for reminding us and highlighting this. We've created this issue to track it and will now be able to work on solving it.
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.
Jhonathan Abreu
Hi Alberto_Papel
We have pushed an improvement for IB Gateway shutdown. If anyone experiences this issue again, please contact support sharing their project that reproduced the bug.
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.
Alberto_Papel
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!