Open cdown opened 1 year ago
Login is also extraordinarily slow, taking over two minutes prior to the segfault:
DEBU[2023-05-19T14:31:05+01:00] B: "<- PRIVMSG mattermost :login [redacted]" module=matterircd
[...]
[2023-05-19T14:33:58+01:00] DEBUG matterclient: found 59032 users in team xxx
[then the crash happens immediately afterwards]
Maybe this is something to do with having so many users?
Hi @cdown did you check if this is related to https://github.com/42wim/matterircd/issues/527? I also had similar issues which I could fix simply by providing the correct arguments for login
Can you try with the latest version first? 0.27.0 or better yet, build from trunk/master?
Maybe this is something to do with having so many users?
It's possible. I'm trying to reproduce it, but sadly don't have access to a Mattermost server with close to 60k users. The community Mattermost server (community.mattermost.com
) is the largest I have access to and that only has 17k.
I also have the crash / segfault. Just before the segfault occurs I could see something like this before it crashed
INFO[2023-06-01T20:44:58+02:00] login as bob@somewhere.com (team: mattermost.somewhere.com) on mattermost.somewhere.com
That occurred when I ran this command:
/msg mattermost LOGIN mattermost.somewhere.com technology bob@somewhere.com MMAUTHTOKEN=pwnp6jknm3ykjkknmk4oorjcme
I noticed the team is wrong. To rectify I did this:
/msg mattermost LOGIN technology technology bob@somewhere.com MMAUTHTOKEN=pwnp6jknm3ykjkknmk4oorjcme
Where technology is the team name. The software then didn't crash and logged in.
@divansantana please paste the segfault and version of matterircd used
Revisiting this.
Login is also extraordinarily slow, taking over two minutes prior to the segfault:
So this is fallout from https://github.com/42wim/matterircd/pull/491 where it's doing more calls to get the correct no. of users in the team. The Mattermost API limits each to 200 so it takes quite a lot of calls to get to 59032 users.
I wonder if it's actually the no. of channels instead? With 59k users, I'm sure there's a boat load more channels. Though from looking at the matterclient code, it should have printed initUser(): found our team ...
per https://github.com/matterbridge/matterclient/blob/master/matterclient.go#L353
Hi! Thanks for building this. I tried to log in to a Mattermost instance, and shortly afterwards matterircd 0.26.1 crashed with this traceback:
Obviously since it's the login, not much more I can share, but I'm not aware of doing anything too weird.