QuickBox / QB

QuickBox is much more than a ‘seedbox installer script’, it is a simplistic approach to achieving easy seedbox and services management from a beautifully designed dashboard. Allowing users the ability to interact with their seedbox and server on a professional grade level.
https://quickbox.io
GNU General Public License v3.0
737 stars 171 forks source link

Jackett - Blackhole Fail #84

Open kanenses opened 6 years ago

kanenses commented 6 years ago

Hello,

Everytime I search some file at jackett and send it to a blackhole, I'am getting:

Request to Jackett server failed

I have look here - https://github.com/Jackett/Jackett/issues/1464 But the apache rules from QB as a little bit different

JMSDOnline commented 6 years ago

Try changing localhost to 127.0.0.1 on the jackett.conf

example: (from this)

<Location /jackett>
ProxyPass http://localhost:9117/jackett
ProxyPassReverse http://localhost:9117/jackett
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require user ${username}
</Location>

(to this)

<Location /jackett>
ProxyPass http://127.0.0.1:9117/jackett
ProxyPassReverse http://127.0.0.1:9117/jackett
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require user ${username}
</Location>
kanenses commented 6 years ago

Getting same error...

Change from localhost to 127.0.0.1 Reload daemon reload apache after made changes, still getting error.

Folder for blackhole are writable.

JMSDOnline commented 6 years ago

Seeing as how I am taking guesses here. Could you try this?

First run a2enmod headers

Then update you jackett.conf with the following:

RequestHeader set X-Forwarded-Proto "https"
<Location /jackett>
ProxyPass http://localhost:9117/jackett
ProxyPassReverse http://localhost:9117/jackett
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require user ${username}
</Location>

If you are still having an issue, try removing the Auth fields and set Require to all granted instead of user ${username}

So it would become...

RequestHeader set X-Forwarded-Proto "https"
<Location /jackett>
ProxyPass http://localhost:9117/jackett
ProxyPassReverse http://localhost:9117/jackett
Require all granted
</Location>

Sometimes when these things happen, it could be a result of the Auth and certain functions are blocked.

kanenses commented 6 years ago

Not working any of the above solutions!

Trying all solutions, and nothing,

Pleasem anyone have same issues?

JMSDOnline commented 6 years ago

Have you tried submitting your logs to the Jackett devs?

kanenses commented 6 years ago

I have take a look here: https://github.com/Jackett/Jackett/issues/1797

And according is something about reverse proxy ?!

dtech4you commented 6 years ago

try seeing if something is up with your host file /etc/hosts make sure that localhost is there and that it leads to 127.0.0.1 sometimes the host file gets wonky for some reason

JMSDOnline commented 6 years ago

Testing a new reverse config to see if this helps this issue. Requesting testing and feedback 👍

kanenses commented 6 years ago

Have testing it, get bad request to Jackett Server :-(

reaperfromhell commented 6 years ago

I have blackhole working with this config xx-jackett.conf:

<Location /jackett>
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
ProxyPass http://127.0.0.1:9117/jackett
ProxyPassReverse http://127.0.0.1:9117/jackett
AuthType Digest
AuthName "rutorrent"
AuthUserFile '/etc/htpasswd'
Require user $(user)
</Location>

the 'xx-' makes the rule be processed last by apache. I have no idea if that's what makes it work or not.