Situation
Patient documents fail to display - Occurs about 90% of attempts
Steps To Reproduce:
- Open patient dashboard
- Open Documents
- Click any Document Category
- Click “or Open Module”
At this stage I will sometimes see the actual error message in question:
{"success":false,"message":"DataAdapter (default) Error Opening DB: mysqli_real_connect(): SSL: Operation timed out in MySQLi.php at line 111 (retry attempts: 0)","errors":[],"stackTrace":["0 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/fwk\/libs\/verysimple\/Phreeze\/DataAdapter.php(213): DataAdapter->Open()","1 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/fwk\/libs\/verysimple\/Phreeze\/DataAdapter.php(231): DataAdapter->RequireConnection()","2 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/fwk\/libs\/verysimple\/Phreeze\/DataSet.php(231): DataAdapter->Select()","3 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/fwk\/libs\/verysimple\/Phreeze\/DataSet.php(415): DataSet->Count()","4 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/libs\/Controller\/OnsiteDocumentController.php(153): DataSet->GetDataPage()","5 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/fwk\/libs\/verysimple\/Phreeze\/Dispatcher.php(172): OnsiteDocumentController->Query()","6 \/var\/www\/localhost\/htdocs\/openemr\/portal\/patient\/index.php(54): Dispatcher::Dispatch()","7 {main}"]}
- Otherwise select any document
At this stage, about 10% of the time everything will work and the document will render. It seems to be the case that once one document will render, they all will while I remain in the Document Actions view (sometimes pressing the refresh button will help but not always).
The other 90% of the time, clicking the document name will simply have no effect, or the “Chart to Categories” button will appear but the document will not render. Again, when this happens it seems that it will fail to render any documents while I remain in the Document Actions view.
Something interesting I found is that getting the error message does not mean that you have gotten a “cant render documents” session, so maybe this error is separate from the intermittent inability to render documents?
I have tried this on both new and existing patients with the same results.
I saw this behavior in version 7.0.2 (when I originally installed) and it persists after upgrading to 7.0.2 Patch 1
I have tested this in both Firefox and Edge
I am running OpenEMR Cloud Standard Edition - Ubuntu 20.04.6 LTS
I see the following in the logs but I am not sure if this is related:
/var/www/logs # cat error.log
[Sun Sep 29 20:42:17.033964 2024] [php:error] [pid 466] [client 107.77.89.17:7877] script '/var/www/localhost/htdocs/openemr/portal/sign/assets/signit.php' not found or unable to stat
[Sun Sep 29 21:07:14.042636 2024] [php:warn] [pid 475] [client 46.174.191.32:28586] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/localhost/htdocs/openemr/index.php on line 12
[Sun Sep 29 21:11:03.562772 2024] [php:warn] [pid 477] [client 164.92.228.6:17149] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/localhost/htdocs/openemr/index.php on line 12
[Sun Sep 29 21:11:03.764562 2024] [php:warn] [pid 440] [client 164.92.228.6:25017] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/localhost/htdocs/openemr/index.php on line 12
[Sun Sep 29 21:11:04.264713 2024] [php:warn] [pid 442] [client 164.92.228.6:4059] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/localhost/htdocs/openemr/index.php on line 12
[Sun Sep 29 22:31:21.485598 2024] [allowmethods:error] [pid 484] [client 103.186.101.138:35570] AH01623: client method denied by server configuration: 'CONNECT' to /var/www/localhost/htdocs/openemr/
[Sun Sep 29 22:34:36.870984 2024] [php:warn] [pid 484] [client 205.210.31.186:50635] PHP Warning: Undefined array key "HTTP_HOST" in /var/www/localhost/htdocs/openemr/index.php on line 12
Any and all assistance is greatly appreciated!