Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login Tokens being instantly banned? #3580

Open
Joshndroid opened this issue Jan 19, 2023 · 13 comments
Open

Login Tokens being instantly banned? #3580

Joshndroid opened this issue Jan 19, 2023 · 13 comments

Comments

@Joshndroid
Copy link

Joshndroid commented Jan 19, 2023

I have some weird new behaviour that has cropped up in the last week in that when i log into my self hosted account it appears that the tokens are instantly red, and no video/etc loads ('the media could not be loaded, either because the server or network failed or because the format is not supported'). I assume this is being blacklisted or something.

It seems it happens only for my user and it occurs across 2 different devices that I try to use with my invidious instance.

When i revoke the now red/banned token I can view videos once again but I am logged out, without my subscriptions.

Looking in the invidious docker logs I can't see anything where it fails.

Any tips on where i might be going wrong? It's been solid for many many months

@unixfox
Copy link
Member

unixfox commented Jan 20, 2023

What do you actually mean by a token?

@Joshndroid
Copy link
Author

In the 'manage token' section i see that it appears that there is an associated token for when you login. Each time these seem to go red straight away. Once i revoke that token I can browse and view videos but no longer am logged into my account. I kinda figured it was to do with logging in but in hindsight i am not entirely sure

@unixfox
Copy link
Member

unixfox commented Jan 20, 2023

Please post a screenshot of what you said.

@Joshndroid
Copy link
Author

_20230120_180616
_20230120_180633
_20230120_180647

The video doesn't work while logged in.. Go to manage tokens, delete the red token then go back to video (no longer logged in now), the video works

@Joshndroid
Copy link
Author

Joshndroid commented Jan 20, 2023

And if you log in fresh again, I am getting another red token.. So need to delete it and stay not logged in

@Joshndroid
Copy link
Author

IMG_20230120_181151

@unixfox
Copy link
Member

unixfox commented Jan 20, 2023

Did you set HMAC_KEY in the config file to a fixed value?

@SamantazFox
Copy link
Member

And if you log in fresh again, I am getting another red token.. So need to delete it and stay not logged in

A red token means that it's the current session!

@Joshndroid
Copy link
Author

No i had that as false.
For sanity i set it up as true, made sure my domain was set (it was) and generated a base64 string for the hmac_key but this didn't fix it.

@Joshndroid
Copy link
Author

And if you log in fresh again, I am getting another red token.. So need to delete it and stay not logged in

A red token means that it's the current session!

Okay so the current session is in red, that would explain why when i revoke it i'm logged out.

Sadly still can't seem to get my logged in user working at present.

Double checking the invidious container log i can see

2023-01-21 04:47:03 UTC [error] RefreshChannelsJob: UCKe34IEj6kvAh652xVLIYRQ : Deleted or invalid channel

@Joshndroid
Copy link
Author

Joshndroid commented Jan 21, 2023

Interestingly,
I created a new user. imported my subscriptions in again and it it working as expected.
Maybe my user became corrupted for some reason?

The other user's that have login to my instance were working this whole time. It was just my initial user that i created from the initial creation way back when.

I assume this will end up just being closed due to being one of those weird things but at present it seems to be working for me with a new user. I will keep this open for now and see what else i can find.

@SamantazFox
Copy link
Member

I assume this will end up just being closed due to being one of those weird things but at present it seems to be working for me with a new user. I will keep this open for now and see what else i can find.

That's indeed a very odd bug, and likely impossible for us to reproduce it.
Let us know if you find anything interesting!

@Joshndroid
Copy link
Author

So i fixed some of my settings on the 'new' user.... Usually i set DASH as the format and have it at prefer 1080p.

I noticed that when i went back to view videos it would not load exactly as before.

I have turned off dash and set it to HD720 to which it has then been able to play the videos.

I went back to my original user and tried again, it displayed the same behaviour.

Toggling proxy videos either on or off did not change the behaviour

@iv-org iv-org deleted a comment from sciclone1984 Aug 31, 2023
@iv-org iv-org deleted a comment from sciclone1984 Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants