Avainsanana Mattermost

Building after an npm install results in an equally broken (i.e. iconless) build

22. kesäkuuta 2026 klo 15.10
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Mattermost, npm, Ubuntu

My build environment is an Ubuntu 24.04 VM.

Turns out I wasn’t running npm install in my build script, but that also apparently isn’t the issue: building after an npm install results in an equally broken (i.e. iconless) build as without it.

I’ll attach an output log from the npm install part. It at least mentions postinstall.sh.

npm-install.log

Vastaa viestiin sen kontekstissa (Github)

Depends on whether it is run as part of the documented npm run build:android build command, which is what I’m using

21. kesäkuuta 2026 klo 19.35
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Mattermost, npm

I don’t know; depends on whether it is run as part of the documented npm run build:android build command, which is what I’m using.

Vastaa viestiin sen kontekstissa (Github)

Icons missing in version 2.41.1

20. kesäkuuta 2026 klo 15.06
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Android, Mattermost

After updating my build of the mobile app from 2.40.0 to 2.41.1 (and no other changes in the build environment), all icons in the resulting app have been replaced with a ”☒”, and all channel icons with what looks like a Chinese character (the app is supposed to use English, like the OS). Only user profile pictures seem unaffected (except for the overlaid status indicator, which *is* affected).

I’ve so far tested this on a phone running Android 10 and a tablet running Android 15. Both are using the ”Onyx” theme (and switching the theme has no impact on the issue). The server is running the latest release 11.8.1 (and the web UI is unaffected).

Vastaa viestiin sen kontekstissa (Github)

Last two releases not published on Github

15. elokuuta 2025 klo 17.06
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Github, Mattermost

According to the [changelog](https://docs.mattermost.com/product-overview/mobile-app-changelog.html), there have been two releases since 2.29.1, but 2.29.1 is the latest on the [releases page](https://github.com/mattermost/mattermost-mobile/releases) here on Github. 2.30.0 and now 2.31.0 (apparently released today) are missing.

Vastaa viestiin sen kontekstissa (Github)

Building 2.28.0 now succeeds with node 22 as well

22. toukokuuta 2025 klo 20.20
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Mattermost

I build on release tags, and it looks like building 2.28.0 now succeeds with node 22 as well (whereas 2.27.0 still failed). So I think this is fixed now!

Vastaa viestiin sen kontekstissa (Github)

If there’s something I can do to try to further narrow this down, let me know

13. toukokuuta 2025 klo 14.09
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Mattermost, Ubuntu

No problem; like I said, using node 20 works fine. I only noticed this issue recently, when I rebuilt my build environment, and tried doing so by the book (i.e. according to the docs).

If there’s something I can do to try to further narrow this down, let me know. I’m doing the build in an Ubuntu 24.04 VM, which I can restore to a working snapshot if testing causes it to break.

Vastaa viestiin sen kontekstissa (Github)

Can’t build 2.27.0 with node 22 as recommended in documentation

20. huhtikuuta 2025 klo 18.24
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Mattermost, Node.js

The Developer setup documentation says ”We recommend using NodeJS v22”, but trying to build the app (release 2.27.0) with node 22 fails (after nvm install 22.14.0):

npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: mattermost-mobile@2.27.0
npm error notsup Not compatible with your version of node/npm: mattermost-mobile@2.27.0
npm error notsup Required: {"node":"^18.18.0 || ^20.0.0","npm":"^9 || ^10"}
npm error notsup Actual:   {"npm":"10.9.2","node":"v22.14.0"}
npm error A complete log of this run can be found in: /home/jani/.npm/_logs/2025-04-20T11_20_48_320Z-debug-0.log

The build works if I install node 20.19.0 instead.

Vastaa viestiin sen kontekstissa (Github)

v2.25.1 FTBFS (Android)

21. helmikuuta 2025 klo 15.19
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Android, Mattermost

Trying to build v2.25.1 with `npm build:android` fails with what looks like a missing dependency. This was not an issue with v2.25.0, so the cause is some recent change.

The full log is below, but here’s what I think is the crucial part:

* What went wrong:
Could not determine the dependencies of task ':app:mergeReleaseNativeLibs'.
> Could not resolve all dependencies for configuration ':app:releaseRuntimeClasspath'.
> Could not resolve project :frameanimation.
Required by:
project :app > project :expo > project :expo-image
> No matching variant of project :frameanimation was found. The consumer was configured to find a library for use during runtime, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.
> Could not resolve project :gif.
Required by:
project :app > project :expo > project :expo-image
> No matching variant of project :gif was found. The consumer was configured to find a library for use during runtime, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.2.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- No variants exist.

fail.log

Vastaa viestiin sen kontekstissa (Github)

/opt/mattermost/client/root.html changed after installing

24. tammikuuta 2025 klo 11.49
Sijainti: Vianhallintajärjestelmät: Github
Avainsanat: Debian, Mattermost

In at least the past couple of updates of Mattermost, the .deb package has changed contents of /opt/mattermost/client/root.html sometime after installing the update, which changes the file’s checksum. This is an issue for people like me, who run debsums --changed daily as part of monitoring the integrity of my server.

I’m not intimately familiar with Debian packaging, but I don’t think those (checksummed) installation files should change post-install. Maybe an unchanging template file should be installed instead, and the final file generated from that?

(I’ve inspected the file, and the only change from the package-provided one is an addition of ”js.stripe.com/v3” to aheader tag, so I’m pretty sure this is a packaging issue and not filesystem corruption or a malicious attacker.)

As a workaround, I can of course recalculate the new checksum, and update the .md5sums file where it’s listed accordingly, but… eww.

(Somewhat related: #26769)

Vastaa viestiin sen kontekstissa (Github)

”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)

Vanhempia »