nostream
nostream copied to clipboard
[BUG] seeing ECONNRESET and ECONNREFUSED errors, failing to connect to redis
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 | }
I upgraded to 875354150 and restarted. nostr.info/relays now shows it being quick again.
@Giszmo are you still seeing these errors as often as before?
No. It looks quite clean now.