Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Prisma DB not reachable despite no error #249

Closed
Tbaut opened this issue Mar 23, 2020 · 1 comment
Closed

Prisma DB not reachable despite no error #249

Tbaut opened this issue Mar 23, 2020 · 1 comment

Comments

@Tbaut
Copy link
Contributor

Tbaut commented Mar 23, 2020

The pod show no error:

kubectl -n nodewatcher-staging logs nodewatcher-6967444867-vnhj4 -c prisma --tail 100 --follow
No log level set, defaulting to INFO.
[INFO] {} - Starting...
[INFO] {} - Start completed.
[INFO] Initializing workers...
[INFO] Obtaining exclusive agent lock...
[INFO] Successfully started 1 workers.
[INFO] Obtaining exclusive agent lock... Successful.
[INFO] Deployment worker initialization complete.
Server running on :4466

But connecting to it fails, on chain-db watcher:

 FetchError: request to http://35.189.196.74:4000/ failed, reason: socket hang up

And on the server:

nomidot-server is failing with FetchError: request to http://10.0.9.43:4466/ failed, reason: read ECONNRESET at ClientRequest. (/server/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1393:11) at ClientRequest.emit (events.js:196:13) at ClientRequest.EventEmitter.emit (domain.js:471:20) at Socket.socketErrorListener (_http_client.js:402:9) at Socket.emit (events.js:196:13) at Socket.EventEmitter.emit (domain.js:471:20) at emitErrorNT (internal/streams/destroy.js:91:8) at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) at processTicksAndRejections (internal/process/task_queues.js:83:17)

deleting the nodewatcher pod usually solved the problem.
Next time this happens we need to kubectl -n nodewatcher-staging describe pod/<pod-name> next time this happens.

@Tbaut
Copy link
Contributor Author

Tbaut commented Mar 31, 2020

closing, same as #271

@Tbaut Tbaut closed this as completed Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant