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

WiP: Fix looping Cloudflare challenge, Resolves #1036 #1163

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ilike2burnthing
Copy link
Contributor

Thanks to @juanfrilla for #1036 (comment).

Unfortunately, currently this only works on Windows, and the looping challenges return if using proxies or VPNs.

@garfield69
Copy link
Contributor

garfield69 commented Apr 21, 2024

FWIW
My win10 is on chrome 124, and i don't use VPN or proxy.
I've tested this PR (as a source based python run), and it solves for trupornolabs, riperam, marinetracker, devil-torrents, 52BT, which were indexers that were giving me issues previoulsy.
Also tested against most of the other cloudflare protected indexers that were previously working for me, and they continue to work with this PR.
Some indexers however continue to fail, leporno still returns the invalid cookies error, and ext-torrents which now fails on ext.to but works for the other 2 alternate domains.

But after each solve there remains a chrome subtask that starts to spin up to 15% CPU and I have to manually kill them off.
Should I test using this PR win10 exe?
[edit] Oh wait, there isn't one.

@juanfrilla
Copy link

juanfrilla commented Apr 21, 2024

Another thing that I've noticed is that in the user-agent headless replacement:

                self.execute_cdp_cmd(
                    "Network.setUserAgentOverride",
                    {
                        "userAgent": self.execute_script(
                            "return navigator.userAgent"
                        ).replace("Headless", "")
                    },
                )

I don't know why but If I hardcode the user-agent using the exact that my computer has like this:

user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
options.add_argument(f"--user-agent={user_agent}")

it bypasses cloudflare, but if i put this to make it automatically like you have it on line 533 from src/undetected_chromedriver/__init__.py it does not work.

So an alternative could be to setup a driver only to get the user agent:

def get_user_agent(driver):
   return driver.execute_script("return navigator.userAgent;").replace("Headless", "")

And then pass the user-agent to the definitive driver

PD: I only can tell you what I've discovered to see if we can go through the solution cuz I'm having troubles to get the project installed/set up 😅

@m33ts4k0z
Copy link

m33ts4k0z commented Apr 21, 2024

Hello. I just wanted to let you know that this didnt bypass the challenge on arab-torrents.net, showing the same internal server error. I am not using VPN, proxies and I dont have a datacenter IP. Let me know if you need any info to troubleshoot this further.

I didnt actually use this branch, it worked fine after I switched to it. Thanks

@ilike2burnthing
Copy link
Contributor Author

ilike2burnthing commented Apr 21, 2024

@garfield69 yea this seems to be an issue with Chrome v124. You can revert to v123 in the mean time if it's easier - #1161

Alternatively, build your own binaries, which will use Chromium v123:

python src/build_package.py

@ilike2burnthing
Copy link
Contributor Author

@m33ts4k0z were you doing this on Windows?

@m33ts4k0z
Copy link

@m33ts4k0z were you doing this on Windows?

Yes on a Windows 11 VM on Unraid but it did work in the end. I updated my first post here with the cause.

@garfield69
Copy link
Contributor

Alternatively, build your own binaries, which will use Chromium v123:

python src/build_package.py

Oh cool, did not know I could build on windows.
Built successfully and tested. Much better, no left over chrome tasks chewing CPU anymore :-)

@ilike2burnthing
Copy link
Contributor Author

ilike2burnthing commented Apr 22, 2024

@juanfrilla sorry for the delay in replying, been busy and only got to a few quick ones on my phone.

I'll have a look at the UA idea when I next get a chance, thanks.

Assuming you're following the run from source instructions, what issue are you having? https://github.com/FlareSolverr/FlareSolverr#from-source-code

@juanfrilla
Copy link

@ilike2burnthing my main problem is that i cannot install Xvfb on MacOS

@ilike2burnthing
Copy link
Contributor Author

Tried XQuartz?

@juanfrilla
Copy link

juanfrilla commented Apr 22, 2024

Tried XQuartz?

yessir now the project is set up, let's see what I can fix

@21hsmw
Copy link
Contributor

21hsmw commented May 1, 2024

What exactly is left to do on this to get it merge? I tried to guess with the comments here and some different issues but I can't get the current status of this. It seems to be stale for quite some time, so what's needed?

@ilike2burnthing
Copy link
Contributor Author

Unfortunately, currently this only works on Windows, and the looping challenges return if using proxies or VPNs.

I'll have a look at the UA idea when I next get a chance, thanks.

@21hsmw
Copy link
Contributor

21hsmw commented May 1, 2024

Unfortunately, currently this only works on Windows, and the looping challenges return if using proxies or VPNs.

I'll have a look at the UA idea when I next get a chance, thanks.

Well, I made my own implementation of this "new tab" idea and I was able to make it work with every website I could (ext.to, www3.yggtorrent.cool, dodi-repacks.site, hd-torrents.me/login.php, nhentai.net) on my Linux system using a VPN / socks5 proxy and also with my container image on my own remote Linux server, which was blocked by cloudflare too.
Unfortunately I can't test on Windows, so if someone can test that and report back please do.

Public image with my edits: 21hsmw/flaresolverr:fixlooping
Code here: 21hsmw@da6cc9d

@ilike2burnthing
Copy link
Contributor Author

That's working 95% of the time on Windows for me, even with a proxy, but failing 95% of the time on Docker. Usual error:

Error: Error solving the challenge. 'NoneType' object has no attribute 'startswith'

Seems it's related to get_correct_window and trying to get driver.current_url. Adding some extra logging shows that the URL is returned as None. Adding some additional sleeps then shows the correct URL, but I'm still getting challenge loops or crashed.

@21hsmw
Copy link
Contributor

21hsmw commented May 2, 2024

That's working 95% of the time on Windows for me, even with a proxy, but failing 95% of the time on Docker.

When you say it fails on Docker, is it still on Windows or Linux?

I got this error on Linux while doing my implementation, but have not been able to replicate it since. For the looping challenges, it seems to be a timing issue. Playing with the timer values can make it work in some cases, but it's not easy to know what works for everyone since it seems to take network latency into account. For example, if I use a proxy close to my location, it works 100% of the time with the sites I listed earlier, but if I use a proxy very far from me, it works 50% of the time.
Can you try to increase the timers to something like 6, 8 or more?

@ilike2burnthing
Copy link
Contributor Author

Linux.

I'll play around with timings again (I did a bunch yesterday), see if I can get something that works both on my Docker and Windows.

@21hsmw
Copy link
Contributor

21hsmw commented May 2, 2024

Linux.

Strange then. I'm able to solve the challenges of all sites I try on my Debian and Fedora systems with different VPNs/Proxies with and without Docker involved.
Can you share an example of one of your tests with debug enabled?

Here's an example with dodi-repacks.site using the docker image I shared previously:
https://pastebin.com/nBramRXq

@aevrard

This comment was marked as off-topic.

@zenderzender
Copy link

Unfortunately, currently this only works on Windows, and the looping challenges return if using proxies or VPNs.

I'll have a look at the UA idea when I next get a chance, thanks.

Well, I made my own implementation of this "new tab" idea and I was able to make it work with every website I could (ext.to, www3.yggtorrent.cool, dodi-repacks.site, hd-torrents.me/login.php, nhentai.net) on my Linux system using a VPN / socks5 proxy and also with my container image on my own remote Linux server, which was blocked by cloudflare too. Unfortunately I can't test on Windows, so if someone can test that and report back please do.

Public image with my edits: 21hsmw/flaresolverr:fixlooping Code here: 21hsmw@da6cc9d

Thanks for your workaround @21hsmw
Here is a temporary image for anybody needing arm build :)
zender/flaresolverr-fixed:arm

Working with LANG=fr-FR

@aevrard the solution you provide will kill the killswitch if you're using something like gluetun...

@LoicBrison
Copy link

Thanks @21hsmw !
Works for YGG with YGGCookie and YGGtorrent; LANG=en_US

@Vrozaksen
Copy link

Vrozaksen commented May 3, 2024

21hsmw/flaresolverr:fixlooping

Worked for me on whatbox.ca

services:
     flaresolverr:
         image: 21hsmw/flaresolverr:fixlooping
         environment:
           - LOG_LEVEL=${LOG_LEVEL:-info}
           - LOG_HTML=${LOG_HTML:-false}
           - CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
           - TZ=UTC
           - PORT=25000
           - HOST=127.0.0.1
         network_mode: host
         pull_policy: always
         restart: unless-stopped

@juanfrilla
Copy link

juanfrilla commented May 3, 2024

Unfortunately, currently this only works on Windows, and the looping challenges return if using proxies or VPNs.

I'll have a look at the UA idea when I next get a chance, thanks.

Well, I made my own implementation of this "new tab" idea and I was able to make it work with every website I could (ext.to, www3.yggtorrent.cool, dodi-repacks.site, hd-torrents.me/login.php, nhentai.net) on my Linux system using a VPN / socks5 proxy and also with my container image on my own remote Linux server, which was blocked by cloudflare too. Unfortunately I can't test on Windows, so if someone can test that and report back please do.

Public image with my edits: 21hsmw/flaresolverr:fixlooping Code here: 21hsmw@da6cc9d

replacing the image of the dockerfile for this:
python:3.11-slim-bullseye works perfectly locally on MacOS M2 with and without proxies (tested for my website "https://www.icj-cij.org/sites/default/files/case-related/187/187-20231215-ord-01-00-en.pdf", I can get the cf_clearance cookie

I tested as well on a centOS server with the previous image (python:3.11-slim-bookworm) and it doesnt work

@ilike2burnthing
Copy link
Contributor Author

Got round to doing some testing, and I can see what you mean about nodriver being very verbose in debug.

Just tried on Docker so far, and it's working faster and with more success than the current release. However, there's definitely a memory leak:

memory leak

Usage after several requests:

before-restart

Usage after restart:

after-restart

There was even a couple of instances of a runaway leak that near locked up my system until I killed the Chromium processes, but still leaving a hefty chunk of memory used by Python:

runaway

I'm also getting occasional stalls that are only resolved by killing the Chromium processes or restarting the container, and which I can't reproduce with the same URL after (test URLs are just those from #1036). I can run other requests at the same time, which complete successfully. It always seems to be on the mouse move step:

mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/b/turnstile/if/ov2/av0/rcv0/0/973ld/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-973ld" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located

I did notice though that killing Chromium doesn't result in an error for FlareSolverr.

@ilike2burnthing
Copy link
Contributor Author

I did find one URL which consistently caused issues:

https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2

Whereas https://ilcorsaroblu.org/index.php was fine.

@21hsmw
Copy link
Contributor

21hsmw commented Jun 7, 2024

However, there's definitely a memory leak

I can confirm this too, it seems to be worse on some site like you reported.
I was getting slowdowns on ext.to and my first guess was that it was because the page had a lot of elements, but it gets worse with https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2 because flaresolverr is literally getting oom killed.
I'm not sure where this is coming from and why, but it's probably because of the repeated requests for selectors. I'm looking for a way to "snapshot" the page and do conditions on it instead of querying the cdp every time, to see if that can reduce memory usage.

As for the zombie processes, I think I fixed it with a function in Flaresolverr, but the memory leak thing is worse than I expected and really needs some deep analysis.

@xinghui233
Copy link

However, there's definitely a memory leak

I can confirm this too, it seems to be worse on some site like you reported. I was getting slowdowns on ext.to and my first guess was that it was because the page had a lot of elements, but it gets worse with https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2 because flaresolverr is literally getting oom killed. I'm not sure where this is coming from and why, but it's probably because of the repeated requests for selectors. I'm looking for a way to "snapshot" the page and do conditions on it instead of querying the cdp every time, to see if that can reduce memory usage.

As for the zombie processes, I think I fixed it with a function in Flaresolverr, but the memory leak thing is worse than I expected and really needs some deep analysis.

I noticed some problems
Each time query_selector is used, it is reexecuted if the _node argument is not used
doc: cdp.dom.Node = await self.send(cdp.dom.get_document(-1, True))
In the Connection to which the send function is attached, there is a mapper dictionary that holds the result of each execution, so for get_document, the generated Node tree is not reclaimed, which is a huge memory footprint.
For https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2, the Node Node tree is about 400 m
I also noticed that the del method in the Browser class is not actually implemented. It might interfere with the gc garbage collection and prevent the Connection from being released.
These are just some of my opinions. He may not be right.

@xinghui233
Copy link

However, there's definitely a memory leak

I can confirm this too, it seems to be worse on some site like you reported. I was getting slowdowns on ext.to and my first guess was that it was because the page had a lot of elements, but it gets worse with https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2 because flaresolverr is literally getting oom killed. I'm not sure where this is coming from and why, but it's probably because of the repeated requests for selectors. I'm looking for a way to "snapshot" the page and do conditions on it instead of querying the cdp every time, to see if that can reduce memory usage.
As for the zombie processes, I think I fixed it with a function in Flaresolverr, but the memory leak thing is worse than I expected and really needs some deep analysis.

I noticed some problems Each time query_selector is used, it is reexecuted if the _node argument is not used In the Connection to which the send function is attached, there is a mapper dictionary that holds the result of each execution, so for get_document, the generated Node tree is not reclaimed, which is a huge memory footprint. For https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2, the Node Node tree is about 400 m I also noticed that the del method in the Browser class is not actually doc: cdp.dom.Node = await self.send(cdp.dom.get_document(-1, True))implemented. It might interfere with the gc garbage collection and prevent the Connection from being released. These are just some of my opinions. He may not be right.

Hi, I found a new issues.
utils.nd.loop().run_until_complete()It doesn't seem to destroy the asyncio you created when you're done.

I want to know if I need to destroy asyncio every time I exit the function or use asyncio for all pages.

At the same time, when checking the challenge, the number of nodes is re-fetched with each query, which leads to a high memory footprint. I think we can start by getting the tree of nodes and passing it as a parameter.

        doc: cdp.dom.Node = await tab.send(cdp.dom.get_document(-1, True))
        for selector in CHALLENGE_SELECTORS:
            found_elements = await tab.query_selector(selector=selector, _node = doc)

At the same time, nodrive's Tab and Browser seem to have circular references, which can't be released properly。
chain

Finally, I occasionally had chrome fail to start when using docker, but it returned to normal after rediscovering the request, I wonder if you have the same issue

2024-06-08 17:58:31 ERROR    Error creating Chrome Browser: 
                ---------------------
                Failed to connect to browser
                ---------------------
                One of the causes could be when you are running as root.
                In that case you need to pass no_sandbox=True

@21hsmw
Copy link
Contributor

21hsmw commented Jun 9, 2024

@xinghui233 Thanks for pointing this out. I came to the same conclusion when I did my research on this memory leak, and I was able to reduce it significantly by reusing the nodes instead of recreating them. There's still a small amount of memory consumption per run, but it's very different from the multi-GB leak we saw before.
For the asyncio loop, I added a close when it returns to the original starting point and also one when flaresolverr does the browser test. I still need to check in nodriver itself if it closes its internal loop properly.

As for the error, I had this in the very early stage of the nodriver implementation and have never seen it again. Since the container is running with a specific user and the sandbox is disabled, this error should not appear unless there is something else, but I can't replicate it with my setup at least.

@21hsmw
Copy link
Contributor

21hsmw commented Jun 9, 2024

@ilike2burnthing I pushed a new image with all the changes to docker hub. If you have some time, can you test it and report back?

@ilike2burnthing
Copy link
Contributor Author

Yea, I'll try to do this later on today.

@ilike2burnthing
Copy link
Contributor Author

Using your latest image I'm getting some weird issues, in particular FlareSolverr just stalling and Chromium not closing. Using the same troublesome link as before:

2024-06-10 01:13:18 DEBUG    ReqId 139820396279488 New instance of chromium has been created to perform the request
2024-06-10 01:13:18 DEBUG    ReqId 139820396279488 Navigating to... https://ilcorsaroblu.org/index.php?page=torrents&category=0&options=0&active=0&order=3&by=2
2024-06-10 01:13:21 INFO     ReqId 139820396279488 Challenge detected. Title found: Just a moment...
2024-06-10 01:13:21 DEBUG    ReqId 139820396279488 Waiting for title (attempt 1): Just a moment...
2024-06-10 01:13:23 DEBUG    ReqId 139820396279488 Timeout waiting for selector
2024-06-10 01:13:23 DEBUG    ReqId 139820396279488 Trying to find the closest Cloudflare clickable element...
2024-06-10 01:13:25 DEBUG    ReqId 139820396279488 mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/qyigu/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-qyigu" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located
2024-06-10 01:14:48 DEBUG    ReqId 139820396279488 Terminating Chromium process with PID: 516
2024-06-10 01:14:48 DEBUG    ReqId 139820396279488 Terminating zombie Chromium process with PID: 687
2024-06-10 01:14:49 DEBUG    ReqId 139820396279488 A used instance of chromium has been destroyed
2024-06-10 01:14:49 ERROR    ReqId 139820396279488 Error: Error solving the challenge. Timeout after 90.0 seconds.
2024-06-10 01:14:49 DEBUG    ReqId 139820396279488 Response => POST /v1 body: {'status': 'error', 'message': 'Error: Error solving the challenge. Timeout after 90.0 seconds.', 'startTimestamp': 1717981996037, 'endTimestamp': 1717982089651, 'version': '3.4.0'}
2024-06-10 01:14:49 INFO     ReqId 139820396279488 Response in 93.614 s
2024-06-10 01:14:49 DEBUG    ReqId 139820396279488 Using selector: EpollSelector
2024-06-10 01:14:49 INFO     ReqId 139820396279488 172.18.0.4 POST http://flaresolverr:8191/v1 500 Internal Server Error

So we're just stopped at moving the mouse for ~80s, and only when the timeout is reached does it stop. Trying it again, the everything seems to work fine (although memory usage is very high), the challenge is solved, but we again just stall until timeout:

2024-06-10 01:15:51 DEBUG    ReqId 139820387870400 Trying to find the closest Cloudflare clickable element...
2024-06-10 01:15:53 DEBUG    ReqId 139820387870400 mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/ecwbb/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-ecwbb" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located
2024-06-10 01:15:53 DEBUG    ReqId 139820387870400 clicking on location 654.00, 288.50
2024-06-10 01:15:54 DEBUG    ReqId 139820387870400 Cloudflare element found and clicked!
2024-06-10 01:15:56 DEBUG    ReqId 139820387870400 Waiting for title (attempt 4): Just a moment...
2024-06-10 01:15:58 DEBUG    ReqId 139820387870400 Waiting for title (attempt 4): DDoS-Guard
2024-06-10 01:15:58 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): #cf-challenge-running
2024-06-10 01:15:58 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): .ray_id
2024-06-10 01:15:59 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): .attack-box
2024-06-10 01:16:00 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): #cf-please-wait
2024-06-10 01:16:02 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): #challenge-spinner
2024-06-10 01:16:02 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): #trk_jschal_js
2024-06-10 01:16:03 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): td.info #js_info
2024-06-10 01:16:03 DEBUG    ReqId 139820387870400 Waiting for selector (attempt 4): div.vc div.text-box h2
2024-06-10 01:16:04 DEBUG    ReqId 139820387870400 Waiting for redirect
2024-06-10 01:16:04 INFO     ReqId 139820387870400 Challenge solved!
2024-06-10 01:17:02 DEBUG    ReqId 139820387870400 Terminating Chromium process with PID: 710
2024-06-10 01:17:03 DEBUG    ReqId 139820387870400 A used instance of chromium has been destroyed
2024-06-10 01:17:03 ERROR    ReqId 139820387870400 Error: Error solving the challenge. Timeout after 90.0 seconds.
2024-06-10 01:17:03 DEBUG    ReqId 139820387870400 Response => POST /v1 body: {'status': 'error', 'message': 'Error: Error solving the challenge. Timeout after 90.0 seconds.', 'startTimestamp': 1717982130165, 'endTimestamp': 1717982223542, 'version': '3.4.0'}
2024-06-10 01:17:03 INFO     ReqId 139820387870400 Response in 93.377 s
2024-06-10 01:17:03 DEBUG    ReqId 139820387870400 Using selector: EpollSelector
2024-06-10 01:17:03 INFO     ReqId 139820387870400 172.18.0.4 POST http://flaresolverr:8191/v1 500 Internal Server Error

