Authentication failed with IBEAM_MAX_FAILED_AUTH=5
See original GitHub issueFirst I’d like to thank you for this great project!
I’m testing the current v0.4.0
branch with a paper trading account. For some reason, the authentication failed this morning and then ibeam reached the maximum number of authentication attempts.
Container logs:
2022-02-13 08:36:41,388|I| Gateway running and authenticated 2022-02-13 08:37:41,369|I| Gateway running and authenticated 2022-02-13 08:38:41,383|I| Gateway running and authenticated 2022-02-13 08:39:41,402|I| Gateway session found but not authenticated, authenticating… 2022-02-13 08:39:50,688|E| Error displayed by the login webpage: Invalid username password combination 2022-02-13 08:39:57,880|E| Error displayed by the login webpage: Invalid username password combination 2022-02-13 08:40:04,969|E| Error displayed by the login webpage: Invalid username password combination 2022-02-13 08:40:12,057|E| Error displayed by the login webpage: Invalid username password combination 2022-02-13 08:40:19,161|E| Error displayed by the login webpage: Invalid username password combination 2022-02-13 08:40:19,197|E| ######## ATTENTION! ######## Maximum number of failed authentication attempts (IBEAM_MAX_FAILED_AUTH=5) reached. IBeam will shut down to prevent an account lock-out. It is recommended you attempt to authenticate manually in order to reset the counter. Read the execution logs and report issues at https://github.com/Voyz/ibeam/issues 2022-02-13 08:40:19,280|I| Authentication process failed 2022-02-13 08:40:19,280|W| Shutting IBeam maintenance down due to exceeded number of failed attempts.
I restarted the container and now it works again.
Because this happened on a sunday morning, I believe that it was due to IB restarting their systems, etc.
Does ibeam also restart the gateway process if such an error happens? If it reaches IBEAM_MAX_FAILED_AUTH
, would it make sense to wait for 30 minutes or so, restart the gateway, reset the counter and then try to authenticate again?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Hello @Voyz,
Thanks for your thorough answer.
I agree that it would be too risky to reset the counter and an account-lock could be the consequence. Currently, the client portal gateway seems to be quite unstable. During my tests, it canceled the brokerage session when I sent an invalid request. Let’s hope that IB improves it in future releases.
Best, Chris
@elaamrani thanks for sharing your issue too. I’d recommend getting in touch with IBKR support to make them more aware of this problem.