Dear everyone,
when logging out of our tryton instance (version 7.6.5 using SAO), we often get the following error message:
'Transaction' object has no attribute '_datamanagers'
Traceback (most recent call last):
File "\Lib\site-packages\trytond\transaction.py", line 192, in start
database = backend.Database(database_name).connect()
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "\Lib\site-packages\trytond\backend\postgresql\database.py", line 237, in __new__
inst._connpool = ThreadedConnectionPool(
~~~~~~~~~~~~~~~~~~~~~~^
_minconn, _maxconn, **cls._connection_params(name),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cursor_factory=LoggingCursor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\psycopg2\pool.py", line 161, in __init__
AbstractConnectionPool.__init__(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self, minconn, maxconn, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\psycopg2\pool.py", line 59, in __init__
self._connect()
~~~~~~~~~~~~~^^
File "\Lib\site-packages\psycopg2\pool.py", line 63, in _connect
conn = psycopg2.connect(*self._args, **self._kwargs)
File "\Lib\site-packages\psycopg2\__init__.py", line 135, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "127.0.0.1", port 5432 failed: FATAL: Datenbank »null« existiert nicht
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "\Lib\site-packages\trytond\wsgi.py", line 97, in dispatch_request
return endpoint(request, **request.view_args)
File "\Lib\site-packages\trytond\protocols\dispatcher.py", line 44, in rpc
return methods.get(request.rpc_method, _dispatch)(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
request, database_name, *request.rpc_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\trytond\protocols\dispatcher.py", line 54, in login
session = security.login(
database_name, user, parameters, context=context)
File "\Lib\site-packages\trytond\security.py", line 43, in login
with Transaction().start(dbname, 0, context=context) as transaction:
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\Lib\site-packages\trytond\transaction.py", line 236, in start
self.stop(False)
~~~~~~~~~^^^^^^^
File "\Lib\site-packages\trytond\transaction.py", line 255, in stop
self.rollback()
~~~~~~~~~~~~~^^
File "\Lib\site-packages\trytond\transaction.py", line 393, in rollback
for datamanager in self._datamanagers:
^^^^^^^^^^^^^^^^^^
AttributeError: 'Transaction' object has no attribute '_datamanagers'
And I think the most interesting line is:
FATAL: Datenbank »null« existiert nicht
which means
FATAL: Database »null« doesn't exist
Our config file contains the following entries:
[database]
uri = postgresql://username:password@127.0.0.1:5432
path = C:\Users\Tryton\tryton
language = de
[web]
listen = 169.254.204.25:8000
root = C:\Users\Tryton\tryton\sao
[webdav]
listen = 0.0.0.0:8080
ssl_webdav = False
[session]
max_age = 86400
timeout = 300
[password]
length = 8
forbidden=C:\Users\Tryton\tryton\Scripts\passwörter.txt
Do you have any idea why this error message appears and how I can get rid of it?
Many thanks in advance!
Edit: corrected the tryton version