Can't connect to the server in local environment

Hello, After running npm run develop I got this error:

> strapispnsors@0.1.0 develop
> strapi develop

[2022-03-20 02:02:35.443] debug: ⛔️ Server wasn't able to start properly.
[2022-03-20 02:02:35.444] error: connect ECONNREFUSED
Error: connect ECONNREFUSED
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1133:16)

Can you advise on how to resolve this?

Show comments

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I’m getting the same error. Did you find the sol for it ?

This comment has been deleted

Site Moderator
Site Moderator badge
March 20, 2022

Hi @,

The ECONNREFUSED is coming from the database, it’s refusing the connection for some reason. The most possible reasons for this are wrong user/password, lack of database permissions or unavailable Database instance.