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

[Issue]Torrentio failed to initialize: Request failed: 403 Client Error: Forbidden for url: https://torrentio.strem.fun/sort=qualitysize%7Cqualityfilter=480p,scr,cam,unknown/manifest.json #1004

Closed
4 tasks done
andy3471 opened this issue Feb 15, 2025 · 2 comments

Comments

@andy3471
Copy link

andy3471 commented Feb 15, 2025

Prerequisites

Environment

  • Riven Version:
  • Deployment Method: Docker Compose
  • Operating System: Ubuntu

Current Behavior

When Riven boots, I get the error: 25-02-15 16:44:04 | ❌ ERROR | torrentio.validate - Torrentio failed to initialize: Request failed: 403 Client Error: Forbidden for url: https://torrentio.strem.fun/sort=qualitysize%7Cqualityfilter=480p,scr,cam,unknown/manifest.json

This URL works fine in a browser and does not return a 403, so it appears to only affect Riven.

Expected Behavior

TorrentIO to initialize correctly

Steps To Reproduce

  1. Deploy via docker compose (tested on latest and dev)
  2. Enable TorrentIO
  3. Check Deployment Logs

Logs

Log Output
25-02-15 16:44:03 | 👾 API       | main.dispatch - POST /api/v1/settings/save - 200 - 0.00s

25-02-15 16:44:03 | ✔️  SUCCESS   | overseerr.__init__ - Overseerr initialized!

25-02-15 16:44:04 | 🤷‍ NOT_FOUND | knightcrawler.scrape - No streams found for Pokémon S09

25-02-15 16:44:04 | 👻 SCRAPER   | zilean.scrape - Found 1 streams for Pokémon S09

25-02-15 16:44:04 | 👻 SCRAPER   | shared._parse_results - Processing 1 results for Pokémon S09

25-02-15 16:44:04 | ✔️  SUCCESS   | plex_watchlist.__init__ - Plex Watchlist initialized!

25-02-15 16:44:04 | ❌ ERROR     | torrentio.validate - Torrentio failed to initialize: Request failed: 403 Client Error: Forbidden for url: https://torrentio.strem.fun/sort=qualitysize%7Cqualityfilter=480p,scr,cam,unknown/manifest.json

25-02-15 16:44:04 | ✔️  SUCCESS   | knightcrawler.__init__ - Knightcrawler initialized!

25-02-15 16:44:04 | 🤷‍ NOT_FOUND | __init__.scrape - No streams to process for Pokémon S09

25-02-15 16:44:04 | 🤷‍ NOT_FOUND | __init__.run - Scraping returned no good results for Pokémon S09

25-02-15 16:44:04 | ✔️  SUCCESS   | mediafusion.__init__ - Mediafusion initialized!

25-02-15 16:44:04 | ✔️  SUCCESS   | prowlarr.__init__ - Prowlarr initialized!

25-02-15 16:44:04 | ✔️  SUCCESS   | zilean.__init__ - Zilean initialized!

25-02-15 16:44:04 | 📰 INFO      | symlink.__init__ - Rclone path symlinks are pointed to: /mnt/zurg/__all__

25-02-15 16:44:04 | 📰 INFO      | symlink.__init__ - Symlinks will be placed in: /mnt/library

25-02-15 16:44:04 | ✔️  SUCCESS   | symlink.__init__ - Symlink initialized!

25-02-15 16:44:05 | ✔️  SUCCESS   | plex.__init__ - Plex Updater initialized!

25-02-15 16:44:05 | ✔️  SUCCESS   | jellyfin.__init__ - Jellyfin Updater initialized!

25-02-15 16:44:05 | 📰 INFO      | realdebrid._validate_premium - Your account expires in 179 days.

25-02-15 16:44:05 | ⚠️  WARNING   | subliminal.__init__ - Could not initialize provider: opensubtitles.

25-02-15 16:44:05 | 👾 API       | main.dispatch - GET /api/v1/settings/load - 200 - 1.65s

Configuration

