We're Hiring!

Mattermost, Inc.

Error: failed to load configuration: failed to load: invalid config: Config.IsValid: model.config.is_valid.file_driver.app_error,

I am new to Mattermost. Installing it for the first time on CentOS 7. As per installation guide I am editing config.json. I put in SiteURL and database credentials.

  "ServiceSettings": {
    "SiteURL": "https://mattermost.1.1.1.3.nip.io",
    "WebsocketURL": "",

And database settings

  "SqlSettings": {
    "DriverName": "postgres",
    "DataSource": "postgres://mattermost:secret@db:5432/mattermost?sslmode=disable&connect_timeout=10",
    "DataSourceReplicas": [],

When I run mattermost, I get an error message that the config file is not valid

[mattermost@mattermost mattermost]$ ./bin/mattermost 
Error: failed to load configuration: failed to load: invalid config: Config.IsValid: model.config.is_valid.file_driver.app_error, 
Usage:
  mattermost [flags]
  mattermost [command]

The file is pretty large with many options. There is no log file. Is there a way to know what part of the file is not valid? Is there an editor / IDE of some sort to compile the file?

Hello, @sugarmoose

One of the easiest way to check if there is anything wrong with the config.json file in terms of structure would be to test it on JSONLint tool here.

While the DataSource format looks fine, can I please check if you are using the hostname or IP address for the db:5432 parameter/?

I tried to access https://mattermost.1.1.1.3.nip.io and received a 403 Forbidden. So, I wanted to confirm if the initial issue was fixed and you are now facing a new issue instead.