Skip to content

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

Description

@Sundaresan-JSE-PMS

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.

Activity

  1. sanjaymurali1910 commented on Sep 14, 2023

    @sanjaymurali1910

    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!

  2. Sundaresan-JSE-PMS commented on Sep 15, 2023

    @Sundaresan-JSE-PMS
    Author

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

  3. sanjaymurali1910 commented on Sep 19, 2023

    @sanjaymurali1910

    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

  4. Sundaresan-JSE-PMS commented on Sep 20, 2023

    @Sundaresan-JSE-PMS
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions