ibmbluemix:无法将dist部署到paas

kgsdhlau  于 2021-06-07  发布在  Kafka
关注(0)|答案(2)|浏览(401)

我正在尝试在bluemix上部署以下应用程序
https://github.com/yahoo/kafka-manager
要在本地运行它,我所要做的就是

  1. sbt clean dist

它创造了 target\universal\kafka-manager-1.3.0.4.zip

  1. bin/kafka-manager

对于bluemix部署,以下是我按照
https://github.com/cloudfoundry/java-buildpack

  1. sbt clean dist
  2. cf push KafkaManager -p target\universal\kafka-manager-1.3.0.4.zip -b https://github.com/cloudfoundry/java-buildpack.git

也,
manifest.yml是

  1. applications:
  2. name: KafkaManager
  3. host: KafkaManager
  4. memory: 512M
  5. domain: <domainName>

procfile是

  1. web: bin/kafka-manager -Dhttp.port=$PORT

这是我执行cf push的目录结构

但是建造失败了。这是日志消息

  1. 2016-03-22T14:07:58.14-0400 [API/0] OUT Created app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  2. 2016-03-22T14:07:58.79-0400 [API/1] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"route"=>"4a976f5f-d975-4845-ad0a-4b88a5d45afd"})
  3. 2016-03-22T14:10:33.90-0400 [API/1] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"name"=>"KafkaManager", "buildpack"=>"https://github.com/cloudfoundry/java-buildpack.git"})
  4. 2016-03-22T14:11:11.73-0400 [DEA/4] OUT Got staging request for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  5. 2016-03-22T14:11:15.81-0400 [API/0] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"state"=>"STARTED"})
  6. 2016-03-22T14:11:17.38-0400 [STG/4] OUT -----> Downloaded app package (65M)
  7. 2016-03-22T14:11:17.98-0400 [STG/0] ERR Cloning into '/tmp/buildpacks/java-buildpack'...
  8. 2016-03-22T14:11:22.67-0400 [STG/0] OUT -----> Java Buildpack Version: 9383db1 | https://github.com/cloudfoundry/java-buildpack.git#9383db1
  9. 2016-03-22T14:11:24.76-0400 [STG/0] OUT -----> Downloading Open Jdk JRE 1.8.0_73 from https://download.run.pivotal.io/openjdk/trusty/x86_64/openjdk-1.8.0_73.tar.gz (1.7s)
  10. 2016-03-22T14:11:26.31-0400 [STG/0] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
  11. 2016-03-22T14:11:26.91-0400 [STG/0] OUT -----> Downloading Open JDK Like Memory Calculator 2.0.1_RELEASE from https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-2.0.1_RELEASE.tar.gz (0.6s)
  12. 2016-03-22T14:11:27.00-0400 [STG/0] OUT Memory Settings: -Xms768M -XX:MetaspaceSize=104857K -Xss1M -Xmx768M -XX:MaxMetaspaceSize=104857K
  13. 2016-03-22T14:11:27.79-0400 [STG/0] OUT -----> Downloading Play Framework Auto Reconfiguration 1.10.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.10.0_RELEASE.jar (0.7s)
  14. 2016-03-22T14:11:49.09-0400 [STG/4] OUT -----> Uploading droplet (108M)
  15. 2016-03-22T14:11:57.92-0400 [DEA/4] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  16. 2016-03-22T14:12:07.01-0400 [DEA/4] ERR Instance (index 0) failed to start accepting connections
  17. 2016-03-22T14:12:07.03-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"be015488d886433a825456b8a4fd7129", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670327}
  18. 2016-03-22T14:12:07.03-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"be015488d886433a825456b8a4fd7129", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670327}
  19. 2016-03-22T14:12:45.39-0400 [DEA/6] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  20. 2016-03-22T14:12:52.85-0400 [App/0] ERR Oops, cannot start the server.
  21. 2016-03-22T14:12:52.85-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  22. 2016-03-22T14:12:52.85-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  23. 2016-03-22T14:12:52.85-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  24. 2016-03-22T14:12:52.85-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  25. 2016-03-22T14:12:52.85-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  26. 2016-03-22T14:12:52.85-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  27. 2016-03-22T14:12:52.85-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  28. 2016-03-22T14:12:52.85-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  29. 2016-03-22T14:12:52.85-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  30. 2016-03-22T14:12:52.86-0400 [App/0] OUT
  31. 2016-03-22T14:12:52.96-0400 [DEA/6] ERR Instance (index 0) failed to start accepting connections
  32. 2016-03-22T14:12:52.99-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"999b791f1beb456ca263b90030c8bc76", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670372}
  33. 2016-03-22T14:12:52.99-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"999b791f1beb456ca263b90030c8bc76", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670372}
  34. 2016-03-22T14:13:45.38-0400 [DEA/0] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  35. 2016-03-22T14:13:53.59-0400 [App/0] ERR Oops, cannot start the server.
  36. 2016-03-22T14:13:53.59-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  37. 2016-03-22T14:13:53.59-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  38. 2016-03-22T14:13:53.59-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  39. 2016-03-22T14:13:53.59-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  40. 2016-03-22T14:13:53.59-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  41. 2016-03-22T14:13:53.59-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  42. 2016-03-22T14:13:53.59-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  43. 2016-03-22T14:13:53.59-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  44. 2016-03-22T14:13:53.59-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  45. 2016-03-22T14:13:53.60-0400 [App/0] OUT
  46. 2016-03-22T14:13:53.67-0400 [DEA/0] ERR Instance (index 0) failed to start accepting connections
  47. 2016-03-22T14:13:53.69-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"ec5bf1431df94c59b2551a01a7ba8dcf", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670433}
  48. 2016-03-22T14:13:53.69-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"ec5bf1431df94c59b2551a01a7ba8dcf", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670433}
  49. 2016-03-22T14:14:45.38-0400 [DEA/7] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  50. 2016-03-22T14:14:51.62-0400 [App/0] ERR Oops, cannot start the server.
  51. 2016-03-22T14:14:51.62-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  52. 2016-03-22T14:14:51.62-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  53. 2016-03-22T14:14:51.62-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  54. 2016-03-22T14:14:51.62-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  55. 2016-03-22T14:14:51.62-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  56. 2016-03-22T14:14:51.62-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  57. 2016-03-22T14:14:51.62-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  58. 2016-03-22T14:14:51.62-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  59. 2016-03-22T14:14:51.62-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  60. 2016-03-22T14:14:51.63-0400 [App/0] OUT
  61. 2016-03-22T14:14:51.71-0400 [DEA/7] ERR Instance (index 0) failed to start accepting connections
  62. 2016-03-22T14:14:51.72-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"88c4a645e5eb4edc9f1683a205d41269", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670491}
  63. 2016-03-22T14:14:51.72-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"e34d4f2d-7c8c-4da1-8e20-6ef3c0b203f7", "instance"=>"88c4a645e5eb4edc9f1683a205d41269", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670491}
  64. 2016-03-22T14:15:44.70-0400 [API/1] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"name"=>"KafkaManager", "memory"=>512, "buildpack"=>"https://github.com/cloudfoundry/java-buildpack.git", "environment_json"=>"PRIVATE DATA HIDDEN"})
  65. 2016-03-22T14:15:45.41-0400 [API/0] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"route"=>"012a5695-a7a2-4408-970b-f5b2cc6f2a5b"})
  66. 2016-03-22T14:16:22.40-0400 [API/0] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"state"=>"STOPPED"})
  67. 2016-03-22T14:16:23.98-0400 [DEA/0] OUT Got staging request for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  68. 2016-03-22T14:16:29.24-0400 [API/0] OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"state"=>"STARTED"})
  69. 2016-03-22T14:16:30.83-0400 [STG/0] OUT -----> Downloaded app package (65M)
  70. 2016-03-22T14:16:32.26-0400 [STG/0] OUT -----> Downloaded app buildpack cache (45M)
  71. 2016-03-22T14:16:33.15-0400 [STG/0] ERR Cloning into '/tmp/buildpacks/java-buildpack'...
  72. 2016-03-22T14:16:38.17-0400 [STG/0] OUT -----> Java Buildpack Version: 9383db1 | https://github.com/cloudfoundry/java-buildpack.git#9383db1
  73. 2016-03-22T14:16:38.63-0400 [STG/0] OUT -----> Downloading Open Jdk JRE 1.8.0_73 from https://download.run.pivotal.io/openjdk/trusty/x86_64/openjdk-1.8.0_73.tar.gz (found in cache)
  74. 2016-03-22T14:16:40.16-0400 [STG/0] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
  75. 2016-03-22T14:16:40.27-0400 [STG/0] OUT -----> Downloading Open JDK Like Memory Calculator 2.0.1_RELEASE from https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-2.0.1_RELEASE.tar.gz (found in cache)
  76. 2016-03-22T14:16:40.36-0400 [STG/0] OUT Memory Settings: -Xss995K -Xmx382293K -XX:MetaspaceSize=64M -Xms382293K -XX:MaxMetaspaceSize=64M
  77. 2016-03-22T14:16:40.47-0400 [STG/0] OUT -----> Downloading Play Framework Auto Reconfiguration 1.10.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.10.0_RELEASE.jar (found in cache)
  78. 2016-03-22T14:17:07.37-0400 [STG/0] OUT -----> Uploading droplet (108M)
  79. 2016-03-22T14:17:14.84-0400 [DEA/4] OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  80. 2016-03-22T14:17:14.84-0400 [DEA/4] OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  81. 2016-03-22T14:17:14.84-0400 [DEA/4] OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  82. 2016-03-22T14:17:27.60-0400 [DEA/0] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  83. 2016-03-22T14:17:38.19-0400 [App/0] ERR Oops, cannot start the server.
  84. 2016-03-22T14:17:38.19-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  85. 2016-03-22T14:17:38.19-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  86. 2016-03-22T14:17:38.19-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  87. 2016-03-22T14:17:38.19-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  88. 2016-03-22T14:17:38.19-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  89. 2016-03-22T14:17:38.19-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  90. 2016-03-22T14:17:38.19-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  91. 2016-03-22T14:17:38.19-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  92. 2016-03-22T14:17:38.19-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  93. 2016-03-22T14:17:38.21-0400 [App/0] OUT
  94. 2016-03-22T14:17:38.28-0400 [DEA/0] ERR Instance (index 0) failed to start accepting connections
  95. 2016-03-22T14:17:38.30-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"4c16b37d50ec4f84ba5bf605ce168245", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670658}
  96. 2016-03-22T14:17:38.30-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"4c16b37d50ec4f84ba5bf605ce168245", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670658}
  97. 2016-03-22T14:17:45.30-0400 [DEA/0] OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  98. 2016-03-22T14:17:45.30-0400 [DEA/0] OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  99. 2016-03-22T14:17:45.30-0400 [DEA/0] OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  100. 2016-03-22T14:18:01.74-0400 [DEA/6] OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  101. 2016-03-22T14:18:01.74-0400 [DEA/6] OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  102. 2016-03-22T14:18:01.75-0400 [DEA/6] OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  103. 2016-03-22T14:18:45.41-0400 [DEA/1] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  104. 2016-03-22T14:18:53.09-0400 [App/0] ERR Oops, cannot start the server.
  105. 2016-03-22T14:18:53.09-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  106. 2016-03-22T14:18:53.09-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  107. 2016-03-22T14:18:53.09-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  108. 2016-03-22T14:18:53.09-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  109. 2016-03-22T14:18:53.09-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  110. 2016-03-22T14:18:53.09-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  111. 2016-03-22T14:18:53.09-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  112. 2016-03-22T14:18:53.09-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  113. 2016-03-22T14:18:53.09-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  114. 2016-03-22T14:18:53.11-0400 [App/0] OUT
  115. 2016-03-22T14:18:53.19-0400 [DEA/1] ERR Instance (index 0) failed to start accepting connections
  116. 2016-03-22T14:18:53.45-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"69b54075519e471f845710266a192952", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670733}
  117. 2016-03-22T14:18:53.46-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"69b54075519e471f845710266a192952", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670733}
  118. 2016-03-22T14:19:45.44-0400 [DEA/4] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  119. 2016-03-22T14:19:55.74-0400 [App/0] ERR Oops, cannot start the server.
  120. 2016-03-22T14:19:55.74-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  121. 2016-03-22T14:19:55.74-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  122. 2016-03-22T14:19:55.74-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  123. 2016-03-22T14:19:55.74-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  124. 2016-03-22T14:19:55.74-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  125. 2016-03-22T14:19:55.74-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  126. 2016-03-22T14:19:55.74-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  127. 2016-03-22T14:19:55.74-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  128. 2016-03-22T14:19:55.74-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  129. 2016-03-22T14:19:55.77-0400 [App/0] OUT
  130. 2016-03-22T14:19:55.87-0400 [DEA/4] ERR Instance (index 0) failed to start accepting connections
  131. 2016-03-22T14:19:55.89-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"0dd7326b327c4cbd94dc23ad05cd7dab", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670795}
  132. 2016-03-22T14:19:55.89-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"0dd7326b327c4cbd94dc23ad05cd7dab", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670795}
  133. 2016-03-22T14:19:55.96-0400 [DEA/7] OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  134. 2016-03-22T14:19:55.96-0400 [DEA/7] OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  135. 2016-03-22T14:19:55.96-0400 [DEA/7] OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  136. 2016-03-22T14:20:45.39-0400 [DEA/2] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  137. 2016-03-22T14:20:52.28-0400 [App/0] ERR Oops, cannot start the server.
  138. 2016-03-22T14:20:52.28-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  139. 2016-03-22T14:20:52.28-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  140. 2016-03-22T14:20:52.28-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  141. 2016-03-22T14:20:52.28-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  142. 2016-03-22T14:20:52.28-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  143. 2016-03-22T14:20:52.28-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  144. 2016-03-22T14:20:52.28-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  145. 2016-03-22T14:20:52.28-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  146. 2016-03-22T14:20:52.28-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  147. 2016-03-22T14:20:52.29-0400 [App/0] OUT
  148. 2016-03-22T14:20:52.37-0400 [DEA/2] ERR Instance (index 0) failed to start accepting connections
  149. 2016-03-22T14:20:52.39-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"0514086165b441dfb2f7a1bdc46bc42f", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670852}
  150. 2016-03-22T14:20:52.40-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"0514086165b441dfb2f7a1bdc46bc42f", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670852}
  151. 2016-03-22T14:22:30.50-0400 [DEA/7] OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  152. 2016-03-22T14:22:36.82-0400 [App/0] ERR Oops, cannot start the server.
  153. 2016-03-22T14:22:36.82-0400 [App/0] ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
  154. 2016-03-22T14:22:36.82-0400 [App/0] ERR at java.io.FileOutputStream.open0(Native Method)
  155. 2016-03-22T14:22:36.82-0400 [App/0] ERR at java.io.FileOutputStream.open(FileOutputStream.java:270)
  156. 2016-03-22T14:22:36.82-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
  157. 2016-03-22T14:22:36.82-0400 [App/0] ERR at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
  158. 2016-03-22T14:22:36.82-0400 [App/0] ERR at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
  159. 2016-03-22T14:22:36.82-0400 [App/0] ERR at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
  160. 2016-03-22T14:22:36.82-0400 [App/0] ERR at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
  161. 2016-03-22T14:22:36.82-0400 [App/0] ERR at play.core.server.ProdServerStart.main(ProdServerStart.scala)
  162. 2016-03-22T14:22:36.83-0400 [App/0] OUT
  163. 2016-03-22T14:22:36.92-0400 [DEA/7] ERR Instance (index 0) failed to start accepting connections
  164. 2016-03-22T14:22:36.93-0400 [API/1] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"411a0d25c9e04b859d92a311054566da", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670956}
  165. 2016-03-22T14:22:36.93-0400 [API/0] OUT App instance exited with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 payload: {"cc_partition"=>"default", "droplet"=>"3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2", "version"=>"d74e7e4f-7a23-456b-8890-9fd8858fbe2d", "instance"=>"411a0d25c9e04b859d92a311054566da", "index"=>0, "reason"=>"CRASHED", "exit_status"=>255, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1458670956}
  166. 2016-03-22T14:22:45.64-0400 [DEA/0] OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  167. 2016-03-22T14:22:45.64-0400 [DEA/0] OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
  168. 2016-03-22T14:22:45.64-0400 [DEA/0] OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2

