Comments (10)
I think you have problems of volume mounting. The error in app container also looks a volume problem because the container load config file from a volume.
Deleting all volume sections in docker-compose.yml may be a workaround but it is not a good long-term solution because you will lost all of data when the containers are removed.
Are you using selinux? Then you may try this solution.
from mattermost-docker.
Hmm.. postgres 9.5 is known to have the bug: docker-library/postgres#116
Did you modify the db Dockerfile to use postgres 9.5 instead of 9.4?
from mattermost-docker.
Nope. I used the 4 line instructions from the docs (clone, link nossl config, compose up -d) and it failed with an error message saying it couldn't link the app container to the db container. So I tried the command I described in the OP to see what was failing in the db container.
from mattermost-docker.
Would you please delete "- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data" in your docker-compose.yml and run the container again?
from mattermost-docker.
That worked.
from mattermost-docker.
Although, now I have a separate issue, the app container shuts down after a minute:
[11:02:07 EDT 2016/05/25] [EROR] (main.main:79) Unable to load mattermost configuration file: Error opening config file=config.json, err=open config.json: no such file or directory
from mattermost-docker.
I'm not knowingly using selinux. Is it enabled by default in Centos 7?
from mattermost-docker.
I think so. I have used CentOS 4, 5, 6 and 7 and selinux was enabled in all of them. You may find the configuration in /etc/selinux/config or /etc/sysconfig/selinux.
from mattermost-docker.
Okay, so after restoring the the postgresql/data volume in docker-compose.yml, I ran the following command:
sudo chcon --recursive --type=svirt_sandbox_file_t --range=s0 ./volumes/db/var/lib/postgresql/data
And then the db container was able to come up.
from mattermost-docker.
Similarly, I had to run the same chcon command for the ./volumes/app/mattermost/config
and ./volumes/app/mattermost/data
folders to fix the app container error I mentioned earlier.
from mattermost-docker.
Related Issues (20)
- {PATCH} is included in the version view and not correct version number HOT 5
- Untrusted certificate from Andriod mobile app HOT 1
- release-5.33 Uses Wrong Version of Postgres HOT 3
- updating to 5.33 release with mysql HOT 1
- How to update to the latest ESR version (or to a specific version)? HOT 1
- docker_app unhealthy connection timeout to psql HOT 4
- Mattermost mobile app server warning message after upgrade HOT 2
- Sync Releases to mattermost-server HOT 11
- Why Mattermost releases 5.34, 5.34.1, 5.34.2, 5.35, 5.35.2 missing in mattermost-docker releases? HOT 2
- Proxy authentication required (gitlab sso token issue
- SiteURL must be set .. HOT 1
- the switch to postgres10 doesn't handle DB upgrades HOT 2
- Upgrading to 5.36.1 HOT 3
- Building DB Failes HOT 4
- Deployment failures in a variety of configurations, including locally built and docker hub images HOT 2
- Error when building gevent for db containers HOT 3
- Error: unknown shorthand flag: 'u' in -upgrade_db_30
- No new releases? HOT 1
- Some updates on the Mattermost-docker repository HOT 3
- Error: failed to load configuration: failed to create store HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-docker.