In some cases, Chromium continues to run, but in this case Python is just taking up 35% of my memory.


I'm also having an issue with invalid cookies when using a proxy:

2024-06-10 02:09:09 DEBUG    ReqId 140119762572992 Using selector: EpollSelector
2024-06-10 02:09:09 INFO     ReqId 140119762572992 Incoming request => POST /v1 body: {'postData': 'f%5B%5D=-1&allw=1&o=1&s=2&tm=-1&sns=-1&prev_allw=1&prev_a=0&prev_dla=0&prev_dlc=0&prev_dld=0&prev_dlw=0&prev_my=0&prev_new=0&prev_sd=0&prev_da=1&prev_dc=0&prev_df=1&prev_dl=1&prev_ds=0&prev_tor_type=0&df=1&da=1&dl=1&submit=%25C2%25A0%25C2%25A0Search%25C2%25A0%25C2%25A0', 'maxTimeout': 90000, 'cmd': 'request.post', 'url': 'https://seatracker.ru/tracker.php', 'proxy': {'url': 'http://IP:PORT'}}
2024-06-10 02:09:09 DEBUG    ReqId 140119762572992 Launching web browser with nodriver...

[...]

2024-06-10 02:09:11 DEBUG    ReqId 140119762572992 Navigating to... https://seatracker.ru/tracker.php
2024-06-10 02:09:11 DEBUG    ReqId 140119762572992 POST DATA: f%5B%5D=-1&allw=1&o=1&s=2&tm=-1&sns=-1&prev_allw=1&prev_a=0&prev_dla=0&prev_dlc=0&prev_dld=0&prev_dlw=0&prev_my=0&prev_new=0&prev_sd=0&prev_da=1&prev_dc=0&prev_df=1&prev_dl=1&prev_ds=0&prev_tor_type=0&df=1&da=1&dl=1&submit=%25C2%25A0%25C2%25A0Search%25C2%25A0%25C2%25A0
2024-06-10 02:09:11 DEBUG    ReqId 140119762572992 QUERY STRING: f%5B%5D=-1&allw=1&o=1&s=2&tm=-1&sns=-1&prev_allw=1&prev_a=0&prev_dla=0&prev_dlc=0&prev_dld=0&prev_dlw=0&prev_my=0&prev_new=0&prev_sd=0&prev_da=1&prev_dc=0&prev_df=1&prev_dl=1&prev_ds=0&prev_tor_type=0&df=1&da=1&dl=1&submit=%25C2%25A0%25C2%25A0Search%25C2%25A0%25C2%25A0
2024-06-10 02:09:13 INFO     ReqId 140119762572992 Challenge detected. Title found: Just a moment...
2024-06-10 02:09:13 DEBUG    ReqId 140119762572992 Waiting for title (attempt 1): Just a moment...
2024-06-10 02:09:15 DEBUG    ReqId 140119762572992 Timeout waiting for selector
2024-06-10 02:09:15 DEBUG    ReqId 140119762572992 Trying to find the closest Cloudflare clickable element...
2024-06-10 02:09:18 DEBUG    ReqId 140119762572992 mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/iebrf/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-iebrf" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located
2024-06-10 02:09:19 DEBUG    ReqId 140119762572992 clicking on location 654.00, 288.50
2024-06-10 02:09:19 DEBUG    ReqId 140119762572992 Cloudflare element found and clicked!
2024-06-10 02:09:21 DEBUG    ReqId 140119762572992 Waiting for title (attempt 2): Just a moment...
2024-06-10 02:09:23 DEBUG    ReqId 140119762572992 Timeout waiting for selector
2024-06-10 02:09:23 DEBUG    ReqId 140119762572992 Trying to find the closest Cloudflare clickable element...
2024-06-10 02:09:28 DEBUG    ReqId 140119762572992 Cloudflare element not found on the page.
2024-06-10 02:09:30 DEBUG    ReqId 140119762572992 Waiting for title (attempt 3): Just a moment...
2024-06-10 02:09:32 DEBUG    ReqId 140119762572992 Timeout waiting for selector
2024-06-10 02:09:32 DEBUG    ReqId 140119762572992 Trying to find the closest Cloudflare clickable element...
2024-06-10 02:09:34 DEBUG    ReqId 140119762572992 mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/4mw26/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-4mw26" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located
2024-06-10 02:09:37 DEBUG    ReqId 140119762572992 clicking on location 654.00, 288.50
2024-06-10 02:09:38 DEBUG    ReqId 140119762572992 Cloudflare element found and clicked!
2024-06-10 02:09:40 DEBUG    ReqId 140119762572992 Waiting for title (attempt 4): Just a moment...
2024-06-10 02:09:40 DEBUG    ReqId 140119762572992 Waiting for title (attempt 4): DDoS-Guard
2024-06-10 02:09:40 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): #cf-challenge-running
2024-06-10 02:09:41 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): .ray_id
2024-06-10 02:09:41 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): .attack-box
2024-06-10 02:09:41 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): #cf-please-wait
2024-06-10 02:09:41 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): #challenge-spinner
2024-06-10 02:09:41 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): #trk_jschal_js
2024-06-10 02:09:41 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): td.info #js_info
2024-06-10 02:09:42 DEBUG    ReqId 140119762572992 Waiting for selector (attempt 4): div.vc div.text-box h2
2024-06-10 02:09:42 DEBUG    ReqId 140119762572992 Waiting for redirect
2024-06-10 02:09:42 INFO     ReqId 140119762572992 Challenge solved!
2024-06-10 02:09:42 DEBUG    ReqId 140119762572992 Tab was closed
2024-06-10 02:09:42 DEBUG    ReqId 140119762572992 Terminating Chromium process with PID: 2710
2024-06-10 02:09:43 DEBUG    ReqId 140119762572992 A used instance of chromium has been destroyed
2024-06-10 02:09:43 DEBUG    ReqId 140119762572992 Response => POST /v1 body: {'status': 'ok', 'message': 'Challenge solved!', 'solution': {'url': 'https://seatracker.ru/tracker.php', 'status': None, 'cookies': [{'version': 0, 'name': 'cf_clearance', 'value': 'REMOVED_FOR_POSTING_ON_GITHUB', 'port': None, 'port_specified': False, 'domain': '.seatracker.ru', 'domain_specified': True, 'domain_initial_dot': True, 'path': '/', 'path_specified': True, 'secure': True, 'expires': 1749521380, 'discard': True, 'comment': None, 'comment_url': None, 'rfc2109': False, '_rest': {'HttpOnly': None}}], 'userAgent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36', 'headers': {}, 'response': '<html><head>\n<meta name="robots" content="noindex, nofollow">\n<title>500 Internal Server Error</title>\n</head><body>\n<h1>Internal Server Error</h1>\n<p>The server encountered an internal error or\nmisconfiguration and was unable to complete\nyour request.</p>\n<p>Please contact the server administrator to inform them of the time this error occurred,\nand the actions you performed just before this error.</p>\n<p>More information about this error may be available\nin the server error log.</p>\n<script defer="" src="https://static.cloudflareinsights.com/beacon.min.js/vc733d5f01de84e3792a4035cd15c58a81717452547180" integrity="sha512-fqEn6JCqkzgyQXZxQOxB9z6GyWybXdsYNuqu0tW/ATUi0uJMKhFfYpk0taNyC90JiX4HZUqEp6nnOyL7/ZvjCA==" data-cf-beacon="{&quot;rayId&quot;:&quot;8915d213ff346ab1&quot;,&quot;r&quot;:1,&quot;version&quot;:&quot;2024.4.1&quot;,&quot;token&quot;:&quot;9119826e35934f24868e9b2b275ea4ae&quot;}" crossorigin="anonymous"></script>\n</body></html>'}, 'startTimestamp': 1717985349315, 'endTimestamp': 1717985383204, 'version': '3.4.0'}
2024-06-10 02:09:43 INFO     ReqId 140119762572992 Response in 33.889 s
2024-06-10 02:09:43 DEBUG    ReqId 140119762572992 Using selector: EpollSelector
2024-06-10 02:09:43 INFO     ReqId 140119762572992 172.18.0.4 POST http://flaresolverr:8191/v1 200 OK

