-
Notifications
You must be signed in to change notification settings - Fork 157
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
add steps about sig_helper and potoken + depreciate gluetun guide #581
Conversation
5b7e501
to
29426c7
Compare
29426c7
to
9dac454
Compare
9dac454
to
ed2cf29
Compare
Can confirm, the solution is working fine for now. I will watch my instance for the next days and report any issues. Thanks a lot for the hard work, very appreciated! |
confirming it is functional on youchu.be |
Once again amazing work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than those minor changes, it's all good.
Tested and working
Co-authored-by: TheFrenchGhosty <[email protected]>
My private instance is working now with these changes. I'll tell you if something goes wrong. |
My semi-private instance is now working with these changes, thanks so much for the work done! 😄 |
Why is gluetun no longer needed? If you are regularly changing the visitor_data and po_token while behind a VPN, then doesn't that make the source ip and metadata less useful as 1000's of users would be coming from the same IP with also their own visitor_data and po_token? |
Can also confirm this is working beautifully so far. Thank you very much for your hard work! |
This comment has been minimized.
This comment has been minimized.
I updated my semi-private instance to the current Git version including po_token/visitor data and sig_helper and so far it works beautifully again. Thanks a lot to all who made this possible. EDIT by unixfox: don't advertise your instance here |
This worked perfectly on my locally hosted instance. Great work all! |
I've followed the instructions with my self-hosted private instance, which was again blocked today (after having a workaround-working for a while). I'm using portainer for various reasons (I'm looking to get away) so some of the steps I had to modify and do slightly differently - but it works perfectly so far. Excellent work Invidious Team. Thank you! Very much appreciated. Things I had to do: Original notes by the authorThe ``init-invidious-db.sh`` file I had to use an absolute path not a relative, and the inv_sig_helper my invidious didn't find it through the name, so I had to manually specify the IP. I also had to add the inv_sig_helper to my invidious 'network'.Included is the full config I have.
Edit: Typoed my copy of my config, and missed something else I did to fix ;) Remarks by unixfox: Not recommended using a fixed IP address because in a docker network, containers can change their private IP address when recreated so the setup will be broken at some point. |
looks like this method works for about two days. restarting the signature helper and rotating the resolved trusted session tokens resolves it. I may just write a bash script to handle this on a crontab. error from the signature helper before restarting:
|
|
If this is inv_sig_helper running in TCP, this looks like whatever client (Invidious or something else in the middle) on the other end of the connection forcefully reset the connection. Are you running inv_sig_helper in a seperate server? |
running a public instance google eventually rate limits the IPs. for us its about 2 days of 5-6000 unique visitors. I stop the invidious service, rotate the IPv6 address, generate a new token and restart the signature service and it works again for 2 days. does not fail always starts with google rate limiting the IP and rotating and running through the process always results in a positive service for 2 days |
@fjcloud @Happyfeet01 try to generate the tokens potoken and visitordata on another separate IP address to see if it's better. Like your home IP address. We have had some feedback about this working for some people. |
You are most likely running into another problem if you have running a public instance. Make sure to still have smart ipv6 rotator running. And make sure to block any bot usage, we have had some report from a public instance owner of rate limits by youtube. Message related to "browse endpoint rate limit exhausted" It was caused by bots spamming the instance. |
inv_sig_helper-1 | Fetching player JS URL: https://www.youtube.com/s/player/a87a9450/p
layer_ias.vflset/en_US/base.js
inv_sig_helper-1 | nsig function ending did not work: =\s*function(\([\w]+\)\{\s*var\s
+[\w\s]+=[\w\.\s]+?\.call\s*\([\w\s$]+?,[\(\)\",\s]+\)[\S\s]*?\}\s*return [\w\.\s$]+?\.
call\s*\([\w\s$]+?\s*,[\(\)\",\s]+\)\s*\}\s*;)
inv_sig_helper-1 | sig code: var dCa;var WK={YL:function(a,b){var c=a[0];a[0]=a[b%a.le
ngth];a[b%a.length]=c},
inv_sig_helper-1 | KY:function(a){a.reverse()},
inv_sig_helper-1 | qf:function(a,b){a.splice(0,b)}};dCa=function(a){a=a.split("");WK.q
f(a,1);WK.YL(a,43);WK.qf(a,3);WK.YL(a,23);WK.KY(a,60);WK.YL(a,3);WK.KY(a,11);WK.YL(a,22
);return a.join("")}
inv_sig_helper-1 | Successfully fetched player
...
invidious-1 | 2024-08-25 12:54:43 UTC [info] 200 GET /vi/o-cBA2DFLVs/mqdefault.jpg 584.28ms
invidious-1 | 2024-08-25 12:54:43 UTC [info] 200 GET /vi/JOCqCs6sl8k/mqdefault.jpg 377.65ms
invidious-1 | 2024-08-25 12:54:44 UTC [error] get_video: y92IoM_ERcg : This helps protect our community. Learn more
invidious-1 | 2024-08-25 12:54:44 UTC [warn] i18n: Missing translation key "This helps protect our community. Learn more"
invidious-1 | 2024-08-25 12:54:44 UTC [info] 500 GET /watch?v=y92IoM_ERcg 107.65ms
invidious-1 | 2024-08-25 12:54:44 UTC [info] 200 GET /vi/VhiyrpX09LU/hqdefault.jpg 435.87ms
invidious-1 | 2024-08-25 12:54:44 UTC [info] 200 GET /favicon-32x32.png?v=eda7444 19.44µs
invidious-1 | 2024-08-25 12:54:48 UTC [info] 200 GET /api/v1/comments/jNQXAC9IVRw 601.45ms
i still have the same issue. I've tried to generate the visitor_data and po_token both on the machine and my home but it doesnt work |
Working for me on my private instance. |
Has been working mostly fine for around a week & a half for me on https://invidious.materialio.us. Recently I've had issues with videos not loading but rotating the |
Also working for me on my semi-private instance. If you need a way to rotate the po_token and visitor_data automatically, here is a way: Create a new script and take note of the path (in this example: /opt/script/refresh-inv-token.sh)
Replace the Give it execution permissions: Modify the crontab, to make the script run periodically with
This line makes the script run every hour at minute 0. If you wish to make the script run once every 2 hours or more, replace the first
EDIT: I just saw there was a similar method posted on here: #580 (comment) |
Doesn't work for me on a private instance. No videos load unless I comment out inv_sig_helper output
|
For me, the po_token/visitor_data and the signature server parameter go hand in hand to resolve the YouTube-side checks. So, if you use inv_sig_helper, you also need to configure the po_token and the visitor_data parameters. |
Working fine on my personal instance (tested with both latest and master images). Many thanks. |
I can confirm |
Will delete if this is just noise but I want to confirm this is working for me as well, although I'm noticing my db will exit more frequently than usual. It is also working with Materialious.
|
After Working fine a few weeks using inv_sig_helper and the po/visitor token, today I was again greeted by the "This helps protect our community. Learn more ". I tried refreshing the tokens, now I can watch a video after refreshing a bunch of times, but most of the time it takes a few refreshes. Maybe they blocked my IP somehow (using a static IPv4 that i can not change). |
Same for me since today. No more video will load even with po_token and visitor-data change ;-( |
this is also broken for us after rotating ipv6 and switching ipv6 /64 to a previously unused /64 |
This comment has been minimized.
This comment has been minimized.
Unfortunately, we seem to be back at step 1: This will help to protect our community. Several public instances seem to be affected as well as my own. I already tried refreshing tokens and switch to alternate IPv4 or IPv6 addresses using Source NAT, nothing helps. (At first, reloading the browser window several times helped, but it no longer works now. It seems it was only a temporary solution while YouTube was still in the process to roll-out the latest changes to their servers.) |
A new fix has been delivered in the master docker image: iv-org/invidious#4928 Which fixes the latest issue related to Reminder:
|
just merged the most recent commit and it's functional on youchu.be additionally, it seems as an aside that all videos now say "Shared September 19, 2024" instead of their actual posting date |
Yep unfortunately the workaround means that we cannot parse the video's published time (along with some other info) the way we currently do as that data isn't returned there anymore. |
With new update it worked for some hours, now I'm getting: |
this is also happening since about 6PM EST. have rotated addresses within the ipv6 /64, assigned a new one via tunnelbroker and forced ipv4 to test all of which result in the same response "Sign in to confirm you're not a bot." |
Yes unfortunately they patch all the current workarounds. I have made an announcement: iv-org/invidious#4734 (comment) Join our matrix or IRC to discuss more. Don't go offtopic here thank you. |
Update 21/09/2024: This technique doesn't work anymore, read the announcement here: iv-org/invidious#4734 (comment)
The installation guide (Docker, Linux and MacOS) has been reflected on how to setup the new tools that will solve the error message
"This helps protect our community."
.Please read the rendered markdown here for updating your Invidious installation: https://github.com/iv-org/documentation/blob/sig_helper_po_token/docs/installation.md. If you are using Docker, you need to switch to the Docker tag
:master
, like so:Because the code is not yet ready for a stable release. It's better to switch back to
:latest
after this pull request has been merged.If you have any bug regarding sig_helper or generating a potoken, please open a GitHub issue on the Invidious repository. Make sure this is not a miss-configuration issue on your side, if you are unsure, please ask your question on Matrix or IRC.
If you have previously setup inv_sig_helper manually, please use the updated docker-compose one because this tool runs untrusted code from Google. You don't want to get anything nasty from Google themselves.
Also, this pull request delist gluetun which is not a recommended workaround anymore. Since this is ultimately delaying the ban until YouTube detects the need to block your public IP address.
Fixes #580