Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing error #3229

Open
PeiyuQuan opened this issue Jan 10, 2025 · 3 comments
Open

Installing error #3229

PeiyuQuan opened this issue Jan 10, 2025 · 3 comments

Comments

@PeiyuQuan
Copy link

Hello
My system us Rocky 9.
When i run this command:
mvn clean install
I got the following error information.

[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in org.epics.pva.data.StructureTest
[INFO] Running org.epics.pva.data.SerializeTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in org.epics.pva.data.SerializeTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[ERROR] ServerClientTest.testSinglePV:262
[INFO]
[ERROR] Tests run: 63, Failures: 12, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for phoebus (parent) 4.7.4-SNAPSHOT:
[INFO]
[INFO] phoebus (parent) ................................... SUCCESS [ 0.318 s]
[INFO] dependencies ....................................... SUCCESS [ 0.014 s]
[INFO] install-jars ....................................... SUCCESS [ 0.449 s]
[INFO] phoebus-target ..................................... SUCCESS [ 0.573 s]
[INFO] core ............................................... SUCCESS [ 0.007 s]
[INFO] core-pva ........................................... FAILURE [02:04 min]
[INFO] core-vtype ......................................... SKIPPED
[INFO] core-formula ....................................... SKIPPED
[INFO] core-framework ..................................... SKIPPED
[INFO] core-types ......................................... SKIPPED
[INFO] core-util .......................................... SKIPPED
[INFO] core-pv ............................................ SKIPPED
[INFO] core-pv-ca ......................................... SKIPPED
[INFO] core-pv-jackie ..................................... SKIPPED
[INFO] core-pv-mqtt ....................................... SKIPPED
[INFO] core-pv-opva ....................................... SKIPPED
[INFO] core-pv-pva ........................................ SKIPPED
[INFO] core-pv-tango ...................................... SKIPPED
[INFO] core-security ...................................... SKIPPED
[INFO] core-ui ............................................ SKIPPED
[INFO] core-logbook ....................................... SKIPPED
[INFO] core-email ......................................... SKIPPED
[INFO] core-launcher ...................................... SKIPPED
[INFO] app ................................................ SKIPPED
[INFO] app-diag ........................................... SKIPPED
[INFO] app-log-configuration .............................. SKIPPED
[INFO] app-probe .......................................... SKIPPED
[INFO] app-pvtable ........................................ SKIPPED
[INFO] app-pvtree ......................................... SKIPPED
[INFO] app-update ......................................... SKIPPED
[INFO] app-email .......................................... SKIPPED
[INFO] app-email-ui ....................................... SKIPPED
[INFO] app-errlog ......................................... SKIPPED
[INFO] app-filebrowser .................................... SKIPPED
[INFO] app-logbook ........................................ SKIPPED
[INFO] app-logbook-inmemory ............................... SKIPPED
[INFO] app-logbook-ui ..................................... SKIPPED
[INFO] app-logbook-olog ................................... SKIPPED
[INFO] app-logbook-olog-client ............................ SKIPPED
[INFO] app-logbook-olog-client-es ......................... SKIPPED
[INFO] app-logbook-olog-ui ................................ SKIPPED
[INFO] app-logbook-elog ................................... SKIPPED
[INFO] app-rtplot ......................................... SKIPPED
[INFO] app-trends ......................................... SKIPPED
[INFO] app-trends-archive-reader .......................... SKIPPED
[INFO] app-databrowser .................................... SKIPPED
[INFO] app-databrowser-json ............................... SKIPPED
[INFO] app-databrowser-timescale .......................... SKIPPED
[INFO] app-display ........................................ SKIPPED
[INFO] app-display-model .................................. SKIPPED
[INFO] app-display-representation ......................... SKIPPED
[INFO] app-3d-viewer ...................................... SKIPPED
[INFO] app-display-representation-javafx .................. SKIPPED
[INFO] app-display-fonts .................................. SKIPPED
[INFO] app-display-actions ................................ SKIPPED
[INFO] app-display-runtime ................................ SKIPPED
[INFO] app-display-editor ................................. SKIPPED
[INFO] app-display-convert-medm ........................... SKIPPED
[INFO] app-display-convert-edm ............................ SKIPPED
[INFO] app-display-navigation ............................. SKIPPED
[INFO] app-display-adapters ............................... SKIPPED
[INFO] app-display-thumbwheel ............................. SKIPPED
[INFO] app-display-linearmeter ............................ SKIPPED
[INFO] app-alarm .......................................... SKIPPED
[INFO] app-alarm-model .................................... SKIPPED
[INFO] app-alarm-ui ....................................... SKIPPED
[INFO] app-alarm-logging-ui ............................... SKIPPED
[INFO] app-alarm-datasouce ................................ SKIPPED
[INFO] app-alarm-freetts-annunciator ...................... SKIPPED
[INFO] app-alarm-audio-annunciator ........................ SKIPPED
[INFO] app-scan ........................................... SKIPPED
[INFO] app-scan-model ..................................... SKIPPED
[INFO] app-scan-client .................................... SKIPPED
[INFO] app-scan-ui ........................................ SKIPPED
[INFO] app-channel ........................................ SKIPPED
[INFO] app-channel-channelfinder .......................... SKIPPED
[INFO] app-channel-utility ................................ SKIPPED
[INFO] app-channel-views .................................. SKIPPED
[INFO] app-perfmon ........................................ SKIPPED
[INFO] app-pace ........................................... SKIPPED
[INFO] app-save-and-restore ............................... SKIPPED
[INFO] save-and-restore-model ............................. SKIPPED
[INFO] save-and-restore-util .............................. SKIPPED
[INFO] app-trends-archive-datasource ...................... SKIPPED
[INFO] save-and-restore ................................... SKIPPED
[INFO] save-and-restore-logging ........................... SKIPPED
[INFO] app-console ........................................ SKIPPED
[INFO] app-trends-rich-adapters ........................... SKIPPED
[INFO] app-trends-simple-adapters ......................... SKIPPED
[INFO] app-utility ........................................ SKIPPED
[INFO] app-utility-preference-manager ..................... SKIPPED
[INFO] app-imageviewer .................................... SKIPPED
[INFO] app-credentials-management ......................... SKIPPED
[INFO] app-eslog .......................................... SKIPPED
[INFO] product ............................................ SKIPPED
[INFO] services ........................................... SKIPPED
[INFO] service-alarm-server ............................... SKIPPED
[INFO] service-archive-engine ............................. SKIPPED
[INFO] service-scan-server ................................ SKIPPED
[INFO] service-alarm-logger ............................... SKIPPED
[INFO] service-alarm-config-logger ........................ SKIPPED
[INFO] service-save-and-restore ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:06 min
[INFO] Finished at: 2025-01-09T19:37:40-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-test) on project core-pva: There are test failures.
[ERROR]
[ERROR] Please refer to /home/red/phoebus/core/pva/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :core-pva

