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

Error when using Pantalaimon for encryption #716

Open
Yureien opened this issue Nov 8, 2022 · 3 comments
Open

Error when using Pantalaimon for encryption #716

Yureien opened this issue Nov 8, 2022 · 3 comments
Labels
S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. X-Needs-Info This issue is blocked pending further information from the reporter.

Comments

@Yureien
Copy link

Yureien commented Nov 8, 2022

Getting the following error when Pantalaimon is enabled:

koss-slack-matrix-bridge | [winston] Attempt to write logs with no transports, which can increase memory usage: {"module":"MatrixHttpClient","data":["(REQ-5) PUT http://pantalaimon:8008/_matrix/client/v3/rooms/REDACTED/org/send/org.matrix.bridge.ping/1667923138989__inc1"],"level":"debug"}
koss-slack-matrix-bridge | [winston] Attempt to write logs with no transports, which can increase memory usage: {"module":"MatrixHttpClient","data":["(REQ-5) {\n  errcode: 'M_UNKNOWN',\n  error: 'The pantalaimon client did not manage to sync with the server'\n}"],"level":"error"

Pantalaimon logs:

[2022-11-08 15:58:58.990500] ERROR: pantalaimon: The internal Pantalaimon client did not manage to sync with the server.

Since I need to add a pantalaimon client first, I set up a password (abcd) and then used the following to authenticate via Pantalaimon:

curl -XPOST -d '{"type":"m.login.password", "user":"slack", "password":"abcd"}' "http://localhost:8008/_matrix/client/r0/login"

If I don't do the above curl step, I get another error:

[2022-11-08 17:04:39.460911] WARNING: pantalaimon: User @slack:home.server doesn't have a matching pan client.

It works without using encryption, but I can't send any messages since my messages are unencrypted.

@jaller94 jaller94 added the T-Documentation Improvements or additions to documentation label Nov 16, 2022
@jaller94
Copy link
Contributor

I don't think you can simply put a pantalaimon between an AppService and a Matrix server.

As a bridge, the Slack bridge uses the AppService API which does not create devices and does not call /sync.
Instead it chooses which account to use and receives events through a webhook.

@Yureien
Copy link
Author

Yureien commented Nov 16, 2022

Hm, then how is Pantalaimon supposed to be used according to the documentation? @jaller94

@Half-Shot
Copy link
Contributor

Sorry, I think we gave incorrect information: Pan can be used with the Slack bridge and we do have official support for it (albeit, it's a bit experimental).

The internal Pantalaimon client did not manage to sync with the server.

Seems like the pertinent error, do you get any more information from increasing logging on pan?

@Half-Shot Half-Shot added S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. X-Needs-Info This issue is blocked pending further information from the reporter. and removed T-Documentation Improvements or additions to documentation labels Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. X-Needs-Info This issue is blocked pending further information from the reporter.
Projects
None yet
Development

No branches or pull requests

3 participants