LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects
https://linuxforhealth.github.io/FHIR
Apache License 2.0
321 stars 156 forks source link

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

Open Sundaresan-JSE-PMS opened 1 year ago

Sundaresan-JSE-PMS commented 1 year ago

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.

sanjaymurali1910 commented 10 months ago

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 commented 10 months ago

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

sanjaymurali1910 commented 10 months ago

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 commented 10 months ago

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.