eJAEGIS Windows Setup Guide

πŸš€ Quick Fix for Your Issue

The error you encountered is now fixed. Here's how to proceed:

First, let's check if everything is set up correctly:

python troubleshoot-eJAEGIS.py

This will check:

  • βœ… Python version compatibility

  • βœ… Required packages installation

  • βœ… File availability

  • βœ… GitHub token configuration

  • βœ… API connectivity

  • βœ… File permissions

Step 2: Install Dependencies

If diagnostics show missing packages, install them:

pip install requests pywin32

Step 3: Easy Service Installation

Use the automated installer (run as Administrator):

Option A: Batch File (Recommended)

Option B: PowerShell

Option C: Manual Installation

πŸ”§ What Was Fixed

The original error occurred because:

  • ❌ Python couldn't import eJAEGIS_auto_sync from eJAEGIS-auto-sync.py (hyphen vs underscore)

  • βœ… Fixed: Created eJAEGIS_auto_sync.py that properly imports from the main script

  • βœ… Fixed: Updated service wrapper to use correct imports

  • βœ… Fixed: Added automated installation scripts

πŸ“‹ Step-by-Step Manual Setup

If you prefer manual setup:

1. Check Prerequisites

2. Install Required Packages

3. Test the Main Script

4. Install Windows Service

5. Start the Service

6. Check Service Status

🎯 Service Management Commands

Once installed, you can manage the service with:

πŸ“Š Monitoring the Service

View Logs

Windows Event Viewer

  1. Open Event Viewer (eventvwr.msc)

  2. Navigate to: Windows Logs β†’ Application

  3. Look for "eJAEGISAutoSync" entries

Service Manager

  1. Open Services (services.msc)

  2. Find "eJAEGIS Auto-Sync Monitoring Service"

  3. Check status and configure startup type

πŸ” Troubleshooting

Common Issues & Solutions

Issue: Service won't install

Issue: Import errors

Issue: GitHub authentication fails

Issue: Permission denied

Debug Mode

If the service isn't working, run in debug mode to see detailed output:

This runs the service in the foreground so you can see all log messages.

πŸ“ File Structure

After setup, you should have:

βœ… Verification

After installation, verify everything works:

  1. Check service status:

  2. Check logs:

  3. Test GitHub connection:

  4. Monitor for changes:

    • Make a small change to any file in JAEGIS-METHOD

    • Wait for the next monitoring cycle (default: 1 hour)

    • Check logs for sync activity

πŸŽ‰ Success!

Once everything is working, you should see:

  • βœ… Service running in Windows Services

  • βœ… Log entries every hour showing monitoring activity

  • βœ… Automatic PRs created when files change

  • βœ… Repository stays synchronized with local changes

The eJAEGIS Auto-Sync service will now continuously monitor your JAEGIS-METHOD directory and automatically sync any changes to your GitHub repository!

πŸ“ž Need Help?

If you encounter any issues:

  1. Run diagnostics: python troubleshoot-eJAEGIS.py

  2. Check logs: Look in the logs/ directory

  3. Try debug mode: python eJAEGIS-auto-sync-service.py debug

  4. Verify permissions: Ensure you're running as Administrator

The system is now fully automated and should work seamlessly in the background! πŸš€βœ¨

Last updated