Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Upgrading to 5.36.1 #541

Open
nathcoad opened this issue Jun 24, 2021 · 3 comments
Open

Upgrading to 5.36.1 #541

nathcoad opened this issue Jun 24, 2021 · 3 comments

Comments

@nathcoad
Copy link

I see that the changelog at https://docs.mattermost.com/administration/changelog.html lists 5.36.0 and 5.36.1 as containing security fixes, so it's probably a good idea to upgrade.

I haven't seen any process or information on upgrading from 5.35 (I'm aware of the issues surrounding the postgres database when upgrading from earlier versions to 5.35), so I'm not sure what the best method to do the upgrade is.

For my install, I just modified the Dockerfile in the app directory to
ARG MM_VERSION=5.36.1

And ran a docker-compose build; docker-compose down && docker-compose up --force-recreate

It seems to have worked ok for me, but I'm interested in hearing whether there was a better option. Thanks!

@haivala
Copy link

haivala commented Jun 24, 2021

I have been doing this for years.
I have running instance and I change the version number and run:
(dc is alias for docker-compose)

dc build --pull; dc up -d

That's it

@btxtiger
Copy link

btxtiger commented Jul 10, 2021

Despite I got this error message, and some minutes of endless HTTP request logs (no user was actually online), this seems to work for me now. Any idea about the message?

mattermost_app | {"level":"error","ts":1625940789.6478243,"caller":"mlog/log.go:251","msg":"Unable to activate plugin","plugin_id":"com.mattermost.nps","error":"unable to generate webapp bundle: com.mattermost.nps: unable to copy webapp bundle directory: com.mattermost.nps: mkdir client/plugins/com.mattermost.nps: permission denied","errorVerbose":"mkdir client/plugins/com.mattermost.nps: permission denied\nunable to copy webapp bundle directory: com.mattermost.nps\ngithub.com/mattermost/mattermost-server/v5/plugin.(*Environment).UnpackWebappBundle\n\tgithub.com/mattermost/mattermost-server/v5/plugin/environment.go:406\ngithub.com/mattermost/mattermost-server/v5/plugin.(*Environment).Activate\n\tgithub.com/mattermost/mattermost-server/v5/plugin/environment.go:256\ngithub.com/mattermost/mattermost-server/v5/app.(*Server).syncPluginsActiveState.func2\n\tgithub.com/mattermost/mattermost-server/v5/app/plugin.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1374\nunable to generate webapp bundle: com.mattermost.nps\ngithub.com/mattermost/mattermost-server/v5/plugin.(*Environment).Activate\n\tgithub.com/mattermost/mattermost-server/v5/plugin/environment.go:258\ngithub.com/mattermost/mattermost-server/v5/app.(*Server).syncPluginsActiveState.func2\n\tgithub.com/mattermost/mattermost-server/v5/app/plugin.go:144\nruntime.goexit\n\truntime/asm_amd64.s:1374"}

Update: The logs are continuing

mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:03 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 201 575 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"
mattermost_web | 192.168.128.1 - - [10/Jul/2021:18:18:04 +0000] "POST /api/v4/posts HTTP/1.1" 429 15 "-" "GuzzleHttp/7" "-"

@C-Duv
Copy link

C-Duv commented Aug 8, 2021

@haivala wrote:

I have been doing this for years.
I have running instance and I change the version number and run:
(dc is alias for docker-compose)

dc build --pull; dc up -d

Did it also worked for v5.37.1?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants