LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects

Home Page:https://linuxforhealth.github.io/FHIR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Sundaresan-JSE-PMS opened this issue · comments

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.

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!

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

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

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.