question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authentication failed with IBEAM_MAX_FAILED_AUTH=5

See original GitHub issue

First 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cpawelzikcommented, Feb 14, 2022

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

0reactions
Voyzcommented, Feb 18, 2022

@elaamrani thanks for sharing your issue too. I’d recommend getting in touch with IBKR support to make them more aware of this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Always get "Authentication failed" when i input correct ...
When I git pull or push, I alwasys get "Authentication failed" when i input correct username and password. I used https method.
Read more >
SMTP Error 535 Authentication Failed - How to Fix?
Read the article on common causes for the SMTP Error 535 Authentication Failed message and solutions to fix them.
Read more >
Authentication automatically fails in Microsoft 365 services
Symptoms. Authentication automatically fails in some Microsoft Office applications and Outlook may go into the "Need Password" state without any ...
Read more >
Steps to resolve authentication failed email error when adding ...
The Account is not authenticated with Google/Google authentication failed email (most common issue); 2-Step verification gmail; Authenticate by ...
Read more >
Samsung Galaxy S5: Fix Authentication Failed Error for ...
Learn how you can fix the Authentication Failed error when setting up Outlook or Hotmail email account on the Samsung Galaxy S5.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found