Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not connect to homeserver db with unix socket peer authentication #98

Open
yu-re-ka opened this issue Jul 19, 2023 · 4 comments
Open
Labels
bug Something isn't working

Comments

@yu-re-ka
Copy link

My configuration does not contain a database password, because none is required.

    password=database_args["password"],
KeyError: 'password'
@reivilibre
Copy link
Contributor

are you able to try and see if replacing this line

password=database_args["password"],

with

password=database_args.get("password"),

makes that work?

If so, this should be an easy fix.

@reivilibre reivilibre added the bug Something isn't working label Jul 21, 2023
@H-Shay
Copy link

H-Shay commented Aug 22, 2023

Any updates on this?

@erikjohnston
Copy link
Member

Oh whoops, misread the comment and thought the config was wrong.

@erikjohnston erikjohnston reopened this Sep 26, 2023
@AndrewKvalheim
Copy link

Looks like using database.yaml instead should at least serve as a workaround.

synapse_db_conn = psycopg2.connect(**database_yaml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants