clipboard-listLab Setup

Lab Setup and Verification

Checklist

Artefact Verification

  1. Go to <CS595 Lab Folder>/labs/ccd

  2. Make sure the folder contains:

    1. 📂 Samples : Folder containing sample patient notes for the lab exercises

    2. 📂 fhir : Folder containing application.yaml , HAPIFHIR config file

    3. 📂 postgres_data : Folder containing the base DB for launching CCD

    4. CCD Scripts

      1. Unix/MacOS

        1. start-ao-ccd-service.sh : Script to launch CCD on Unix/MacOS

        2. stop-ao-ccd-service.sh : Script to stop CCD on Unix/MacOS

      2. Windows

        1. start-ao-ccd-service.bat : Script to launch CCD on Windows

        2. stop-ao-ccd-service.bat : Script to stop CCD on Windows

Dependency Verification

Docker

  1. Verify docker is running by running docker --version command

  2. If docker is not running launch Docker Desktop

Note: If you have any issues installing or running docker, please take the help of ChatGPT to find the alternate steps you can follow.

PostgreSQL

Make sure no other instances on PostgreSQL running on port 5432

  • MacOs/Unix Command

    • Command to check lsof -i :5432 If PostgreSQL is running, you will see output indicating that port 5432 is in use, along with the process ID (PID)

    • Command to stop kill <PID>

  • Windows Command

    • Command to check netstat -ano | findstr :5432 If PostgreSQL is running, you will see output indicating that port 5432 is in use, along with the process ID (PID)

    • Command to stop taskkill /PID /F

Note: If you are not able to stop the PgSQL, please take the help of ChatGPT to find the alternate steps you can follow.

Configuring CCD with LoF Service Credentials

  1. Go to <CS595 Lab Folder>/labs/ccd

  2. Updating Start Scripts

    1. For Unix/macOS : start-ao-ccd-service.sh

      1. For AO Service

      2. For CCD Service

    2. For Windows : start-ao-ccd-service.bat

      1. For AO Service

      2. For CCD Service

Starting CCD

  1. Go to <CS595 Lab Folder>/labs/ccd

  2. Run the start script

    1. MacOS/Unix : ./start-ao-ccd-service.sh or sh start-ao-ccd-service.sh

    2. Windows : ./start-ao-ccd-service.bat

Note: The first launch will take few minutes for the docker containers to download. Subsequent launches should be fast.

At the end you should see all 4 services running:

  • aodb - Docker Service for PgSQL16

  • fhirservice - HAPIFHIR Docker Service

  • aoservice - AO Backend Service

  • ccdservice - CCD UI Service

Verification

You can check the status of services by running command docker ps -a. You should see all 4 services up and running. If you don't see the status as up for any services, check the Debugging CCD section for issue identification and resolution.

Debugging CCD

General

1. Docker Desktop blocked on Mac

Indications:

https://www.bleepingcomputer.com/news/security/docker-desktop-blocked-on-macs-due-to-false-malware-alert/arrow-up-right

Resolution:

https://docs.docker.com/desktop/cert-revoke-solution/arrow-up-right

2. Docker Host Networking Not enabled

Indications:

Run docker inspect <container_id> and check for getway info. The Gateway will not have any IP assigned

AO Service and FHIR service logs indicate they connection to DB, over docker gateway IP, could not be established.

Resolution:

  • Go to Docker Desktop --> Settings --> Resources --> Network

  • If you see the option Enable host networking

    • Make sure to select/enable it

    • Click Apply and Restart

3. Invalid Reference format error

Indications:

Resolution:

This happens when your <FULL_PATH_TO_PROJECT_ROOT> contains space or not acceptable special characters. Make sure your root folder path has only letters and underscore.

AO DB Service

  1. Port 5432 is already in use and not available Indications:

    Error log during CCD launch

    The aodb docker service status not UP

    Resolution: Follow PostgreSQLChecklist to make sure no other PGSql instance is running on 5432 Once the existing PgSQL instances are stopped, rerun the CCD start script.

  2. Postgres DB Folder not present Indications: fhirservice and aoservice not running. Use docker ps -a command to verify running services.

    Check the logs using docker logs -f <aodb_container_id> aodb docker service logs indicating aodb and fhirdb are not present

    Resolution: 1. Go to <CS595 Lab Folder>/labs/ccd 2. Delete postgres_data folder if exists 3. Follow CCD PostgreSQL DB and extract the DB backup to ccd folder

FHIR Service

FHIR Service not running

Indications: fhirservice not running. Use docker ps -a command to verify running services.

If fhirserivce is not running check the logs using docker logs -f <fhirservice_container_id>

Logs:

Resolution:

  1. Stop the CCD services.

  2. Follow PostgreSQL section to stop other instances running

  3. Follow CCD PostgreSQL DB place the backup in the right folder

  4. Start the CCD services

AO Service

  1. LoF Credentials not configured or Incorrect credentials used Indications:

    Resolution: Please follow Configuring CCD with LoF Service Credentials and update the credentials

  2. LoF Credentials with restrictive permission Indications:

    Resolution: Please reach out to CS595-2025@lofllc.comenvelope Provide your email id and provide docker logs to update the missing scopes.

CCD Service

  1. LoF Credentials not configured or Incorrect credentials used Indications:

    Resolution: Please follow Configuring CCD with LoF Service Credentials and update the credentials

  2. LoF Credentials with restrictive permission Indications:

    Resolution: Please reach out to CS595-2025@lofllc.comenvelope Provide your email id and provide docker logs to update the missing scopes.

Last updated