mautrix / facebook

A Matrix-Facebook Messenger puppeting bridge
https://matrix.to/#/#facebook:maunium.net
GNU Affero General Public License v3.0
389 stars 64 forks source link

Having trouble with getting the bridge to read the Postgres database (Dendrite): foreign table #232

Closed rowanad closed 2 years ago

rowanad commented 2 years ago

The database appears to have a a foreign table"goose_db_version" so the bridge terminates on startup. The logs for the bridge tell me that I can use a "--ignore-foreign-tables" flag to ignore the error and proceed but I can't work out how I can pass this option to the function that requires it. Can it be done using the config.yaml?

If not, perhaps option this can be added to the config?

As a workaround, I have tried deleting the table, but it is simply regenerated so the error persists.

tulir commented 2 years ago

Don't share databases between different programs.

The flag is just a command-line parameter, as in python -m mautrix_facebook --ignore-foreign-tables (although there's currently no easy way to pass it when using docker, some solution for docker will come in the future)