Skip to content
Snippets Groups Projects
  1. May 15, 2023
  2. May 12, 2023
  3. May 11, 2023
    • David Robertson's avatar
      Deal with more GHA deprecations (#15576) · 7c76514f
      David Robertson authored
      * Bump netlify PR
      
      * Manually cache mypy cache dir
      
      cache cache cache cache cache cache cache cache cache cache
      
      * Changelog
      7c76514f
    • Eric Eastwood's avatar
      Print full startup/initialization error (#15569) · d19d1edb
      Eric Eastwood authored
      I found the error in the **Before** really vague and obtuse and didn't realize port `5432` corresponded to the Postgres port until searching the codebase. It says to check the logs but that wasn't my first instinct. It's just more obvious if we just print the full thing which gives context of the error type and the traceback to the relevant area of code.
      
      #### Before
      
      ```
      $ 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.
      **********************************************************************************
      ```
      
      #### After
      
      ```sh
      $ poetry run python -m synapse.app.homeserver -c homeserver.yaml
      **********************************************************************************
       Error during initialisation:
           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?
       
       
       There may be more information in the logs.
      **********************************************************************************
      ```
      d19d1edb
    • David Robertson's avatar
      Allow `pip install` to use setuptools_rust 1.6.0 (#15570) · 5a7742a8
      David Robertson authored
      * Allow `pip install` to use setuptools_rust 1.6.0
      
      This was bumped by dependabot in #15512, but we didn't bump also raise
      the version guard here. I don't know how we can avoid this happening in
      the future.
      
      Closes #15461.
      
      Spotted in [1] by @landryb.
      
      [1]: https://github.com/matrix-org/synapse/issues/15461#issuecomment-1543513934
      
      * Changelog
      5a7742a8
    • Roel ter Maat's avatar
      Add redis SSL configuration options (#15312) · 2611433b
      Roel ter Maat authored
      * Add SSL options to redis config
      
      * fix lint issues
      
      * Add documentation and changelog file
      
      * add missing . at the end of the changelog
      
      * Move client context factory to new file
      
      * Rename ssl to tls and fix typo
      
      * fix lint issues
      
      * Added when redis attributes were added
      2611433b
    • V02460's avatar
      Require at least poetry-core v1.2.0 (#15566) · 5bf9ec9e
      V02460 authored
      
      Signed-off-by: default avatarKai A. Hiller <V02460@gmail.com>
      5bf9ec9e
    • Jason Little's avatar
      Remove `worker_replication_*` settings (#15491) · e4f545c4
      Jason Little authored
      
      * Add master to the instance_map as part of Complement, have ReplicationEndpoint look at instance_map for master.
      
      * Fix typo in drive by.
      
      * Remove unnecessary worker_replication_* bits from unit tests and add master to instance_map(hopefully in the right place)
      
      * Several updates:
      
      1. Switch from master to main for naming the main process in the instance_map. Add useful constants for easier adjustment of names in the future.
      2. Add backwards compatibility for worker_replication_* to allow time to transition to new style. Make sure to prioritize declaring main directly on the instance_map.
      3. Clean up old comments/commented out code.
      4. Adjust unit tests to match with new code.
      5. Adjust Complement setup infrastructure to only add main to the instance_map if workers are used and remove now unused options from the worker.yaml template.
      
      * Initial Docs upload
      
      * Changelog
      
      * Missed some commented out code that can go now
      
      * Remove TODO comment that no longer holds true.
      
      * Fix links in docs
      
      * More docs
      
      * Remove debug logging
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarreivilibre <olivier@librepush.net>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarreivilibre <olivier@librepush.net>
      
      * Update version to latest, include completeish before/after examples in upgrade notes.
      
      * Fix up and docs too
      
      ---------
      
      Co-authored-by: default avatarreivilibre <olivier@librepush.net>
      e4f545c4
    • Andrew Morgan's avatar
  4. May 10, 2023
  5. May 09, 2023
  6. May 08, 2023
  7. May 05, 2023
  8. May 04, 2023
  9. May 03, 2023
Loading