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.
1 Like
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.