CCDA or QRDA Cat I: Gateway Timeout

Situation
@sjpadgett , @adunsulag Trying to import CCDA using the tab CCDA or QRDA Cat I, the page takes a while to load and responds with the error “504: Gateway Timeout”. In the apache logs i get the following error

[proxy_fcgi:error] [pid 11374:tid 133869147772608] (70007)The timeout specified has expired: [client 129.224.201.130:26530] AH01075: Error dispatching request to : (polling), referer: http://localhost/openemr/interface/modules/zend_modules/public/encountermanager

In the Network tab in the browser, i see the reference to the failing url as

http://localhost/openemr/interface/modules/zend_modules/public/carecoordination/upload?id=1

I have has set indefinite settings for my php.ini
max_execution_time = 0
memory_limit = -1

Thanks in advance

OpenEMR Version
7.0.2

Browser:
I’m using: Chrome

Operating System
I’m using: Ubuntu

Ensure RewriteEngine is installed and enabled. Also try setting up directories for zend modules are included in your vhost.
openemr install doc shows what these directories are I believe.

Good luck. BTW tested okay for me on ubuntu.

Thanks Jerry,

I am not sure if this information will help.

After a fresh installation of OpenEMR, the Carecoordination interface shows up for importing CCDA files. I have had a couple of files imported. Then suddenly, i start getting gateway timeout errors.

Thats a little confusing.

Modrewrite has been installed and enabled else the CCDA would not show up.

@kkappiah, have you followed these instructions?

1 Like

Look into your environment(could have shared that at top of issue) and check or mod configs
#php.ini
request_terminate_timeout = 300
max_execution_time = 300
memory_limit = 512M
post_max_size = 32M
upload_max_filesize = 128M

#In vhost or apache2.conf
ProxyTimeout 300

How large are the files and does same ccda fail while others succeed? Are you dealing with more of those mass imports from some ehr?

I actually use this as a guide in installing the module.

The only thing i haven’t tried here is the “request_terminate_timeout” and the “proxyTimeout”.

The files are a few KB. i havent seen any file above 1MB.

Yes, dealing with mass import from another EHR

Certainly could use some more information my friend! Does it fail consistently on any one ccda import? If so send to my email. For sure, some work and others don’t, correct?

Proxy concerns me some. You still haven’t given us a run down of the environment running in!

Re: could have a bug causing an endless loop

I haven’t been able to confirm if there is a specific file causing the issue.

Oh sorry, i missed the part of the environment setup
I am running OpenEMR 7.0.2 on Ubuntu

16GB RAM
4vCPU
Thus AWS m8g.xlarge