-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Describe the bug
I can't launch mas-cli syn2mas check as root, I get an error about database.
And if I launch it as postgres user, then it tells me about this error
Error: failed to load MAS config: missing field matrix``
even though in opt/mas/config.yaml file, I have something like :
passwords:
enabled: false
schemes:
- version: 1
algorithm: argon2id
minimum_complexity: 3
matrix:
kind: synapse
homeserver: defis.info
secret: averylongsecret
endpoint: https://matrix.mytld.com/
upstream_oauth2:
providers:
Here are the command I run and the output of them :
root@matrix:~# /opt/mas/mas-cli syn2mas check --config /opt/mas/mas_config.yaml --synapse-config /etc/matrix-synapse/homeserver.yaml
Error: could not connect to the database
Caused by:
0: error returned from database: role "root" does not exist
1: role "root" does not exist
root@matrix:~# su - postgres
postgres@matrix:~$ /opt/mas/mas-cli syn2mas check --config /opt/mas/mas_config.yaml --synapse-config /etc/matrix-synapse/homeserver.yaml
2025-10-28T22:40:25.774788Z INFO sqlx::postgres::notice:185 relation "_sqlx_migrations" already exists, skipping
Error: failed to load MAS config: missing field `matrix`
Caused by:
missing field `matrix`
postgres@matrix:~$ exit
logout
root@matrix:~# /opt/mas/mas-cli config --config /opt/mas/config.yaml check
2025-10-28T22:40:41.556078Z INFO mas_cli::commands::config:92 Configuration file looks good
root@matrix:~#
I don't understand how to solve this error.
Metadata
Metadata
Assignees
Labels
No labels