Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

SVT:ODO 2 projects failed to build. #3223

Closed
@jagraj

Description

@jagraj

Codewind version: 0.14.1
OS: CoreOS

Che version: 7.16.1
IDE extension version: 0.14.1
IDE version: Theia 7.16.1
Kubernetes cluster: OCP 4.3.29

Description:
ODO 2 projects failed to build and start with the latest 0.14.1 images. Here is the failure that we are getting. ODO 1 projects building fine but not ODO 2. Please find the logs as well. ODO 2 nodejs project failed to start but some how status says Running but build says it failed.

Here is the failure for quarkus project.

Executing postStart event commands for component cw-ododevquarkuscw0141svt
 •  Executing init-compile command "mvn compile"  ...
 ✗  
Unable to exec command [/bin/sh -c cd $PROJECTS_ROOT && mvn compile]: 
OpenJDK 64-Bit Server VM warning: forcing TieredStopAtLevel to full optimization because JVMCI is enabled
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.105 s
[INFO] Finished at: 2020-08-04T19:14:30Z
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/user). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException

 ✗  Executing init-compile command "mvn compile" [2s]
 ✗  Failed to start component with name cw-ododevquarkuscw0141svt. Error: Failed to create the component: unable to execute devfile command init-compile: unable to execute the build command: error while streaming command: command terminated with exit code 1
- Failed to build and deploy odo component: cw-ododevquarkuscw0141svt

✓  Syncing files to the component [17s]

Executing devfile commands for component cw-ododevolcw014svt
 •  Executing devbuild command "if [ -e /projects/user-app/.disable-bld-cmd ]; then echo \"found the disable file\" && echo \"devBuild command will not run\" && exit 0; else echo \"will run the devBuild command\" && echo \"...moving liberty\" && mkdir -p /projects/user-app/target/liberty && mv /opt/ol/wlp /projects/user-app/target/liberty && mvn -Dmaven.repo.local=/mvn/repository package && touch ./.disable-bld-cmd; fi"  ...
 ✗  
Unable to exec command [/bin/sh -c cd /projects && if [ -e /projects/user-app/.disable-bld-cmd ]; then echo "found the disable file" && echo "devBuild command will not run" && exit 0; else echo "will run the devBuild command" && echo "...moving liberty" && mkdir -p /projects/user-app/target/liberty && mv /opt/ol/wlp /projects/user-app/target/liberty && mvn -Dmaven.repo.local=/mvn/repository package && touch ./.disable-bld-cmd; fi]: 
will run the devBuild command
...moving liberty
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.123 s
[INFO] Finished at: 2020-08-04T18:41:41Z
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/projects). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR] 

PFE log.
pfe.txt

image

Steps to reproduce:

  1. Start 0.14.1 workspace on Che.
  2. Create ODO 2 projects.
  3. Failed to build.

Workaround:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions