Hi,
Iam trying to generate ccda document but iam getting error as
File:
/var/www/html/openemr/interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Controller/EncounterccdadispatchController.php:427
Message:
Connection Failed
Stack trace:
#0 /var/www/html/openemr/interface/modules/zend_modules/module/Carecoordination/src/Carecoordination/Controller/EncounterccdadispatchController.php(331): Carecoordination\Controller\EncounterccdadispatchController->socket_get(‘localhost’, ‘6661’, ‘<username…’)
#1 /var/www/html/openemr/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(84): Carecoordination\Controller\EncounterccdadispatchController->indexAction()
#2 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#3 /var/www/html/openemr/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#4 /var/www/html/openemr/vendor/zendframework/zend-eventmanager/src/EventManager.php(260): Zend\EventManager\EventManager->triggerListeners(‘dispatch’, Object(Zend\Mvc\MvcEvent), Object(Closure))
#5 /var/www/html/openemr/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#6 /var/www/html/openemr/vendor/zendframework/zend-mvc/src/DispatchListener.php(118): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#7 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 /var/www/html/openemr/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#9 /var/www/html/openemr/vendor/zendframework/zend-eventmanager/src/EventManager.php(260): Zend\EventManager\EventManager->triggerListeners(‘dispatch’, Object(Zend\Mvc\MvcEvent), Object(Closure))
#10 /var/www/html/openemr/vendor/zendframework/zend-mvc/src/Application.php(340): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#11 /var/www/html/openemr/interface/modules/zend_modules/public/index.php(59): Zend\Mvc\Application->run()
#12 {main}
and to overcome this error i tried to install npm but iam facing problem in installing npm.The error is
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I’ll try to do my best with it!
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I’ll try to do my best with it!
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/libxmljs failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
libxmljs@0.18.8 install /home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs
node-pre-gyp install --fallback-to-build --loglevel http
node-pre-gyp ERR! Pre-built binaries not installable for libxmljs@0.18.8 and node@9.11.1 (node-v59 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Hit error EACCES: permission denied, mkdir ‘/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build’
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build’
gyp ERR! System Linux 4.10.0-38-generic
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “–loglevel=http” “–module=/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build/Release/xmljs.node” “–module_name=xmljs” “–module_path=/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build/Release” “–napi_version=3” “–node_abi_napi=napi”
gyp ERR! cwd /home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs
gyp ERR! node -v v9.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --loglevel=http --module=/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build/Release --napi_version=3 --node_abi_napi=napi’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:180:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Linux 4.10.0-38-generic
node-pre-gyp ERR! command “/usr/bin/node” “/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/.bin/node-pre-gyp” “install” “–fallback-to-build” “–loglevel” “http”
node-pre-gyp ERR! cwd /home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs
node-pre-gyp ERR! node -v v9.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --loglevel=http --module=/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build/Release/xmljs.node --module_name=xmljs --module_path=/home/anusha/openemr/ccdaservice/node_modules/blue-button-xml/node_modules/libxmljs/build/Release --napi_version=3 --node_abi_napi=napi’ (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! libxmljs@0.18.8 install: node-pre-gyp install --fallback-to-build --loglevel http
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs@0.18.8 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Thankyou.