Without a proxy/VPN I get the error above when accessing https://seatracker.ru/tracker.php in browser, but with one I can access it fine, signed in or not. I don't really see why FlareSolverr would be getting that error page while using a proxy (I've tested with the same server, it definitely works in browser).

However, when testing with https://extratorrent.st/search/?srt=added&order=desc&search=2024&new=1&x=0&y=0, the correct HTML is returned, but the cookie is still invalid.

I'll test on Windows later, where I can more easily test with the proxy passed to FlareSolverr versus a systemwide VPN.

Lastly, thanks again for all your work, I'm very appreciative.

@21hsmw
Copy link
Contributor

21hsmw commented Jun 10, 2024

@ilike2burnthing Thank you for testing again.

Unfortunately, I don't seem to be able to replicate any of these errors. My guess would be that it works differently depending on the system specs. I'm running on a very recent Intel CPU, I'm limiting my test to 2 cores, but they're still very powerful, so that might explain why it's fast and in a good working state for me.
Can you give more details about your testing platform? Like the CPU manufacturer and version?

About the cookies, when you say invalid, do you mean that you can't reuse them with another browser and/or with flaresolverr itself?
The import cookie method is still broken in nodriver as of now, I still need to look into this and apply a fix.
If it's about using the cookies with an external browser, I'm able to replicate the same thing if the browser is not Chromium based. Cloudflare always checks the browser and compares it to the original browser that got the cookie. If the two browsers are different, proxy or not, it won't pass and ask for verification again.

