Issue 10154

Title
Renew device cookie fails randomly
Priority
bug
Status
chatting
Nosy list
ced, pokoli
Assigned to
Keywords

Created on 2021-03-05.09:58:38 by ced, last changed 6 months ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-03-05.09:58:38

Randomly I see such traceback:

ERROR:tryton.device_cookie:Cannot renew device cookie
Traceback (most recent call last):
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/device_cookie.py", line 22, in set_cookie
    new_cookie = new_cookie()
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/common/common.py", line 1077, in return_
    raise self.exception
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/common/common.py", line 1028, in start
    self.res = getattr(rpc, self.method)(*self.args)
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/rpc.py", line 122, in execute
    result = getattr(conn, name)(*args)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/jsonrpc.py", line 268, in __request
    response = self.__transport.request(
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1165, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1266, in send_request
    connection = self.make_connection(host)
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/jsonrpc.py", line 225, in make_connection
    http_connection()
  File "/home/ced/Projects/trunk/incoterm/tryton/tryton/jsonrpc.py", line 193, in http_connection
    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
AttributeError: 'NoneType' object has no attribute 'setsockopt'
History
Date User Action Args
2021-03-05 13:10:26cedsetmessages: - msg65121
2021-03-05 13:10:23cedsetmessages: - msg65120
2021-03-05 13:10:02cedsetmessages: + msg65121
2021-03-05 13:01:53pokolisetmessages: + msg65120
nosy: + pokoli
status: unread -> chatting
2021-03-05 09:58:38cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)