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

Invalid definitions in systemd configuration for debian

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.10, 3.3.15, 3.4.0-rc0
    • Fix Version/s: 3.2.11, 3.4.0-rc2
    • Component/s: Packaging
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:

      Description

      6 definitions in systemd configuration for debian have each end-of-line comment at https://github.com/mongodb/mongo/commit/906a6f057f87fb4e51c4a698d9d6fe490fb293a2
      Systemd does not support an end-of-line comment. so parsing their values failed

      I confirmed following result in Ubuntu 16.04.

      $ sudo systemctl status mongod.service
      ● mongod.service - High-performance, schema-free document-oriented database
         Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
         Active: active (running) since Sat 2016-10-15 14:02:14 JST; 5h 53min ago
           Docs: https://docs.mongodb.org/manual
       Main PID: 2985 (mongod)
         CGroup: /system.slice/mongod.service
                 └─2985 /usr/bin/mongod --quiet --config /etc/mongod.conf
       
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:10] Failed to parse resource value, ignoring: infinity # file size
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:11] Failed to parse resource value, ignoring: infinity # cpu time
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:12] Failed to parse resource value, ignoring: infinity # virtual memory size
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:13] Failed to parse resource value, ignoring: 64000 # open files
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:14] Failed to parse resource value, ignoring: 64000 # processes/threads
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:15] Maximum tasks value 'infinity # total threads (user+kernel)' invalid. Ignoring.
      

        Issue Links

          Activity

          Hide
          ramon.fernandez Ramon Fernandez added a comment -

          Thanks for the report Toshimitsu Takahashi, we're investigating.

          Show
          ramon.fernandez Ramon Fernandez added a comment - Thanks for the report Toshimitsu Takahashi , we're investigating.
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

          Message: SERVER-26652 - reformat systemd service comments
          Branch: master
          https://github.com/mongodb/mongo/commit/806c7d65cc2c5f676ac3fa94a6c9f01689197fc4

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'} Message: SERVER-26652 - reformat systemd service comments Branch: master https://github.com/mongodb/mongo/commit/806c7d65cc2c5f676ac3fa94a6c9f01689197fc4
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

          Message: SERVER-26652 - reformat systemd service comments

          (cherry picked from commit 806c7d65cc2c5f676ac3fa94a6c9f01689197fc4)
          Branch: v3.2
          https://github.com/mongodb/mongo/commit/fd0914563e3d543ad1cbf4396cdd76e50fd257f4

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'} Message: SERVER-26652 - reformat systemd service comments (cherry picked from commit 806c7d65cc2c5f676ac3fa94a6c9f01689197fc4) Branch: v3.2 https://github.com/mongodb/mongo/commit/fd0914563e3d543ad1cbf4396cdd76e50fd257f4

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: