Your Local Nexus Controller now automatically handles port conflicts on startup. You'll never have to manually kill processes again.
All startup scripts now include automatic port conflict detection and resolution:
-
run.ps1 - Manual startup script
- Automatically detects processes using port 5010
- Stops conflicting processes before starting
- Shows clear status messages
-
start.bat - Windows batch file startup
- Calls run.ps1 with port conflict handling
- Works from any location
-
tools/auto_start_controller.ps1 - Auto-start on boot
- Handles port conflicts during Windows startup
- Ensures clean application start after reboot
-
tools/auto_start_and_launch_all.ps1 - Full automation
- Clears port conflicts
- Starts controller
- Launches all registered services
-
tools/setup_auto_start.ps1 - Auto-start setup
- Now uses the improved controller script
- Configures Windows Task Scheduler properly
When you start the application:
- Script checks if port 5010 is in use
- If a process is found, it's automatically stopped
- A brief pause ensures the port is released
- Your application starts cleanly
To ensure the controller starts automatically when you reboot Windows:
cd tools
.\setup_auto_start.ps1This will:
- Configure Windows Task Scheduler
- Create necessary startup files
- Set up automatic port conflict resolution
- Start the controller on user login
After setup, check the status:
Get-ScheduledTask -TaskName "Local Nexus Controller"If you need to disable it:
cd tools
.\disable_auto_start.ps1You can still start the controller manually anytime:
.\run.ps1start.batBoth methods now include automatic port conflict resolution.
After configuring auto-start:
- You log in to Windows
- Task Scheduler launches the controller
- Port conflicts are automatically resolved
- Application starts cleanly
- Dashboard is available at http://127.0.0.1:5010
-
Check if Python is in your PATH:
python --version -
Verify the virtual environment exists:
Test-Path .\.venv -
Reinstall dependencies:
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
Get-ScheduledTask -TaskName "Local Nexus Controller" | Get-ScheduledTaskInfoYour system is now fully configured for:
- Automatic port conflict resolution
- Clean startup on reboot
- Reliable operation
Just run the setup script once, and everything will work automatically going forward.