Configuration
{
    "version": "0.20.1",
    "api_key": "removed",
    "debug": false,
    "debug_database": false,
    "log": true,
    "force_refresh": false,
    "map_metadata": true,
    "tracemalloc": false,
    "symlink": {
        "rclone_path": "/mnt/zurg/__all__",
        "library_path": "/mnt/library",
        "separate_anime_dirs": true,
        "repair_symlinks": true,
        "repair_interval": 6.0
    },
    "updaters": {
        "updater_interval": 120,
        "plex": {
            "enabled": true,
            "token": "removed",
            "url": "removed"
        },
        "jellyfin": {
            "enabled": true,
            "api_key": "removed",
            "url": "removed"
        },
        "emby": {
            "enabled": false,
            "api_key": "",
            "url": "http://localhost:8096"
        }
    },
    "downloaders": {
        "video_extensions": [
            "mp4",
            "mkv",
            "avi"
        ],
        "movie_filesize_mb_min": 0,
        "movie_filesize_mb_max": -1,
        "episode_filesize_mb_min": 0,
        "episode_filesize_mb_max": -1,
        "proxy_url": "",
        "real_debrid": {
            "enabled": true,
            "api_key": "removed"
        },
        "all_debrid": {
            "enabled": false,
            "api_key": ""
        }
    },
    "content": {
        "overseerr": {
            "update_interval": 30,
            "enabled": true,
            "url": "removed",
            "api_key": "removed",
            "use_webhook": true
        },
        "plex_watchlist": {
            "update_interval": 60,
            "enabled": true,
            "rss": [
                "removed"
            ]
        },
        "mdblist": {
            "update_interval": 300,
            "enabled": false,
            "api_key": "",
            "lists": []
        },
        "listrr": {
            "update_interval": 300,
            "enabled": false,
            "movie_lists": [],
            "show_lists": [],
            "api_key": ""
        },
        "trakt": {
            "update_interval": 300,
            "enabled": false,
            "api_key": "",
            "watchlist": [],
            "user_lists": [],
            "collection": [],
            "fetch_trending": false,
            "trending_count": 10,
            "fetch_popular": false,
            "popular_count": 10,
            "fetch_most_watched": false,
            "most_watched_period": "weekly",
            "most_watched_count": 10,
            "oauth": {
                "oauth_client_id": "",
                "oauth_client_secret": "",
                "oauth_redirect_uri": "",
                "access_token": "",
                "refresh_token": ""
            }
        }
    },
    "scraping": {
        "after_2": 2.0,
        "after_5": 6,
        "after_10": 24,
        "parse_debug": false,
        "enable_aliases": true,
        "bucket_limit": 5,
        "torrentio": {
            "enabled": true,
            "filter": "sort=qualitysize%7Cqualityfilter=480p,scr,cam,unknown",
            "url": "https://torrentio.strem.fun",
            "timeout": 30,
            "ratelimit": false,
            "proxy_url": ""
        },
        "knightcrawler": {
            "enabled": true,
            "filter": "sort=qualitysize%7Cqualityfilter=480p,scr,cam,unknown",
            "url": "https://knightcrawler.elfhosted.com/",
            "timeout": 30,
            "ratelimit": false
        },
        "jackett": {
            "enabled": false,
            "url": "http://localhost:9117",
            "api_key": "",
            "timeout": 10,
            "ratelimit": false
        },
        "prowlarr": {
            "enabled": true,
            "url": "http://gluetun:9696",
            "api_key": "removed",
            "timeout": 10,
            "ratelimit": false,
            "limiter_seconds": 60
        },
        "orionoid": {
            "enabled": false,
            "api_key": "",
            "cached_results_only": false,
            "parameters": {
                "video3d": false,
                "videoquality": "sd_hd8k",
                "limitcount": 5
            },
            "timeout": 10,
            "ratelimit": false
        },
        "mediafusion": {
            "enabled": true,
            "url": "https://mediafusion.elfhosted.com",
            "timeout": 10,
            "ratelimit": false
        },
        "zilean": {
            "enabled": true,
            "url": "http://zilean.elfhosted.com",
            "timeout": 30,
            "ratelimit": false
        },
        "comet": {
            "enabled": false,
            "url": "http://localhost:8000",
            "indexers": [],
            "timeout": 30,
            "ratelimit": false
        }
    },
    "ranking": {
        "profile": "best",
        "require": [],
        "exclude": [],
        "preferred": [],
        "resolutions": {
            "r2160p": true,
            "r1080p": true,
            "r720p": true,
            "r480p": false,
            "r360p": false,
            "unknown": true
        },
        "options": {
            "title_similarity": 0.85,
            "remove_all_trash": true,
            "remove_ranks_under": -10000,
            "remove_unknown_languages": false,
            "allow_english_in_languages": false,
            "enable_fetch_speed_mode": true,
            "remove_adult_content": true
        },
        "languages": {
            "required": [],
            "exclude": [
                "ar",
                "hi",
                "fr",
                "es",
                "de",
                "ru",
                "pt",
                "it"
            ],
            "preferred": []
        },
        "custom_ranks": {
            "quality": {
                "av1": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "avc": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "bluray": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dvd": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "hdtv": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "hevc": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "mpeg": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "remux": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "vhs": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "web": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "webdl": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "webmux": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "xvid": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                }
            },
            "rips": {
                "bdrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "brrip": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dvdrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "hdrip": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "ppvrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "satrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "tvrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "uhdrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "vhsrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "webdlrip": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "webrip": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                }
            },
            "hdr": {
                "bit10": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dolby_vision": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "hdr": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "hdr10plus": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "sdr": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                }
            },
            "audio": {
                "aac": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "ac3": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "atmos": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dolby_digital": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dolby_digital_plus": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dts_lossy": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dts_lossless": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "eac3": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "flac": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "mono": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "mp3": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "stereo": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "surround": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "truehd": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                }
            },
            "extras": {
                "three_d": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "converted": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "documentary": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "dubbed": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "edition": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "hardcoded": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "network": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "proper": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "repack": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "retail": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "site": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "subbed": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "upscaled": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "scene": {
                    "fetch": true,
                    "use_custom_rank": false,
                    "rank": 0
                }
            },
            "trash": {
                "cam": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "clean_audio": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "pdtv": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "r5": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "screener": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "size": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "telecine": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                },
                "telesync": {
                    "fetch": false,
                    "use_custom_rank": false,
                    "rank": 0
                }
            }
        }
    },
    "indexer": {
        "update_interval": 3600
    },
    "database": {
        "host": "removed"
    },
    "notifications": {
        "enabled": false,
        "title": "Riven completed something",
        "on_item_type": [],
        "service_urls": []
    },
    "post_processing": {
        "subliminal": {
            "enabled": true,
            "languages": [
                "eng"
            ],
            "providers": {
                "opensubtitles": {
                    "enabled": true,
                    "username": "removed",
                    "password": "removed"
                },
                "opensubtitlescom": {
                    "enabled": false,
                    "username": "",
                    "password": ""
                }
            }
        }
    }
}

