Viestit paikassa Mattermost Discussion Forums

”Failed to get system bot” after importing old data to a fresh install

26. elokuuta 2024 klo 8.55
Sijainti: Blogit: Mattermost Discussion Forums
Avainsanat: Mattermost

I’m just making this note here publicly, since I was first going to pose this as a question, but then managed to solve it by myself:

For background, I recently switched my Mattermost from a tar archive installation to installing it from the package repository, and simultaneously switched it from using a MySQL database to using PostgreSQL, all in one fell swoop by exporting the old content, doing a fresh install, and then importing. This appears to have mostly worked, with just user profile images having been lost, and passwords requiring a reset, both of which (I’ve gleaned from various places) were to be expected.

However, all bot accounts also seem to have been converted into normal user accounts somewhere during this process. So far the only issue I’ve discovered resulting from this is this entry getting logged repeatedly:

Failed to get system bot    caller="app/post.go:2205" component=post_reminders error="SqlBotStore.Get: Bot does not exist., resource "Bot" not found, id: <my system bot's id>"

I solved this by running

sudo -u mattermost mmctl user convert --bot "<bot id>" # replace <bot id> with your real system bot account id

Since that seems to have gone well (the error messages stopped), I went ahead and converted the rest of the bot accounts back to true bots likewise.

Vastaa viestiin sen kontekstissa (Mattermost Discussion Forums)

The issue here is that using special characters in your password on the DataSource line is broken

24. elokuuta 2024 klo 15.19
Sijainti: Keskustelupalstat: Mattermost Discussion Forums
Avainsanat: Mattermost, security

For anyone else stumbling across this thread when googling for this annoying problem: the issue here is that using special characters in your password on the DataSource line is broken: Can’t use special character in password in the DataSource property · Issue #1541 · mattermost/mattermost · GitHub

As stupid as that is, the easiest way to work around it is to set a password consisting of just alphanumeric characters. You shouldn’t have much use for it outside this anyway, so as not to make it ridiculously insecure.

Vastaa viestiin sen kontekstissa (Mattermost Discussion Forums)

I can confirm that the fix works

1. maaliskuuta 2023 klo 14.06
Sijainti: Keskustelupalstat: Mattermost Discussion Forums
Avainsanat: Github, Mattemost

Hi @agriesser! Yeah, matthaios-easy-bi (who I assume is the OP in this thread too) had reported this on Github and it got fixed after I chimed in. I can confirm that the fix works too, i.e. after cherry-picking the change to my branch the build works again.

Thanks!

Vastaa viestiin sen kontekstissa (Mattermost Discussion Forums)

I have the same issue trying to compile v2.1.0 on my Linux PC

17. helmikuuta 2023 klo 13.43
Sijainti: Keskustelupalstat: Mattermost Discussion Forums
Avainsanat: Linux, Mattermost

It’s not Mac-only either, I have the same issue trying to compile v2.1.0 on my Linux PC.

V2.0 had issues too, but FTBFS wasn’t one of them.

Vastaa viestiin sen kontekstissa (Mattermost Discussion Forums)