What to do if you change the Listen Address from the settings screen with Mattermost docker

Introduction

This article is mattermost / mattermost-docker What to do if you change the Listen Address from the setting screen in team edition v5.28.1 and you can not start up It is described.

Background

As shown below, the Nginx reverse proxy was configured to skip the access that came to port 80/443 to port 8065 of Mattermost.

structure

However, when I looked at the system console, the Listen Address was **: 8000 **, so I thought it was strange and rewrote it to **: 8065 **.

Screenshot from 2020-11-03 22-31-37.png

After that, when I rewrote the docker settings and restarted, mattermost did not start up.

Official Knwon Issue also states that it should not be rewritten as follows.

Do not modify the Listen Address in Service Settings.

approach

Even if the docker image of Mattermost does not work well after changing the settings, the container itself will start up. So I will work inside the container while it is running. The shell is ash because docker image is based on alpine Linux. mm_container_name is Mattemost's container name.

docker exec -it <mm_container_name> /bin/ash

If you can attach to the shell internally, rewrite config / config.json as follows

cd config
sed -i -e 's/:8065/:8000/' config.json

When you finish writing, exit Shell and restart the docker container and it will be restored.

Correct setting

Mattermost's Official Document has the following description.

To improve the production use of Mattermost with Docker, the docker image is now running a as non-root user and listening on port 8000. Please read the upgrade instructions for important changes to existing installations.

So, it is said that the port normally used is 8000, so change the Reverse Proxy setting of Nginx.

Recommended Posts

What to do if you change the Listen Address from the settings screen with Mattermost docker
What to do if you installed Ruby with rbenv but the version does not change
What to do if you can't install the plugin from the Eclipse marketplace
What to do if you have enabled Use the WSL2 based engine in Docker Desktop with insufficient WSL2 installation
What to do if you cannot execute with the command "Java package name / class name"
What to do if you can't use the rails command
[Rails] What to do if you can't get an error message with the errors method
What to do if you get a gcc error in Docker
What to do if validation doesn't work with the update action
If you want to change the Java development environment from Eclipse
What to do if you get angry with OpenSSL with pyenv install
What to do if you forget the root password in CentOS7
What to do if you cannot roll back the migration (UnknownMigrationVersionError)
[Rails] What to do if you can't get parameters with form_with
What to do if you install Ubuntu
What to do if you don't like the code generated by swagger-codegen-cli
What to do if you get the error Too long with no output (exceeded 10m0s) on CircleCI
What to do if the server tomcat dies
What to do if you push incorrect information
What to do if you can't activate the select box created by bootstrap-select
What to do if you get the error message unrecognized selector send to instance "***"
What to do if you get To install the missing version, run `gem install bundler: 2.1.4`
What to do if the debug gem installation fails
What to do if the Rails server can't start
What to do if you accidentally create a model
What to do if you can't get the text of an element in Selenium
What to do if you get the error Couldn't find Item without an ID
What to do when routing settings do not work after building Docker environment with Laravel
What to do if the JSONHint annotation does not work with lombok and JSONIC
What to do if you hit the wall of Too many symbol files when uploading with App Store Connect
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
What to do if you can't find the JDK you put in SDKMAN after migrating from bash to zsh on macOS
How to transition from the [Swift5] app to the iPhone settings screen
What to do if you get a java.io.IOException in GlassFish
[Java] [Spring] What to do if you cannot Autowire with Type Mismatch after annotating Spring Security
What to do when you launch an application with rails
What to do if you don't see the test code error message in the terminal console
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
# What to do if you accidentally do rails db: migrate: drop
What you need to do to open a file from the menu in the document-Based App macOS app
Memo that transitions to the login screen if you are not logged in with devise
What to do if the adb command cannot be executed
How to solve the problem that you can not pull image from docker hub with Minikube
What to do if you get an [An HTTP request took too long to complete.] Error in Docker.
What to do if the app is not created with the latest Rails version installed when rails new
[Output] Learn Ruby from what you want to do at the fastest speed-Part 2 "Create a flowchart"
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if Cloud9 is full in the Rails tutorial
What to do if the Eclipse Maven dependency Jar is wrong
What to do if you get a DISPLAY error in gym.render ()
Update MySQL from 5.7 to 8.0 with Docker
What to do if you get an error with bundle install by entering gem'bcrypt' in your Gemfile
What to do if you get Application with name appName is already registered. When you try to start GlassFish
What to do if you should have installed Rails but an error occurs with rails -v (for beginners)
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
What to do if Operation not permitted is displayed when you execute a command in the terminal
[Rails / Docker] What to do if access is denied by the browser (localhost: 3000) after adding a gem
[Output] Learn Ruby from what you want to do at the fastest speed ・ Part 1 "Think about what you want to make"
You cannot change the project facet version from a dynamic web module to x.x. How to deal with
[Gradle] [checkstyle] What to do if the active setting of Checkstyle is removed by "Refresh Gradle project" from Eclipse