所以主要的错误是

  1. ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)

进而导致

  1. ERR Instance (index 0) failed to start accepting connections

我甚至尝试了bluemix的内置自由服务,但我仍然得到错误。
编辑
我看着
https://github.com/yahoo/kafka-manager/issues/192
所以把我的procfile改成

  1. web: bin/kafka-manager -Dhttp.port=$PORT -Dpidfile.path=/tmp/kafka-manager.pid

但我还是会

  1. ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)

procfile命令没有执行吗?
问题:
我的设置正确吗?
这是在bluemix上部署此应用程序的正确方法吗?
如果我只是解压文件并从那里进行cf推送会更好吗?

wfsdck30

wfsdck301#

我是这样做的
解压缩dist
将application.ini更改为-dpidfile.path=/tmp/$app\u name.pid
创建一个procfile,它的web:bin/kafka manager-dhttp.port=$port
在bluemix中创建一个用户定义的环境变量
java\u home=/home/vcap/app/.java/jre
没有这个,kafka管理器就不会检测java。liberty buildpack设置了这个环境变量,但是它只暴露给在liberty上运行的java进程。由于kafka管理器应用程序运行它自己的jre,它将看不到它(因此必须手动设置它)。
使用java liberty服务创建bluemix应用程序
cf从解压dist的目录推送

sauutmhj

sauutmhj2#

看起来配置文件优先于命令行参数,因此我更改了配置文件中的路径文件,并且成功部署了应用程序。
编辑 dist/conf/application.ini 把它改成这样:

  1. -Dpidfile.path=/tmp/${{app_name}}.pid

sbt clean dist 再次创建一个新的zip文件。
最后运行 cf push 命令重新部署应用程序。

相关问题