-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] Error with inv_sig_helper after multiple restart attempts #5108
Comments
Confirm. Same on my instance. Residential IP. |
Same on my instance, on a residential IP. Here is the full rust backtrace from inv_sig_helper
|
https://pol1.pi.ggtyler.dev/ runs strangely enough without any problems. |
Would invidious companion fix this? (looks like an experiment slowly being rolled out) |
Matrix message. |
@rottenwheel Thanks. It mostly works now but I'm still getting an error in logs: ERROR inv_sig_helper_rust::jobs] JavaScript interpreter error (nsig code): Some(Exception { message: Some("'decrypt_nsig' is not defined"), file: None, line: Some(1), column: Some(1), stack: Some(" at <eval> (eval_script:1:1)\n") }) |
That fix just prevents the inv_sig_helper from crashing, but doesn't solve the issue. The player JS has changed and it looks like its not the only thing. In order to fix the matching problem you need to change the REGEX_SIGNATURE_FUNCTION line in src/const.rs to:
This will make the inv_sig_helper work just as before, unfortunately (at least for me) it doesn't mean that invidious will play the videos as it looks like something else has changed too. |
Closing in favor of iv-org/inv_sig_helper#36 |
Describe the bug
When restarting docker container, repeated errors on inv_sig_helper happen, and can't run the service.
Steps to Reproduce
1 Pull new docker images
2 Bring up docker container with docker-compose up -d
Logs
Attaching to invidious_invidious_1, invidious_invidious-db_1, invidious_inv_sig_helper_1
inv_sig_helper_1 | [2024-12-09T17:41:05Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:05Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:05Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:07Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:08Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:08Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:09Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:10Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:10Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:11Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:12Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:12Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:13Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:14Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:14Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:16Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:17Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:17Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:21Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:21Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:21Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:28Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:29Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:29Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:41:43Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:41:44Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:41:44Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:42:10Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:42:11Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:42:11Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinv_sig_helper_1 | [2024-12-09T17:43:03Z INFO inv_sig_helper_rust] Fetching player
inv_sig_helper_1 | [2024-12-09T17:43:03Z INFO inv_sig_helper_rust::player] Fetching player JS URL: https://www.youtube.com/s/player/3bb1f723/player_ias.vflset/en_US/base.js
inv_sig_helper_1 | [2024-12-09T17:43:03Z WARN inv_sig_helper_rust::player] nsig function ending did not work: =\sfunction(([\w]+){\svar\s+[\w\s]+=[\w.\s]+?.call\s*([\w\s$]+?,[()",\s]+)[\S\s]?}\sreturn [\w.\s$]+?.call\s*([\w\s$]+?\s*,[()",\s]+)\s*}\s*;)
inv_sig_helper_1 | thread 'main' panicked at src/player.rs:150:10:
inv_sig_helper_1 | called
Option::unwrap()
on aNone
valueinv_sig_helper_1 | note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceinvidious-db_1 |
invidious-db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
invidious-db_1 |
invidious-db_1 | 2024-12-09 17:41:06.018 UTC [1] LOG: starting PostgreSQL 14.15 (Debian 14.15-1.pgdg120+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
invidious-db_1 | 2024-12-09 17:41:06.018 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
invidious-db_1 | 2024-12-09 17:41:06.018 UTC [1] LOG: listening on IPv6 address "::", port 5432
invidious-db_1 | 2024-12-09 17:41:06.155 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
invidious-db_1 | 2024-12-09 17:41:06.238 UTC [27] LOG: database system was shut down at 2024-12-09 17:39:48 UTC
invidious-db_1 | 2024-12-09 17:41:06.290 UTC [1] LOG: database system is ready to accept connections
invidious_1 | 2024-12-09 17:41:07 UTC [info] SigHelper: Using helper at 'inv_sig_helper:12999'
invidious_1 | 2024-12-09 17:41:08 UTC [info] SigHelper: Connection to helper died with 'Error reading socket (#TCPSocket:0x7ffee7716d20): Connection reset by peer' trying to reconnect...
invidious_1 | 2024-12-09 17:41:11 UTC [info] SigHelper: Using helper at 'inv_sig_helper:12999'
invidious_1 | 2024-12-09 17:41:11 UTC [info] SigHelper: Reconnected to SigHelper!
invidious_1 | 2024-12-09 17:41:12 UTC [info] SigHelper: Connection to helper died with 'Error reading socket (#TCPSocket:0x7ffee7716930): Connection reset by peer' trying to reconnect...
invidious_1 | 2024-12-09 17:41:21 UTC [info] SigHelper: Using helper at 'inv_sig_helper:12999'
invidious_1 | 2024-12-09 17:41:21 UTC [info] SigHelper: Reconnected to SigHelper!
invidious_1 | 2024-12-09 17:41:21 UTC [info] SigHelper: Connection to helper died with 'Error reading socket (#TCPSocket:0x7ffee7716540): Connection reset by peer' trying to reconnect...
invidious_1 | 2024-12-09 17:41:44 UTC [info] SigHelper: Using helper at 'inv_sig_helper:12999'
invidious_1 | 2024-12-09 17:41:44 UTC [info] SigHelper: Reconnected to SigHelper!
invidious_1 | 2024-12-09 17:41:44 UTC [info] SigHelper: Connection to helper died with 'Error reading socket (#TCPSocket:0x7ffee741fd20): Connection reset by peer' trying to reconnect...
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: