Advertisement
RingtailedFox

synapse crashes after switching to postgresql

May 3rd, 2024
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.62 KB | None | 0 0
  1. Error during initialisation:
  2.      Traceback (most recent call last):
  3.        File "/home/user/synapse/env/lib/python3.11/site-packages/synapse/app/homeserver.py", line 359, in setup
  4.          hs.setup()
  5.        File "/home/user/synapse/env/lib/python3.11/site-packages/synapse/server.py", line 348, in setup
  6.          self.datastores = Databases(self.DATASTORE_CLASS, self)
  7.                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  8.        File "/home/user/synapse/env/lib/python3.11/site-packages/synapse/storage/databases/__init__.py", line 72, in __init__
  9.          with make_conn(database_config, engine, "startup") as db_conn:
  10.               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  11.        File "/home/user/synapse/env/lib/python3.11/site-packages/synapse/storage/database.py", line 165, in make_conn
  12.          native_db_conn = engine.module.connect(**db_params)
  13.                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  14.        File "/home/user/synapse/env/lib/python3.11/site-packages/psycopg2/__init__.py", line 122, in connect
  15.          conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
  16.                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  17.      psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  Peer authentication failed for user "synapse_user"
  18.  
  19.  
  20.  There may be more information in the logs.
  21. **********************************************************************************
  22. synapse.app.homeserver(homeserver.yaml) failed to start (exit code: 1). Check the Synapse logfile, or run synctl with --no-daemonize.
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement