#Cannot login on running pnpm start:dev

1 messages · Page 1 of 1 (latest)

visual lion
#

This is my first time running the project .

cedar dagger
#

So the login in the production doesn't work on the local setup, Novu user-database isn't running locally

visual lion
#

am i missing the CORS chrome extension maybe ?

cedar dagger
visual lion
#

sure

#

i started with pnpm build

#

pnpm install

#

then on the root

#

pnpm start:web

dusky anchorBOT
#

@visual lion, you just advanced to level 2!

cedar dagger
#

Were you following any particual documention page?

visual lion
#

no just the package.json

#

is there a documentation that i might have overlooked?

cedar dagger
visual lion
#

ok i already tried this

#

i get this error

#

Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)
at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -61,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 6379
}

#

which means redis has issues right ?

#

so after that i only tried to run web

cedar dagger
visual lion
#

how do i solve it ?

cedar dagger
#

Our search bar over the docs also got AI integrated with our Documentation, GitHub and most Discord messages issues indexed..

When I asked it your question, it returned the following:

If you're running your application in a docker container, you might have to update your .env configuration file. Instead of using 127.0.0.1 as your REDIS_HOST, you might need to specify the correct docker service name as the host. This error commonly arises when the service name for redis in your docker-compose file differs from the value you've defined in your .env file.
#

Could you please tell me if it helped?

visual lion
#

actually no cos i dont know which env file

#

since its a monorepo each application has its own

#

MONGO_URL=mongodb://localhost:27017/novu-db
MONGO_MAX_POOL_SIZE=500
REDIS_PORT=6379
REDIS_PREFIX=
REDIS_HOST=localhost
REDIS_DB_INDEX=2

#

what do i replace it with

cedar dagger
#

@glacial sluice can you please have a look?

visual lion
#

could it be a firewall issue?

cedar dagger
#

@visual lion Did you manage to solve it?

visual lion
#

no its a blocker

#

also saw an open issue

cedar dagger
visual lion
#

yes

visual lion
#

but is an on going error ? am i running the wrong command for runnin the project

#

?

cedar dagger
#

@glacial sluice Can you please have a look here?

glacial sluice
#

@visual lion

make sure you redis and mongodb is running

#

and api, web, worker service is running