Closed upgradetofreedom closed 3 years ago
Things that occured to my mind:
drwxrwxrwx 9 root root 4096 May 7 17:31 mautrix-whatsapp
Not to start wars... Why root? why not proper user and give reading rights to synapses group? Though I don't know does synapse nor bridge software reall care about credentials (like for example SSH will not use file having too broad access rights).
Does the actual file has proper rights? not just folder?
I had a similar problem and located a typo in server_name I provided in config.yaml. Hence, whatsappbot@domain.tld was not authorized (code=401) to connect to my homeserver.
Had very similar issue - [ERROR] Failed to connect to homeserver: failed to ensure registered: unexpected end of JSON input. Retrying in 10 seconds...
Resolved by creating a synapse group, adding matrix-synapse user to group then chowning everything in whatsapp bridge folder to synapse group (from root), checking registration.yaml showed it had no group read permissions - so chmod that and everything started working.
@sj64 tried that didn't work for me, cant pass this annoying issue. Any other solutions? EDIT: I found the problem was i the homeserver.yaml
app_service_config_files:
app_service_config_files: "/home/user/mautrix-whatsapp/registration.yaml"
When I start the bridge I get this output: