#client password must be a string

39 messages · Page 1 of 1 (latest)

sleek owl
#

Command:

npx medusa user -e some@email.com -p some-password

Error:
SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string

static gate
#

Does your db password contains special chars such as @#\ etc or is empty?

tired ermine
#

Do you have a .env file?

#

Or set database credentials

sleek owl
tranquil spire
sleek owl
#

Should I change my .env.template filename?

static gate
#

Yes definitely

sleek owl
#

okay let me try

static gate
#

And remove special chars from your pass as well

sleek owl
#

Okay this is my password rn. And it's not working

#

But the .env is in the storefront, I dont understand that

static gate
#

We are talking about your server

sleek owl
#

Yeah, but I dont have .env in backend

static gate
#

Exactly

#

So you need one to set up your medusa backend

sleek owl
#

Okay, what template I need?

static gate
#

You can look at your medusa config and populate you .env file

sleek owl
#

I have this one

static gate
#

In your medusa config you will find the postgres url and the env it is coming from. You can also look the getting started in the doc

sleek owl
west steppe
#

The 3rd part, Configurations, talks about environment variables

sleek owl
#

Lets try with this

#

Perfect, solved

west steppe
#

Please read through the full guide.

sleek owl
#

But this it whas happened

sleek owl
west steppe
#

That documentation is frequently and painstakingly updated with answers to all of the most common onboarding questions.

#

I would strongly suggest using the guide to install to a local development environment first. When you are ready to deploy to prod, you can use one of those other services.

sleek owl
#

Okay thank you

#

But I have a problem now!

#

When i run the dev server, it's return me to login, not to register 😬

west steppe
sleek owl
#

Should I run this before dev then?

static gate
#

You run it once after your migrations and thats it