Community Health Toolkit

Upgrading CHT Core from 3.6.0 to 3.7.1 using medic-OS docker compose (medic api failing)

** Medic api failing after upgrade**
Am upgrading cht from 3.6.0 to 3.7.1, the set is using cht docker compose, after staging and installing the upgrade medic-api fails (attached logs)

Logs

[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:29] 2021-11-12 06:42:29 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Configuration loaded successfully
[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Merging translations…
[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Translations merged successfully
[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Running db migrations…
[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Database migrations completed successfully
[2021-11-12 06:42:29] 2021-11-12 06:42:29 INFO: Updating xforms…
[2021-11-12 06:42:29] 2021-11-12 06:42:29 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:29]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:29]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:29]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:29]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:29]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:29] 2021-11-12 06:42:29 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:29]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:29]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:29]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:29]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:29]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:29] 2021-11-12 06:42:29 ERROR: Fatal error initialising medic-api
[2021-11-12 06:42:29] 2021-11-12 06:42:29 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-12 06:42:29]     at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-12 06:42:29]     at emitOne (events.js:116:13)
[2021-11-12 06:42:29]     at ChildProcess.emit (events.js:211:7)
[2021-11-12 06:42:29]     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-12 06:42:29]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:29]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:29]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42: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-12 06:42:29]   [message]: 'Child process errored attempting to transform xml' }
[2021-11-12 06:42:31] Node Environment Options: '--max_old_space_size=20000'
[2021-11-12 06:42:31] Node Version: 8.11.4 in production mode
[2021-11-12 06:42:31] COUCH_URL http://medic-api:**********@localhost:5984/medic
[2021-11-12 06:42:31] COUCH_NODE_NAME couchdb@localhost
[2021-11-12 06:42:31] CouchDB Version: 2.3.0
[2021-11-12 06:42:31] 2021-11-12 06:42:31 INFO: Extracting ddoc…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: DDoc extraction completed successfully
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Extracting resources…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Extracting resources completed successfully
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Extracting initial documents…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Extracting initial documents completed successfully
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Loading configuration…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "update_clinics"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "registration"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "accept_patient_reports"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "generate_patient_id_on_people"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "default_responses"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "update_sent_by"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "update_sent_forms"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Loading transition "death_reporting"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "conditional_alerts"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Loading transition "multi_report_alerts"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Skipping asynchronous transition "multi_report_alerts"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "update_notifications"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "update_scheduled_reports"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "resolve_pending"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Loading transition "muting"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Configuration loaded successfully
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Merging translations…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Translations merged successfully
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Running db migrations…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Database migrations completed successfully
[2021-11-12 06:42:32] 2021-11-12 06:42:32 INFO: Updating xforms…
[2021-11-12 06:42:32] 2021-11-12 06:42:32 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:32]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:32]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:32]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:32]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:32]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:32] 2021-11-12 06:42:32 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:32]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:32]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:32]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:32]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:32]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:32] 2021-11-12 06:42:32 ERROR: Fatal error initialising medic-api
[2021-11-12 06:42:32] 2021-11-12 06:42:32 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-12 06:42:32]     at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-12 06:42:32]     at emitOne (events.js:116:13)
[2021-11-12 06:42:32]     at ChildProcess.emit (events.js:211:7)
[2021-11-12 06:42:32]     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-12 06:42:32]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:32]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:32]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42: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-12 06:42:32]   [message]: 'Child process errored attempting to transform xml' }
[2021-11-12 06:42:34] Node Environment Options: '--max_old_space_size=20000'
[2021-11-12 06:42:34] Node Version: 8.11.4 in production mode
[2021-11-12 06:42:34] COUCH_URL http://medic-api:******@localhost:5984/medic
[2021-11-12 06:42:34] COUCH_NODE_NAME couchdb@localhost
[2021-11-12 06:42:35] CouchDB Version: 2.3.0
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: Extracting ddoc…
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: DDoc extraction completed successfully
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: Extracting resources…
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: Extracting resources completed successfully
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: Extracting initial documents…
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: Extracting initial documents completed successfully
[2021-11-12 06:42:35] 2021-11-12 06:42:35 INFO: Loading configuration…
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "update_clinics"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "registration"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "accept_patient_reports"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "generate_patient_id_on_people"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "default_responses"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "update_sent_by"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "update_sent_forms"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Loading transition "death_reporting"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "conditional_alerts"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Loading transition "multi_report_alerts"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Skipping asynchronous transition "multi_report_alerts"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "update_notifications"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "update_scheduled_reports"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "resolve_pending"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Loading transition "muting"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Configuration loaded successfully
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Merging translations…
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Translations merged successfully
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Running db migrations…
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Database migrations completed successfully
[2021-11-12 06:42:36] 2021-11-12 06:42:36 INFO: Updating xforms…
[2021-11-12 06:42:36] 2021-11-12 06:42:36 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:36]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:36]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:36]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:36]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:36]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:36] 2021-11-12 06:42:36 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:36]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:36]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:36]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:36]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:36]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:36] 2021-11-12 06:42:36 ERROR: Fatal error initialising medic-api
[2021-11-12 06:42:36] 2021-11-12 06:42:36 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-12 06:42:36]     at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-12 06:42:36]     at emitOne (events.js:116:13)
[2021-11-12 06:42:36]     at ChildProcess.emit (events.js:211:7)
[2021-11-12 06:42:36]     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-12 06:42:36]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:36]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:36]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:36]   [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-12 06:42:36]   [message]: 'Child process errored attempting to transform xml' }
[2021-11-12 06:42:38] Node Environment Options: '--max_old_space_size=20000'
[2021-11-12 06:42:38] Node Version: 8.11.4 in production mode
[2021-11-12 06:42:38] COUCH_URL http://medic-api:****@localhost:5984/medic
[2021-11-12 06:42:38] COUCH_NODE_NAME couchdb@localhost
[2021-11-12 06:42:38] CouchDB Version: 2.3.0
[2021-11-12 06:42:38] 2021-11-12 06:42:38 INFO: Extracting ddoc…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: DDoc extraction completed successfully
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Extracting resources…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Extracting resources completed successfully
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Extracting initial documents…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Extracting initial documents completed successfully
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Loading configuration…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "update_clinics"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "registration"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "accept_patient_reports"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "generate_patient_id_on_people"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "default_responses"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "update_sent_by"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "update_sent_forms"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Loading transition "death_reporting"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "conditional_alerts"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Loading transition "multi_report_alerts"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Skipping asynchronous transition "multi_report_alerts"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "update_notifications"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "update_scheduled_reports"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "resolve_pending"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Loading transition "muting"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Configuration loaded successfully
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Merging translations…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Translations merged successfully
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Running db migrations…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Database migrations completed successfully
[2021-11-12 06:42:39] 2021-11-12 06:42:39 INFO: Updating xforms…
[2021-11-12 06:42:39] 2021-11-12 06:42:39 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:39]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:39]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:39]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:39]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:39]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:39] 2021-11-12 06:42:39 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:39]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:39]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:39]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:39]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:39]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:39] 2021-11-12 06:42:39 ERROR: Fatal error initialising medic-api
[2021-11-12 06:42:39] 2021-11-12 06:42:39 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-12 06:42:39]     at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-12 06:42:39]     at emitOne (events.js:116:13)
[2021-11-12 06:42:39]     at ChildProcess.emit (events.js:211:7)
[2021-11-12 06:42:39]     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-12 06:42:39]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:39]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:39]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:39]   [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-12 06:42:39]   [message]: 'Child process errored attempting to transform xml' }
[2021-11-12 06:42:42] Node Environment Options: '--max_old_space_size=20000'
[2021-11-12 06:42:42] Node Version: 8.11.4 in production mode
[2021-11-12 06:42:42] COUCH_URL http://medic-api:******@localhost:5984/medic
[2021-11-12 06:42:42] COUCH_NODE_NAME couchdb@localhost
[2021-11-12 06:42:42] CouchDB Version: 2.3.0
[2021-11-12 06:42:42] 2021-11-12 06:42:42 INFO: Extracting ddoc…
[2021-11-12 06:42:42] 2021-11-12 06:42:42 INFO: DDoc extraction completed successfully
[2021-11-12 06:42:42] 2021-11-12 06:42:42 INFO: Extracting resources…
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Extracting resources completed successfully
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Extracting initial documents…
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Extracting initial documents completed successfully
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Loading configuration…
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "update_clinics"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "registration"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "accept_patient_reports"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "generate_patient_id_on_people"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "default_responses"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "update_sent_by"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "update_sent_forms"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Loading transition "death_reporting"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "conditional_alerts"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Loading transition "multi_report_alerts"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Skipping asynchronous transition "multi_report_alerts"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "update_notifications"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "update_scheduled_reports"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "resolve_pending"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Loading transition "muting"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Configuration loaded successfully
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Merging translations…
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Translations merged successfully
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Running db migrations…
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Database migrations completed successfully
[2021-11-12 06:42:43] 2021-11-12 06:42:43 INFO: Updating xforms…
[2021-11-12 06:42:43] 2021-11-12 06:42:43 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:43]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:43]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:43]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:43]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:43]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:43] 2021-11-12 06:42:43 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:43]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:43]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:43]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:43]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:43]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:43] 2021-11-12 06:42:43 ERROR: Fatal error initialising medic-api
[2021-11-12 06:42:43] 2021-11-12 06:42:43 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-12 06:42:43]     at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-12 06:42:43]     at emitOne (events.js:116:13)
[2021-11-12 06:42:43]     at ChildProcess.emit (events.js:211:7)
[2021-11-12 06:42:43]     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-12 06:42:43]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:43]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:43]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:43]   [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-12 06:42:43]   [message]: 'Child process errored attempting to transform xml' }
[2021-11-12 06:42:45] Node Environment Options: '--max_old_space_size=20000'
[2021-11-12 06:42:45] Node Version: 8.11.4 in production mode
[2021-11-12 06:42:45] COUCH_URL http://medic-api:******@localhost:5984/medic
[2021-11-12 06:42:45] COUCH_NODE_NAME couchdb@localhost
[2021-11-12 06:42:45] CouchDB Version: 2.3.0
[2021-11-12 06:42:45] 2021-11-12 06:42:45 INFO: Extracting ddoc…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: DDoc extraction completed successfully
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Extracting resources…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Extracting resources completed successfully
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Extracting initial documents…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Extracting initial documents completed successfully
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Loading configuration…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "update_clinics"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "registration"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "accept_patient_reports"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "generate_patient_id_on_people"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "default_responses"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "update_sent_by"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "update_sent_forms"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Loading transition "death_reporting"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "conditional_alerts"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Loading transition "multi_report_alerts"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Skipping asynchronous transition "multi_report_alerts"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "update_notifications"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "update_scheduled_reports"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "resolve_pending"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Loading transition "muting"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Configuration loaded successfully
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Merging translations…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Translations merged successfully
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Running db migrations…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Database migrations completed successfully
[2021-11-12 06:42:46] 2021-11-12 06:42:46 INFO: Updating xforms…
[2021-11-12 06:42:46] 2021-11-12 06:42:46 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:46]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:46]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:46]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:46]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:46]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:46] 2021-11-12 06:42:46 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
[2021-11-12 06:42:46]     at _errnoException (util.js:992:11)
[2021-11-12 06:42:46]     at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
[2021-11-12 06:42:46]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:46]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:46]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:46] 2021-11-12 06:42:46 ERROR: Fatal error initialising medic-api
[2021-11-12 06:42:46] 2021-11-12 06:42:46 ERROR: { Error: Child process errored attempting to transform xml
[2021-11-12 06:42:46]     at ChildProcess.xsltproc.on.err (/srv/software/medic-api/md5-COhU+vzfKxP6IcVH7UFAQ==/src/services/generate-xform.js:43:21)
[2021-11-12 06:42:46]     at emitOne (events.js:116:13)
[2021-11-12 06:42:46]     at ChildProcess.emit (events.js:211:7)
[2021-11-12 06:42:46]     at Process.ChildProcess._handle.onexit (internal/child_process.js:196:12)
[2021-11-12 06:42:46]     at onErrorNT (internal/child_process.js:372:16)
[2021-11-12 06:42:46]     at _combinedTickCallback (internal/process/next_tick.js:138:11)
[2021-11-12 06:42:46]     at process._tickCallback (internal/process/next_tick.js:180:9)
[2021-11-12 06:42:46]   [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-12 06:42:46]   [message]: 'Child process errored attempting to transform xml' }
[2021-11-12 06:42:49] Node Environment Options: '--max_old_space_size=20000'
[2021-11-12 06:42:49] Node Version: 8.11.4 in production mode
[2021-11-12 06:42:49] COUCH_URL http://medic-api:******@localhost:5984/medic
[2021-11-12 06:42:49] COUCH_NODE_NAME couchdb@localhost
[2021-11-12 06:42:49] CouchDB Version: 2.3.0
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: Extracting ddoc…
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: DDoc extraction completed successfully
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: Extracting resources…
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: Extracting resources completed successfully
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: Extracting initial documents…
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: Extracting initial documents completed successfully
[2021-11-12 06:42:49] 2021-11-12 06:42:49 INFO: Loading configuration…
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "update_clinics"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "registration"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "accept_patient_reports"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "generate_patient_id_on_people"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "default_responses"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "update_sent_by"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "update_sent_forms"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Loading transition "death_reporting"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "conditional_alerts"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Loading transition "multi_report_alerts"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Skipping asynchronous transition "multi_report_alerts"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "update_notifications"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "update_scheduled_reports"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "resolve_pending"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Loading transition "muting"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Skipping asynchronous transition "muting"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 WARN: Disabled transition "mark_for_outbound"
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Configuration loaded successfully
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Merging translations…
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Translations merged successfully
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Running db migrations…
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Database migrations completed successfully
[2021-11-12 06:42:50] 2021-11-12 06:42:50 INFO: Updating xforms…
[2021-11-12 06:42:50] 2021-11-12 06:42:50 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT



Your are likely using an older compose file which in turn links to an older medic-os which is missing the xsltproc dependency. Here’s a link to the latest version of the docker-compose.yml file.

Are you able to share what you are currently using?

There’s an older image that supports 3.7 but unsure if there are tips on using the latest compose file and upgrade to 3.7.1
@nyika

1 Like

Hi @derick thank you for the prompt response,

am using the docker-composer below

version: '3.1'

services:
  medic-os:
    image: medicmobile/medic-os:3.2.1-rc.4
    volumes:
      - /srv:/srv
    ports:
      - 443:443
      - 80:80
    working_dir: /srv
    network_mode: host
    restart: unless-stopped

  haproxy:
    image: medicmobile/haproxy:rc-1.16
    volumes:
      - /srv:/srv
    depends_on:
      - medic-os
    network_mode: host
    environment:
      - COUCHDB_HOST=127.0.0.1
      - HA_PASSWORD=${HA_PASSWORD}
    restart: unless-stopped

@derick let me try this but initially it had failed, (this was an upgrade from 3.6 to 3.9)
@atria

@waok2 could you try this first reference the 3.7 medic-os docker image (#6176) · medic/cht-core@05b90b2 · GitHub ?

1 Like

thank you @derick this has worked
@atria