medic / cht-user-management

GNU Affero General Public License v3.0
4 stars 1 forks source link

Investigate this failed move-contacts job #221

Open kennsippell opened 8 hours ago

kennsippell commented 8 hours ago

https://users-chis-ke.app.medicmobile.org/board/queue/MOVE_CONTACT_QUEUE?status=failed

Error: Job fe9d3d11-21ad-44b6-9682-b21247233ecd failed with the following error: Error: Move contact command exited with code 1. Last output: ERROR undefined 

    at /app/dist/worker/move-contact-worker.js:150:15
    at Generator.next (<anonymous>)
    at fulfilled (/app/dist/worker/move-contact-worker.js:5:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
paulpascal commented 7 hours ago

When double checking the worker logs using:

kubectl --context arn:aws:eks:eu-west-2:720541322708:cluster/prod-cht-eks  \
    --namespace users-chis-prod logs deploy/users-chis-ke-cht-user-management-worker \
    --since 8h

Its shows, that its cht-conf error:

cht-conf: INFO Staged changes to lineage information for X contact(s) and Y report(s). 
INFO move-contacts complete. 

cht-conf: INFO Starting action: upload-docs… 

cht-conf: WARN This operation will permanently write Z docs.  Are you sure you want to continue? 

cht-conf: 
0/Z docs []   0% ?:??
cht-conf: 
100/Z docs []  26% 0:07
cht-conf: INFO {
  "code": 500,
  "error": "Server error",
  "status": 500,
  "name": "Server error",
  "stack": "Error\n    at Object.generateErrorFromResponse (/app/node_modules/pouchdb-errors/lib/index.js:104:18)\n    at /app/node_modules/pouchdb-adapter-http/lib/index.js:254:33\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
} 

cht-conf: ERROR undefined 

And its seems that an error happen when cht-conf was running from the 100/ Z (total docs) to be written.

I will investigate more on that and report here.