# JSON file error on ghost start

**URL:** <https://forum.ghost.org/t/json-file-error-on-ghost-start/37202>\
**Category:** Developer help\
**Created:** [March 19, 2023, 11:21pm UTC](https://forum.ghost.org/t/json-file-error-on-ghost-start/37202 "2023-03-19T23:21:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FricksASN](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fricksasn/32/23616_2.png) [@FricksASN](https://forum.ghost.org/u/FricksASN)\
**Post date:** [March 19, 2023, 11:21pm UTC](https://forum.ghost.org/t/json-file-error-on-ghost-start/37202/1 "2023-03-19T23:21:31Z")

</div>

Hi all!

I’m having an issue starting my Ghost blog on AWS Lightsail. I get an error that the “Config file is not valid JSON”.

Here is the file in question:

```auto
{
        "url": "https://url.net",
        "server": {
"port": 2368,
"host": "0.0.0.0"
},
"database": {
"client": "mysql",
"connection": {
"host": "127.0.0.1",
"port": 3306,
"database": "bitnami_ghost",
"user": "bn_ghost",
"password": "REDACTED"
}
},
"mail": {
"transport": "SMTP",
"options": {
"service": "Mailgun",
"host": "smtp.mailgun.org",
"port": 587,
"secureConnection": false,
"auth": {
"user": "postmaster@mailer.redacted.net",
"pass": "redacted"
}
}
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "local",
"paths": {
"contentPath": "/opt/bitnami/ghost/content"
}
}

```

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [March 20, 2023, 1:56pm UTC](https://forum.ghost.org/t/json-file-error-on-ghost-start/37202/2 "2023-03-20T13:56:15Z")

</div>

I can’t see anything wrong with what you posted, but here’s a tidy, valid JSON version.

```auto

{
	"url": "https://url.net",
	"server": {
		"port": 2368,
		"host": "0.0.0.0"
	},
	"database": {
		"client": "mysql",
		"connection": {
			"host": "127.0.0.1",
			"port": 3306,
			"database": "bitnami_ghost",
			"user": "bn_ghost",
			"password": "REDACTED"
		}
	},
	"mail": {
		"transport": "SMTP",
		"options": {
			"service": "Mailgun",
			"host": "smtp.mailgun.org",
			"port": 587,
			"secureConnection": false,
			"auth": {
				"user": "postmaster@mailer.redacted.net",
				"pass": "redacted"
			}
		}
	},
	"logging": {
		"transports": [
			"file",
			"stdout"
		]
	},
	"process": "local",
	"paths": {
		"contentPath": "/opt/bitnami/ghost/content"
	}
}

```

---

<div class="post-metadata">

**Author:** ![FricksASN](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fricksasn/32/23616_2.png) [@FricksASN](https://forum.ghost.org/u/FricksASN)\
**Post date:** [March 22, 2023, 9:02pm UTC](https://forum.ghost.org/t/json-file-error-on-ghost-start/37202/3 "2023-03-22T21:02:38Z")

</div>

Thank you! It doesn’t work, it throws the same error. However, it does work with “ghost run” but of course, this is not the way to leave the website live. I don’t quite know what else to do and at this point I think I’ll make a new install and migrate everything 🥲
