Problem installing OpenHIM

63 views
Skip to first unread message

Stuardo Herrera

unread,
Nov 26, 2019, 12:36:28 PM11/26/19
to Interoperability Layer (OpenHIE)
Hi everyone, 

We tried to install OpenHim but we are getting the following error:

Use "require('ssl-root-cas')" instead of "require('ssl-root-cas/latest')"

 

TypeError [ERR_INVALID_CALLBACK] [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined

    at makeCallback (fs.js:143:11)

    at Object.unlink (fs.js:1024:14)

    at /usr/share/openhim-core/node_modules/pem/lib/pem.js:1042:20

    at Array.forEach (<anonymous>)

    at /usr/share/openhim-core/node_modules/pem/lib/pem.js:1041:22

    at done (/usr/share/openhim-core/node_modules/pem/lib/pem.js:982:21)

    at ChildProcess.<anonymous> (/usr/share/openhim-core/node_modules/pem/lib/pem.js:997:13)

    at ChildProcess.emit (events.js:210:5)

    at maybeClose (internal/child_process.js:1021:16)

    at Socket.<anonymous> (internal/child_process.js:430:11)

    at Socket.emit (events.js:210:5)

    at Pipe.<anonymous> (net.js:658:12)

2019-11-17T03:14:09.026Z - warn: [master] worker 22831 died

2019-11-17T03:14:09.073Z - info: [master] worker with pid 22849 is online

Needs latest SSL Root Certificate Authority data /usr/share/openhim-core/node_modules/ssl-root-cas/ssl-root-cas-latest.js


Has anyone encountered a similar issue? 


Thanks in advance for your help!


Stuardo

Martin Brocker

unread,
Nov 27, 2019, 2:05:22 AM11/27/19
to Interoperability Layer (OpenHIE)
Hi Stuardo

Thank you for reaching out to us regarding the installation issue you are experiencing. We will try our best to try and assist in resolving your issue.

Before we can start digging more into this, can you supply us with some information around your setup?

What OS is this being installed on
What version of NodeJS is installed
What version of the OpenHIM core is installed.
And any additional information around your config setup will be useful to replicate the bug and propose a solution to fix it.

Regards,
Martin Brocker

Stuardo Herrera

unread,
Nov 29, 2019, 10:46:49 AM11/29/19
to Interoperability Layer (OpenHIE)
Thank you Martin!

Here is the information:

Os                                           : Ubuntu 14.04.6 LTS

NodeJS                                 : v6.17.1

openhim-core-js               : 3.4.0-20~trusty

 

Attached files:

  • config.json and console-config.json are from /etc/openhim
  • openhim-console is from /etc/nginx/sites-available (there’s a link in sites-enabled)
  • default.json  is from /usr/share/openhim-core/config
  • /usr/share/openhim-coconsole/config/default.json is linked to /etc/openhim/console-config.json
  • openhim-core.log is from /var/log/upstart
config.json
console-config.json
default.json
openhim-console
openhim-core.log

Martin Brocker

unread,
Dec 3, 2019, 3:21:30 AM12/3/19
to Stuardo Herrera, Interoperability Layer (OpenHIE)
Hi Stuardo

Thank you for sending through your implementation details.

Based on these details, it seems that the instance you are trying to spin up is quite out-dated and no longer supported. Are you trying to replicate an existing instance or to try and create a new one from scratch? 

If starting an implementation from scratch, I would recommend using more up-to-date architecture which will resolve various bugs found in the previous versions.

I would recommend the below:
OS: Ubuntu 18.04 LTS
NodeJS: v10.17.0 or v12.13.1

You can either download the source code which would require some more manual steps to get all the dependencies installed, or you can choose the "build." zip releases which come bundled ready for production. Once the build is downloaded, all that is required is to "npm start" or "yarn start" to start the services.

If you are familiar with Docker, we do offer the OpenHIM core/console as docker containers.

We also have a sample docker-compose script that will allow for easier setup (NB this isn't a production setup but rather to get started quickly)
https://github.com/jembi/openhim-core-js/blob/master/infrastructure/docker-compose.yml

Regards,
Martin Brocker 
Team Lead 
martin....@jembi.org 
Tel: +27 21 701 0939 
Jembi Health Systems | Cape Town 
www.jembi.org

This e-mail contains proprietary and confidential information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and then deleting same. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail. Jembi Health Systems NPO, its subsidiaries and associated companies is not liable for the security of information sent by e-mail and accepts no liability of whatsoever nature for any loss, damage or expense resulting, directly or indirectly, from the access of this e-mail or any attachments hereto.



--
You received this message because you are subscribed to the Google Groups "Interoperability Layer (OpenHIE)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhie-interoperabil...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhie-interoperability-layer/7445bba5-5d1e-4366-85e7-83071947658f%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages