[SERVER-70181] Ubuntu and Debian package tests failing in Server master Created: 09/Sep/22  Updated: 29/Oct/23  Resolved: 04/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.1, 6.0.3, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Brian McCarthy Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Gantt Dependency
has to be done after SERVER-69870 Test package installs on all supporte... Closed
Problem/Incident
is caused by SERVER-55208 Remove support for nojournal Closed
Related
related to SERVER-68470 Amazon Linux 4.2/4.4 RPMs fail to ins... Closed
is related to SERVER-69870 Test package installs on all supporte... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.1, v6.0
Participants:
Story Points: 3

 Comments   
Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-70181 Fix Debian default mongod.conf

(cherry picked from commit 56441edbc212031f05dbe045cf1b3aa47492f17c)
Branch: v6.0
https://github.com/mongodb/mongo/commit/a0fa1b34d9d6ceda01efb6a81fca07758634e146

Comment by Githook User [ 27/Oct/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-70181 Fix Debian default mongod.conf

(cherry picked from commit 56441edbc212031f05dbe045cf1b3aa47492f17c)
Branch: v6.1
https://github.com/mongodb/mongo/commit/ce8a32847a596d6d4f45a4273358c429f35768b5

Comment by Githook User [ 05/Oct/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-70181 Fix Debian default mongod.conf
Branch: master
https://github.com/mongodb/mongo/commit/56441edbc212031f05dbe045cf1b3aa47492f17c

Comment by Brian McCarthy [ 09/Sep/22 ]

I'm putting this on the SDP backlog. Let me know if there is anything I can help with.

Comment by Brian McCarthy [ 09/Sep/22 ]

All of the Debian and Ubuntu package tests are failing in master:

https://spruce.mongodb.com/task-history/mongodb-mongo-master-nightly/test_packages

All of these tests are failing the same way. I spun up Ubuntu 22.04, 18.04, and Debian 10 to see what was happening and saw the same thing on all of them.

We install the debian packages and then try to start up a mongod and run a few tests. It's not obvious from the log output, but mongod is failing to start:

admin@ip-10-130-6-182:~$ sudo service mongod start
admin@ip-10-130-6-182:~$ ps -ef|grep mongod
admin     1676  1624  0 22:38 pts/0    00:00:00 grep mongod

Looking in the logs, the issue is:

Sep  9 22:38:17 ip-10-130-6-182 systemd[1]: Started MongoDB Database Server.
Sep  9 22:38:17 ip-10-130-6-182 mongod[1674]: Unrecognized option: storage.journal.enabled
Sep  9 22:38:17 ip-10-130-6-182 mongod[1674]: try '/usr/bin/mongod --help' for more information
Sep  9 22:38:17 ip-10-130-6-182 systemd[1]: mongod.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep  9 22:38:17 ip-10-130-6-182 systemd[1]: mongod.service: Failed with result 'exit-code'.

The /etc/mongod.conf has this block in it:

# mongod.conf
 
# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/
 
# Where and how to store data.
storage:
  dbPath: /var/lib/mongodb
  journal:
    enabled: true

If I comment out that journal enabled:true option:

# Where and how to store data.
storage:
  dbPath: /var/lib/mongodb
#  journal:
#    enabled: true

Then the mongod can start up and all of the subsequent tests pass:

  Command: `service mongod stop`
     ✔  exit_status is expected to eq 0
  Command: `service mongod start`
     ✔  exit_status is expected to eq 0
  Service mongod
     ✔  is expected to be running
  Command: `service mongod stop`
     ✔  exit_status is expected to eq 0
  Command: `service mongod restart`
     ✔  exit_status is expected to eq 0
  Service mongod
     ✔  is expected to be running
  Command: `install_compass`
     ✔  exit_status is expected to eq 0
     ✔  stderr is expected to eq ""
  File /etc/mongod.conf
     ✔  is expected to be file
  File /usr/bin/mongod
     ✔  is expected to be file
  File /var/log/mongodb/mongod.log
     ✔  is expected to be file
  File /lib/systemd/system/mongod.service
     ✔  is expected to be file
  File /var/lib/mongodb
     ✔  is expected to be directory
  User mongodb
     ✔  is expected to exist
     ✔  groups is expected to include "mongodb"
     ✔  shell is expected to eq "/usr/sbin/nologin"
  Command: `cat /proc/$(pgrep mongod)/limits | grep "Max file size"`
     ✔  stdout is expected to match /Max file size\s+unlimited/
  Command: `cat /proc/$(pgrep mongod)/limits | grep "Max cpu time"`
     ✔  stdout is expected to match /Max cpu time\s+unlimited/
  Command: `cat /proc/$(pgrep mongod)/limits | grep "Max address space"`
     ✔  stdout is expected to match /Max address space\s+unlimited/
  Command: `cat /proc/$(pgrep mongod)/limits | grep "Max open files"`
     ✔  stdout is expected to match /Max open files\s+64000/
  Command: `cat /proc/$(pgrep mongod)/limits | grep "Max resident set"`
     ✔  stdout is expected to match /Max resident set\s+unlimited/
  Command: `cat /proc/$(pgrep mongod)/limits | grep "Max processes"`
     ✔  stdout is expected to match /Max processes\s+64000/
  Command: `dpkg -r $(dpkg -l | grep "mongodb.*server" | awk '{print $2}')`
     ✔  exit_status is expected to eq 0
  File /lib/systemd/system/mongod.service
     ✔  is expected not to exist
  File /usr/bin/mongod
     ✔  is expected not to exist
 
Test Summary: 25 successful, 0 failures, 0 skipped

All Ubuntus and Debians appear to be affected.

Generated at Thu Feb 08 06:15:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.