-
Notifications
You must be signed in to change notification settings - Fork 599
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
Consider updating go-xmpp #2119
Comments
If you update you should update to current master and not tag 0.0.1 as current master has some scram improvements and also supports xep-0474. |
@Hund master now contains updated go-xmpp library, can you test ? |
Great news! I tried building it myself, but didn't come far with it:
What's wrong? I know nothing about Go. The latest version seems to be 1.22, which confuses me. |
I guess you should update golang as your version only does accept version strings in the format 1.23 and not in the format 1.23.4.
|
Yes you need go 1.22 to build If you have an older go version you can do:
Now you can run |
If you use debian stable, there is also go1.22 in bookworm-backports.
Am 24. Mai 2024 09:25:12 UTC schrieb Wim ***@***.***>:
…Yes you need go 1.22 to build
If you have an older go version you can do:
Make sure ~/go/bin is in your PATH
```
go install ***@***.***
go1.22.3 download
```
Now you can run `go1.22.3 install ***@***.***`
|
Ah, seems I got it wrong. There is go1.21 in bookworm-backports. |
I can't get it to work. I'm probably doing something wrong?
|
Seems you are running an older version:
~/build/go/bin/matterbridge --version
version: 1.26.1-dev
That's what I get running `go install
***@***.***`
…On 24.05.2024 03:43, Hund wrote:
I can't get it to work. I'm probably doing something wrong?
```
time="2024-05-24T12:41:43+02:00" level=fatal msg="Starting gateway failed: Bridge xmpp.linuxkompis failed to start: PLAIN authentication is not an option: [SCRAM-SHA-1 SCRAM-SHA-1-PLUS]" prefix=main
```
```
matterbridge --version
version: 1.26.0 6dafebc
```
--
Reply to this email directly or view it on GitHub:
#2119 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Oh. So |
It is, no idea why github censored that in my previous mail.
Are you sure you are running the matterbridge from your $GOBIN (if set) or $GOPATH/bin? Usually this is ~/go/bin/.
Am 24. Mai 2024 10:58:09 UTC schrieb Hund ***@***.***>:
…Oh. So `go install ***@***.***` is not the correct thing to do then?
|
Yes.
|
Ah, OK. I asked because in <#2119 (comment)> you wrote
matterbridge --version
version: 1.26.0 6dafebc
No idea then, as I am not using matterbridge. But go-sendxmpp and two bots also using go-xmpp work fine on my server with disabled PLAIN auth.
Am 24. Mai 2024 11:09:29 UTC schrieb Hund ***@***.***>:
…> It is, no idea why github censored that in my previous mail. Are you sure you are running the matterbridge from your $GOBIN (if set) or $GOPATH/bin? Usually this is ~/go/bin/. Am 24. Mai 2024 10:58:09 UTC schrieb Hund ***@***.***>:
> […](#)
> Oh. So `go install ***@***.***` is not the correct thing to do then?
Yes.
```
johan at Atlas in ~/go/bin
$ ./matterbridge --version
version: 1.26.1-dev
```
|
Oh.. I didn't even notice the It doesn't seem to connect though. The logs says nothing. Is there any way I can debug this? |
Run with |
That didn't say much either. :/
|
It seems to connect just fine to IRC, but it gets stuck at XMPP:
It's difficult to debug, since I can't guess the issue. |
Seems to work with my prosody trunk, so it should also work with snikket.
Maybe you could have a look whether the current go-sendxmpp works with your snikket server (or gives a useful error if it doesn't) as it is using the same library. |
@mdosch I just tried with go-sendxmpp, and it works just fine. :/ |
Is your feature request related to a problem? Please describe.
Snikket (a modern implementation of XMPP that uses Prosody) recently decided to disable less secure mechanisms entirely. Which means that PLAIN authentication doesn't work anymore. It's now using SCRAM, which requires a newer version of go-xmpp in Matterbridge.
It's currently not possible to login to XMPP in Matterbridge.
Describe the solution you'd like
Update go-xmpp to a newer version that supports SCRAM.
The text was updated successfully, but these errors were encountered: