Closed tankdeer closed 5 months ago
Funny enough, after opening this there appears to be a slight change in behavior. We are still stuck in a loop trying to log in, but it's no longer entering the username over and over. Presumably it never gets that far:
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T11:55:55 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
The side effect being that it's no longer using a ton of resources, but of course still doesn't help in retrieving any data.
Ok, one more. As a test I restarted the addon again, and it went back to the first pattern - trying to populate the username and eating all the memory on the host.
2024-06-04T14:25:56 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:25:56 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:25:58 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:25:58 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:01 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:01 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:04 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:04 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:08 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:08 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:10 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:10 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:13 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:13 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:15 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:15 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:18 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:18 INFO: Entering username (URL: https://login.xfinity.com/login)
2024-06-04T14:26:20 DEBUG: Finished loading page (URL: https://login.xfinity.com/login)
2024-06-04T14:26:20 INFO: Entering username (URL: https://login.xfinity.com/login)
LMK if there's anything else you need to me to diagnose
Patrick,
Hang tight I'll see what I can do. I'm also trying ti figure out a similar issue with another user. Currently in my setup things are still working but I'm curious if Xfinity is slowly making changes across customers or locations which is why I don't see the issue yet. In the meantime, you could try my new dev repo? It does have a minor change that identifies the login input tags better. Xfinity changed the username sign in button to now say "Let's Go". This new branch upgrades some of the python components and enters the username and password more slowly to replicate a user typing. And then simply presses Enter instead of clicking on the submit button.
https://github.com/thor0215/hassio-xfinity-usage-dev
Let me know if that works any better, Bryan
On Tue, Jun 4, 2024 at 4:27 PM Patrick @.***> wrote:
Ok, one more. As a test I restarted the addon again, and it went back to the first pattern - trying to populate the username and eating all the memory on the host.
2024-06-04T14:25:56 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:25:56 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:25:58 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:25:58 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:01 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:01 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:04 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:04 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:08 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:08 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:10 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:10 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:13 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:13 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:15 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:15 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:18 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:18 INFO: Entering username (URL: https://login.xfinity.com/login) 2024-06-04T14:26:20 DEBUG: Finished loading page (URL: https://login.xfinity.com/login) 2024-06-04T14:26:20 INFO: Entering username (URL: https://login.xfinity.com/login)
image.png (view on web) https://github.com/thor0215/hassio-xfinity-usage/assets/48227886/8182590b-1a62-4da6-9cab-f6e34d554c8f
LMK if there's anything else you need to me to diagnose
— Reply to this email directly, view it on GitHub https://github.com/thor0215/hassio-xfinity-usage/issues/9#issuecomment-2148443697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7JXGLLYWNFPQITERYHKCTZFYWKZAVCNFSM6AAAAABIY5ZMGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGQ2DGNRZG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks. Installed the dev branch version and so far so good. I will keep an eye on it to see how it behaves over the next couple days
Please upgrade to 0.0.9.4 in the dev branch and let me know the results when you can.
On Tue, Jun 4, 2024 at 9:02 PM Patrick @.***> wrote:
Thanks. Installed the dev branch version and so far so good. I will keep an eye on it to see how it behaves over the next couple days
— Reply to this email directly, view it on GitHub https://github.com/thor0215/hassio-xfinity-usage/issues/9#issuecomment-2148721568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7JXGOLULSO2XLKCXYQU6TZFZWS7AVCNFSM6AAAAABIY5ZMGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYG4ZDCNJWHA . You are receiving this because you commented.Message ID: @.***>
Please upgrade to 0.0.9.4 in the dev branch and let me know the results when you can.
Done! Will let you know how it goes
I have one more minor change to the addon that will help speed the addon build time a bit. I just pushed that to the dev branch, let me know if you have any issues once you've upgraded to 0.0.9.5.
On Wed, Jun 5, 2024 at 7:45 PM Patrick @.***> wrote:
Please upgrade to 0.0.9.4 in the dev branch and let me know the results when you can.
Done! Will let you know how it goes
— Reply to this email directly, view it on GitHub https://github.com/thor0215/hassio-xfinity-usage/issues/9#issuecomment-2151179710, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7JXGNLIZ7M3ELMIEUVPXLZF6WLRAVCNFSM6AAAAABIY5ZMGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRGE3TSNZRGA . You are receiving this because you commented.Message ID: @.***>
Installed
At some point I noticed my HA system was sluggish, and realized it was due to extremely high resource usage. After some debugging, I determined this addon was the cause.
The root of the issue appears to be us getting stuck in a login loop. I suspect Xfinity may have changed something on their end? In either case, the addon is not handling it gracefully. Below is the log from a fresh start of the addon with debug logging enabled. You'll see that it just keeps trying to enter the username. This login loop will go indefinitely. Note that this account does not have 2FA enabled & I can log into it manually without issue.
The bigger issue is that as this loop continues, it slowly eats up all my system resources, including several times forcing a reboot. This all appeared to start at ~5:15AM Pacific Time, yesterday, which is what makes me suspect they changed something on behind the scenes on the login page and pushed it around that time - nothing else has changed on my end. This might be a little tough to read, but you can see around that time memory (followed naturally by swap) & CPU usage start to climb, and the CPU temp shoots up too. Then there are sudden drops (crashes of either HA or a full reboot) & the cycle repeats.
The dip around 8:30AM today was when I realized the cause and stopped the addon. Then I restarted it and everything started to climb again.
The way I see it there are a couple of related issues here: