synapse-s3-storage-provider icon indicating copy to clipboard operation
synapse-s3-storage-provider copied to clipboard

can not connect to homeserver db with unix socket peer authentication

Open yu-re-ka opened this issue 2 years ago • 4 comments

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

    password=database_args["password"],
KeyError: 'password'

yu-re-ka avatar Jul 19 '23 15:07 yu-re-ka

are you able to try and see if replacing this line https://github.com/matrix-org/synapse-s3-storage-provider/blob/1beb6af95e1f5caedb8e6e7e1cc176cdb2106d37/scripts/s3_media_upload#L418

with

password=database_args.get("password"),

makes that work?

If so, this should be an easy fix.

reivilibre avatar Jul 21 '23 16:07 reivilibre

Any updates on this?

H-Shay avatar Aug 22 '23 17:08 H-Shay

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

erikjohnston avatar Sep 26 '23 08:09 erikjohnston

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

https://github.com/matrix-org/synapse-s3-storage-provider/blob/fa2b0e0c0935cc10ee090883916c8a7a0c6671b4/scripts/s3_media_upload#L448

AndrewKvalheim avatar Feb 21 '24 15:02 AndrewKvalheim