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

[Question] "The media could not be loaded, either because the server or network failed or because the format is not supported." - inv_sig_helper missing #4947

Closed
DUOLabs333 opened this issue Sep 24, 2024 · 54 comments
Labels
question Further information is requested

Comments

@DUOLabs333
Copy link
Contributor

DUOLabs333 commented Sep 24, 2024

Solution here: #4947 (comment)


Describe the bug
For almost all videos (shorts and a few other videos seem to be immune), I started getting this error: "The media could not be loaded, either because the server or network failed or because the format is not supported." This started about 2 days ago.

Steps to Reproduce

  1. Go to https:///watch?v=tPTvG0Se7L8
  2. See error

Logs

Screenshots

Additional context

  • Browser (if applicable): Chrome 120
  • OS (if applicable): macOS 11

I tried adding the po_token and visitor_data from https://github.com/iv-org/youtube-trusted-session-generator, but it didn't help.

Switching to master-arm64 also didn't help.

@DUOLabs333 DUOLabs333 added the bug Something isn't working label Sep 24, 2024
@DUOLabs333

This comment was marked as off-topic.

@thebozzcl

This comment was marked as resolved.

@DUOLabs333

This comment was marked as resolved.

@kkwpsi

This comment was marked as duplicate.

@danvolchek

This comment was marked as resolved.

@danvolchek

This comment was marked as resolved.

@unixfox

This comment was marked as resolved.

@DUOLabs333

This comment was marked as resolved.

@unixfox unixfox transferred this issue from iv-org/invidious Sep 24, 2024
@TropicZL1

This comment was marked as duplicate.

@DUOLabs333

This comment was marked as resolved.

@TropicZL1

This comment was marked as duplicate.

@DUOLabs333

This comment was marked as duplicate.

@DUOLabs333

This comment was marked as duplicate.

@DUOLabs333

This comment was marked as resolved.

@TropicZL1

This comment was marked as resolved.

@DUOLabs333

This comment was marked as off-topic.

@TropicZL1

This comment was marked as resolved.

@DUOLabs333
Copy link
Contributor Author

DUOLabs333 commented Sep 24, 2024

Oh, I think it does work, but cached videos (even those that were opened unsuccessfully) are not sent to the helper.

Yeah, truncation was needed (I remembered the command --- psql -d invidious -c 'TRUNCATE TABLE videos')

Are you managing your containers in Portainer?

No, I use my own scripts.

@TropicZL1

This comment was marked as resolved.

@DUOLabs333

This comment was marked as resolved.

@DUOLabs333

This comment was marked as resolved.

@danvolchek

This comment was marked as duplicate.

@unixfox unixfox transferred this issue from iv-org/inv_sig_helper Sep 25, 2024
@github-actions github-actions bot added the duplicate This issue or pull request already exists label Sep 25, 2024
@UltraBlackLinux

This comment was marked as resolved.

@iv-org iv-org deleted a comment from github-actions bot Sep 25, 2024
@unixfox
Copy link
Member

unixfox commented Sep 25, 2024

Also fixed the problem for me (also for previously failed videos); also did not know that this was needed. It's in the install docs already, but I didn't know it changed/had an update.

Some sort of notification for new install requirements would be cool!

Thanks for the info/fix :)

Invidious has releases now! With a changelog of what changed: https://github.com/iv-org/invidious/releases/tag/v2.20240825

So there were technically an announcement back in the end of august.


So you need to add inv_sig_helper and potoken now. By following the updated documentation: https://docs.invidious.io/installation/


potoken and inv_sig_helper are not an hard requirement since some IP address may still work on the old method.

If you haven't followed there were actually a constant fight against youtube from June to September: #4734.

Invidious lost for the moment and the IP addresses of most datacenter are blocked.

@thebozzcl

This comment has been minimized.

@MenacingMight

This comment has been minimized.

@DUOLabs333

This comment has been minimized.

@cleancoda

This comment has been minimized.

@MenacingMight

This comment has been minimized.

@MSWS
Copy link

MSWS commented Sep 26, 2024

If anyone wants to keep rotating the tokens, I wrote this small script which you can run in a cronjob:

output=$(docker run quay.io/invidious/youtube-trusted-session-generator)

visitor_data=$(echo "$output" | awk -F': ' '/visitor_data/ {print $2}')
po_token=$(echo "$output" | awk -F': ' '/po_token/ {print $2}')

sed -i "s/visitor_data:.*/visitor_data: $visitor_data/" docker-compose.yml
sed -i "s/po_token:.*/po_token: $po_token/" docker-compose.yml

docker compose up -d invidious

A small enhancement I made to this script allows for specifying these variables in a .env instead of in the compose directly. Also added the --rm flag so we don't create a dangling container every time.

#!/usr/bin/env bash

output=$(docker run --rm quay.io/invidious/youtube-trusted-session-generator)

visitor_data=$(echo "$output" | awk -F': ' '/visitor_data/ {print $2}')
po_token=$(echo "$output" | awk -F': ' '/po_token/ {print $2}')

sed -i "s/VISITOR_DATA=.*/VISITOR_DATA=$visitor_data/" [PATH]/.env
sed -i "s/PO_TOKEN=.*/PO_TOKEN=$po_token/" [PATH]/.env

docker compose -f [PATH]/compose.yml up --force-recreate -d

@DX37

This comment has been minimized.

@porchthecoder

This comment was marked as duplicate.

@cpumaxx

This comment has been minimized.

@kkwpsi

This comment has been minimized.

@red0bear

This comment has been minimized.

@Bubba8291

This comment has been minimized.

@UltraBlackLinux

This comment has been minimized.

@tcsenpai

This comment has been minimized.

@Berkopl

This comment has been minimized.

@MenacingMight

This comment was marked as off-topic.

@Lucky-Lobo

This comment has been minimized.

@tcsenpai

This comment was marked as resolved.

@unixfox

This comment was marked as resolved.

@tcsenpai

This comment was marked as resolved.

@red0bear

This comment was marked as off-topic.

@tcsenpai

This comment was marked as resolved.

@red0bear

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests