ibmbluemix:无法将dist部署到paas

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

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

sbt clean dist

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

bin/kafka-manager

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

sbt clean dist

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

也,
manifest.yml是

—
applications:
name: KafkaManager
host: KafkaManager
memory: 512M
domain: <domainName>

procfile是

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

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

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

2016-03-22T14:07:58.14-0400 [API/0]      OUT Created app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
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"})
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"})
2016-03-22T14:11:11.73-0400 [DEA/4]      OUT Got staging request for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:11:15.81-0400 [API/0]      OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"state"=>"STARTED"})
2016-03-22T14:11:17.38-0400 [STG/4]      OUT -----> Downloaded app package (65M)
2016-03-22T14:11:17.98-0400 [STG/0]      ERR     Cloning into '/tmp/buildpacks/java-buildpack'...
2016-03-22T14:11:22.67-0400 [STG/0]      OUT     -----> Java Buildpack Version: 9383db1 | https://github.com/cloudfoundry/java-buildpack.git#9383db1
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)
2016-03-22T14:11:26.31-0400 [STG/0]      OUT        Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
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)
2016-03-22T14:11:27.00-0400 [STG/0]      OUT        Memory Settings: -Xms768M -XX:MetaspaceSize=104857K -Xss1M -Xmx768M -XX:MaxMetaspaceSize=104857K
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)
2016-03-22T14:11:49.09-0400 [STG/4]      OUT -----> Uploading droplet (108M)
2016-03-22T14:11:57.92-0400 [DEA/4]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:12:07.01-0400 [DEA/4]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:12:45.39-0400 [DEA/6]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:12:52.85-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:12:52.85-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:12:52.85-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:12:52.86-0400 [App/0]      OUT     
2016-03-22T14:12:52.96-0400 [DEA/6]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:13:45.38-0400 [DEA/0]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:13:53.59-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:13:53.59-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:13:53.59-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:13:53.60-0400 [App/0]      OUT     
2016-03-22T14:13:53.67-0400 [DEA/0]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:14:45.38-0400 [DEA/7]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:14:51.62-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:14:51.62-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:14:51.62-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:14:51.63-0400 [App/0]      OUT     
2016-03-22T14:14:51.71-0400 [DEA/7]      ERR Instance (index 0) failed to start accepting connections
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}
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}
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"})
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"})
2016-03-22T14:16:22.40-0400 [API/0]      OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"state"=>"STOPPED"})
2016-03-22T14:16:23.98-0400 [DEA/0]      OUT Got staging request for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:16:29.24-0400 [API/0]      OUT Updated app with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2 ({"state"=>"STARTED"})
2016-03-22T14:16:30.83-0400 [STG/0]      OUT -----> Downloaded app package (65M)
2016-03-22T14:16:32.26-0400 [STG/0]      OUT -----> Downloaded app buildpack cache (45M)
2016-03-22T14:16:33.15-0400 [STG/0]      ERR     Cloning into '/tmp/buildpacks/java-buildpack'...
2016-03-22T14:16:38.17-0400 [STG/0]      OUT     -----> Java Buildpack Version: 9383db1 | https://github.com/cloudfoundry/java-buildpack.git#9383db1
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)
2016-03-22T14:16:40.16-0400 [STG/0]      OUT        Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s)
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)
2016-03-22T14:16:40.36-0400 [STG/0]      OUT        Memory Settings: -Xss995K -Xmx382293K -XX:MetaspaceSize=64M -Xms382293K -XX:MaxMetaspaceSize=64M
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)
2016-03-22T14:17:07.37-0400 [STG/0]      OUT -----> Uploading droplet (108M)
2016-03-22T14:17:14.84-0400 [DEA/4]      OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:17:14.84-0400 [DEA/4]      OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:17:14.84-0400 [DEA/4]      OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:17:27.60-0400 [DEA/0]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:17:38.19-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:17:38.19-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:17:38.19-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:17:38.21-0400 [App/0]      OUT     
2016-03-22T14:17:38.28-0400 [DEA/0]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:17:45.30-0400 [DEA/0]      OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:17:45.30-0400 [DEA/0]      OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:17:45.30-0400 [DEA/0]      OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:18:01.74-0400 [DEA/6]      OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:18:01.74-0400 [DEA/6]      OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:18:01.75-0400 [DEA/6]      OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:18:45.41-0400 [DEA/1]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:18:53.09-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:18:53.09-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:18:53.09-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:18:53.11-0400 [App/0]      OUT     
2016-03-22T14:18:53.19-0400 [DEA/1]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:19:45.44-0400 [DEA/4]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:19:55.74-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:19:55.74-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:19:55.74-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:19:55.77-0400 [App/0]      OUT     
2016-03-22T14:19:55.87-0400 [DEA/4]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:19:55.96-0400 [DEA/7]      OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:19:55.96-0400 [DEA/7]      OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:19:55.96-0400 [DEA/7]      OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:20:45.39-0400 [DEA/2]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:20:52.28-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:20:52.28-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:20:52.28-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:20:52.29-0400 [App/0]      OUT     
2016-03-22T14:20:52.37-0400 [DEA/2]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:22:30.50-0400 [DEA/7]      OUT Starting app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:22:36.82-0400 [App/0]      ERR     Oops, cannot start the server.
2016-03-22T14:22:36.82-0400 [App/0]      ERR java.io.FileNotFoundException: /var/run/${{app_name}}.pid (Permission denied)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at java.io.FileOutputStream.open0(Native Method)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at java.io.FileOutputStream.open(FileOutputStream.java:270)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
2016-03-22T14:22:36.82-0400 [App/0]      ERR    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
2016-03-22T14:22:36.83-0400 [App/0]      OUT     
2016-03-22T14:22:36.92-0400 [DEA/7]      ERR Instance (index 0) failed to start accepting connections
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}
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}
2016-03-22T14:22:45.64-0400 [DEA/0]      OUT Removing crash for app with id 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:22:45.64-0400 [DEA/0]      OUT Stopping app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2
2016-03-22T14:22:45.64-0400 [DEA/0]      OUT Stopped app instance (index 0) with guid 3a0a2af2-0ad4-42bf-8c06-b7bf4dad01c2

所以主要的错误是

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

进而导致

ERR Instance (index 0) failed to start accepting connections

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

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

但我还是会

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 把它改成这样:

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

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

相关问题