[SERVER-28381] systemctl start mongod fails on SLES12 SP2 Created: 17/Mar/17  Updated: 27/Oct/23  Resolved: 16/May/17

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 3.2.12
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Vance Baarda Assignee: Brian Samek
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Actual results:

# systemctl start mongod
Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.

Sprint: Build 2017-05-29
Participants:

 Description   

I installed mongodb-org-3.2.12-1.suse12.x86_64 on SLES12 SP2, but it will not start.

# systemctl start mongod
Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.



 Comments   
Comment by Vance Baarda [ 16/May/17 ]

@Brian

Please note – it works on SLES12 SP1. It does not work on SLES12 SP2, which is almost brand new.

Comment by Brian Samek [ 16/May/17 ]

systemd has compatibility with init scripts. After the install, it should call /usr/lib/systemd/system-generators/systemd-sysv-generator, which will create the service file from the init script. I suspect that on older versions of systemd, this does not happen automatically. systemctl daemon-reload should call the sysv-generator script. I am going to close this ticket as works as designed, since this appears to work on newer versions of systemd.

Comment by Vance Baarda [ 16/May/17 ]

@brian

I was laid off, so I no longer have access to that machine. Perhaps Mark Agarunov could answer your question.

Comment by Brian Samek [ 16/May/17 ]

vbaarda - Could you run systemctl daemon-reload and see if you are able to systemctl start mongod after this?

Comment by Mark Agarunov [ 17/Mar/17 ]

Hello vbaarda,

Thank you for the report. I am able to reproduce the behavior you've described and we are investigating further. I've set the fixVersion to "Needs Triage" for this issue to be scheduled against our currently planned work. Updates will be posted on this ticket as they happen.

Thanks,
Mark

Comment by Vance Baarda [ 17/Mar/17 ]

This also fails:

# /etc/init.d/mongod start
redirecting to systemctl start mongod.service
Failed to start mongod.service: Unit mongod.service failed to load: No such file or directory.

Comment by Vance Baarda [ 17/Mar/17 ]

More details:

# cat /etc/os-release 
NAME="SLES"
VERSION="12-SP2"
VERSION_ID="12.2"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp2"

# rpm -qi mongodb-org
Name        : mongodb-org
Version     : 3.2.12
Release     : 1.suse12
Architecture: x86_64
Install Date: Fri Mar 17 11:46:58 2017
Group       : Applications/Databases
Size        : 0
License     : AGPL 3.0
Signature   : RSA/SHA1, Wed Feb  1 09:43:42 2017, Key ID d68fa50fea312927
Source RPM  : mongodb-org-3.2.12-1.suse12.src.rpm
Build Date  : Wed Feb  1 09:31:09 2017
Build Host  : ip-10-81-236-106.ec2.internal
Relocations : /usr 
URL         : http://www.mongodb.org
Summary     : MongoDB open source document-oriented database system (metapackage)

Generated at Thu Feb 08 04:17:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.