Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End2end encrypted mautrix-signal bridge fails with "Matrix connector: homeserver does not support appservice" #3206

Open
xundeenergie opened this issue Sep 15, 2024 · 9 comments

Comments

@xundeenergie
Copy link

Describe the bug
A clear and concise description of what the bug is.

I setup a new mautrix-signal bridge with end2end-encryption. I configured double-puppeting. All according to the docs from mautrix-bridge.

I changed from matrix-synapse with directly configured oidc and ldap authentication to matrix-authentication-service successfully. After that, my mautrix-signal bridge stopped working... so i setup a new bridge to test it for this bugreport.

I asked in the matrix-room for the mautrix-signal bridge and got pointed to this issue:
spantaleev/matrix-docker-ansible-deploy#3493

The conclusion there is, that my problem is probably with matrix-authentication-service.

What i did:

Created an example-config from the mautrix-signal directly and filled in the neccessary information from an old bridge, which worked before migration to MAS.

I activated end2end-encryption and double puppetting.

When i start the bridge, i get this in the bridge-log and combined the nginx-log for synapse/matrix with tail to those 2 logfiles:

==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:25:13 +0200] "GET /_matrix/client/versions?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 343 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"                        
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":1,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/versions?user_id=%40signalbotprimary%3Aschuerz.at","duration":57.545853,"status_code":200,"response_length":1038,"respon
se_mime":"application/json","time":"2024-09-16T00:25:13.949786427+02:00","message":"Request completed"}                                                                                                            
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:25:13 +0200] "GET /_matrix/client/v3/account/whoami?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 79 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"                
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":2,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v3/account/whoami?user_id=%40signalbotprimary%3Aschuerz.at","duration":3.932288,"status_code":200,"response_length":59,"
response_mime":"application/json","time":"2024-09-16T00:25:13.958542735+02:00","message":"Request completed"}                                                                                                      
{"level":"debug","txn_id":"mautrix-go_1726439113959084878_1","time":"2024-09-16T00:25:13.965025656+02:00","message":"Received ping from homeserver"}                                                               
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:25:13 +0200] "POST /_matrix/client/v1/appservice/signalprimary/ping?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 37 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":3,"method":"POST","url":"https://matrix.schuerz.at/_matrix/client/v1/appservice/signalprimary/ping?user_id=%40signalbotprimary%3Aschuerz.at","duration":11.486043,"status_code":200,"resp
onse_length":17,"response_mime":"application/json","req_body":{"transaction_id":"mautrix-go_1726439113959084878_1"},"time":"2024-09-16T00:25:13.970872465+02:00","message":"Request completed"}                    
{"level":"debug","txn_id":"mautrix-go_1726439113959084878_1","duration_ms":5,"time":"2024-09-16T00:25:13.9716988+02:00","message":"Homeserver -> bridge connection works"}                                         
{"level":"debug","component":"crypto","time":"2024-09-16T00:25:13.973128557+02:00","message":"Initializing end-to-bridge encryption..."}                                                                           
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:25:13 +0200] "GET /_matrix/client/v1/media/config?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 47 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"                  
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"info","db_section":"crypto","current_version":15,"oldest_compatible_version":15,"latest_known_version":15,"time":"2024-09-16T00:25:13.984279511+02:00","message":"Database is up to date"}               
{"level":"debug","req_id":4,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v1/media/config?user_id=%40signalbotprimary%3Aschuerz.at","duration":12.40641,"status_code":200,"response_length":27,"re
sponse_mime":"application/json","time":"2024-09-16T00:25:13.985897839+02:00","message":"Request completed"}                                                                                                        

==> /var/log/nginx/matrix.schuerz.at.access.log <==
127.0.0.0 - - [16/Sep/2024:00:25:13 +0200] "GET /_matrix/client/v3/login?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 114 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"

==> /var/log/mautrix-signal/primary/mautrix-signal.log <==
{"level":"debug","req_id":5,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v3/login?user_id=%40signalbotprimary%3Aschuerz.at","duration":3.704204,"status_code":200,"response_length":114,"response_mime":"application/json","time":"2024-09-16T00:25:13.99217928+02:00","message":"Request completed"}
{"level":"fatal","error":"failed to start Matrix connector: homeserver does not support appservice login","time":"2024-09-16T00:25:13.993619278+02:00","message":"Failed to start bridge"}

At the same time in homeserver.log: no entries!!

Deactivate e2e-encryption in bridge config and restart bridge

==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"info","name":"mautrix-signal","version":"0.7.0","built_at":"2024-08-16T12:19:42Z","go_version":"go1.22.6","time":"2024-09-16T00:36:47.431264927+02:00","message":"Initializing bridge"}                  
{"level":"debug","time":"2024-09-16T00:36:47.432282894+02:00","message":"Initializing database connection"}                                                                                                        
{"level":"debug","time":"2024-09-16T00:36:47.433698235+02:00","message":"Bridge built with end-to-bridge encryption, but disabled in config"}                                                                      
{"level":"info","component":"signalmeow","component":"libsignal","target":"signal_ffi::logging","file":"rust/bridge/ffi/src/logging.rs","line":106,"time":"2024-09-16T00:36:47.434493613+02:00","message":"Initiali
zing libsignal version:0.55.0"}                                                                                                                                                                                    
{"level":"info","time":"2024-09-16T00:36:47.467733054+02:00","message":"Starting bridge"}                                                                                                                          
{"level":"info","db_section":"main","current_version":16,"oldest_compatible_version":9,"latest_known_version":16,"time":"2024-09-16T00:36:47.493552211+02:00","message":"Database is up to date"}                  
{"level":"info","time":"2024-09-16T00:36:47.494406687+02:00","message":"Starting Matrix connector"}                                                                                                                
{"level":"info","db_section":"matrix_state","current_version":6,"oldest_compatible_version":3,"latest_known_version":6,"time":"2024-09-16T00:36:47.506548348+02:00","message":"Database is up to date"}            
{"level":"debug","time":"2024-09-16T00:36:47.507406401+02:00","message":"Starting appservice HTTP server"}                                                                                                         
{"level":"info","address":"127.0.0.1:29328","time":"2024-09-16T00:36:47.508167126+02:00","message":"Starting HTTP listener"}                                                                                       
{"level":"debug","time":"2024-09-16T00:36:47.508079549+02:00","message":"Checking connection to homeserver"}                                                                                                       
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
195.201.0.0 - - [16/Sep/2024:00:36:47 +0200] "PUT /_matrix/federation/v1/send/1726209072774 HTTP/1.1" 200 21 "-" "Synapse/1.114.0"                                                                                 
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "GET /_matrix/client/versions?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 343 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"                        
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":1,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/versions?user_id=%40signalbotprimary%3Aschuerz.at","duration":70.489057,"status_code":200,"response_length":1038,"respon
se_mime":"application/json","time":"2024-09-16T00:36:47.581615867+02:00","message":"Request completed"}                                                                                                            
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "GET /_matrix/client/v3/account/whoami?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 79 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"                
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":2,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v3/account/whoami?user_id=%40signalbotprimary%3Aschuerz.at","duration":5.895273,"status_code":200,"response_length":59,"
response_mime":"application/json","time":"2024-09-16T00:36:47.59306271+02:00","message":"Request completed"}                                                                                                       
{"level":"debug","txn_id":"mautrix-go_1726439807594125239_1","time":"2024-09-16T00:36:47.603980866+02:00","message":"Received ping from homeserver"}                                                               
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "POST /_matrix/client/v1/appservice/signalprimary/ping?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 37 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":3,"method":"POST","url":"https://matrix.schuerz.at/_matrix/client/v1/appservice/signalprimary/ping?user_id=%40signalbotprimary%3Aschuerz.at","duration":15.041505,"status_code":200,"resp
onse_length":17,"response_mime":"application/json","req_body":{"transaction_id":"mautrix-go_1726439807594125239_1"},"time":"2024-09-16T00:36:47.610116456+02:00","message":"Request completed"}                    
{"level":"debug","txn_id":"mautrix-go_1726439807594125239_1","duration_ms":7,"time":"2024-09-16T00:36:47.613841687+02:00","message":"Homeserver -> bridge connection works"}                                       
{"level":"info","time":"2024-09-16T00:36:47.615676144+02:00","message":"Starting network connector"}                                                                                                               

{"level":"debug","time":"2024-09-16T00:36:47.616195125+02:00","message":"Updating bot profile"}                                                                                                           [50/9021]
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "GET /_matrix/client/v1/media/config?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 47 "-" "mautrix-signal/0.7.0 mautrix-go/v0.20.0 go/1.22.6"                  
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":4,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v1/media/config?user_id=%40signalbotprimary%3Aschuerz.at","duration":9.072697,"status_code":200,"response_length":27,"re
sponse_mime":"application/json","time":"2024-09-16T00:36:47.626288541+02:00","message":"Request completed"}                                                                                                        
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "GET /_matrix/client/v3/profile/@signalbotprimary:schuerz.at/avatar_url?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 22 "-" "mautrix-signal/0.7.0 mautrix-go/v
0.20.0 go/1.22.6"                                                                                                                                                                                                  
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":5,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v3/profile/@signalbotprimary:schuerz.at/avatar_url?user_id=%40signalbotprimary%3Aschuerz.at","duration":8.993293,"status
_code":200,"response_length":2,"response_mime":"application/json","time":"2024-09-16T00:36:47.642621702+02:00","message":"Request completed"}                                                                      
{"level":"info","db_section":"signalmeow","current_version":0,"oldest_compatible_version":0,"latest_known_version":16,"time":"2024-09-16T00:36:47.645249352+02:00","message":"Preparing to update database schema"}
{"level":"info","db_section":"signalmeow","from":0,"to":16,"txn_mode":"on","description":"Latest revision","time":"2024-09-16T00:36:47.64573986+02:00","message":"Upgrading database"}                             
{"level":"debug","req_id":6,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v1/media/download/maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp?user_id=%40signalbotprimary%3Aschuerz.at","duration":15.425526,"s
tatus_code":200,"response_length":-1,"response_mime":"image/png","time":"2024-09-16T00:36:47.658797817+02:00","message":"Request completed"}                                                                       
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "GET /_matrix/client/v1/media/download/maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 15516 "-" "mautrix-signal/0.7.0 mautr
ix-go/v0.20.0 go/1.22.6"                                                                                                                                                                                           
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "PUT /_matrix/client/v3/profile/@signalbotprimary:schuerz.at/avatar_url?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 22 "-" "mautrix-signal/0.7.0 mautrix-go/v
0.20.0 go/1.22.6"                                                                                                                                                                                                  
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":7,"method":"PUT","url":"https://matrix.schuerz.at/_matrix/client/v3/profile/@signalbotprimary:schuerz.at/avatar_url?user_id=%40signalbotprimary%3Aschuerz.at","duration":27.334574,"statu
s_code":200,"response_length":2,"response_mime":"application/json","req_body":{"avatar_url":"mxc://maunium.net/wPJgTQbZOtpBFmDNkiNEMDUp"},"time":"2024-09-16T00:36:47.687190471+02:00","message":"Request completed
"}                                                                                                                                                                                                                 
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "GET /_matrix/client/v3/profile/@signalbotprimary:schuerz.at/displayname?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 54 "-" "mautrix-signal/0.7.0 mautrix-go/
v0.20.0 go/1.22.6"                                                                                                                                                                                                 
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":8,"method":"GET","url":"https://matrix.schuerz.at/_matrix/client/v3/profile/@signalbotprimary:schuerz.at/displayname?user_id=%40signalbotprimary%3Aschuerz.at","duration":8.701781,"statu
s_code":200,"response_length":34,"response_mime":"application/json","time":"2024-09-16T00:36:47.697612841+02:00","message":"Request completed"}                                                                    
                                                                                                                                                                                                                   
==> /var/log/nginx/matrix.schuerz.at.access.log <==                                                                                                                                                                
127.0.0.0 - - [16/Sep/2024:00:36:47 +0200] "PUT /_matrix/client/v3/profile/@signalbotprimary:schuerz.at/displayname?user_id=%40signalbotprimary%3Aschuerz.at HTTP/2.0" 200 22 "-" "mautrix-signal/0.7.0 mautrix-go/
v0.20.0 go/1.22.6"                                                                                                                                                                                                 
                                                                                                                                                                                                                   
==> /var/log/mautrix-signal/primary/mautrix-signal.log <==                                                                                                                                                         
{"level":"debug","req_id":9,"method":"PUT","url":"https://matrix.schuerz.at/_matrix/client/v3/profile/@signalbotprimary:schuerz.at/displayname?user_id=%40signalbotprimary%3Aschuerz.at","duration":19.697832,"stat
us_code":200,"response_length":2,"response_mime":"application/json","req_body":{"displayname":"Signal bridge bot (Primary)"},"time":"2024-09-16T00:36:47.71806175+02:00","message":"Request completed"}            
{"level":"debug","component":"disappear loop","time":"2024-09-16T00:36:47.939561258+02:00","message":"Disappearing message loop starting"}
{"level":"info","time":"2024-09-16T00:36:47.948030436+02:00","message":"No user logins found"}
{"level":"debug","bridge_state":{"state_event":"UNCONFIGURED","timestamp":1726439807,"ttl":21600,"source":"bridge"},"time":"2024-09-16T00:36:47.948668794+02:00","message":"Sent new global bridge state"}
{"level":"info","time":"2024-09-16T00:36:47.948848033+02:00","message":"Bridge started"}

Now the bridge starts!!

To Reproduce
Steps to reproduce the behavior:

  1. setup a new mautrix-signal bridge with end2end encryption and double puppeting
  2. start bridge
  3. see error
  4. deactivate e2ee and restart bridge
  5. see bridge starting.

Expected behavior
A end2end-encrypted, double-puppeting mautrix-signal-bridge working with synapse an matrix-authentication-service.

Additional context
Add any other context about the problem here.

@xundeenergie
Copy link
Author

@onestacked
Copy link

onestacked commented Sep 23, 2024

MSC4190 should solve this. (But it is a relatively new MSC so might take some time until it is adopted)
I've creates a PR for mautrix/go for this. (This is used by the signal bridge)
Synapse has a draft PR for this MSC.

@onestacked
Copy link

@xundeenergie The most recent versions of synapse and mautrix-signal should now work with MSC4190, mautrix-signal just needs to be configured to use it (and the appservice registration file needs to be updated).

@xundeenergie
Copy link
Author

@xundeenergie The most recent versions of synapse and mautrix-signal should now work with MSC4190, mautrix-signal just needs to be configured to use it (and the appservice registration file needs to be updated).

Do you mean the latest release of mautrix-signal (v0.7.4) or the latest nightly build?

@onestacked
Copy link

onestacked commented Jan 11, 2025

It should work in the latest release.

@xundeenergie
Copy link
Author

and matrix-synapse
ii matrix-synapse-py3 1.121.1+bookworm1 amd64 Open federated Instant Messaging and VoIP server

I can not enable encryption for bridge...

from mautrix-signal log:
Jan 11 17:29:24 sc-chat-01 mautrix_signal_primary[9205]: 2025-01-11T17:29:24.116+01:00 FTL Failed to start bridge error="failed to start Matrix connector: failed to create device for bridge bot: M_NOT_FOUND (HTTP 404): Not found"

@xundeenergie
Copy link
Author

The whole log from mautrix-signal is

Jan 11 17:38:11 sc-chat-01 systemd[1]: Started [email protected] - mautrix-signal primary bridge.
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.89+01:00 INF Initializing bridge built_at=2025-01-10T16:52:24Z go_version=go1.23.4 name=mautrix-signal version=0.7.4+dev.305d8499
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.89+01:00 DBG Initializing database connection
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.896+01:00 INF Initializing libsignal version:0.64.1 component=libsignal file=rust/bridge/ffi/src/logging.rs line=103
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.908+01:00 INF Starting bridge
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.917+01:00 INF Database is up to date current_version=20 db_section=main latest_known_version=20 oldest_compatible_version=9
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.917+01:00 INF Starting Matrix connector
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.923+01:00 INF Database is up to date current_version=7 db_section=matrix_state latest_known_version=7 oldest_compatible_version=3
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.923+01:00 DBG Starting appservice HTTP server
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.923+01:00 DBG Checking connection to homeserver
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.923+01:00 INF Starting HTTP listener address=127.0.0.1:29330
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.928+01:00 DBG Request completed duration=4.218414 method=GET req_id=1 response_length=1037 response_mime=application/json status_code=200 url=http://localhost:8008/_matrix/client/versions?user_id=%40signalbotprimary%3Aschuerz.at
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.93+01:00 DBG Request completed duration=1.250966 method=GET req_id=2 response_length=59 response_mime=application/json status_code=200 url=http://localhost:8008/_matrix/client/v3/account/whoami?user_id=%40signalbotprimary%3Aschuerz.at
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.941+01:00 DBG Received ping from homeserver txn_id=mautrix-go_1736613491930341916_1
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.943+01:00 DBG Request completed duration=12.650024 method=POST req_body={"transaction_id":"mautrix-go_1736613491930341916_1"} req_id=3 response_length=18 response_mime=application/json status_code=200 url=http://localhost:8008/_matrix/client/v1/appservice/signalprimary/ping?user_id=%40signalbotprimary%3Aschuerz.at
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.943+01:00 DBG Homeserver -> bridge connection works duration_ms=11 txn_id=mautrix-go_1736613491930341916_1
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.943+01:00 DBG Initializing end-to-bridge encryption... component=crypto
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.945+01:00 DBG Request completed duration=2.074565 method=GET req_id=4 response_length=27 response_mime=application/json status_code=200 url=http://localhost:8008/_matrix/client/v1/media/config?user_id=%40signalbotprimary%3Aschuerz.at
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.947+01:00 INF Database is up to date current_version=17 db_section=crypto latest_known_version=17 oldest_compatible_version=15
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.949+01:00 DBG Creating bot device with MSC4190 component=crypto
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.953+01:00 DBG Request completed duration=3.071236 method=PUT req_body={"display_name":"Signal bridge"} req_id=5 response_length=45 response_mime=application/json status_code=404 url=http://localhost:8008/_matrix/client/v3/devices/NUNWZVIZHT?user_id=%40signalbotprimary%3Aschuerz.at
Jan 11 17:38:11 sc-chat-01 mautrix_signal_primary[11061]: 2025-01-11T17:38:11.953+01:00 FTL Failed to start bridge error="failed to start Matrix connector: failed to create device for bridge bot: M_NOT_FOUND (HTTP 404): Not found"
Jan 11 17:38:11 sc-chat-01 systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Jan 11 17:38:11 sc-chat-01 systemd[1]: [email protected]: Failed with result 'exit-code'.

@xundeenergie
Copy link
Author

xundeenergie commented Jan 11, 2025

so... bridge is totally broken now.
:-(
2025-01-11 17:54:23,995 - synapse.api.auth.msc3861_delegated - 338 - ERROR - GET-6 - Failed to introspect token

@onestacked
Copy link

onestacked commented Jan 11, 2025

Did you update the appservice registration file?
The bridge should add an additional line in the generated one (if msc4190 is enabled in the bridge config).
The registration file used by Synapse needs to have this flag (io.element.msc4190) set to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants