Request timeout issue on trytond 4.2

83 views
Skip to first unread message

manohar b

unread,
Apr 9, 2017, 6:15:06 AM4/9/17
to tryton-dev
Hi,

I'm getting frequent timeout errors on rpc calls, but it is very inconsistent and once in a while i'm getting below error:

jquery.min.js:4 POST http://xx.xxx.xxx.xxx:8004/ net::ERR_CONNECTION_TIMED_OUT

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 47, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/wsgi.py", line 38, in auth_required
    if request.user_id:
  File "/werkzeug/utils.py", line 73, in __get__
    value = self.func(obj)
  File "/trytond/protocols/wrappers.py", line 64, in user_id
    database_name, auth.get('userid'), auth.get('session'))
  File "/trytond/security.py", line 84, in check
    transaction.commit()
  File "/trytond/transaction.py", line 119, in __exit__
    self.connection, self.close)
  File "/trytond/backend/postgresql/database.py", line 120, in put_connection
    self._connpool.putconn(connection, close=close)
  File "/psycopg2/pool.py", line 171, in putconn
    self._putconn(conn, key, close)
  File "/psycopg2/pool.py", line 98, in _putconn
    raise PoolError("trying to put unkeyed connection")
PoolError: trying to put unkeyed connection

Thanks,
Manohar.

Cédric Krier

unread,
Apr 9, 2017, 8:30:08 AM4/9/17
to tryton-dev
On 2017-04-09 03:09, manohar b wrote:
> Hi,
>
> I'm getting frequent timeout errors on rpc calls, but it is very
> inconsistent and once in a while i'm getting below error:
>
> *jquery.min.js:4 POST http://xx.xxx.xxx.xxx:8004/
> net::ERR_CONNECTION_TIMED_OUT*

The time out must come from a bad network connectivity.

> Traceback (most recent call last):
> File "/trytond/wsgi.py", line 47, in dispatch_request
> return endpoint(request, **request.view_args)
> File "/trytond/protocols/dispatcher.py", line 41, in rpc
> request, database_name, *request.rpc_params)
> File "/trytond/wsgi.py", line 38, in auth_required
> if request.user_id:
> File "/werkzeug/utils.py", line 73, in __get__
> value = self.func(obj)
> File "/trytond/protocols/wrappers.py", line 64, in user_id
> database_name, auth.get('userid'), auth.get('session'))
> File "/trytond/security.py", line 84, in check
> transaction.commit()
> File "/trytond/transaction.py", line 119, in __exit__
> self.connection, self.close)
> File "/trytond/backend/postgresql/database.py", line 120, in
> put_connection
> self._connpool.putconn(connection, close=close)
> File "/psycopg2/pool.py", line 171, in putconn
> self._putconn(conn, key, close)
> File "/psycopg2/pool.py", line 98, in _putconn
> raise PoolError("trying to put unkeyed connection")
> PoolError: trying to put unkeyed connection

This one is very strange. Have you any custom module that modify the
session management? It looks like some code put back the connection
earlier.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

manohar b

unread,
Apr 9, 2017, 9:10:05 AM4/9/17
to tryton-dev

 I don't have any custom module related to session management apart from tryton modules added from pip package.


Thanks,
Manohar.
Reply all
Reply to author
Forward
0 new messages