Database Errors
Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: Client password must be a string
You may get the following error while running medusa new
or while running integration tests during local development:
If the error occurs while running medusa new
and you've selected to enter your database credentials, either:
- Make sure your database credentials are correct;
- Or choose the Skip option to skip entering your database credentials.
If the error occurs while running integration tests, make sure the following variable is set in your system's environment variable:
Error: connect ECONNREFUSED ::1:5432
When you start your Medusa backend you may run into the following error:
This error occurs because the backend couldn't connect to the PostgreSQL database. The issue could be one of the following:
- PostgreSQL server isn't running. Make sure it's always running while the Medusa backend is running.
- The connection URL to your PostgreSQL database is incorrect. This could be because of incorrect credentials, port number, or connection URL format. The format should be
postgres://[user][:password]@[host][:port]/[dbname]
. Make sure that the connection URL format is correct, and the credentials passed in the URL are correct. You can learn more about formatting the connection URL here
Was this page helpful?