Skip to main content
2 of 2
Commonmark migration

The error messages indicate the specific line and column where the YAML parser is having an issue with your configuration file, but if you're not familiar with the format it can be difficult to work out what is expected.

Two sets of changes are required to make your config valid YAML:

  1. Add a "space" between the systemLog.path and storage.dbPath keys and their values

    YAML requires a space between key/value pairs, so reports: "error at line 4, column 8: illegal map value".

  2. Remove the double quotes from your path values

    YAML interprets backslashes inside quoted strings as introducing an escape character, so reports: "error at line 3, column 16: unknown escape character". As an alternative, you could also leave the path quoted but either escape the backslashes (\\) or use forward slashes.

The following config should work (assuming "G:\NodeApps\data\" has the correct directory and file permissions):

systemLog:
    destination: file
    path: G:\NodeApps\data\log
storage:
    dbPath: G:\NodeApps\data

There are several online testers for YAML syntax that can be useful to troubleshoot problems (eg: YAML Lint).

Stennie
  • 10.3k
  • 2
  • 29
  • 46