Skip to content

Conversation

@omerbek
Copy link

@omerbek omerbek commented Nov 14, 2025

Context

Previously running Ollama instances (either via systemctl or Docker) were causing the CodeAssist application to fail during startup. The application attempted to launch new Ollama services while old processes were still active, resulting in port conflicts and runtime errors.

Summary of Change

Added automatic shutdown of any existing Ollama services before starting the application.

Added:

systemctl stop ollama

docker stop codeassist-ollama

docker kill codeassist-ollama

These commands were inserted directly above the args = parser.parse_args() line.

This ensures the environment is clean and prevents conflicts when launching CodeAssist.

Tests

Verified behavior with a running ollama system service → service successfully stopped before startup.

Verified behavior with a running codeassist-ollama Docker container → container was stopped/killed correctly.

Application starts cleanly without port conflicts after the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant