matrix-org / synapse-s3-storage-provider

Synapse storage provider to fetch and store media in Amazon S3
Apache License 2.0
132 stars 36 forks source link

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

Open yu-re-ka opened 1 year ago

yu-re-ka commented 1 year ago

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

    password=database_args["password"],
KeyError: 'password'
reivilibre commented 1 year ago

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.

H-Shay commented 1 year ago

Any updates on this?

erikjohnston commented 1 year ago

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

AndrewKvalheim commented 9 months ago

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