Am Montag, 19. Januar 2015, 07:29:11 schrieb P A:
> Hello:
> I'm trying to install tryton for the first time.
> I have a problem that seems related to others in several posts in this
> forum, but my problem remains after applying those solutions.
> I have generated a public/private key pair, my conf file reads:
> 
> [jsonrpc]
> listen   = *:8000
> 
> ... etc ...
> 
> [ssl]
> # The path to the private key.
> privatekey = /etc/ssl/private/tryton.key
> 
> # The path to the certificate.
> certificate = /etc/ssl/certs/tryton.crt
> 
> ... etc ...
> 
> In the client, I clean known_hosts, while I copy-paste the server's public
> certificate into ~/.config/tryton/x.y/ca_certs:
> 
> -----BEGIN CERTIFICATE-----
> MI... etc ...
> -----END CERTIFICATE-----
> 
> When I point the client to the server, I get an error:
> 
> In the server, the error is (5 copies of):
> ----------------------------------------
> Exception happened during processing of request from
> ('::ffff:xx.xx.xx.227', 60642, 0, 0)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/SocketServer.py", line 593, in
> process_request_thread
>     self.finish_request(request, client_address)
>   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/usr/lib/python2.7/SocketServer.py", line 647, in __init__
>     self.setup()
>   File
> "/home/tryton/workspace/tryton-dist/trytond/trytond/protocols/jsonrpc.py",
> line 285, in setup
>     self.request = SSLSocket(self.request)
>   File
> "/home/tryton/workspace/tryton-dist/trytond/trytond/protocols/sslsocket.py",
> line 13, in SSLSocket
>     ssl_version=ssl.PROTOCOL_SSLv23)
>   File "/usr/lib/python2.7/ssl.py", line 381, in wrap_socket
>     ciphers=ciphers)
>   File "/usr/lib/python2.7/ssl.py", line 141, in __init__
>     ciphers)
> SSLError: [Errno 336265218] _ssl.c:351: error:140B0002:SSL
> routines:SSL_CTX_use_PrivateKey_file:system lib
> ----------------------------------------
> 
> While in the client, I get:
> ERROR:tryton.common.common:Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/tryton/gui/window/dblogin.py",
> line 629, in run
>     if not common.test_server_version(host, port):
>   File "/usr/lib/python2.7/dist-packages/tryton/common/common.py", line
> 227, in test_server_version
>     version = rpc.server_version(host, port)
>   File "/usr/lib/python2.7/dist-packages/tryton/rpc.py", line 68, in
> server_version
>     result = connection.common.server.version(None, None)
>   File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib/python2.7/dist-packages/tryton/jsonrpc.py", line 314, in
> __request
>     verbose=self.__verbose
>   File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
>     return self.single_request(host, handler, request_body, verbose)
>   File "/usr/lib/python2.7/xmlrpclib.py", line 1294, in single_request
>     response = h.getresponse(buffering=True)
>   File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
>     response.begin()
>   File "/usr/lib/python2.7/httplib.py", line 409, in begin
>     version, status, reason = self._read_status()
>   File "/usr/lib/python2.7/httplib.py", line 373, in _read_status
>     raise BadStatusLine(line)
> BadStatusLine: ''
> 
> ''
> 
> I'm using trytond 3.4 installed from mercurial sources on a wheezy machine,
> but the client is a 3.0 installed from ubuntu 14.04 packages. I don't think
> it's a problem since it can connect to the demo server.

Install the 3.4 client and try again.....

Reply via email to