@ilike2burnthing
Copy link
Contributor Author

root@NAS:/ # uname -a
Linux NAS 5.13.x #1 SMP Thu Apr 11 00:11:18 CST 2024 x86_64 GNU/Linux
root@NAS:/ # grep "model name" /proc/cpuinfo
model name      : Intel(R) Celeron(R) CPU  J3060  @ 1.60GHz

https://www.asustor.com/product/spec?p_id=44

Testing those links through Jackett, and it reports that the cookies for those two sites are invalid.

@21hsmw
Copy link
Contributor

21hsmw commented Jun 10, 2024

I have set up Flaresolverr, Jackett and Prowlarr in containers and I have tested the last 2 sites you talked about:

I set up Flaresolverr in both Prowlarr and Jackett, added the indexers, created an account on seatracker to test it out, and was able to get both to work with Flaresolverr using my image on docker hub.

Jackett:
jackett

Prowlarr:
prowlarr

I tried a few searches, both Prowlarr and Jackett works and I'm able to download torrent files or get the magnets.
The IP I used for the test is getting the Cloudflare verification page, so Flaresolverr was used for both sites.

I also tried https://ilcorsaroblu.org with Jackett and Prowlarr and both worked. It was slow, but eventually it worked.
It's probably a problem with how fast the CPU can process the nodriver requests. I'll take another look at the code later.

Do you have another system running linux (live system can also be tried) with a different CPU that you can try the stack on?

@Investigamer

This comment was marked as duplicate.

@daNutzzzzz
Copy link

daNutzzzzz commented Jun 10, 2024

Hi, not sure if this is ther "same" issue, but im getting 500 Internal Server Error when trying to use with animetorrents.me & CinemaZ. i tired 21hsmw/flaresolverr:nodriver as per @Investigamer suggested but it still doesnt work for me.

@juanfrilla
Copy link

Can you provide us some come to try to reproduce the error?
Thanks

Hi, not sure if this is ther "same" issue, but im getting 500 Internal Server Error when trying to use with animetorrents.me. i tired 21hsmw/flaresolverr:nodriver as per @Investigamer suggested but it still doesnt work for me.

@daNutzzzzz
Copy link

Can you provide us some come to try to reproduce the error? Thanks

Hi, not sure if this is ther "same" issue, but im getting 500 Internal Server Error when trying to use with animetorrents.me. i tired 21hsmw/flaresolverr:nodriver as per @Investigamer suggested but it still doesnt work for me.

Not sure i understand what youre asking for?

I have Prowlarr setup to use Flaresolverr, it works fine for all sites (indexers) i have except animetorrents.me & CinemaZ, it gives me the 500 server error with Flaresolverr. All using the latest releases

@Investigamer
Copy link

Can you provide us some come to try to reproduce the error? Thanks

Hi, not sure if this is ther "same" issue, but im getting 500 Internal Server Error when trying to use with animetorrents.me. i tired 21hsmw/flaresolverr:nodriver as per @Investigamer suggested but it still doesnt work for me.

Not sure i understand what youre asking for?

I have Prowlarr setup to use Flaresolverr, it works fine for all sites (indexers) i have except animetorrents.me & CinemaZ, it gives me the 500 server error with Flaresolverr. All using the latest releases

In prowlarr, try changing flaresolver "timeout" setting to 180 if you haven't before, sometimes it can exceed 60 (the default). At least for the nodriver and fixlooping containers mentioned above it worked in my case.

@ilike2burnthing
Copy link
Contributor Author

@21hsmw can you try those with an HTTP proxy enabled in Jackett?

@daNutzzzzz
Copy link

daNutzzzzz commented Jun 10, 2024

Can you provide us some come to try to reproduce the error? Thanks

Hi, not sure if this is ther "same" issue, but im getting 500 Internal Server Error when trying to use with animetorrents.me. i tired 21hsmw/flaresolverr:nodriver as per @Investigamer suggested but it still doesnt work for me. How can i get debug or trace logs?

