nostream icon indicating copy to clipboard operation
nostream copied to clipboard

[BUG] seeing ECONNRESET and ECONNREFUSED errors, failing to connect to redis

Open Giszmo opened this issue 2 years ago • 2 comments

Describe the bug

Relay appears to not serve events via nostr.info/relays. The Websocket did connect though.

System:

# uname -a
Linux lw10 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux

Nostream revision d4f5fa5 running via start script.

Logs

In the log I see blocks of

nostr-ts-relay        | Unable to connect to Redis. Error: read ECONNRESET
nostr-ts-relay        |     at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
nostr-ts-relay        |   errno: -104,
nostr-ts-relay        |   code: 'ECONNRESET',
nostr-ts-relay        |   syscall: 'read'
nostr-ts-relay        | }

and

nostr-ts-relay        | uncaught error: Error: connect ECONNREFUSED 10.10.10.4:6379                                   
nostr-ts-relay        |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) {                       
nostr-ts-relay        |   errno: -111,                                                                                
nostr-ts-relay        |   code: 'ECONNREFUSED',                                                                       
nostr-ts-relay        |   syscall: 'connect',                                                                         
nostr-ts-relay        |   address: '10.10.10.4',                                                                      
nostr-ts-relay        |   port: 6379                                                                                  
nostr-ts-relay        | }                                                                                             
nostr-ts-relay        | (node:22) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (reject
ion id: 210)                                                                                                          
nostr-ts-relay        | Unable to connect to Redis. Error: getaddrinfo ENOTFOUND cache                                
nostr-ts-relay        |     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {                        
nostr-ts-relay        |   errno: -3008,                                                                               
nostr-ts-relay        |   code: 'ENOTFOUND',                                                                          
nostr-ts-relay        |   syscall: 'getaddrinfo',                                                                     
nostr-ts-relay        |   hostname: 'cache'
nostr-ts-relay        | }

Giszmo avatar Jan 24 '23 16:01 Giszmo

I upgraded to 875354150 and restarted. nostr.info/relays now shows it being quick again.

Giszmo avatar Jan 24 '23 16:01 Giszmo

@Giszmo are you still seeing these errors as often as before?

cameri avatar Feb 04 '23 00:02 cameri

No. It looks quite clean now.

Giszmo avatar Feb 06 '23 18:02 Giszmo