This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Print full startup/initialization error #15569
Merged
MadLittleMods
merged 7 commits into
develop
from
madlittlemods/slightly-better-initialization-error
May 11, 2023
Merged
Print full startup/initialization error #15569
MadLittleMods
merged 7 commits into
develop
from
madlittlemods/slightly-better-initialization-error
May 11, 2023
Commits on May 11, 2023
-
Print error type to give more context
``` poetry run python -m synapse.app.homeserver -c homeserver.yaml ********************************************************************************** Error during initialisation: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? There may be more information in the logs. ********************************************************************************** ``` ``` poetry run python -m synapse.app.homeserver -c homeserver.yaml ********************************************************************************** Error during initialisation: psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? There may be more information in the logs. ********************************************************************************** ``` ``` 2023-05-10 22:53:56,000 - synapse.app._base - 214 - ERROR - main - Exception during startup Traceback (most recent call last): File "/home/eric/Documents/github/element/synapse/synapse/app/homeserver.py", line 352, in setup hs.setup() File "/home/eric/Documents/github/element/synapse/synapse/server.py", line 337, in setup self.datastores = Databases(self.DATASTORE_CLASS, self) File "/home/eric/Documents/github/element/synapse/synapse/storage/databases/__init__.py", line 65, in __init__ with make_conn(database_config, engine, "startup") as db_conn: File "/home/eric/Documents/github/element/synapse/synapse/storage/database.py", line 161, in make_conn native_db_conn = engine.module.connect(**db_params) File "/home/eric/.cache/pypoetry/virtualenvs/matrix-synapse-xCtC9ulO-py3.10/lib/python3.10/site-packages/psycopg2/__init__.py", line 122, in connect conn = _connect(dsn, connection_factory=connection_factory, **kwasync) psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? ```
Configuration menu - View commit details
-
Copy full SHA for 809ecf4 - Browse repository at this point
Copy the full SHA 809ecf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb8b30c - Browse repository at this point
Copy the full SHA bb8b30cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d524803 - Browse repository at this point
Copy the full SHA d524803View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47ad987 - Browse repository at this point
Copy the full SHA 47ad987View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0642ee1 - Browse repository at this point
Copy the full SHA 0642ee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for fcad296 - Browse repository at this point
Copy the full SHA fcad296View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08554a7 - Browse repository at this point
Copy the full SHA 08554a7View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.