Community Health Toolkit

Grunt dev-api or node server.js result on this error

2020-10-13 14:23:47 INFO: Running server checks…
Node Environment Options: ‘undefined’
Node Version: 14.13.1 in development mode
COUCH_URL http://localhost:5984/medic
COUCH_NODE_NAME nonode@nohost
Environment variable “COUCH_NODE_NAME” matches server “nonode@nohost”
CouchDB Version: 2.3.1
2020-10-13 14:23:48 INFO: Checks passed successfully
2020-10-13 14:23:48 INFO: Extracting ddoc…
2020-10-13 14:23:49 INFO: DDoc extraction completed successfully
2020-10-13 14:23:49 INFO: Extracting resources…
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/enketo-icons-v2.woff
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/enketo-icons-v2.ttf
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/enketo-icons-v2.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/enketo-icons-v2.eot
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/icon-nurse-selected.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/setup-wizard-demo.png
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/simprints.png
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/fontawesome-webfont.woff
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/icon-pregnant.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/icon-pregnant-selected.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/audio/alert.mp3
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-undo_death_report.doc.json
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/js/service-worker.js
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/icon-chw-selected.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/fontawesome-webfont.woff2
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/NotoSans-Italic.ttf
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/NotoSans-BoldItalic.ttf
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/icon-nurse.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/fontawesome-webfont.ttf
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/img/icon-chw.svg
2020-10-13 14:23:50 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/NotoSans-Bold.ttf
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/FontAwesome.otf
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/fontawesome-webfont.eot
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/NotoSans-Regular.ttf
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/fonts/fontawesome-webfont.svg
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pregnancy_facility_visit_reminder.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/templates/inbox.html
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/manifest.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pregnancy_danger_sign_follow_up.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/messages-en.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pnc_danger_sign_follow_up_baby.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pregnancy_danger_sign.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-death_report.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-clinic-edit.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-health_center-edit.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-district_hospital-edit.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pnc_danger_sign_follow_up_mother.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-person-create.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/resources.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-health_center-create.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-person-edit.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-district_hospital-create.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-contact-clinic-create.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/settings.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/js/templates.js
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pregnancy.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-delivery.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/default-docs/form-pregnancy_home_visit.doc.json
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/css/inbox.css
2020-10-13 14:23:51 DEBUG: Extracted attachment /home/solidarmed/Documents/inyasha/cht-core/api/src/extracted-resources/js/inbox.js
2020-10-13 14:23:51 INFO: Extracting resources completed successfully
2020-10-13 14:23:51 INFO: Extracting initial documents…
2020-10-13 14:23:52 INFO: Extracting initial documents completed successfully
2020-10-13 14:23:52 INFO: Loading configuration…
2020-10-13 14:23:52 INFO: Not updating settings - the existing settings are already up to date
2020-10-13 14:23:52 WARN: Disabled transition “update_clinics”
2020-10-13 14:23:52 WARN: Disabled transition “self_report”
2020-10-13 14:23:52 WARN: Disabled transition “registration”
2020-10-13 14:23:52 WARN: Disabled transition “accept_patient_reports”
2020-10-13 14:23:52 WARN: Disabled transition “accept_case_reports”
2020-10-13 14:23:52 WARN: Disabled transition “generate_shortcode_on_contacts”
2020-10-13 14:23:52 INFO: Loading transition “generate_patient_id_on_people”
2020-10-13 14:23:52 INFO: Skipping asynchronous transition “generate_patient_id_on_people”
2020-10-13 14:23:52 WARN: Disabled transition “default_responses”
2020-10-13 14:23:52 WARN: Disabled transition “update_sent_by”
2020-10-13 14:23:52 WARN: Disabled transition “update_sent_forms”
2020-10-13 14:23:52 INFO: Loading transition “death_reporting”
2020-10-13 14:23:52 WARN: Disabled transition “conditional_alerts”
2020-10-13 14:23:52 WARN: Disabled transition “multi_report_alerts”
2020-10-13 14:23:52 WARN: Disabled transition “update_notifications”
2020-10-13 14:23:52 WARN: Disabled transition “update_scheduled_reports”
2020-10-13 14:23:52 WARN: Disabled transition “resolve_pending”
2020-10-13 14:23:52 WARN: Disabled transition “muting”
2020-10-13 14:23:52 WARN: Disabled transition “mark_for_outbound”
2020-10-13 14:23:52 INFO: Configuration loaded successfully
2020-10-13 14:23:52 INFO: Merging translations…
2020-10-13 14:23:53 INFO: Translations merged successfully
2020-10-13 14:23:53 INFO: Running db migrations…
2020-10-13 14:23:53 INFO: Database migrations completed successfully
2020-10-13 14:23:53 INFO: Updating xforms…
2020-10-13 14:23:53 DEBUG: Generating html and xml model for enketo form “form:contact:clinic:create”
2020-10-13 14:23:53 ERROR: spawn xsltproc ENOENT Error: spawn xsltproc ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:464:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
2020-10-13 14:23:53 ERROR: UNCAUGHT EXCEPTION!
2020-10-13 14:23:53 ERROR: Error: Error: write EPIPE
at afterWriteDispatched (internal/stream_base_commons.js:156:25)
at writeGeneric (internal/stream_base_commons.js:147:3)
at Socket._writeGeneric (net.js:784:11)
at Socket._write (net.js:796:8)
at writeOrBuffer (_stream_writable.js:352:12)
at Socket.Writable.write (_stream_writable.js:303:10)
at /home/solidarmed/Documents/inyasha/cht-core/api/src/services/generate-xform.js:28:20
at new Promise ()
at transform (/home/solidarmed/Documents/inyasha/cht-core/api/src/services/generate-xform.js:21:10)
at generateForm (/home/solidarmed/Documents/inyasha/cht-core/api/src/services/generate-xform.js:61:10) {
[stack]: ‘Error: write EPIPE\n’ +
’ at afterWriteDispatched (internal/stream_base_commons.js:156:25)\n’ +
’ at writeGeneric (internal/stream_base_commons.js:147:3)\n’ +
’ at Socket._writeGeneric (net.js:784:11)\n’ +
’ at Socket._write (net.js:796:8)\n’ +
’ at writeOrBuffer (_stream_writable.js:352:12)\n’ +
’ at Socket.Writable.write (_stream_writable.js:303:10)\n’ +
’ at /home/solidarmed/Documents/inyasha/cht-core/api/src/services/generate-xform.js:28:20\n’ +
’ at new Promise ()\n’ +
’ at transform (/home/solidarmed/Documents/inyasha/cht-core/api/src/services/generate-xform.js:21:10)\n’ +
’ at generateForm (/home/solidarmed/Documents/inyasha/cht-core/api/src/services/generate-xform.js:61:10)’,
[message]: ‘write EPIPE’,
errno: -32,
code: ‘EPIPE’,
syscall: ‘write’,
[Symbol(kEnhanceStackBeforeInspector)]: [Function: bound enhanceStackTrace] {
[length]: 0,
[name]: ‘bound enhanceStackTrace’
}
}

1 Like

Based on the error. It looks like you are missing the xsltproc dependency.

3 Likes