Lab Setup
Lab Setup and Verification
Checklist
Artefact Verification
Go to <CS595 Lab Folder>/labs/ccd
Make sure the folder contains:
📂 Samples : Folder containing sample patient notes for the lab exercises
📂 fhir : Folder containing
application.yaml, HAPIFHIR config file📂 postgres_data : Folder containing the base DB for launching CCD
CCD Scripts
Unix/MacOS
start-ao-ccd-service.sh : Script to launch CCD on Unix/MacOS
stop-ao-ccd-service.sh : Script to stop CCD on Unix/MacOS
Windows
start-ao-ccd-service.bat : Script to launch CCD on Windows
stop-ao-ccd-service.bat : Script to stop CCD on Windows
Dependency Verification
Docker
Verify docker is running by running docker --version command
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 :5432If 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 :5432If 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
Go to <CS595 Lab Folder>/labs/ccd
Updating Start Scripts
For Unix/macOS :
start-ao-ccd-service.shFor AO Service
For CCD Service
For Windows :
start-ao-ccd-service.batFor AO Service
For CCD Service
Starting CCD
Go to <CS595 Lab Folder>/labs/ccd
Run the start script
MacOS/Unix : ./start-ao-ccd-service.sh or sh start-ao-ccd-service.sh
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:
Resolution:
https://docs.docker.com/desktop/cert-revoke-solution/
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
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.
Postgres DB Folder not present Indications: fhirservice and aoservice not running. Use
docker ps -acommand 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:
Stop the CCD services.
Follow PostgreSQL section to stop other instances running
Follow CCD PostgreSQL DB place the backup in the right folder
Start the CCD services
AO Service
LoF Credentials not configured or Incorrect credentials used Indications:
Resolution: Please follow Configuring CCD with LoF Service Credentials and update the credentials
LoF Credentials with restrictive permission Indications:
Resolution: Please reach out to CS595-2025@lofllc.com Provide your email id and provide docker logs to update the missing scopes.
CCD Service
LoF Credentials not configured or Incorrect credentials used Indications:
Resolution: Please follow Configuring CCD with LoF Service Credentials and update the credentials
LoF Credentials with restrictive permission Indications:
Resolution: Please reach out to CS595-2025@lofllc.com Provide your email id and provide docker logs to update the missing scopes.
Last updated