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

Bulk Import CLI Fails when target is JPA Starter Server #565

Open
jordanperrin opened this issue Jul 14, 2023 · 1 comment
Open

Bulk Import CLI Fails when target is JPA Starter Server #565

jordanperrin opened this issue Jul 14, 2023 · 1 comment

Comments

@jordanperrin
Copy link

I am trying to upload data that I have on my machine to a JPA Starter server but when running the CLI import command:
$ ./hapi-fhir-cli bulk-import -v r4 --port 9090 --source-directory /path/to/ndjson --target-base http:https://localhost:9090/fhir/

I get:
2023-07-14 12:44:49.58 [main] INFO c.u.f.c.LogbackUtil Logging configuration set from file /logback-cli-on-no-colour.xml
2023-07-14 12:44:49.62 [main] INFO c.u.f.c.BulkImportCommand Scanning directory for NDJSON files: /path/to/ndjson
2023-07-14 12:44:51.28 [main] INFO c.u.f.c.BulkImportCommand Found 1 files
2023-07-14 12:44:51.28 [main] INFO c.u.f.c.BulkImportCommand Starting server on port: 9090
2023-07-14 12:44:51.93 [main] INFO c.u.f.c.BulkImportCommand Server has been started in port: 9090
2023-07-14 12:44:51.93 [main] INFO c.u.f.c.BulkImportCommand Initiating bulk import against server: http:https://localhost:8080/fhir/
2023-07-14 12:44:55.76 [main] INFO c.u.f.c.BulkImportCommand Bulk import is now running. Do not terminate this command until all files have been uploaded.
2023-07-14 12:45:50.77 [main] ERROR c.u.f.c.BulkImportCommand HTTP 500 : Job is in FAILED state with 4 error count. Last error: Too many errors: 4. Last error msg was HAPI-2054: Connect to localhost:9090 [local
2023-07-14 12:45:50.77 [Thread-0] INFO ca.uhn.fhir.cli.App HAPI FHIR is shutting down...

I cloned the JPA starter Server and running it using docker-compose up.
I edited the application.yaml file to enable import/export:
application.txt

Not sure what I am doing wrong. If there is another a way to upload data on my machine to a HAPI FHIR Server please let me know. Also I think the CLI Docs need to be updated.

@jalbertoa
Copy link

I guess the param "port" is for creating a temporally server to serve the files th the HAPI-FHIR instance, so should not be the same as where the server is already running (note that would be redundant info in the command ;) )
The table bt2_job_instance will record just the error message you already mention, generic somehow but just that...

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

2 participants