Installation
Installing the MirthSync Plugin
Section titled “Installing the MirthSync Plugin”The MirthSync Plugin is an all-in-one extension that bundles Git, MirthSync CLI, and a graphical interface into a single JAR file. No separate installations required—just download, install, and start using version control.
Prerequisites
Section titled “Prerequisites”Before installing the MirthSync Plugin:
- Open-source Mirth Connect 4.x or Open Integration Engine (OIE) - The integration platform you want to version control
- Recommended: Open Integration Engine (OIE) - the community-driven open-source fork
- Legacy open-source Mirth Connect 4.x
- Commercial Mirth Connect versions - compatibility not guaranteed
- Admin access to Mirth Connect Administrator Console
Installation
Section titled “Installation”Best for: Most users | Requirements: Admin Console access only
The easiest way to install the plugin—no server access required.
Step 1: Download the Plugin
Section titled “Step 1: Download the Plugin”Download mirthsync-plugin.jar from the MirthSync Plugin page or GitHub releases.
Step 2: Open Admin Console Extensions
Section titled “Step 2: Open Admin Console Extensions”- Launch Mirth Connect Administrator
- Navigate to Extensions:
- Click Settings → Extensions (or Tools → Extensions depending on version)
- Install Plugin:
- Click Install Extension button
- Browse to the downloaded
mirthsync-plugin.jarfile - Click Open or Install
Step 3: Restart Mirth Connect
Section titled “Step 3: Restart Mirth Connect”The Admin Console will prompt you to restart Mirth Connect:
- Click Yes or Restart Now when prompted
- Wait 30-60 seconds for Mirth Connect to restart
- The Admin Console may disconnect—this is normal
Step 4: Verify Installation
Section titled “Step 4: Verify Installation”- Reconnect to Admin Console (if disconnected)
- Look for MirthSync panel:
- Check the left sidebar navigation
- Look for “MirthSync” or a version control icon
- Verify in Extensions:
- Settings → Extensions
- MirthSync should appear in the installed extensions list
Best for: Server administrators, automated deployments | Requirements: File system access to server
For server administrators who prefer command-line installation or need to automate deployment.
Step 1: Download the Plugin
Section titled “Step 1: Download the Plugin”Download mirthsync-plugin.jar from the MirthSync Plugin page or GitHub releases, then transfer to the Mirth Connect server (if remote).
Step 2: Locate Extensions Directory
Section titled “Step 2: Locate Extensions Directory”Find your Mirth Connect extensions directory:
Default location:
/opt/mirthconnect/extensions/Verify directory exists:
ls -la /opt/mirthconnect/extensions/If different location:
# Find Mirth Connect installationps aux | grep mirth | grep -v grep
# Extensions directory is: [MIRTH_INSTALL_DIR]/extensions/Default location:
C:\Program Files\Mirth Connect\extensions\Verify directory exists:
dir "C:\Program Files\Mirth Connect\extensions\"If different location:
Check Mirth Connect service properties. Extensions directory is located at: [MIRTH_INSTALL_DIR]\extensions\
Default location (app bundle):
/Applications/Mirth Connect.app/Contents/extensions/Or custom install location:
/opt/mirthconnect/extensions/Verify directory exists:
ls -la "/Applications/Mirth Connect.app/Contents/extensions/"Step 3: Stop Mirth Connect
Section titled “Step 3: Stop Mirth Connect”Stop the Mirth Connect service before installing the plugin.
Step 4: Install the Plugin
Section titled “Step 4: Install the Plugin”Copy the plugin JAR file to the extensions directory:
# Copy plugin to extensions directorysudo cp mirthsync-plugin.jar /opt/mirthconnect/extensions/
# Set proper permissionssudo chmod 644 /opt/mirthconnect/extensions/mirthsync-plugin.jar
# Set proper ownership (if needed)sudo chown mirthconnect:mirthconnect /opt/mirthconnect/extensions/mirthsync-plugin.jar
# Verify installationls -l /opt/mirthconnect/extensions/mirthsync-plugin.jar# Should show: -rw-r--r-- 1 mirthconnect mirthconnect [size] mirthsync-plugin.jar- Navigate to download location
- Copy
mirthsync-plugin.jar - Navigate to
C:\Program Files\Mirth Connect\extensions\ - Paste the file
- If prompted for admin permission, click “Continue”
# Copy the file (run as Administrator)Copy-Item mirthsync-plugin.jar "C:\Program Files\Mirth Connect\extensions\"
# Verify installationdir "C:\Program Files\Mirth Connect\extensions\" | findstr mirthsync# Should show: mirthsync-plugin.jar# For app bundle installationsudo cp mirthsync-plugin.jar "/Applications/Mirth Connect.app/Contents/extensions/"
# Or for custom installationsudo cp mirthsync-plugin.jar /opt/mirthconnect/extensions/
# Set proper permissionssudo chmod 644 "/Applications/Mirth Connect.app/Contents/extensions/mirthsync-plugin.jar"
# Verify installationls -l "/Applications/Mirth Connect.app/Contents/extensions/mirthsync-plugin.jar"# Should show the file with proper permissionsStep 5: Start Mirth Connect
Section titled “Step 5: Start Mirth Connect”Start the Mirth Connect service to load the plugin.
Step 6: Verify Installation
Section titled “Step 6: Verify Installation”- Open Admin Console and log in
- Look for MirthSync panel in the left sidebar
- Check logs (optional) for “MirthSync Plugin loaded successfully”
Post-Installation Configuration
Section titled “Post-Installation Configuration”Configure Git User Information
Section titled “Configure Git User Information”Set up your Git identity for commits:
-
Open plugin settings
- Click the Settings button (gear icon) in MirthSync panel
-
Enter Git information
- Name: Your full name (e.g., “John Smith”)
- Email: Your email address (e.g., “john.smith@example.com”)
-
Save settings
Or configure via command line:
git config --global user.name "Your Name"git config --global user.email "your.email@example.com"Set Repository Path
Section titled “Set Repository Path”Configure where MirthSync will store your Git repository:
-
Default path:
- Linux:
/var/lib/mirthconnect/repository - Windows:
C:\ProgramData\MirthConnect\repository - macOS:
/Library/Application Support/MirthConnect/repository
- Linux:
-
Change path (if needed):
- Plugin Settings → Repository Path
- Enter custom path
- Ensure the path:
- Exists or can be created
- Is writable by Mirth Connect service user
- Has sufficient disk space (at least 500MB recommended)
Configure Remote Repository (Optional)
Section titled “Configure Remote Repository (Optional)”If using a remote Git repository:
For SSH:
# Generate SSH key on Mirth Connect serverssh-keygen -t rsa -b 4096 -C "your_email@example.com"
# Display public keycat ~/.ssh/id_rsa.pub
# Add public key to GitHub/GitLab/Bitbucket:# GitHub: Settings → SSH and GPG keys → New SSH key# GitLab: Preferences → SSH Keys# Bitbucket: Personal settings → SSH keysFor HTTPS:
- Use personal access token instead of password
- GitHub: Settings → Developer settings → Personal access tokens
- Create token with
reposcope - Use token as password when prompted
Troubleshooting
Section titled “Troubleshooting”Plugin Not Appearing in Admin Console
Section titled “Plugin Not Appearing in Admin Console”Symptoms:
- MirthSync panel doesn’t appear after installation
- No MirthSync option in navigation
Solutions:
-
Verify plugin file location
Terminal window ls -la /opt/mirthconnect/extensions/ | grep mirthsync# Should show: mirthsync-plugin.jarTerminal window dir "C:\Program Files\Mirth Connect\extensions\" | findstr mirthsync# Should show: mirthsync-plugin.jar -
Fully restart Mirth Connect
- Stop the service completely
- Wait 10-15 seconds
- Start the service
-
Check logs for errors
Terminal window grep -i "error.*mirthsync" /opt/mirthconnect/logs/mirth.log -
Verify Mirth Connect version
- Requires Mirth Connect 4.x+ or OIE
- Check: Help → About in Admin Console
”Permission denied” on repository operations
Section titled “”Permission denied” on repository operations”Symptoms:
Error: Permission denied: /var/lib/mirthconnect/repositorySolutions:
# Check current permissionsls -ld /var/lib/mirthconnect/repository
# Set correct ownership (Linux)sudo chown -R mirthconnect:mirthconnect /var/lib/mirthconnect/repository
# Set correct permissionssudo chmod -R 755 /var/lib/mirthconnect/repository