Not sure i understand what youre asking for?
I have Prowlarr setup to use Flaresolverr, it works fine for all sites (indexers) i have except animetorrents.me & CinemaZ, it gives me the 500 server error with Flaresolverr. All using the latest releases

In prowlarr, try changing flaresolver "timeout" setting to 180 if you haven't before, sometimes it can exceed 60 (the default). At least for the nodriver and fixlooping containers mentioned above it worked in my case.

doesnt work for me even with 180.

@ilike2burnthing
Copy link
Contributor Author

Have you set the DRIVER ENV to nodriver?

@21hsmw
Copy link
Contributor

21hsmw commented Jun 10, 2024

@21hsmw can you try those with an HTTP proxy enabled in Jackett?

I found a working HTTP proxy online, set it up in Jackett and verified in the flaresolverr logs that it was being used in the incoming command. I was then able to go through the cf challenge and search for torrents for the 3 websites.

@ilike2burnthing
Copy link
Contributor Author

ilike2burnthing commented Jun 10, 2024

I'll try on Windows tomorrow asap. If I still can't track down the issue, I'll fire up a live Ubuntu disk.

@daNutzzzzz
Copy link

Have you set the DRIVER ENV to nodriver?

ok this worked for animetorrents.me but still fails for CinemaZ. i tried running falesolverr with debug but it gave me no additional information, i get this in prowlarr Unable to connect to indexer. Unexpected response status Unauthorized code from indexer request

@ilike2burnthing
Copy link
Contributor Author

If running with debug logging isn't giving you additional output, you're doing something wrong. You're setting the LOG_LEVEL ENV as debug? https://github.com/FlareSolverr/FlareSolverr#environment-variables

@Gamegenie13
Copy link

Last week, 21hsmw/flaresolverr:nodriver worked 90% of time on my Debian ARM (without VPN or proxy) but it doesn't work anymore since the update from 4-5 days ago.
I've just tried the latest update but flaresolverr just be stuck when challenge is detected (I've configured the Env DRIVER=nodriver)

2024-06-11 06:40:52 DEBUG    ReqId 281472979431840 New instance of chromium has been created to perform the request
2024-06-11 06:40:52 DEBUG    ReqId 281472979431840 Navigating to... https://www.ygg.re/engine/search?do=search&order=desc&sort=publish_date&category=all
2024-06-11 06:40:57 INFO     ReqId 281472979431840 Challenge detected. Title found: Just a moment...
2024-06-11 06:40:57 DEBUG    ReqId 281472979431840 Waiting for title (attempt 1): Just a moment...
2024-06-11 06:40:59 DEBUG    ReqId 281472979431840 Timeout waiting for selector
2024-06-11 06:40:59 DEBUG    ReqId 281472979431840 Trying to find the closest Cloudflare clickable element...
2024-06-11 06:41:01 DEBUG    ReqId 281472979431840 mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/o2qp0/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-o2qp0" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located

And when I try again I've this :

2024-06-11 06:57:39 ERROR    ReqId 281472845955488 Error creating Chrome Browser: 
                ---------------------
                Failed to connect to browser
                ---------------------
                One of the causes could be when you are running as root.
                In that case you need to pass no_sandbox=True 
                
2024-06-11 06:57:39 ERROR    ReqId 281472845955488 Error: Error solving the challenge. cannot access local variable 'driver' where it is not associated with a value
2024-06-11 06:57:39 DEBUG    ReqId 281472845955488 Response => POST /v1 body: {'status': 'error', 'message': "Error: Error solving the challenge. cannot access local variable 'driver' where it is not associated with a value", 'startTimestamp': 1718089056909, 'endTimestamp': 1718089059773, 'version': '3.4.0'}

Hope this will help your invetigations !

@juanfrilla
Copy link

juanfrilla commented Jun 11, 2024

Since I'm accessing to pdf urls, a problem i'm facing it's that sometimes the "No space left on device" message appears and it stop working until free space it's available, how can I automatically remove temporal files or how can I not download anything cuz I dont need it?

@21hsmw
Copy link
Contributor

21hsmw commented Jun 11, 2024

