Skip to content

Fix Linux CI port conflict in mvn clean install#101

Closed
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-mvn-clean-install-errors-another-one
Closed

Fix Linux CI port conflict in mvn clean install#101
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-mvn-clean-install-errors-another-one

Conversation

Copy link
Contributor

Copilot AI commented Feb 17, 2026

No code changes were made — the task was cancelled before implementation.

Investigation Summary

The mvn clean install failure on master is a Linux-only issue where step-04 fails to bind MariaDB to port 33328 (Address already in use). Windows and macOS CI jobs pass.

Root cause: Commit be36136 changed Java source/target from 1.8 to 17, which altered Surefire's fork behavior. Native MariaDB processes spawned during StandaloneUtilTest in step-03's test phase are not fully terminated before step-04 attempts to start its own MariaDB instance.

Failing log excerpt:

[ERROR] Can't start server: Bind on TCP/IP port. Got error: 98: Address already in use
[ERROR] Do you already have another server running on port: 33328 ?

Potential fixes (not yet implemented):

  • Add a small delay or port availability check before step-04's MariaDB start
  • Ensure Surefire properly kills forked JVM child processes via shutdown=kill configuration
  • Use unique ports per module to avoid cross-step conflicts

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • mavenrepo.openmrs.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/openmrs-standalone/openmrs-standalone org.codehaus.plexus.classworlds.launcher.Launcher clean compile -pl pom-step-05.xml -am (dns block)
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.12/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.12/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.12 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.12/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/openmrs-standalone/openmrs-standalone org.codehaus.plexus.classworlds.launcher.Launcher clean compile -DskipTests (dns block)
    • Triggering command: /usr/bin/curl curl -s --connect-timeout 5 REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix errors from running mvn clean install on master branch Fix Linux CI port conflict in mvn clean install Feb 17, 2026
Copilot AI requested a review from dkayiwa February 17, 2026 23:37
@dkayiwa dkayiwa closed this Feb 17, 2026
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.

2 participants