-
Notifications
You must be signed in to change notification settings - Fork 23
Play application containerized with version 1.7.0 does not start #177
Comments
Which version of reactive-cli are you using? rp 1.7.0 should put import com.typesafe.sbt.packager.docker.DockerChmodType
dockerChmodType := DockerChmodType.UserGroupWriteExecute |
@eed3si9n Using reactive-cli 1.7.0:
As I wrote in the original message, you can reproduce the issue with the simple steps of https://developer.lightbend.com/docs/lightbend-orchestration/current/getting-started/sbt-play-minikube.html. In this case, lightbend/reactive-cli#197 does not fix the issue because I've also tried your workaround (using When I log into the container:
|
Ref lightbend/sbt-reactive-app#177 #197 added `-Dplay.server.pidfile.path=/dev/null`, but only when Akka Clustering was enabled. This adds that for all cases.
Hopefully this is now fixed with updates to rp (lightbend/reactive-cli#201) and sbt-reactive-app. |
Latest version (1.7.0) does not work for Play Framework projects, because Play has no permission to write the PID in
/opt/docker/RUNNING_PID
.To reproduce the bug, simply follow the steps in https://developer.lightbend.com/docs/lightbend-orchestration/current/getting-started/sbt-play-minikube.html (with
rp
1.7.0 installed).Deployment succeeds, however accessing the server gives an error "502 Bad Gateway" and the pod has these logs:
Creating the image with
docker:publishLocal
and running it manually gives the same error.I suppose it may be related to sbt/sbt-native-packager#1198 or to the recent changes on Docker image building.
The text was updated successfully, but these errors were encountered: