Cannot read properties of undefined (reading 'members') Error

“Hi there, I updated the config.production.json file to set the domain name (url) to IP address and changed the host value to 0.0.0.0 so I can access the Ghost application on my host machine from a local virtual machine. However, I encountered an error after making these changes. Could you help identify and resolve the issue?”

Before proceeding, I’d go ahead and ghost stop and then ghost start, as I /think/ the initialization is slightly different than for ghost restart. (That probably won’t fix the problem, but let’s go ahead and rule it out and/or see if anything useful comes out of the error messages.)

I assume you’ve already run journalctl -u ghost_localhost -n 50 to get recent errors, like it suggested. (Do immediately after attempting to start.) What did it say?

Did you intend to change the value of the ‘server’ ? There’s no top-level ‘host’ setting.

Your error looks consistent with a database problem. What host value did you change? Any chance it’s database.connection.host ? If so, that’s your problem. That value is telling Ghost where to find the database. You need to give Ghost the actual IP the database is listening on.

A full (minus secrets) copy of config.production.json would be helpful for debugging, if you need more help.

The server stopped with ghost stop but didn’t start with ghost start, the error after running the suggested command outputs this:

while the config.production.json in the IP and database host look like this

After changing the http to https in the config.production.json and restarting worked, but now since is https I cannot access it locally. Any idea?