Closed tabjy closed 5 years ago
This issue is reproducible locally when running with docker run --user 1001 ...
Found a way to pause Openshift's building process. SSHed and tapped into the building container with docker exec -it <container-id> bash
.
Executing
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el8_0.x86_64/jre/bin/java \
-jar /opt/app-root/jmc/releng/third-party/?/.m2/repository/org/eclipse/tycho/tycho-bundles-external/1.0.0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar \
-configuration /tmp/tycho-p2-runtime4079038968581853796.tmp/configuration \
-nosplash \
-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
-artifactRepository file:/opt/app-root/jmc/releng/third-party/target/repository \
-metadataRepository file:/opt/app-root/jmc/releng/third-party/target/repository \
-publishArtifacts -compress -nouses \
-source /opt/app-root/jmc/releng/third-party/target/source
yeilds:
An error has occurred. See the log file
/tmp/tycho-p2-runtime4079038968581853796.tmp/configuration/1569614200090.log.
cat /tmp/tycho-p2-runtime4079038968581853796.tmp/configuration/1569614200090.log
!SESSION 2019-09-27 19:56:42.847 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_222
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -artifactRepository file:/opt/app-root/jmc/releng/third-party/target/repository -metadataRepository file:/opt/app-root/jmc/releng/third-party/target/repository -publishArtifacts -compress -nouses -source /opt/app-root/jmc/releng/third-party/target/source
Command-line arguments: -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -artifactRepository file:/opt/app-root/jmc/releng/third-party/target/repository -metadataRepository file:/opt/app-root/jmc/releng/third-party/target/repository -publishArtifacts -compress -nouses -source /opt/app-root/jmc/releng/third-party/target/source
!ENTRY org.eclipse.osgi 4 0 2019-09-27 19:56:43.133
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:78)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
bash-4.4$
running mvn -e p2:site
[INFO] Command line:
[/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.el8_0.x86_64/jre/bin/java, -jar, /opt/app-root/jmc/releng/third-party/?/.m2/repository/org/eclipse/tycho/tycho-bundles-external/1.0.0/eclipse/plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar, -configuration, /tmp/tycho-p2-runtime5361235948099741954.tmp/configuration, -nosplash, -application, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, -artifactRepository, file:/opt/app-root/jmc/releng/third-party/target/repository, -metadataRepository, file:/opt/app-root/jmc/releng/third-party/target/repository, -publishArtifacts, -compress, -nouses, -source, /opt/app-root/jmc/releng/third-party/target/source]
An error has occurred. See the log file
/tmp/tycho-p2-runtime5361235948099741954.tmp/configuration/1569613952403.log.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:34 min
[INFO] Finished at: 2019-09-27T19:52:32Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.reficio:p2-maven-plugin:1.3.0:site (default-cli) on project external-dependencies: Execution default-cli of goal org.reficio:p2-maven-plugin:1.3.0:site failed: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo: P2 publisher return code was 13 -> [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/PluginExecutionException
Steps to reproduce:
Error log:
The command that was executing appears to be
mvn p2:site
.Works with local
s2i
command, but not Openshift.