atria
November 29, 2021, 5:24pm
1
Hello All
I am trying to understand why medic-api fails during set up.(using the formal documentation)
Logs & Screenshot
open ports
Logs error-ssl.log
Browser page
I have tried :
Environment
Browser: Chrome
Client platform: MacOS
App: api
Version: 3.7.0, 3.9.0
diana
November 29, 2021, 5:28pm
2
Hi @atria
Could you please check medic-api logs to see if thereās an obvious error there? You could refer to How do I get the medic-api logs when using Docker? for information about how to get logs.
Thanks!
mrjones
November 29, 2021, 5:45pm
3
@atria - I believe youāre following the local setup steps which have you running docker compose to startup the CHT. Medic has published a docker compose helper which might solve your issues.
@diana ās suggestion about the logs will still apply if you get stuck after trying the helper script.
atria
November 30, 2021, 8:35am
4
Hi @diana
There is nothing in the medic-api logs just the medic-core logs
atria
November 30, 2021, 10:43am
5
@diana I do have logs for an instance where the API is failing after a server restart
[2021-11-30 10:37:14] [message]: āChild process errored attempting to transform xmlā }
[2021-11-30 10:37:16] Node Environment Options: āāmax_old_space_size=20000ā
[2021-11-30 10:37:16] Node Version: 8.11.4 in production mode
[2021-11-30 10:37:16] COUCH_URL http://medic-api:******@localhost:5984/medic
[2021-11-30 10:37:16] COUCH_NODE_NAME couchdb@localhost
[2021-11-30 10:37:16] CouchDB Version: 2.3.0
[2021-11-30 10:37:17] 2021-11-30 10:37:17 INFO: Extracting ddocā¦
[2021-11-30 10:37:17] 2021-11-30 10:37:17 INFO: DDoc extraction completed successfully
[2021-11-30 10:37:17] 2021-11-30 10:37:17 INFO: Extracting resourcesā¦
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Extracting resources completed successfully
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Extracting initial documentsā¦
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Extracting initial documents completed successfully
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Loading configurationā¦
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āupdate_clinicsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āregistrationā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āaccept_patient_reportsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āgenerate_patient_id_on_peopleā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition ādefault_responsesā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āupdate_sent_byā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āupdate_sent_formsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Loading transition ādeath_reportingā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āconditional_alertsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Loading transition āmulti_report_alertsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Skipping asynchronous transition āmulti_report_alertsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āupdate_notificationsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āupdate_scheduled_reportsā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āresolve_pendingā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Loading transition āmutingā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Skipping asynchronous transition āmutingā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 WARN: Disabled transition āmark_for_outboundā
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Configuration loaded successfully
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Merging translationsā¦
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Translations merged successfully
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Running db migrationsā¦
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Database migrations completed successfully
[2021-11-30 10:37:18] 2021-11-30 10:37:18 INFO: Updating xformsā¦
[2021-11-30 10:37:18] 2021-11-30 10:37:18 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:18] at _errnoException (util.js:992:11)
[2021-11-30 10:37:18] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:18] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:18] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:18] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:18] 2021-11-30 10:37:18 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:18] at _errnoException (util.js:992:11)
[2021-11-30 10:37:18] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:18] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:18] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:18] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:18] 2021-11-30 10:37:18 ERROR: Fatal error initialising medic-api
[2021-11-30 10:37:18] 2021-11-30 10:37:18 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-30 10:37:18] at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-30 10:37:18] at emitOne (events.js:116:13)
[2021-11-30 10:37:18] at ChildProcess.emit (events.js:211:7)
[2021-11-30 10:37:18] at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-30 10:37:18] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:18] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:18] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:18] [stack]: āError: Child process errored attempting to transform xml\n at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)\n at emitOne (events.js:116:13)\n at ChildProcess.emit (events.js:211:7)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)\n at onErrorNT (internal/child_process.js:372:16)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)ā,
[2021-11-30 10:37:18] [message]: āChild process errored attempting to transform xmlā }
[2021-11-30 10:37:20] Node Environment Options: āāmax_old_space_size=20000ā
[2021-11-30 10:37:20] Node Version: 8.11.4 in production mode
[2021-11-30 10:37:20] COUCH_URL http://medic-api:*******@localhost:5984/medic
[2021-11-30 10:37:20] COUCH_NODE_NAME couchdb@localhost
[2021-11-30 10:37:20] CouchDB Version: 2.3.0
[2021-11-30 10:37:20] 2021-11-30 10:37:20 INFO: Extracting ddocā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: DDoc extraction completed successfully
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Extracting resourcesā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Extracting resources completed successfully
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Extracting initial documentsā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Extracting initial documents completed successfully
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Loading configurationā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āupdate_clinicsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āregistrationā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āaccept_patient_reportsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āgenerate_patient_id_on_peopleā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition ādefault_responsesā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āupdate_sent_byā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āupdate_sent_formsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Loading transition ādeath_reportingā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āconditional_alertsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Loading transition āmulti_report_alertsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Skipping asynchronous transition āmulti_report_alertsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āupdate_notificationsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āupdate_scheduled_reportsā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āresolve_pendingā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Loading transition āmutingā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Skipping asynchronous transition āmutingā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 WARN: Disabled transition āmark_for_outboundā
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Configuration loaded successfully
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Merging translationsā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Translations merged successfully
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Running db migrationsā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Database migrations completed successfully
[2021-11-30 10:37:21] 2021-11-30 10:37:21 INFO: Updating xformsā¦
[2021-11-30 10:37:21] 2021-11-30 10:37:21 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:21] at _errnoException (util.js:992:11)
[2021-11-30 10:37:21] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:21] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:21] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:21] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:21] 2021-11-30 10:37:21 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:21] at _errnoException (util.js:992:11)
[2021-11-30 10:37:21] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:21] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:21] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:21] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:21] 2021-11-30 10:37:21 ERROR: Fatal error initialising medic-api
[2021-11-30 10:37:21] 2021-11-30 10:37:21 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-30 10:37:21] at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-30 10:37:21] at emitOne (events.js:116:13)
[2021-11-30 10:37:21] at ChildProcess.emit (events.js:211:7)
[2021-11-30 10:37:21] at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-30 10:37:21] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:21] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:21] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:21] [stack]: āError: Child process errored attempting to transform xml\n at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)\n at emitOne (events.js:116:13)\n at ChildProcess.emit (events.js:211:7)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)\n at onErrorNT (internal/child_process.js:372:16)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)ā,
[2021-11-30 10:37:21] [message]: āChild process errored attempting to transform xmlā }
[2021-11-30 10:37:24] Node Environment Options: āāmax_old_space_size=20000ā
[2021-11-30 10:37:24] Node Version: 8.11.4 in production mode
[2021-11-30 10:37:24] COUCH_URL http://medic-api:*****@localhost:5984/medic
[2021-11-30 10:37:24] COUCH_NODE_NAME couchdb@localhost
[2021-11-30 10:37:24] CouchDB Version: 2.3.0
[2021-11-30 10:37:24] 2021-11-30 10:37:24 INFO: Extracting ddocā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: DDoc extraction completed successfully
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Extracting resourcesā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Extracting resources completed successfully
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Extracting initial documentsā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Extracting initial documents completed successfully
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Loading configurationā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āupdate_clinicsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āregistrationā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āaccept_patient_reportsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āgenerate_patient_id_on_peopleā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition ādefault_responsesā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āupdate_sent_byā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āupdate_sent_formsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Loading transition ādeath_reportingā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āconditional_alertsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Loading transition āmulti_report_alertsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Skipping asynchronous transition āmulti_report_alertsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āupdate_notificationsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āupdate_scheduled_reportsā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āresolve_pendingā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Loading transition āmutingā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Skipping asynchronous transition āmutingā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 WARN: Disabled transition āmark_for_outboundā
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Configuration loaded successfully
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Merging translationsā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Translations merged successfully
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Running db migrationsā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Database migrations completed successfully
[2021-11-30 10:37:25] 2021-11-30 10:37:25 INFO: Updating xformsā¦
[2021-11-30 10:37:25] 2021-11-30 10:37:25 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:25] at _errnoException (util.js:992:11)
[2021-11-30 10:37:25] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:25] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:25] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:25] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:25] 2021-11-30 10:37:25 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:25] at _errnoException (util.js:992:11)
[2021-11-30 10:37:25] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:25] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:25] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:25] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:25] 2021-11-30 10:37:25 ERROR: Fatal error initialising medic-api
[2021-11-30 10:37:25] 2021-11-30 10:37:25 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-30 10:37:25] at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-30 10:37:25] at emitOne (events.js:116:13)
[2021-11-30 10:37:25] at ChildProcess.emit (events.js:211:7)
[2021-11-30 10:37:25] at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-30 10:37:25] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:25] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:25] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:25] [stack]: āError: Child process errored attempting to transform xml\n at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)\n at emitOne (events.js:116:13)\n at ChildProcess.emit (events.js:211:7)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)\n at onErrorNT (internal/child_process.js:372:16)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)ā,
[2021-11-30 10:37:25] [message]: āChild process errored attempting to transform xmlā }
[2021-11-30 10:37:27] Node Environment Options: āāmax_old_space_size=20000ā
[2021-11-30 10:37:27] Node Version: 8.11.4 in production mode
[2021-11-30 10:37:27] COUCH_URL http://medic-api:********@localhost:5984/medic
[2021-11-30 10:37:27] COUCH_NODE_NAME couchdb@localhost
[2021-11-30 10:37:27] CouchDB Version: 2.3.0
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Extracting ddocā¦
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: DDoc extraction completed successfully
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Extracting resourcesā¦
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Extracting resources completed successfully
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Extracting initial documentsā¦
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Extracting initial documents completed successfully
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Loading configurationā¦
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āupdate_clinicsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āregistrationā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āaccept_patient_reportsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āgenerate_patient_id_on_peopleā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition ādefault_responsesā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āupdate_sent_byā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āupdate_sent_formsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Loading transition ādeath_reportingā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āconditional_alertsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Loading transition āmulti_report_alertsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Skipping asynchronous transition āmulti_report_alertsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āupdate_notificationsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āupdate_scheduled_reportsā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āresolve_pendingā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Loading transition āmutingā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Skipping asynchronous transition āmutingā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 WARN: Disabled transition āmark_for_outboundā
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Configuration loaded successfully
[2021-11-30 10:37:28] 2021-11-30 10:37:28 INFO: Merging translationsā¦
[2021-11-30 10:37:29] 2021-11-30 10:37:29 INFO: Translations merged successfully
[2021-11-30 10:37:29] 2021-11-30 10:37:29 INFO: Running db migrationsā¦
[2021-11-30 10:37:29] 2021-11-30 10:37:29 INFO: Database migrations completed successfully
[2021-11-30 10:37:29] 2021-11-30 10:37:29 INFO: Updating xformsā¦
[2021-11-30 10:37:29] 2021-11-30 10:37:29 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:29] at _errnoException (util.js:992:11)
[2021-11-30 10:37:29] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:29] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:29] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:29] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:29] 2021-11-30 10:37:29 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:29] at _errnoException (util.js:992:11)
[2021-11-30 10:37:29] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:29] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:29] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:29] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:29] 2021-11-30 10:37:29 ERROR: Fatal error initialising medic-api
[2021-11-30 10:37:29] 2021-11-30 10:37:29 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-30 10:37:29] at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-30 10:37:29] at emitOne (events.js:116:13)
[2021-11-30 10:37:29] at ChildProcess.emit (events.js:211:7)
[2021-11-30 10:37:29] at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-30 10:37:29] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:29] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:29] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:29] [stack]: āError: Child process errored attempting to transform xml\n at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)\n at emitOne (events.js:116:13)\n at ChildProcess.emit (events.js:211:7)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)\n at onErrorNT (internal/child_process.js:372:16)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)ā,
[2021-11-30 10:37:29] [message]: āChild process errored attempting to transform xmlā }
[2021-11-30 10:37:31] Node Environment Options: āāmax_old_space_size=20000ā
[2021-11-30 10:37:31] Node Version: 8.11.4 in production mode
[2021-11-30 10:37:31] COUCH_URL http://medic-api:******@localhost:5984/medic
[2021-11-30 10:37:31] COUCH_NODE_NAME couchdb@localhost
[2021-11-30 10:37:31] CouchDB Version: 2.3.0
[2021-11-30 10:37:31] 2021-11-30 10:37:31 INFO: Extracting ddocā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: DDoc extraction completed successfully
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Extracting resourcesā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Extracting resources completed successfully
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Extracting initial documentsā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Extracting initial documents completed successfully
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Loading configurationā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āupdate_clinicsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āregistrationā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āaccept_patient_reportsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āgenerate_patient_id_on_peopleā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition ādefault_responsesā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āupdate_sent_byā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āupdate_sent_formsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Loading transition ādeath_reportingā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āconditional_alertsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Loading transition āmulti_report_alertsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Skipping asynchronous transition āmulti_report_alertsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āupdate_notificationsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āupdate_scheduled_reportsā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āresolve_pendingā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Loading transition āmutingā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Skipping asynchronous transition āmutingā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 WARN: Disabled transition āmark_for_outboundā
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Configuration loaded successfully
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Merging translationsā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Translations merged successfully
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Running db migrationsā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Database migrations completed successfully
[2021-11-30 10:37:32] 2021-11-30 10:37:32 INFO: Updating xformsā¦
[2021-11-30 10:37:32] 2021-11-30 10:37:32 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:32] at _errnoException (util.js:992:11)
[2021-11-30 10:37:32] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:32] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:32] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:32] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:32] 2021-11-30 10:37:32 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-30 10:37:32] at _errnoException (util.js:992:11)
[2021-11-30 10:37:32] at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-30 10:37:32] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:32] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:32] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:32] 2021-11-30 10:37:32 ERROR: Fatal error initialising medic-api
[2021-11-30 10:37:32] 2021-11-30 10:37:32 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-30 10:37:32] at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-30 10:37:32] at emitOne (events.js:116:13)
[2021-11-30 10:37:32] at ChildProcess.emit (events.js:211:7)
[2021-11-30 10:37:32] at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-30 10:37:32] at onErrorNT (internal/child_process.js:372:16)
[2021-11-30 10:37:32] at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-30 10:37:32] at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-30 10:37:32] [stack]: āError: Child process errored attempting to transform xml\n at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)\n at emitOne (events.js:116:13)\n at ChildProcess.emit (events.js:211:7)\n at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)\n at onErrorNT (internal/child_process.js:372:16)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)ā,
[2021-11-30 10:37:32] [message]: āChild process errored attempting to transform xmlā }
[2021-11-30 10:37:35] Node Environment Options: āāmax_old_space_size=20000ā
[2021-11-30 10:37:35] Node Version: 8.11.4 in production mode
[2021-11-30 10:37:35] COUCH_URL http://medic-api:*******@localhost:5984/medic
[2021-11-30 10:37:35] COUCH_NODE_NAME couchdb@localhost
[2021-11-30 10:37:35] CouchDB Version: 2.3.0
[2021-11-30 10:37:35] 2021-11-30 10:37:35 INFO: Extracting ddocā¦
[2021-11-30 10:37:36] 2021-11-30 10:37:36 INFO: DDoc extraction completed successfully
[2021-11-30 10:37:36] 2021-11-30 10:37:36 INFO: Extracting resourcesā¦
[2021-11-30 10:37:36] 2021-11-30 10:37:36 INFO: Extracting resources completed successfully
[2021-11-30 10:37:36] 2021-11-30 10:37:36 INFO: Extracting initial documentsā¦
[2021-11-30 10:37:36] 2021-11-30 10:37:36 INFO: Extracting initial documents completed successfully
[2021-11-30 10:37:36] 2021-11-30 10:37:36 INFO: Loading configurationā¦
[2021-11-30 10:37:36] 2021-11-30 10:37:36 WARN: Disabled transition "update_clinic
diana
November 30, 2021, 11:23am
6
It seems that your installation is missing a required dependency xsltproc, which is used to generate xmls for forms.
I do have logs for an instance where the API is failing after a server restart
Itās not clear if these are logs from the same instance being discussed in the original post or not.
diana
November 30, 2021, 11:25am
7
There is nothing in the medic-api logs just the medic-core logs
If API never started in this case, I suggest checking the links that @mrjones has provided.