Unhandled error event: Error: connect ECONNREFUSED
Asked Answered
D

1

6

I'm using pm2 to ensure laravel-echo-server is running. Performing a pm2 logs 0 gives me some errors. I'm running the server on a Google Compute Engine Instance and have setup some firewall ingress rules.

firewall rules

0|echo-ser | ⚠ Starting server in DEV mode... 
0|echo-ser | 
0|echo-ser | ✔ Running at localhost on port 6001 
0|echo-ser | ✔ Channels are ready. 
0|echo-ser | ✔ Listening for http events... 
0|echo-ser | 
0|echo-ser | L A R A V E L E C H O S E R V E R 
0|echo-ser | 
0|echo-ser | version 1.5.0 
0|echo-ser | 
0|echo-ser | ⚠ Starting server in DEV mode... 
0|echo-ser | 
0|echo-ser | ✔ Running at localhost on port 6001 
0|echo-ser | ✔ Channels are ready. 
0|echo-ser | ✔ Listening for http events...

/root/.pm2/logs/echo-server-error.log last 15 lines: 
0|echo-ser | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14) 
0|echo-ser | [ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 
Doelling answered 28/2, 2019 at 16:51 Comment(0)
D
8

It helps if I have redis-server installed and running... sigh

Doelling answered 28/2, 2019 at 17:9 Comment(1)
The same error, also GCP, pm2 but a different project, Learning Locker in nodejs. Also forgot to install and start redis ... :/Brassica

© 2022 - 2024 — McMap. All rights reserved.