Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import-random-patients synthea command failing on easy-development docker #322

Closed
adunsulag opened this issue Jun 4, 2022 · 5 comments
Closed

Comments

@adunsulag
Copy link
Member

adunsulag commented Jun 4, 2022

Attempted to run the synthea import-random-patients command and I'm getting failures on the APK installs.

Here is the command:

 docker exec -i $(docker ps | grep _openemr | cut -f 1 -d " ") sh -c '/root/devtools import-random-patients 600'

Here is the output I'm getting

Setting up for following number of random patients (each patient will take several seconds): 600
Development mode: true
Setting up synthea first
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later)
v3.15.4-164-g5ff351d78e [https://dl-cdn.alpinelinux.org/alpine/v3.15/main]
v3.15.4-165-gf31a770f5f [https://dl-cdn.alpinelinux.org/alpine/v3.15/community]
2 errors; 15907 distinct packages available
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later)
(1/16) Installing encodings (1.0.5-r0)
ERROR: encodings-1.0.5-r0: temporary error (try again later)
(2/16) Installing ttf-dejavu (2.37-r1)
ERROR: ttf-dejavu-2.37-r1: temporary error (try again later)
(3/16) Installing giflib (5.2.1-r0)
ERROR: giflib-5.2.1-r0: temporary error (try again later)
(4/16) Installing openjdk8-jre-lib (8.322.06-r0)
(5/16) Installing java-common (0.5-r0)
ERROR: openjdk8-jre-lib-8.322.06-r0: temporary error (try again later)
ERROR: java-common-0.5-r0: temporary error (try again later)
(6/16) Installing p11-kit-trust (0.24.0-r1)
ERROR: p11-kit-trust-0.24.0-r1: temporary error (try again later)
(7/16) Installing java-cacerts (1.0-r1)
(8/16) Installing krb5-conf (1.0-r2)
ERROR: java-cacerts-1.0-r1: temporary error (try again later)
ERROR: krb5-conf-1.0-r2: temporary error (try again later)
(9/16) Installing libcom_err (1.46.4-r0)
ERROR: libcom_err-1.46.4-r0: temporary error (try again later)
(10/16) Installing keyutils-libs (1.6.3-r0)
ERROR: keyutils-libs-1.6.3-r0: temporary error (try again later)
(11/16) Installing libverto (0.3.2-r0)
(12/16) Installing krb5-libs (1.19.3-r0)
(13/16) Installing pcsc-lite-libs (1.9.4-r0)
(14/16) Installing liblksctp (1.0.19-r0)
(15/16) Installing openjdk8-jre-base (8.322.06-r0)
(16/16) Installing openjdk8-jre (8.322.06-r0)
10 errors; 943 MiB in 291 packages
Connecting to github.com (192.30.255.113:443)
Connecting to objects.githubusercontent.com (185.199.108.133:443)
saving to 'synthea-with-dependencies.jar'
synthea-with-depende   0% |                                |  735k  0:03:06 ETA
synthea-with-depende   4% |*                               | 6032k  0:00:43 ETA
synthea-with-depende  10% |***                             | 14.5M  0:00:24 ETA
synthea-with-depende  16% |*****                           | 22.2M  0:00:20 ETA
synthea-with-depende  24% |*******                         | 33.4M  0:00:15 ETA
synthea-with-depende  32% |**********                      | 44.4M  0:00:12 ETA
synthea-with-depende  41% |*************                   | 55.5M  0:00:09 ETA
synthea-with-depende  48% |***************                 | 65.1M  0:00:08 ETA
synthea-with-depende  56% |******************              | 76.4M  0:00:06 ETA
synthea-with-depende  65% |********************            | 87.7M  0:00:05 ETA
synthea-with-depende  73% |***********************         | 99.4M  0:00:03 ETA
synthea-with-depende  82% |**************************      |  110M  0:00:02 ETA
synthea-with-depende  90% |****************************    |  121M  0:00:01 ETA
synthea-with-depende  98% |******************************* |  132M  0:00:00 ETA
synthea-with-depende 100% |********************************|  134M  0:00:00 ETA
'synthea-with-dependencies.jar' saved
/root/devtools: line 218: java: not found
ccda directory: /root/synthea/output/ccda
site: default
openemr path: /var/www/localhost/htdocs/openemr
development mode is on
Starting patients import
PHP Fatal error:  Uncaught DivisionByZeroError: Division by zero in /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php:120
Stack trace:
#0 {main}
  thrown in /var/www/localhost/htdocs/openemr/contrib/util/ccda_import/import_ccda.php on line 120
Completed run for following number of random patients: 600
@adunsulag
Copy link
Member Author

@bradymiller Any thoughts on what could be causing this?

@jesdynf
Copy link
Collaborator

jesdynf commented Jun 4, 2022 via email

@adunsulag
Copy link
Member Author

I'm doing a complete teardown and a docker-compose pull. Perhaps the codebase is out of sync with the images.

@adunsulag
Copy link
Member Author

Looks like updating the docker images with a docker-compose pull openemr/openemr:flex-edge resolved the issue. I'll close this as fixed.

@bradymiller
Copy link
Member

prob just a temp weird issue. just tested this and working on the flex docker. would rec using flex rather than flex-edge since that is built on alpine's development edge build which can break sometimes (and then not working on the alpine version for future planned release which is alpine 3.15).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants