Rasax and database cannot restart with DB-error

Hello everybody, we have the rasax - database error, after each restart when we working with rasax in kubernetes cluster. We are using Helm chart for rasa version 0.22.2 . And yes, we are using your hint in OpenShift and Kubernetes It starts ok with empty database and working OK till restart.

Afterthat it’s permanent Error in very beginning for rasax: FATAL: password authentication failed for user “admin”

Looks like after restart for some reason it generates new db with another password? Can you help us, please?


database (postgresql) error: 2019-12-03 21:50:57.599 GMT [29625] DETAIL: Password does not match for user “admin”. 12/3/2019 10:50:57 PM Connection matched pg_hba.conf line 1: “host all all 0.0.0.0/0 md5”


rasax error: …

12/4/2019 12:10:05 PM raise value.with_traceback(tb) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py”, line 2262, in _wrap_pool_connect 12/4/2019 12:10:05 PM return fn() 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py”, line 303, in unique_connection 12/4/2019 12:10:05 PM return _ConnectionFairy._checkout(self) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py”, line 760, in _checkout 12/4/2019 12:10:05 PM fairy = _ConnectionRecord.checkout(pool) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py”, line 492, in checkout 12/4/2019 12:10:05 PM rec = pool._do_get() 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py”, line 139, in _do_get 12/4/2019 12:10:05 PM self._dec_overflow() 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/util/langhelpers.py”, line 68, in exit 12/4/2019 12:10:05 PM compat.reraise(exc_type, exc_value, exc_tb) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/util/compat.py”, line 129, in reraise 12/4/2019 12:10:05 PM raise value 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/impl.py”, line 136, in _do_get 12/4/2019 12:10:05 PM return self._create_connection() 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py”, line 308, in _create_connection 12/4/2019 12:10:05 PM return _ConnectionRecord(self) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py”, line 437, in init 12/4/2019 12:10:05 PM self.__connect(first_connect_check=True) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/pool/base.py”, line 639, in __connect 12/4/2019 12:10:05 PM connection = pool._invoke_creator(self) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/strategies.py”, line 114, in connect 12/4/2019 12:10:05 PM return dialect.connect(*cargs, **cparams) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py”, line 453, in connect 12/4/2019 12:10:05 PM return self.dbapi.connect(*cargs, **cparams) 12/4/2019 12:10:05 PM File “/usr/local/lib/python3.6/site-packages/psycopg2/init.py”, line 126, in connect 12/4/2019 12:10:05 PM conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 12/4/2019 12:10:05 PM sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: password authentication failed for user “admin” 12/4/2019 12:10:05 PM (Background on this error at: http://sqlalche.me/e/e3q8)

Hi @albertKg, how did you install Rasa X? Did you customise your database password or did you leave it blank?