Thank you

@kasemir
Copy link
Collaborator

kasemir commented Jan 10, 2025

I get that same error,

[ERROR] Failures:
[ERROR] ServerClientTest.testSinglePV:262

unless I add this to the testServer() code:

PVASettings.EPICS_PVA_ADDR_LIST = "127.0.0.1";

Details can vary based on your network setup.
The unit tests are mostly for those who develop the code.
If you build CS-Studio from source code simply to use it, you can skip the unit tests as described in the [README.md](https://github.com/ControlSystemStudio/phoebus/blob/master/README.md by using mvn -DskipTests ....

kasemir added a commit that referenced this issue Jan 10, 2025
Increase likelihood of server/client test to work

#3229
@PeiyuQuan
Copy link
Author

Hello Kay

It works. Thank you.

If i just used the command "mvn -DskipTests ...", i got the same error. When i modified ServerClientTest.java according to your code. Phoebus has been installed. Thank you.

    {
        // Details vary with network setup,
        // but forcing use of IPv4 localhost is quite likely to "work"
        PVASettings.EPICS_PVAS_INTF_ADDR_LIST = "127.0.0.1";
        PVASettings.EPICS_PVA_ADDR_LIST = "127.0.0.1";    
    }

The following just show the result from "mvn -DskipTests ..."

(phoebus-community) [red@EPICS1 phoebus]$ mvn -DskipTests ...
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.phoebus:app-logbook-olog-ui:jar:4.7.4-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.phoebus:core-ui:jar -> duplicate declaration of version 4.7.4-SNAPSHOT @ line 43, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] phoebus (parent) [pom]
[INFO] dependencies [pom]
[INFO] install-jars [jar]
[INFO] phoebus-target [jar]
[INFO] core [pom]
[INFO] core-pva [jar]
[INFO] core-vtype [jar]
[INFO] core-formula [jar]
[INFO] core-framework [jar]
[INFO] core-types [jar]
[INFO] core-util [jar]
[INFO] core-pv [jar]
[INFO] core-pv-ca [jar]
[INFO] core-pv-jackie [jar]
[INFO] core-pv-mqtt [jar]
[INFO] core-pv-opva [jar]
[INFO] core-pv-pva [jar]
[INFO] core-pv-tango [jar]
[INFO] core-security [jar]
[INFO] core-ui [jar]
[INFO] core-logbook [jar]
[INFO] core-email [jar]
[INFO] core-launcher [jar]
[INFO] app [pom]
[INFO] app-diag [jar]
[INFO] app-log-configuration [jar]
[INFO] app-probe [jar]
[INFO] app-pvtable [jar]
[INFO] app-pvtree [jar]
[INFO] app-update [jar]
[INFO] app-email [pom]
[INFO] app-email-ui [jar]
[INFO] app-errlog [jar]
[INFO] app-filebrowser [jar]
[INFO] app-logbook [pom]
[INFO] app-logbook-inmemory [jar]
[INFO] app-logbook-ui [jar]
[INFO] app-logbook-olog [pom]
[INFO] app-logbook-olog-client [jar]
[INFO] app-logbook-olog-client-es [jar]
[INFO] app-logbook-olog-ui [jar]
[INFO] app-logbook-elog [jar]
[INFO] app-rtplot [jar]
[INFO] app-trends [pom]
[INFO] app-trends-archive-reader [jar]
[INFO] app-databrowser [jar]
[INFO] app-databrowser-json [jar]
[INFO] app-databrowser-timescale [jar]
[INFO] app-display [pom]
[INFO] app-display-model [jar]
[INFO] app-display-representation [jar]
[INFO] app-3d-viewer [jar]
[INFO] app-display-representation-javafx [jar]
[INFO] app-display-fonts [jar]
[INFO] app-display-actions [jar]
[INFO] app-display-runtime [jar]
[INFO] app-display-editor [jar]
[INFO] app-display-convert-medm [jar]
[INFO] app-display-convert-edm [jar]
[INFO] app-display-navigation [jar]
[INFO] app-display-adapters [jar]
[INFO] app-display-thumbwheel [jar]
[INFO] app-display-linearmeter [jar]
[INFO] app-alarm [pom]
[INFO] app-alarm-model [jar]
[INFO] app-alarm-ui [jar]
[INFO] app-alarm-logging-ui [jar]
[INFO] app-alarm-datasouce [jar]
[INFO] app-alarm-freetts-annunciator [jar]
[INFO] app-alarm-audio-annunciator [jar]
[INFO] app-scan [pom]
[INFO] app-scan-model [jar]
[INFO] app-scan-client [jar]
[INFO] app-scan-ui [jar]
[INFO] app-channel [pom]
[INFO] app-channel-channelfinder [jar]
[INFO] app-channel-utility [jar]
[INFO] app-channel-views [jar]
[INFO] app-perfmon [jar]
[INFO] app-pace [jar]
[INFO] app-save-and-restore [pom]
[INFO] save-and-restore-model [jar]
[INFO] save-and-restore-util [jar]
[INFO] app-trends-archive-datasource [jar]
[INFO] save-and-restore [jar]
[INFO] save-and-restore-logging [jar]
[INFO] app-console [jar]
[INFO] app-trends-rich-adapters [jar]
[INFO] app-trends-simple-adapters [jar]
[INFO] app-utility [pom]
[INFO] app-utility-preference-manager [jar]
[INFO] app-imageviewer [jar]
[INFO] app-credentials-management [jar]
[INFO] app-eslog [jar]
[INFO] product [jar]
[INFO] services [pom]
[INFO] service-alarm-server [jar]
[INFO] service-archive-engine [jar]
[INFO] service-scan-server [jar]
[INFO] service-alarm-logger [jar]
[INFO] service-alarm-config-logger [jar]
[INFO] service-save-and-restore [jar]
[INFO]
[INFO] -------------------------< org.phoebus:parent >-------------------------
[INFO] Building phoebus (parent) 4.7.4-SNAPSHOT [1/102]
[INFO] from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for phoebus (parent) 4.7.4-SNAPSHOT:
[INFO]
[INFO] phoebus (parent) ................................... FAILURE [ 0.001 s]
[INFO] dependencies ....................................... SKIPPED
[INFO] install-jars ....................................... SKIPPED
[INFO] phoebus-target ..................................... SKIPPED
[INFO] core ............................................... SKIPPED
[INFO] core-pva ........................................... SKIPPED
[INFO] core-vtype ......................................... SKIPPED
[INFO] core-formula ....................................... SKIPPED
[INFO] core-framework ..................................... SKIPPED
[INFO] core-types ......................................... SKIPPED
[INFO] core-util .......................................... SKIPPED
[INFO] core-pv ............................................ SKIPPED
[INFO] core-pv-ca ......................................... SKIPPED
[INFO] core-pv-jackie ..................................... SKIPPED
[INFO] core-pv-mqtt ....................................... SKIPPED
[INFO] core-pv-opva ....................................... SKIPPED
[INFO] core-pv-pva ........................................ SKIPPED
[INFO] core-pv-tango ...................................... SKIPPED
[INFO] core-security ...................................... SKIPPED
[INFO] core-ui ............................................ SKIPPED
[INFO] core-logbook ....................................... SKIPPED
[INFO] core-email ......................................... SKIPPED
[INFO] core-launcher ...................................... SKIPPED
[INFO] app ................................................ SKIPPED
[INFO] app-diag ........................................... SKIPPED
[INFO] app-log-configuration .............................. SKIPPED
[INFO] app-probe .......................................... SKIPPED
[INFO] app-pvtable ........................................ SKIPPED
[INFO] app-pvtree ......................................... SKIPPED
[INFO] app-update ......................................... SKIPPED
[INFO] app-email .......................................... SKIPPED
[INFO] app-email-ui ....................................... SKIPPED
[INFO] app-errlog ......................................... SKIPPED
[INFO] app-filebrowser .................................... SKIPPED
[INFO] app-logbook ........................................ SKIPPED
[INFO] app-logbook-inmemory ............................... SKIPPED
[INFO] app-logbook-ui ..................................... SKIPPED
[INFO] app-logbook-olog ................................... SKIPPED
[INFO] app-logbook-olog-client ............................ SKIPPED
[INFO] app-logbook-olog-client-es ......................... SKIPPED
[INFO] app-logbook-olog-ui ................................ SKIPPED
[INFO] app-logbook-elog ................................... SKIPPED
[INFO] app-rtplot ......................................... SKIPPED
[INFO] app-trends ......................................... SKIPPED
[INFO] app-trends-archive-reader .......................... SKIPPED
[INFO] app-databrowser .................................... SKIPPED
[INFO] app-databrowser-json ............................... SKIPPED
[INFO] app-databrowser-timescale .......................... SKIPPED
[INFO] app-display ........................................ SKIPPED
[INFO] app-display-model .................................. SKIPPED
[INFO] app-display-representation ......................... SKIPPED
[INFO] app-3d-viewer ...................................... SKIPPED
[INFO] app-display-representation-javafx .................. SKIPPED
[INFO] app-display-fonts .................................. SKIPPED
[INFO] app-display-actions ................................ SKIPPED
[INFO] app-display-runtime ................................ SKIPPED
[INFO] app-display-editor ................................. SKIPPED
[INFO] app-display-convert-medm ........................... SKIPPED
[INFO] app-display-convert-edm ............................ SKIPPED
[INFO] app-display-navigation ............................. SKIPPED
[INFO] app-display-adapters ............................... SKIPPED
[INFO] app-display-thumbwheel ............................. SKIPPED
[INFO] app-display-linearmeter ............................ SKIPPED
[INFO] app-alarm .......................................... SKIPPED
[INFO] app-alarm-model .................................... SKIPPED
[INFO] app-alarm-ui ....................................... SKIPPED
[INFO] app-alarm-logging-ui ............................... SKIPPED
[INFO] app-alarm-datasouce ................................ SKIPPED
[INFO] app-alarm-freetts-annunciator ...................... SKIPPED
[INFO] app-alarm-audio-annunciator ........................ SKIPPED
[INFO] app-scan ........................................... SKIPPED
[INFO] app-scan-model ..................................... SKIPPED
[INFO] app-scan-client .................................... SKIPPED
[INFO] app-scan-ui ........................................ SKIPPED
[INFO] app-channel ........................................ SKIPPED
[INFO] app-channel-channelfinder .......................... SKIPPED
[INFO] app-channel-utility ................................ SKIPPED
[INFO] app-channel-views .................................. SKIPPED
[INFO] app-perfmon ........................................ SKIPPED
[INFO] app-pace ........................................... SKIPPED
[INFO] app-save-and-restore ............................... SKIPPED
[INFO] save-and-restore-model ............................. SKIPPED
[INFO] save-and-restore-util .............................. SKIPPED
[INFO] app-trends-archive-datasource ...................... SKIPPED
[INFO] save-and-restore ................................... SKIPPED
[INFO] save-and-restore-logging ........................... SKIPPED
[INFO] app-console ........................................ SKIPPED
[INFO] app-trends-rich-adapters ........................... SKIPPED
[INFO] app-trends-simple-adapters ......................... SKIPPED
[INFO] app-utility ........................................ SKIPPED
[INFO] app-utility-preference-manager ..................... SKIPPED
[INFO] app-imageviewer .................................... SKIPPED
[INFO] app-credentials-management ......................... SKIPPED
[INFO] app-eslog .......................................... SKIPPED
[INFO] product ............................................ SKIPPED
[INFO] services ........................................... SKIPPED
[INFO] service-alarm-server ............................... SKIPPED
[INFO] service-archive-engine ............................. SKIPPED
[INFO] service-scan-server ................................ SKIPPED
[INFO] service-alarm-logger ............................... SKIPPED
[INFO] service-alarm-config-logger ........................ SKIPPED
[INFO] service-save-and-restore ........................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.337 s
[INFO] Finished at: 2025-01-10T13:11:43-08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "...". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException

@kasemir
Copy link
Collaborator

kasemir commented Jan 13, 2025

If i just used the command "mvn -DskipTests ...", i got the same error.

(phoebus-community) [red@EPICS1 phoebus]$ mvn -DskipTests ...
[INFO] phoebus (parent) ................................... FAILURE [ 0.001 s]
[ERROR] Unknown lifecycle phase "...". You must specify a valid lifecycle phase or a goal

Don't literally run mvn -DskipTests .... ... is not a valid goal.
The ... stands for whatever you had in there, for example:

mvn -DskipTests  clean install

Anyway, thanks for confirming that the test proceeds with "127.0.0.1"

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

No branches or pull requests

2 participants