Last week, 21hsmw/flaresolverr:nodriver worked 90% of time on my Debian ARM (without VPN or proxy) but it doesn't work anymore since the update from 4-5 days ago. I've just tried the latest update but flaresolverr just be stuck when challenge is detected (I've configured the Env DRIVER=nodriver)

2024-06-11 06:40:52 DEBUG    ReqId 281472979431840 New instance of chromium has been created to perform the request
2024-06-11 06:40:52 DEBUG    ReqId 281472979431840 Navigating to... https://www.ygg.re/engine/search?do=search&order=desc&sort=publish_date&category=all
2024-06-11 06:40:57 INFO     ReqId 281472979431840 Challenge detected. Title found: Just a moment...
2024-06-11 06:40:57 DEBUG    ReqId 281472979431840 Waiting for title (attempt 1): Just a moment...
2024-06-11 06:40:59 DEBUG    ReqId 281472979431840 Timeout waiting for selector
2024-06-11 06:40:59 DEBUG    ReqId 281472979431840 Trying to find the closest Cloudflare clickable element...
2024-06-11 06:41:01 DEBUG    ReqId 281472979431840 mouse move to location 654.00, 288.50 where <iframe src="https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/turnstile/if/ov2/av0/rcv0/0/o2qp0/0x4AAAAAAADnPIDROrmt1Wwj/light/normal" allow="cross-origin-isolated; fullscreen; autoplay" sandbox="allow-same-origin allow-scripts allow-popups" id="cf-chl-widget-o2qp0" tabindex="0" title="Widget containing a Cloudflare security challenge" style="border: none; overflow: hidden; width: 300px; height: 65px;"></iframe> is located

And when I try again I've this :

2024-06-11 06:57:39 ERROR    ReqId 281472845955488 Error creating Chrome Browser: 
                ---------------------
                Failed to connect to browser
                ---------------------
                One of the causes could be when you are running as root.
                In that case you need to pass no_sandbox=True 
                
2024-06-11 06:57:39 ERROR    ReqId 281472845955488 Error: Error solving the challenge. cannot access local variable 'driver' where it is not associated with a value
2024-06-11 06:57:39 DEBUG    ReqId 281472845955488 Response => POST /v1 body: {'status': 'error', 'message': "Error: Error solving the challenge. cannot access local variable 'driver' where it is not associated with a value", 'startTimestamp': 1718089056909, 'endTimestamp': 1718089059773, 'version': '3.4.0'}

Hope this will help your invetigations !

That's probably because I changed to reusing the nodes. Instead of being re-created like before, they are taken at a certain point in time, which could lead to missing elements. I'll see what I can do about that.

Since I'm accessing to pdf urls, a problem i'm facing it's that sometimes the "No space left on device" message appears and it stop working until free space it's available, how can I automatically remove temporal files or how can I not download anything cuz I dont need it?

Nodriver deletes all user data directories when it exits, which in our case is when flaresolverr is completely stopped, so that might explain why you are getting this.
I have added a cleanup for this on my local branch, which I will push to github soon.

@daNutzzzzz
Copy link

If running with debug logging isn't giving you additional output, you're doing something wrong. You're setting the LOG_LEVEL ENV as debug? https://github.com/FlareSolverr/FlareSolverr#environment-variables

Sorry... to be clear, there was additional information in the logs, but when initiating a test for CinemaZ, there was no additional data provided by the Flaresolverr logs.

@ilike2burnthing
Copy link
Contributor Author

@daNutzzzzz provide the log please.

@daNutzzzzz
Copy link

daNutzzzzz commented Jun 12, 2024

@daNutzzzzz provide the log please.

Flaresolverr

2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 Debug log enabled
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 Using selector: EpollSelector
2024-06-12 12:38:12 INFO     ReqId 139853678439296 Testing web browser installation...
2024-06-12 12:38:12 INFO     ReqId 139853678439296 Platform: Linux-5.15.0-112-generic-x86_64-with-glibc2.36
2024-06-12 12:38:12 INFO     ReqId 139853678439296 Chrome / Chromium path: /bin/chromium
2024-06-12 12:38:12 INFO     ReqId 139853678439296 Chrome / Chromium major version: 125
2024-06-12 12:38:12 INFO     ReqId 139853678439296 Launching web browser...
2024-06-12 12:38:12 INFO     ReqId 139853678439296 Launching web browser...
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 Launching web browser with nodriver...
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/chromium is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/sbin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/sbin/chromium is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/sbin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/sbin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/sbin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/chromium is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/local/bin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/sbin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/sbin/chromium is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/sbin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/sbin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/sbin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/bin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/bin/chromium is a valid candidate... 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/bin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/bin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /usr/bin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /sbin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /sbin/chromium is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /sbin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /sbin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /sbin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /bin/google-chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /bin/chromium is a valid candidate... 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /bin/chromium-browser is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /bin/chrome is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:12 DEBUG    ReqId 139853678439296 /bin/google-chrome-stable is not a valid candidate because don't exist or not executable 
2024-06-12 12:38:14 DEBUG    ReqId 139853678439296 Terminating Chromium process with PID: 27
2024-06-12 12:38:15 DEBUG    ReqId 139853678439296 Removed Browser user data directory /tmp/uc_9rtigr4e
2024-06-12 12:38:15 INFO     ReqId 139853678439296 FlareSolverr User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
2024-06-12 12:38:15 INFO     ReqId 139853678439296 Test successful!
2024-06-12 12:38:15 DEBUG    ReqId 139853678439296 Using selector: EpollSelector
2024-06-12 12:38:15 INFO     ReqId 139853678439296 Serving on http://0.0.0.0:8191

Prowlarr

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow" />
<style>                body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
                .container { margin: 30px; max-width: 600px; }
                h1 { color: #dc3545; font-size: 24px; }</style>
</head>
<body>
<div class="container">
<h1>Whoops, looks like something went wrong.</h1>
</div>
</body>
</html>
2024-06-12 12:40:35.3|Warn|CinemaZ|Unable to connect to indexer

[v1.18.0.4543] NzbDrone.Core.Indexers.Exceptions.IndexerException: Unexpected response status Unauthorized code from indexer request
   at NzbDrone.Core.Indexers.Definitions.Avistaz.AvistazParserBase.ParseResponse(IndexerResponse indexerResponse) in ./Prowlarr.Core/Indexers/Definitions/Avistaz/AvistazParserBase.cs:line 38
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.FetchPage(IndexerRequest request, IParseIndexerResponse parser) in ./Prowlarr.Core/Indexers/HttpIndexerBase.cs:line 604
   at NzbDrone.Core.Indexers.HttpIndexerBase`1.TestConnection() in ./Prowlarr.Core/Indexers/HttpIndexerBase.cs:line 763
RequestUri: https://cinemaz.to/api/v1/jackett/torrents?in=1&type=0&limit=50&search=;StatusCode: Unauthorized;ContentType: text/html; charset=utf-8;ContentLength: 530;ContentSample: <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex,nofollow" />
<style>                body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; }
                .container { margin: 30px; max-width: 600px; }
                h1 { color: #dc3545; font-size: 24px; }</style>
</head>
<body>
<div class="container">
<h1>Whoops, looks like something went wrong.</h1>
</div>
</body>
</html>

2024-06-12 12:40:35.3|Warn|ProwlarrErrorPipeline|Invalid request Validation failed: 
 -- : Unable to connect to indexer. Unexpected response status Unauthorized code from indexer request```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs investigation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet