pillone / usntssearch

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

Can't get HTTPS to work #124

Open christianvaes opened 10 years ago

christianvaes commented 10 years ago

Hi,

I'm trying to run nzb megasearch under https. But this never works. I'm running on python 2.7.3 and pyopenssl has been installed.

In the config panel I select 'HTTPS enabled'. I put my .key and .crt in the certificates folder from nzb mega search. After this I restart the server and it's broken. The browser gives the following error when going to https://linktonzbmegasearch:5000 : ERR_EMPTY_RESPONSE

The log says:

2014-04-12 12:20:23,095 - TERMINAL - INFO - >> Running on port 5000 2014-04-12 12:20:23,096 - TERMINAL - INFO - >> HTTPS security activated 2014-04-12 12:20:23,176 - werkzeug - INFO - * Running on https://0.0.0.0:5000/ 2014-04-12 12:21:09,544 - TERMINAL - INFO - Error on request: 2014-04-12 12:21:09,544 - TERMINAL - INFO - %s 2014-04-12 12:21:09,545 - werkzeug - ERROR - Error on request: Traceback (most recent call last): File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 161, in run_wsgi execute(app) File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 151, in execute write(data) File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 116, in write self.send_response(int(code), msg) File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 228, in send_response (self.protocol_version, code, message)) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.7/socket.py", line 324, in write self.flush() File "/share/MD0_DATA/.qpkg/Optware/lib/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) TypeError: must be string or read-only buffer, not memoryview 2014-04-12 12:21:09,547 - TERMINAL - INFO - ---------------------------------------- 2014-04-12 12:21:09,547 - TERMINAL - INFO - Exception happened during processing of request from 2014-04-12 12:21:09,548 - TERMINAL - INFO - ('10.0.0.1', 61001) 2014-04-12 12:21:09,549 - TERMINAL_ERR - ERROR - Traceback (most recent call last): 2014-04-12 12:21:09,550 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock 2014-04-12 12:21:09,551 - TERMINAL_ERR - ERROR - self.process_request(request, client_address) 2014-04-12 12:21:09,552 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 310, in process_request 2014-04-12 12:21:09,552 - TERMINAL_ERR - ERROR - self.finish_request(request, client_address) 2014-04-12 12:21:09,553 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 323, in finish_request 2014-04-12 12:21:09,553 - TERMINAL_ERR - ERROR - self.RequestHandlerClass(request, client_address, self) 2014-04-12 12:21:09,554 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 640, in init 2014-04-12 12:21:09,554 - TERMINAL_ERR - ERROR - self.finish() 2014-04-12 12:21:09,555 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 693, in finish 2014-04-12 12:21:09,556 - TERMINAL_ERR - ERROR - self.wfile.flush() 2014-04-12 12:21:09,556 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/socket.py", line 303, in flush 2014-04-12 12:21:09,558 - TERMINAL_ERR - ERROR - self._sock.sendall(view[write_offset:write_offset+buffer_size]) 2014-04-12 12:21:09,558 - TERMINAL_ERR - ERROR - TypeError: must be string or read-only buffer, not memoryview 2014-04-12 12:21:09,559 - TERMINAL - INFO - ---------------------------------------- 2014-04-12 12:21:09,653 - TERMINAL - INFO - Error on request: 2014-04-12 12:21:09,654 - TERMINAL - INFO - %s 2014-04-12 12:21:09,654 - werkzeug - ERROR - Error on request: Traceback (most recent call last): File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 161, in run_wsgi execute(app) File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 151, in execute write(data) File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 116, in write self.send_response(int(code), msg) File "/share/MD0_DATA/.qpkg/NZBmegasearch/NZBmegasearch/werkzeug/serving.py", line 228, in send_response (self.protocol_version, code, message)) File "/share/MD0_DATA/.qpkg/Optware/lib/python2.7/socket.py", line 324, in write self.flush() File "/share/MD0_DATA/.qpkg/Optware/lib/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) TypeError: must be string or read-only buffer, not memoryview 2014-04-12 12:21:09,656 - TERMINAL - INFO - ---------------------------------------- 2014-04-12 12:21:09,657 - TERMINAL - INFO - Exception happened during processing of request from 2014-04-12 12:21:09,657 - TERMINAL - INFO - ('10.0.0.1', 61003) 2014-04-12 12:21:09,658 - TERMINAL_ERR - ERROR - Traceback (most recent call last): 2014-04-12 12:21:09,659 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock 2014-04-12 12:21:09,659 - TERMINAL_ERR - ERROR - self.process_request(request, client_address) 2014-04-12 12:21:09,660 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 310, in process_request 2014-04-12 12:21:09,660 - TERMINAL_ERR - ERROR - self.finish_request(request, client_address) 2014-04-12 12:21:09,661 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 323, in finish_request 2014-04-12 12:21:09,662 - TERMINAL_ERR - ERROR - self.RequestHandlerClass(request, client_address, self) 2014-04-12 12:21:09,662 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 640, in init 2014-04-12 12:21:09,663 - TERMINAL_ERR - ERROR - self.finish() 2014-04-12 12:21:09,663 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/SocketServer.py", line 693, in finish 2014-04-12 12:21:09,664 - TERMINAL_ERR - ERROR - self.wfile.flush() 2014-04-12 12:21:09,664 - TERMINAL_ERR - ERROR - File "/opt/lib/python2.7/socket.py", line 303, in flush 2014-04-12 12:21:09,665 - TERMINAL_ERR - ERROR - self._sock.sendall(view[write_offset:write_offset+buffer_size]) 2014-04-12 12:21:09,665 - TERMINAL_ERR - ERROR - TypeError: must be string or read-only buffer, not memoryview 2014-04-12 12:21:09,666 - TERMINAL - INFO - ---------------------------------------- cat: f: No such file or directory

How can I fix this?