Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6248

Comment on: "manual/tutorial/install-mongodb-on-linux.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      In the "Run MongoDB" section, when you change the data directory, if you are running enforced SELinux, you also need to change the permissions of the security context for that new directory. Setting the owner and group alone is not enough.

      You change it with:

      sudo chcon -R -u system_u -t mongod_var_lib_t /data/db

      Solution originally found in: http://stackoverflow.com/questions/15229412/unable-to-create-open-lock-file-data-mongod-lock-errno13-permission-denied/15982017#comment45464578_15982017

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 29 weeks ago