Am having trouble to create admin user password after a succefully installation of Rasa X using docker in Ubuntu 20.04. Below is my error message.
Traceback (most recent call last): File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py”, line 2336, in _wrap_pool_connect return fn() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 364, in connect return _ConnectionFairy._checkout(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 778, in _checkout fairy = _ConnectionRecord.checkout(pool) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 495, in checkout rec = pool._do_get() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/impl.py”, line 140, in do_get self.dec_overflow() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/langhelpers.py”, line 68, in exit compat.raise( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py”, line 182, in raise raise exception File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/impl.py”, line 137, in _do_get return self._create_connection() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 309, in _create_connection return _ConnectionRecord(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 440, in init self.__connect(first_connect_check=True) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 661, in connect pool.logger.debug(“Error on connect(): %s”, e) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/langhelpers.py”, line 68, in exit compat.raise( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py”, line 182, in raise raise exception File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 656, in __connect connection = pool._invoke_creator(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/strategies.py”, line 114, in connect return dialect.connect(*cargs, **cparams) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py”, line 508, in connect return self.dbapi.connect(*cargs, **cparams) File “/usr/local/lib/python3.8/dist-packages/psycopg2/init.py”, line 127, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: could not connect to server: Connection timed out Is the server running on host “db” (172.19.0.5) and accepting TCP/IP connections on port 5432?
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “manage_users.py”, line 197, in list_users(_user_service, team_name) File “manage_users.py”, line 140, in list_users users = userservice.fetch_all_users(team_name) File “/usr/local/lib/python3.8/dist-packages/rasax/community/services/user_service.py”, line 109, in fetch_all_users users = self.query(User).filter(User.team == team).filter(query).all() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py”, line 3373, in all return list(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py”, line 3535, in iter return self._execute_and_instances(context) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py”, line 3556, in _execute_and_instances conn = self._get_bind_args( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py”, line 3571, in _get_bind_args return fn( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/query.py”, line 3550, in _connection_from_session conn = self.session.connection(**kw) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py”, line 1142, in connection return self._connection_for_bind( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py”, line 1150, in _connection_for_bind return self.transaction._connection_for_bind( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/orm/session.py”, line 433, in _connection_for_bind conn = bind._contextual_connect() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py”, line 2302, in _contextual_connect self._wrap_pool_connect(self.pool.connect, None), File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py”, line 2339, in _wrap_pool_connect Connection.handle_dbapi_exception_noconnection( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py”, line 1583, in handle_dbapi_exception_noconnection util.raise( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py”, line 182, in raise raise exception File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py”, line 2336, in _wrap_pool_connect return fn() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 364, in connect return _ConnectionFairy._checkout(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 778, in _checkout fairy = _ConnectionRecord.checkout(pool) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 495, in checkout rec = pool._do_get() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/impl.py”, line 140, in do_get self.dec_overflow() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/langhelpers.py”, line 68, in exit compat.raise( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py”, line 182, in raise raise exception File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/impl.py”, line 137, in _do_get return self._create_connection() File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 309, in _create_connection return _ConnectionRecord(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 440, in init self.__connect(first_connect_check=True) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 661, in connect pool.logger.debug(“Error on connect(): %s”, e) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/langhelpers.py”, line 68, in exit compat.raise( File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/util/compat.py”, line 182, in raise raise exception File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/pool/base.py”, line 656, in __connect connection = pool._invoke_creator(self) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/strategies.py”, line 114, in connect return dialect.connect(*cargs, **cparams) File “/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py”, line 508, in connect return self.dbapi.connect(*cargs, **cparams) File “/usr/local/lib/python3.8/dist-packages/psycopg2/init.py”, line 127, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) could not connect to server: Connection timed out Is the server running on host “db” (172.19.0.5) and accepting TCP/IP connections on port 5432?
(Background on this error at: http://sqlalche.me/e/13/e3q8)