Additional Context

Screenshots

@davidemarcoli
Copy link
Collaborator

Are you running it on a machine in a data center? Does it request Torrentio with a data center ip?

@AyushSehrawat
Copy link
Member

Hi @andy3471! Like @davidemarcoli mentioned you are blocked by torrentio (most likely data center ip)

❯ curl -I https://torrentio.strem.fun/manifest.json
HTTP/2 403 
❯ curl -I --proxy gluetun:8888 https://torrentio.strem.fun/manifest.json
HTTP/1.1 200 OK

You can solve this by using a proxy, recently i have added proxy_url option in torrentio in settings.json

I use gluetun HTTPPROXY

services:
    gluetun:
        container_name: gluetun
        image: qmcgaw/gluetun
        cap_add:
            - NET_ADMIN
        devices:
            - /dev/net/tun:/dev/net/tun
        ports:
            - 127.0.0.1:8888:8888/tcp # HTTP proxy
        volumes:
            - gluten:/gluetun
        environment:
            - VPN_SERVICE_PROVIDER=windscribe
            - VPN_TYPE=wireguard
            - WIREGUARD_PRIVATE_KEY=...
            - WIREGUARD_ADDRESSES=...
            - WIREGUARD_PRESHARED_KEY=...
            - WIREGUARD_ENDPOINT_PORT=443
            - SERVER_REGIONS=India
            - SERVER_CITIES=Mumbai
            - HTTPPROXY=on

volumes:
    gluten:

#networks: # if using external network, recommended if not in same compose file
#    default:
#        name: name
#        external: true

Then in settings.json, under torrentio set proxy_url

"proxy_url": "http://gluetun:8888"

Another option is to wrap the whole riven instance with gluetun., but not required if torrentio is the only issue.

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