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

Unable to active double puppeting #5

Open
wapsi opened this issue Oct 4, 2022 · 9 comments
Open

Unable to active double puppeting #5

wapsi opened this issue Oct 4, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@wapsi
Copy link

wapsi commented Oct 4, 2022

I'm unable to active the double puppeting. With all other bridges I'm using the "login-matrix " command works just fine, but with this bridge the bot just throws: "Didn't get a ghost :(" message. I have tried multiple different access tokens (tried to generate couple of new ones as well, so I'm 100% certain those are valid access tokens), but none of them works.

In the debug logs there's nothing interesting: the login-matrix received by the bridge and then it immediately responds with that "Didn't get a ghost :(" message:

[Oct  4, 2022 17:52:35] [CommandProcessor/DEBUG] @foouser:foo.bar sent "login-matrix xxx" in !yyy:foo.bar
[Oct  4, 2022 17:52:35] [Matrix/Bot/DEBUG] req #19: PUT http://localhost:8008/_matrix/client/v3/rooms/%21xxx:foo.bar/send/m.room.message/mautrix-go_123412341234_3?user_id=%40slackbot%3Afoo.bar {"msgtype":"m.notice","body":"Didn't get a ghost :("}

How can I debug this issue, or do you have any idea where the problem could it be? In the Synapse INFO level logs, there are only 200 OK responses to the as-sender-slack when I'm executing the "login-matrix xxx" command, no errors.

I'm following the instructions from here: https://docs.mau.fi/bridges/general/double-puppeting.html

@wapsi wapsi added the bug Something isn't working label Oct 4, 2022
@erebion
Copy link

erebion commented Dec 12, 2022

I've also noticed that issue.

@petermolnar
Copy link

petermolnar commented Feb 1, 2023

Same here, but I have to add this is said at https://docs.mau.fi/bridges/general/double-puppeting.html
N.B. This method is not currently supported in mautrix-imessage and mautrix-slack.

@Konubinix
Copy link
Contributor

I 👍 on this issue. I would love to have double pupetting here

@niebloomj
Copy link

Double puppeting not working for me either.

@niebloomj
Copy link

Can we get a list of items we need to complete to fix this issue? I'd like to track our progress towards this goal.

@tom-kuca
Copy link

tom-kuca commented Mar 1, 2024

I look around, the error message comes from mautrix/go. It's printed when GetIGhost() returns nil. For slack, the implementation is commented out:

slack/user.go

Lines 85 to 95 in a9ba2f9

func (user *User) GetIGhost() bridge.Ghost {
// if user.ID == "" {
// return nil
// }
// p := user.bridge.GetPuppetByID(user.ID)
// if p == nil {
// return nil
// }
// return p
return nil
}

It was commented 2 years ago in commit 4af303d (Basic login and logout support for multiple teams).

@niebloomj
Copy link

My guess is that since this is the only bridge that supports multiple logins, double puppeting didn't work as expected and needs to be reimplemented for a bridge that has multiple logins.

@nolimbsdotdev
Copy link

nolimbsdotdev commented Mar 12, 2024

This behaviour is expected. See https://docs.mau.fi/bridges/general/double-puppeting.html

Appservice method (new)
N.B. This method is not supported in the legacy (Python) Signal bridge nor the current iMessage and Slack bridges. You can use the alternative methods like shared secret login documented below (https://docs.mau.fi/bridges/general/double-puppeting.html#shared-secret-method-legacy-synapse-only) for those.

@niebloomj
Copy link

You mean it's a known bug and not that it's expected, right? Because I have no way to enable double puppeting for Slack on my dendrite server because of this so I wouldn't call that "expected" behavior, but rather, a known bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

7 participants