Hi Devs,

I getting next errors and I can not to create new database on Tryton 4.0 server, (fresh install ubuntu 16.04, postgresql 9.5), trytond is on virtualenv python 3.5 and client about python 2.7:


Client side traceback

psk@psk-SAMS:~$ tryton -v
INFO:tryton.rpc:common.db.list_lang(())
INFO:tryton.rpc:common.db.list_lang(())
ERROR:tryton.common.common:Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tryton-4.0.0-py2.7.egg/tryton/gui/window/dbcreate.py", line 65, in server_change
    common.refresh_langlist(self.combo_language, host, port)
File "/usr/local/lib/python2.7/dist-packages/tryton-4.0.0-py2.7.egg/tryton/common/common.py", line 253, in refresh_langlist
    lang_list = rpc.db_exec(host, port, 'list_lang')
File "/usr/local/lib/python2.7/dist-packages/tryton-4.0.0-py2.7.egg/tryton/rpc.py", line 55, in db_exec
    result = getattr(connection.common.db, method)(*args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1240, in __call__
    return self.__send(self.__name, args)
File "/usr/local/lib/python2.7/dist-packages/tryton-4.0.0-py2.7.egg/tryton/jsonrpc.py", line 283, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1280, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1328, in single_request
    response.msg,
ProtocolError: <ProtocolError for 127.0.0.1:8100/: 500 INTERNAL SERVER ERROR>

<ProtocolError for 127.0.0.1:8100/: 500 INTERNAL SERVER ERROR>


Server side traceback

4415 140271277958912 [2016-05-06 16:28:03,481] INFO trytond.config using /home/psk/.trytond/trytond.conf as configuration file 4415 140271115093760 [2016-05-06 16:28:24,471] INFO werkzeug 127.0.0.1 - - [06/May/2016 16:28:24] "POST / HTTP/1.1" 500 - 4415 140271115093760 [2016-05-06 16:28:24,473] ERROR werkzeug Error on request:
Traceback (most recent call last):
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/serving.py", line 193, in run_wsgi
    execute(self.server.app)
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/serving.py", line 181, in execute
    application_iter = app(environ, start_response)
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/wsgi.py", line 599, in __call__
    return self.app(environ, start_response)
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/wsgi.py", line 84, in __call__
    return self.wsgi_app(environ, start_response)
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/wsgi.py", line 74, in wsgi_app
    response = cls.response(data, request)
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/protocols/jsonrpc.py", line 149, in response
    response = {'id': request.parsed_data.get('id', 0)}
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/utils.py", line 73, in __get__
    value = self.func(obj)
File "/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/protocols/jsonrpc.py", line 126, in parsed_data
    raise BadRequest('Unable to read JSON request')
werkzeug.exceptions.BadRequest: 400: Bad Request


my trytond.conf  file:


[database]
uri = postgresql://psk:xxxxxxx@127.0.0.1:5432/
path = /var/lib/trytond/
language = es_CO
retry = 5


[session]
timeout = 6000
super_pwd = xxxxxxxxxxx


[web]
listen = *:8100
hostname = 127.0.0.1
root = /var/www/localhost/tryton


So postgresql is running fine:

psk@psk-SAMS:~$ ps -Af | grep postgres
postgres 4100 1 0 11:04 ? 00:00:00 /usr/lib/postgresql/9.5/bin/postgres -D /var/lib/postgresql/9.5/main -c config_file=/etc/postgresql/9.5/main/postgresql.conf postgres 4102 4100 0 11:04 ? 00:00:00 postgres: checkpointer process


1. Somebody has the same problem?,

2. How can I improvement the traceback output?

3. Is it a bug?


Thanks for advance.

Oscar Alvarez

--
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/572CCA06.2080006%40gmail.com.

Reply via email to