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

FHIRPersistenceDBConnectException: Failure acquiring connection for datasource when trying to curl $healthcheck #4227

Open
Sundaresan-JSE-PMS opened this issue Jul 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Sundaresan-JSE-PMS
Copy link

Sundaresan-JSE-PMS commented Jul 7, 2023

Describe the bug
I'm trying to run LinuxForHealth FHIR Server in my PC. I downloaded the zip file and installed the server using ./fhir-server-dist/install.sh /opt/ibm/fhir-server as told in this page

Environment
Zorin OS 16.2 x86_64 (Ubuntu basically)
openjdk version "11.0.19" 2023-04-18
OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu120.04.1)
OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu120.04.1, mixed mode, sharing)

To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions in this page (section)
  2. Do a curl to do a GET request to the $healthcheck endpoint

Expected behavior
An empty body in the response with a HTTP Response Code 200

Output I got
{"resourceType":"OperationOutcome","id":"7f-0-1-1-2c9bd42b-fdc6-45b0-81df-8622d118c521","issue":[{"severity":"fatal","code":"exception","details":{"text":"FHIRPersistenceDBConnectException: Failure acquiring connection for datasource"}}]}

Additional context
Not only $healthcheck, but all the endpoints are returning the same body. I tried the docker container earlier and it worked. But I want to run the server as a standalone instead as a docker container.

@Sundaresan-JSE-PMS Sundaresan-JSE-PMS added the bug Something isn't working label Jul 7, 2023
@sanjaymurali1910
Copy link

Hi,

I'm also facing this issue on version 5.1.1. Can you please specify which version you were using when you encountered this error and if you were able to find a solution? Any insights you can share would be really helpful.

Thank you!

@Sundaresan-JSE-PMS
Copy link
Author

Hi @sanjaymurali1910 ,
I moved on to use the docker container only. It worked there.

@sanjaymurali1910
Copy link

Hi,

what is the db you used in docker container? PostgreSQL or Apache derby?
when i used PostgreSQL i am getting 500 Internal Server Error

Thanks,
Sanjay

@Sundaresan-JSE-PMS
Copy link
Author

I'm using Apache derby for now. Haven't tried PostreSQL. So far, it's working great only with some minor inconveniences. But awesome otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants