matrix-puppet-imessage icon indicating copy to clipboard operation
matrix-puppet-imessage copied to clipboard

"Failed to join room" against Synapse 1.12.0

Open cvincent opened this issue 4 years ago • 7 comments

Last night I began the process of moving my homeserver off my media server to a new server dedicated to various cloud applications (so the media server can dedicate all its resources to transcoding). This meant getting my lovely iMessage bridge moved as well.

I ended up in a situation where I could receive but not send messages. After many frustrating hours of debugging, I realized my new homeserver installation was of course using the latest version (1.12.0 as of this writing), while the previous installation which had been working was on 1.9.1. So I rolled back to 1.9.1, started everything from scratch, and now I'm back in business.

Here's the error I see (phone number edited out) when running against 1.12.0: failed to join ghost +XXXXXXXXXXX Error: Failed to join room.

I don't know which precise Synapse version breaks it, only that 1.9.1 works and 1.12.0 doesn't. It's possible the issue isn't in the iMessage bridge itself, but in the underlying library it uses to connect with Matrix.

cvincent avatar Mar 27 '20 20:03 cvincent

Turns out this isn't totally unknown: https://matrix.to/#/!ChuQQIVJvwyJujhNIG:synapse.keyvan.pw/$15844732593TBqfJ:bobpaul.org?via=matrix.org&via=tchncs.de&via=matrix.allmende.io

cvincent avatar Mar 28 '20 03:03 cvincent

Did you use the latest commit 1bb03853f18f36596c15a1c6b4476a6827557e96? I fixed the issue there...

nr23730 avatar Mar 30 '20 10:03 nr23730

Did you use the latest commit 1bb0385? I fixed the issue there...

I'm using a checkout of that commit and am seeing the same symptoms as cvincent. Messages from Matrix are never sent to iMessage but the inverse way works just fine. It started with Synapse 1.12.0 for me, too. It worked with v1.11.0.

Philantrop avatar Mar 31 '20 16:03 Philantrop

Is this for new or existing conversations? I'm on 1.12.0 and haven't noticed any problems with existing conversations. I haven't had any new conversations to test with.

cwmke avatar Apr 02 '20 02:04 cwmke

Is this for new or existing conversations? I'm on 1.12.0 and haven't noticed any problems with existing conversations. I haven't had any new conversations to test with.

Both in my case.

Philantrop avatar Apr 02 '20 04:04 Philantrop

Yeah this is a separate issue from what was fixed in 1bb0385 (which is merging in my fix for the other issue).

cvincent avatar Jun 29 '20 16:06 cvincent

From a little sleuthing starting from the above matrix.to link, it appears to be related to this issue: https://github.com/matrix-org/matrix-doc/pull/2261

I'm wondering if simply updating the underlying matrix-puppet-bridge library will make it work against the latest Synapse version. Can anyone confirm? I'd try it but I do rely on my existing setup and don't want to end up in a weird situation that's hard to come back from. Would be great to get some kind of automated testing around bridge integration in general.

cvincent avatar Jun 29 '20 17:06 cvincent