Giter VIP home page Giter VIP logo

lagomjavatemplate's People

Watchers

 avatar  avatar  avatar

lagomjavatemplate's Issues

Mvn build fails with tests on K8s

If we dont skip the mvn tests, the mvn build fails on K8s

I had to skip them ootb using PR #16 to get it up and running on K8s

mvn failed build:

[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m p
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39ml
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39ma
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39my.
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mhttp.secret.key instead

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[E
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mRROR] Test
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39ms run:
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 73.497 s <<< FAILURE! - in com.example.rp.test.lagomendpoints.impl.HelloServiceTest
[ERROR] shouldGreet(com.example.rp.test.lagomendpoints.impl.HelloServiceTest)  Time elapsed: 73.208 s  <<< ERROR!
java.util.concurrent.
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mTimeoutException
	at com.example.rp.test.lagomendpoints.i
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mmpl.HelloServi
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mceTest
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39ml
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m.
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mambda$shouldGreet$89d0e00e$1(HelloServiceTest.java:18)
	at com.example.rp.test.lagomendpoints.impl.HelloServiceTest.shouldGreet(HelloServiceTest.java:15)


�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[INFO] 

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[INFO] Results:
[INFO] 

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR] Errors: 
[ERROR]   HelloServiceTest.shoul
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mdGreet:15->lambda$shouldGreet$89d0e00e$1:18 
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m» Timeout

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[INFO] 

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR] Tests run: 1, Failures: 0, Error
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39ms: 1, Skipped: 0
[IN
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mFO] 

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mI
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mN
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mF
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m]
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mO
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m 
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m-
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m


....


�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m execute goal org.apache.maven.plu
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39ml
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mi
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mns:maven-s
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mu
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mg
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mre
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mir
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39me-
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mf
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mugi
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mn
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m:2
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m.2
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m2.0:te
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mst (d
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39me
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mfault-test) on proje
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mpl
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mt 
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mhello-impl
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m: 
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mThere are test failures.

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mc
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR] 
[
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mERROR] Please refer to /hello-impl/target/surefire-reports for the individual test results.

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m] Please ref
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mer t
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mo dump files (if any exist) [date]
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m-jvmRun[N
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mERROR] -> [Help 1]
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m
[ERROR] 
[ERROR] To see
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m-e switch.

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[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:

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m the full stack trace of the errors, re-run Maven with the 
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERRO
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mR
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m] After correcting the problems, you can resume the build with the command

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m]   mvn <goals> -rf :hello-impl

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39merror building at STEP "RUN mvn install": error while running runtime: exit status 1

�[31m[ERROR Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] containerBuildAndRun : 1290 | | The command /file-watcher/scripts/dockerScripts/docker-build.sh bud --label builtBy=codewind -t cw-tuelago1-bb0f5b10-977e-11e9-a4bc,/codewind-workspace/tuelago1,/codewind-workspace/.logs/tuelago1-bb0f5b10-977e-11e9-a4bc-8b44797bd143/docker.build.log,bb0f5b10-977e-11e9-a4bc-8b44797bd143 failed with exit code 1�[39m
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39m[ERROR] 

�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mBuild state changed for project: bb0f5b10-977e-11e9-a4bc-8b44797bd143 from: inProgress, to: failed, with message: buildscripts.buildFail
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mKicking off validation for project: bb0f5b10-977e-11e9-a4bc-8b44797bd143
�[32m[INFO Tue Jun 25 19:35:35 GMT 2019 | Project: tuelago1] �[39mEmitting event over listener 
 message: projectStatusChanged
 data: {
  "projectID": "bb0f5b10-977e-11e9-a4bc-8b44797bd143",
  "buildStatus": "failed",
  "detailedBuildStatus": "Creating image for build failed",
  "lastbuild": 1561491322495
}

Lagom project gets stuck on starting state

Reproduce steps:
Create lagom project from template using Codewind, then lagom project builds successfully, but the project can not reach started status. From the PFE log I see [32m[INFO Tue Jun 25 18:57:48 GMT 2019 | Project: lagom] [39mApplication state changed for project: 97a30b80-977a-11e9-b07f-0b6176bee212 from: starting, to: starting, with message: The project path that file watcher pings is /api/hello/you, that means PFE pings the path that configures in the cw setting file correctly, but the template doesn't host that path. I verify the ping path using curl as well, it doesn't work either.

In order to fix this, we need to let Lagom host the ping path that configures in the cw settings file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.