Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1865

Official Linux packages don't set up logrotate

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Backlog
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: 1.6.3
    • Fix Version/s: None
    • Component/s: Packaging, Stability
    • Labels:
      None
    • Environment:
      Debian or Ubuntu systems using the official packages from the 10gen repositories.
    • Backport Requested:
      v4.7, v4.4
    • Sprint:
      Dev Platform 2020-01-13, Dev Platform 2020-09-21, Dev Platform 2020-10-05, Dev Platform 2020-10-19, Dev Platform 2020-11-16

      Description

      The Ubuntu and Debian packages don't add an entry to /etc/logrotate.d that rotates the logfile in /var/log/mongodb. So on a production system, the file /var/log/mongodb/mongodb.conf just grows unchecked. This will prove problematic for beginners who don't realize that's an issue until they suddenly run out of disk space. Something like this in /etc/logrotate.d should do it:

      180:/var/log/mongodb# cat /etc/logrotate.d/mongodb
      /var/log/mongodb/mongodb.log

      { daily missingok rotate 7 compress copytruncate notifempty create 640 root adm }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-devplatform Backlog - Server Development Platform Team (SDP)
              Reporter:
              chl Chris Lea
              Participants:
              Votes:
              23 Vote for this issue
              Watchers:
              24 Start watching this issue

                Dates

                Created:
                Updated: