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.

Problems during first login

See original GitHub issue

Versions

Configuration

Google Account

Since I have 2FA enabled, I have created an application password.

Home Assistant

This component does not need configuration in yaml format but you can check how to install it or the complete configuration in my repository:

All the configuration and plugins work perfectly, only this one fails.

Describe the bug

After installing the plugin, I tried to configure it but, after entering my login details, it fails with the following error:

 Username/Password is incorrect. If your google account has 2FA enabled please generate app password (https://myaccount.google.com/apppasswords) 

and in the home-assistant logs I can see the following:

Logger: glocaltokens.client
Source: /usr/local/lib/python3.8/site-packages/glocaltokens/client.py:169
First occurred: 8:42:50 PM (1 occurrences)
Last logged: 8:42:50 PM

[!] Could not get master token.

Debug log

I tried to debug a bit more and discovered that here the variable res contain the value Error=BadAuthentication.

I can probe further but first I wanted to know if this is a known bug since it seems to be related to https://github.com/simon-weber/gpsoauth/issues/24.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ManuelLRcommented, Apr 8, 2021

Just for your information, today I updated HA and the ingration to the latest releases (2021.4 and v1.3.0) and magically all works perfectly. I can configure the integration without problems, retrieve data and also delete timers.

Really thanks for your help here!

2reactions
ManuelLRcommented, Mar 17, 2021

No, I am having a lot of work and have not been able to dedicate much time to it. Just yesterday I did another test but nothing remarkable, I repeat my last test in the server and works so it seems that it is not a Debian or similar problem. When I have some time I will test with all the active integrations to see if it is something strange with some integration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Problems During the Windows Login Process
A failed update or one-time startup process can sometimes cause stopping, freezing, or reboot-loop issues during the login process.
Read more >
first time login on windows 10 failure - Microsoft Community
I upgraded a laptop from windows 7 to windows 10. It had a local account on it and I am unable to log...
Read more >
How to Fix Windows 10 Login Problems [EXPERT GUIDE]
In this guide, you will learn how to fix Windows 10 login problems using 8 different methods. Let's get started.
Read more >
10 Most Common Security Issues Found in Login Functionalities
This blog discusses the common vulnerabilities or misconfigurations that a threat actor can exploit on login functionality & some ...
Read more >
How To Fix Windows 10 Login Problems - YouTube
You can use PassFab 4WinKey ( Windows Password Key ) to unlock Windows Administrator password within 3 steps http://bit.ly/3q707KbIn this ...
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