pillone / usntssearch

NZB Metasearch engine
pillone.github.io/usntssearch
263 stars 79 forks source link

Couchpotato issue #105

Closed bruvv closed 10 years ago

bruvv commented 10 years ago

It could be me but it looks like that couchpotato stripes the port number from the search url. It downloads an nzb which is empty and there for sabnzb rejects it and nzbget trows a lot of errors regarding the markup of the NZB. Sickbeard is working fine though.

I am thinking of creating a reverse proxy to test my theory but I don't have a lot of time these next few days.

Are there any other people with this issue?

G1zm0 commented 10 years ago

I have the same issue

The Error: [ore.providers.nzb.newznab] Failed download from 192.168.1.240: Traceback (most recent call last): File "/volume1/@appstore/couchpotatoserver/share/CouchPotatoServer/couchpotato/core/providers/nzb/newznab/main.py", line 162, in download data = self.urlopen(url, show_error = False) File "/volume1/@appstore/couchpotatoserver/share/CouchPotatoServer/couchpotato/core/plugins/base.py", line 183, in urlopen response = urllib2.urlopen(request, timeout = timeout) File "/usr/local/python/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/local/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/local/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/python/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 629, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/local/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/local/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/python/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 629, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/local/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/local/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/python/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 629, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/local/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/local/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/python/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 629, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/usr/local/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/usr/local/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/usr/local/python/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/usr/local/python/lib/python2.7/urllib2.py", line 619, in http_error_302 self.inf_msg + msg, headers, fp) HTTPError: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently

G1zm0 commented 10 years ago

Although, I believe that this is not a problem from NZBmegaSearch, but more a Couchpotato issue

bruvv commented 10 years ago

Try but in the mean time, isn't there an option to redirect the traffic from port 5000 to 80 ? Tried some iptables stuff but can't get it to work. Was thinking of this:

iptables -t nat -A PREROUTING -p tcp --dport 5000 -j REDIRECT --to-ports 80
bruvv commented 10 years ago

This has been fixed it was a CP issue.