ERROR:tryton.device_cookie:Cannot renew device cookie


This error is showing on my logs, I didn’t caught the cause so I’m wondering if anyone have an idea of what problem could be?

ERROR:tryton.common.common:Unable to check for new version.
Traceback (most recent call last):
  File "/usr/lib/python3.8/urllib/", line 1350, in do_open
    h.request(req.get_method(), req.selector,, headers,
  File "/usr/lib/python3.8/http/", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.8/http/", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/", line 1010, in _send_output
  File "/usr/lib/python3.8/http/", line 950, in send
  File "/usr/lib/python3.8/http/", line 1417, in connect
  File "/usr/lib/python3.8/http/", line 921, in connect
    self.sock = self._create_connection(
  File "/usr/lib/python3.8/", line 787, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.8/", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/julio/Development/workspace-python/tryton/facturacion/tryton/tryton/common/", line 826, in check_version
  File "/usr/lib/python3.8/urllib/", line 222, in urlopen
    return, data, timeout)
  File "/usr/lib/python3.8/urllib/", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.8/urllib/", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/usr/lib/python3.8/urllib/", line 502, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.8/urllib/", line 1393, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/usr/lib/python3.8/urllib/", line 1353, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -2] Name or service not known>
ERROR:tryton.device_cookie:Cannot renew device cookie
Traceback (most recent call last):
  File "/home/julio/Development/workspace-python/tryton/facturacion/tryton/tryton/", line 22, in set_cookie
    new_cookie = new_cookie()
  File "/home/julio/Development/workspace-python/tryton/facturacion/tryton/tryton/common/", line 1077, in return_
    raise self.exception
  File "/home/julio/Development/workspace-python/tryton/facturacion/tryton/tryton/common/", line 1028, in start
    self.res = getattr(rpc, self.method)(*self.args)
  File "/home/julio/Development/workspace-python/tryton/facturacion/tryton/tryton/", line 122, in execute
    result = getattr(conn, name)(*args)
  File "/usr/lib/python3.8/xmlrpc/", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/home/julio/Development/workspace-python/tryton/facturacion/tryton/tryton/", line 295, in __request
    raise Fault(*response['error'])
tryton.jsonrpc.Fault: 'res.user.device'

Tryton server and the client app running without inconveniences

The user cookie is some new feature that just landed to development version.

If you are using the development version you should update your database. Otherwise you should install the version from the proper series.

Actually I am using the branch origin/5.8 for trytond, but for the client desktop app I already notice now that I’m on default.

The version that appear on client is 5.8.2. With 5.8.1 if fine to use with 5.8 server?

You should always use the same series/branch to have compatible versions. Otherwise you may found errrors like the one you are posting because the client is incompatible with the server.

Yes, they are both compatible because they have the same two first digits (what we call series)

The last digit is used for newer bug fixing versions and they will never contain an incompatible change.
That’s our policy.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.