SAP Knowledge Base Article - Public

3161470 - MongoDB service does not start on Windows

Symptom

I am trying to start the MongoDB service on my on-premise server. When I was trying to start it via Windows services list, the system said that the service could not be started. Then I opened the properties of the MongoDB service and copied the path of EXE file (whole command). Then I opened the command line as administrator and put the command there. On the execution there was the following error message: 

Error parsing YAML config file: yaml-cpp

Resolution

In the command, you copied from the properties of MongoDB service there is the path to the MongoDB configuiration file 'mongod.cfg', e.g.:

C:\MongoDB\bin\mongod.exe --config C:\MongoDB\mongod.cfg --service

Please open the 'mongod.cfg' and escape all single backslashes using additional backslash, e.g.:

systemLog:
  destination: file
  path: C:\MongoDB\logs\mongodb.log
  logAppend: true
storage:
  dbPath: C:\MongoDB\data
security:
  authorization: enabled

The adjusted file looks like:

systemLog:
  destination: file
  path: C:\\MongoDB\\logs\\mongodb.log
  logAppend: true
storage:
  dbPath: C:\\MongoDB\\data
security:
  authorization: enabled

When the backslashes are not escaped, config cannot be parsed correctly.

Keywords

KBA , BPI-SIG-PG-ONP , SAP Signavio Process Governance OnPremise , How To

Product

SAP Signavio Process Governance all versions ; Workflow Accelerator by Signavio all versions