GithubHelp home page GithubHelp logo

Comments (10)

eungjun-yi avatar eungjun-yi commented on July 4, 2024 1

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.

eungjun-yi avatar eungjun-yi commented on July 4, 2024

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.

gordontyler avatar gordontyler commented on July 4, 2024

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.

eungjun-yi avatar eungjun-yi commented on July 4, 2024

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.

gordontyler avatar gordontyler commented on July 4, 2024

That worked.

from mattermost-docker.

gordontyler avatar gordontyler commented on July 4, 2024

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.

gordontyler avatar gordontyler commented on July 4, 2024

I'm not knowingly using selinux. Is it enabled by default in Centos 7?

from mattermost-docker.

eungjun-yi avatar eungjun-yi commented on July 4, 2024

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.

gordontyler avatar gordontyler commented on July 4, 2024

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.

gordontyler avatar gordontyler commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.