Matrix Synapse mautrix plugins can't see postgresql database

As I was following through with the docker documentation for mautrix-facebook, I got to the point where I start the bot, it throws the error I’m going to put at the bottom of the message, I’m not sure what address to use or how to go about getting it to see the database or even if I’m going about the problem that it’s hanging on by trying to figure out what the right hostname to use. The error is this, it happens with both localhost and the domain name:

Traceback (most recent call last): File “/usr/lib/python3.9/site-packages/mautrix/util/”, line 219, in _run self.loop.run_until_complete(self.start()) File “/usr/lib/python3.9/asyncio/”, line 642, in run_until_complete return future.result() File “/usr/lib/python3.9/site-packages/mautrix_facebook/”, line 99, in start await super().start() File “/usr/lib/python3.9/site-packages/mautrix/bridge/”, line 174, in start await self.start_db() File “/usr/lib/python3.9/site-packages/mautrix/bridge/”, line 163, in start_db await self.db.start() File “/usr/lib/python3.9/site-packages/mautrix/util/async_db/”, line 44, in start self._pool = await asyncpg.create_pool(self.url, **self.db_args) File “/usr/lib/python3.9/site-packages/asyncpg/”, line 413, in async__init await self._initialize() File “/usr/lib/python3.9/site-packages/asyncpg/”, line 441, in _initialize await first_ch.connect() File “/usr/lib/python3.9/site-packages/asyncpg/”, line 133, in connect self._con = await self._pool._get_new_connection() File “/usr/lib/python3.9/site-packages/asyncpg/”, line 511, in _get_new_connection con = await connection.connect( File “/usr/lib/python3.9/site-packages/asyncpg/”, line 2085, in connect return await connect_utils._connect( File “/usr/lib/python3.9/site-packages/asyncpg/”, line 895, in _connect raise last_error File “/usr/lib/python3.9/site-packages/asyncpg/”, line 881, in _connect return await _connect_addr( File “/usr/lib/python3.9/site-packages/asyncpg/”, line 781, in _connect_addr return await __connect_addr(params, timeout, True, *args) File “/usr/lib/python3.9/site-packages/asyncpg/”, line 825, in __connect_addr tr, pr = await compat.wait_for(connector, timeout=timeout) File “/usr/lib/python3.9/site-packages/asyncpg/”, line 66, in wait_for return await asyncio.wait_for(fut, timeout) File “/usr/lib/python3.9/asyncio/”, line 481, in wait_for return fut.result() File “/usr/lib/python3.9/site-packages/asyncpg/”, line 691, in _create_ssl_connection tr, pr = await loop.create_connection( File “/usr/lib/python3.9/asyncio/”, line 1017, in create_connection infos = await self._ensure_resolved( File “/usr/lib/python3.9/asyncio/”, line 1396, in _ensure_resolved return await loop.getaddrinfo(host, port, family=family, type=type, File “/usr/lib/python3.9/asyncio/”, line 856, in getaddrinfo return await self.run_in_executor( File “/usr/lib/python3.9/concurrent/futures/”, line 52, in run result = self.fn(*self.args, **self.kwargs) File “/usr/lib/python3.9/”, line 954, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name does not resolve

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer