For the java applications, we do not see Server startup in X ms in the logs, which suggests tomcat never completes its startup process, but the "failed to start accepting connections" error is consistent across buildpacks.
2014-10-01T09:47:55.82+0100 [STG] OUT -----> Downloaded app package (15M)
2014-10-01T09:47:57.96+0100 [STG] OUT -----> Downloaded app buildpack cache (211M)
2014-10-01T09:47:58.10+0100 [STG] ERR Cloning into '/tmp/buildpacks/java-buildpack'...
2014-10-01T09:47:59.22+0100 [STG] OUT -----> Java Buildpack Version: 717d8bf | https://github.com/cloudfoundry/java-buildpack.git#717d8bf
2014-10-01T09:47:59.32+0100 [STG] OUT -----> Downloading Open Jdk JRE 1.8.0_20 from https://download.run.pivotal.io/openjdk/lucid/x86_64/openjdk-1.8.0_20.tar.gz (found in cache)
2014-10-01T09:48:00.53+0100 [STG] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
2014-10-01T09:48:00.55+0100 [STG] OUT -----> Downloading Spring Auto Reconfiguration 1.5.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.5.0_RELEASE.jar (found in cache)
2014-10-01T09:48:00.56+0100 [STG] OUT Modifying /WEB-INF/web.xml for Auto Reconfiguration
2014-10-01T09:48:00.58+0100 [STG] OUT -----> Downloading Tomcat Instance 8.0.12 from https://download.run.pivotal.io/tomcat/tomcat-8.0.12.tar.gz (found in cache)
2014-10-01T09:48:00.74+0100 [STG] OUT Expanding Tomcat to .java-buildpack/tomcat (0.1s)
2014-10-01T09:48:00.76+0100 [STG] OUT -----> Downloading Tomcat Lifecycle Support 2.3.0_RELEASE from https://download.run.pivotal.io/tomcat-lifecycle-support/tomcat-lifecycle-support-2.3.0_RELEASE.jar (found in cache)
2014-10-01T09:48:00.78+0100 [STG] OUT -----> Downloading Tomcat Logging Support 2.3.0_RELEASE from https://download.run.pivotal.io/tomcat-logging-support/tomcat-logging-support-2.3.0_RELEASE.jar (found in cache)
2014-10-01T09:48:00.80+0100 [STG] OUT -----> Downloading Tomcat Access Logging Support 2.3.0_RELEASE from https://download.run.pivotal.io/tomcat-access-logging-support/tomcat-access-logging-support-2.3.0_RE... (found in cache)
2014-10-01T09:48:10.19+0100 [STG] OUT -----> Uploading droplet (60M)
2014-10-01T09:48:35.54+0100 [DEA] OUT Starting app instance (index 0) with guid 68c1a1b9-f46e-44b7-bf20-57953ae46805
2014-10-01T09:48:39.70+0100 [App/0] OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Initializing ProtocolHandler ["http-nio-62140"]
2014-10-01T09:48:39.71+0100 [App/0] OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Initialization processed in 549 ms
2014-10-01T09:48:39.72+0100 [App/0] OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Starting service Catalina
2014-10-01T09:48:39.72+0100 [App/0] OUT [CONTAINER] org.apache.catalina.core.StandardEngine INFO Starting Servlet Engine: Apache Tomcat/8.0.12
2014-10-01T09:48:39.75+0100 [App/0] OUT [CONTAINER] org.apache.catalina.startup.HostConfig INFO Deploying web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT
2014-10-01T09:48:42.46+0100 [App/0] OUT [CONTAINER] ing.AutoReconfigurationServletContainerInitializer INFO Initializing ServletContext with Auto-reconfiguration ApplicationContextInitializers
2014-10-01T09:48:42.46+0100 [App/0] OUT [CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO No Spring WebApplicationInitializer types detected on classpath
2014-10-01T09:48:42.86+0100 [App/0] OUT [CONTAINER] lina.core.ContainerBase.[Catalina].[localhost].[/] INFO Initializing Spring FrameworkServlet 'dispatcherServlet'
2014-10-01T09:48:43.07+0100 [App/0] OUT [CONTAINER] n.spring.CloudProfileApplicationContextInitializer INFO Adding 'cloud' to list of active profiles
2014-10-01T09:48:43.07+0100 [App/0] OUT [CONTAINER] g.CloudPropertySourceApplicationContextInitializer INFO Adding 'cloud' PropertySource to ApplicationContext
2014-10-01T09:48:43.14+0100 [App/0] OUT [CONTAINER] udAutoReconfigurationApplicationContextInitializer INFO Adding cloud service auto-reconfiguration to ApplicationContext
2014-10-01T09:48:43.52+0100 [App/0] OUT [CONTAINER] ing.DataSourceCloudServiceBeanFactoryPostProcessor INFO Auto-reconfiguring beans of type javax.sql.DataSource
2014-10-01T09:48:43.55+0100 [App/0] OUT [CONTAINER] ing.DataSourceCloudServiceBeanFactoryPostProcessor INFO No matching service found. Skipping auto-reconfiguration.
2014-10-01T09:48:43.56+0100 [App/0] OUT [CONTAINER] n.spring.MongoCloudServiceBeanFactoryPostProcessor INFO Auto-reconfiguring beans of type org.springframework.data.mongodb.MongoDbFactory
2014-10-01T09:48:43.56+0100 [App/0] OUT [CONTAINER] n.spring.MongoCloudServiceBeanFactoryPostProcessor INFO No matching service found. Skipping auto-reconfiguration.
2014-10-01T09:48:43.57+0100 [App/0] OUT [CONTAINER] .spring.RabbitCloudServiceBeanFactoryPostProcessor INFO Auto-reconfiguring beans of type org.springframework.amqp.rabbit.connection.ConnectionFactory
2014-10-01T09:48:43.57+0100 [App/0] OUT [CONTAINER] .spring.RabbitCloudServiceBeanFactoryPostProcessor INFO No matching service found. Skipping auto-reconfiguration.
2014-10-01T09:48:43.57+0100 [App/0] OUT [CONTAINER] n.spring.RedisCloudServiceBeanFactoryPostProcessor INFO Auto-reconfiguring beans of type org.springframework.data.redis.connection.RedisConnectionFactory
2014-10-01T09:48:43.58+0100 [App/0] OUT [CONTAINER] n.spring.RedisCloudServiceBeanFactoryPostProcessor INFO No matching service found. Skipping auto-reconfiguration.
2014-10-01T09:48:44.79+0100 [App/0] OUT [CONTAINER] org.apache.catalina.startup.HostConfig INFO Deployment of web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT has finished in 5,036 ms
2014-10-01T09:48:44.83+0100 [App/0] OUT [CONTAINER] org.apache.tomcat.util.net.NioSelectorPool INFO Using a shared selector for servlet write/read
2014-10-01T09:48:44.84+0100 [DEA] ERR Instance (index 0) failed to start accepting connections
2014-10-01T09:49:42.50+0100 [RTR] OUT ben-web-servlet-2-application.cfapps.io - [01/10/2014:08:49:42 +0000] "GET / HTTP/1.1" 200 2 "-" "curl/7.30.0" 10.10.2.122:61614 x_forwarded_for:"89.21.231.30" vcap_request_id:338d909e-a06c-446a-6d1f-d8c6dc6df29f response_time:0.097188002 app_id:68c1a1b9-f46e-44b7-bf20-57953ae46805
For the java applications, we do not see Server startup in X ms in the logs, which suggests tomcat never completes its startup process, but the "failed to start accepting connections" error is consistent across buildpacks.John,To begin with, you're not alone :) I've been chasing this problem since yesterday on PWS. So the problem is Cloud Foundry-wide, not just limited to Open Stack. In my analysis, we see the same error, but Tomcat 8 (or embedded Tomcat 7 in Spring Boot applications) services requests just fine. As an example:
2014-10-01T09:47:55.82+0100 [STG] OUT -----> Downloaded app package (15M)
2014-10-01T09:47:57.96+0100 [STG] OUT -----> Downloaded app buildpack cache (211M)
2014-10-01T09:47:58.10+0100 [STG] ERR Cloning into '/tmp/buildpacks/java-buildpack'...
2014-10-01T09:47:59.22+0100 [STG] OUT -----> Java Buildpack Version: 717d8bf | https://github.com/cloudfoundry/java-buildpack.git#717d8bf
2014-10-01T09:47:59.32+0100 [STG] OUT -----> Downloading Open Jdk JRE 1.8.0_20 from https://download.run.pivotal.io/openjdk/lucid/x86_64/openjdk-1.8.0_20.tar.gz (found in cache)
2014-10-01T09:48:00.53+0100 [STG] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
2014-10-01T09:48:00.55+0100 [STG] OUT -----> Downloading Spring Auto Reconfiguration 1.5.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.5.0_RELEASE.jar (found in cache)
2014-10-01T09:48:00.56+0100 [STG] OUT Modifying /WEB-INF/web.xml for Auto Reconfiguration
2014-10-01T09:48:00.58+0100 [STG] OUT -----> Downloading Tomcat Instance 8.0.12 from https://download.run.pivotal.io/tomcat/tomcat-8.0.12.tar.gz (found in cache)
2014-10-01T09:48:00.74+0100 [STG] OUT Expanding Tomcat to .java-buildpack/tomcat (0.1s)
2014-10-01T09:48:00.76+0100 [STG] OUT -----> Downloading Tomcat Lifecycle Support 2.3.0_RELEASE from https://download.run.pivotal.io/tomcat-lifecycle-support/tomcat-lifecycle-support-2.3.0_RELEASE.jar (found in cache)
2014-10-01T09:48:00.78+0100 [STG] OUT -----> Downloading Tomcat Logging Support 2.3.0_RELEASE from https://download.run.pivotal.io/tomcat-logging-support/tomcat-logging-support-2.3.0_RELEASE.jar (found in cache)
2014-10-01T09:48:00.80+0100 [STG] OUT -----> Downloading Tomcat Access Logging Support 2.3.0_RELEASE from https://download.run.pivotal.io/tomcat-access-logging-support/tomcat-access-logging-support-2.3.0_RE... (found in cache)
2014-10-01T09:48:10.19+0100 [STG] OUT -----> Uploading droplet (60M)
2014-10-01T09:48:35.54+0100 [DEA] OUT Starting app instance (index 0) with guid 68c1a1b9-f46e-44b7-bf20-57953ae46805
2014-10-01T09:48:39.70+0100 [App/0] OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Initializing ProtocolHandler ["http-nio-62140"]
2014-10-01T09:48:39.71+0100 [App/0] OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Initialization processed in 549 ms
2014-10-01T09:48:39.72+0100 [App/0] OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Starting service Catalina
...
2014-10-01T09:48:39.72+0100 [<span
We had similar issues with v2.5 of the java buildpack from a fresh v188 install. My first guess was it was related to that, but rolling back to v2.4 didnt help.
Luan, I will set up a WebEx for tomorrow between you and my colleague in NYC and send the output of the bosh command you requested.
John.
+---------------------------+---------+---------------+----------------+-----------------------+------+------+------+--------------+-------------+------------+------------+------------+
| Job/index | State | Resource Pool | IPs | Load | CPU | CPU | CPU | Memory Usage | Swap Usage | System | Ephemeral | Persistent |
| | | | | (avg01, avg05, avg15) | User | Sys | Wait | | | Disk Usage | Disk Usage | Disk Usage |
+---------------------------+---------+---------------+----------------+-----------------------+------+------+------+--------------+-------------+------------+------------+------------+
| unknown/unknown | running | az1_cf_small | 172.16.3.6 | 0.00, 0.01, 0.05 | 0.0% | 0.0% | 0.0% | 3% (61.9M) | 0% (0B) | 46% | 0% | n/a |
| unknown/unknown | running | az1_external | 172.16.2.6 | 0.00, 0.01, 0.05 | 0.0% | 0.1% | 0.1% | 3% (66.2M) | 0% (0B) | 46% | 0% | n/a |
| unknown/unknown | running | az2_cf_small | 172.16.3.7 | 0.00, 0.01, 0.05 | 0.0% | 0.0% | 0.1% | 3% (63.7M) | 0% (0B) | 46% | 0% | n/a |
| unknown/unknown | running | az2_external | 172.16.2.7 | 0.00, 0.01, 0.05 | 0.1% | 0.0% | 0.0% | 3% (66.1M) | 0% (0B) | 46% | 0% | n/a |
| cloud_controller_az1/0 | running | az1_cf_medium | 172.16.3.112 | 0.00, 0.01, 0.05 | 0.2% | 0.1% | 0.0% | 20% (775.9M) | 0% (660.0K) | 46% | 8% | n/a |
| cloud_controller_az2/0 | running | az2_cf_medium | 172.16.3.113 | 0.00, 0.01, 0.05 | 0.2% | 0.1% | 0.0% | 19% (762.0M) | 0% (144.0K) | 46% | 8% | n/a |
| core-mysql-az1/0 | running | az1_db | 172.16.4.101 | 0.03, 0.05, 0.05 | 0.0% | 0.1% | 0.0% | 4% (574.4M) | 0% (0B) | 46% | 1% | 3% |
| core-mysql-az1/1 | running | az1_db | 172.16.4.103 | 0.00, 0.01, 0.05 | 0.1% | 0.0% | 0.0% | 3% (514.5M) | 0% (0B) | 46% | 1% | 3% |
| core-mysql-az2/0 | running | az2_db | 172.16.4.102 | 0.00, 0.01, 0.05 | 0.1% | 0.0% | 0.0% | 3% (513.4M) | 0% (0B) | 46% | 1% | 3% |
| core-mysql-haproxy/0 | running | az2_db | 172.16.4.104 | 0.00, 0.01, 0.05 | 0.0% | 0.0% | 0.0% | 1% (200.8M) | 0% (0B) | 46% | 0% | n/a |
| | | | 10.100.132.248 | | | | | | | | | |
| dea_az1/0 | running | az1_dea | 172.16.3.116 | 0.00, 0.01, 0.05 | 0.2% | 0.2% | 0.0% | 7% (1.1G) | 0% (0B) | 46% | 3% | n/a |
| dea_az2/0 | running | az2_dea | 172.16.3.117 | 0.00, 0.01, 0.05 | 0.2% | 0.2% | 0.0% | 10% (1.6G) | 0% (0B) | 46% | 3% | n/a |
| etcd_az1/0 | running | az1_cf_small | 172.16.3.103 | 0.06, 0.11, 0.13 | 1.0% | 3.4% | 1.7% | 6% (118.9M) | 0% (0B) | 46% | 1% | 0% |
| etcd_az2/0 | running | az2_cf_small | 172.16.3.104 | 0.05, 0.08, 0.07 | 0.4% | 0.4% | 1.9% | 5% (102.3M) | 0% (0B) | 46% | 1% | 0% |
| haproxy_az1/0 | running | az1_cf_small | 172.16.2.101 | 0.00, 0.01, 0.05 | 0.0% | 0.1% | 0.1% | 4% (85.8M) | 0% (0B) | 46% | 1% | n/a |
| | | | 10.100.132.246 | | | | | | | | | |
| haproxy_az2/0 | running | az2_cf_small | 172.16.2.102 | 0.00, 0.01, 0.05 | 0.1% | 0.2% | 0.0% | 4% (80.2M) | 0% (0B) | 46% | 0% | n/a |
| | | | 10.100.132.247 | | | | | | | | | |
| health_manager_az1/0 | running | az1_cf_small | 172.16.3.105 | 0.00, 0.01, 0.05 | 0.4% | 0.0% | 0.1% | 6% (130.1M) | 0% (0B) | 46% | 2% | n/a |
| health_manager_az2/0 | running | az2_cf_small | 172.16.3.106 | 0.00, 0.01, 0.05 | 0.3% | 0.1% | 0.0% | 6% (127.9M) | 0% (0B) | 46% | 1% | n/a |
| loggregator_az1/0 | running | az1_cf_small | 172.16.3.108 | 0.00, 0.01, 0.05 | 0.1% | 0.1% | 0.0% | 4% (79.0M) | 0% (0B) | 46% | 1% | n/a |
| loggregator_az2/0 | running | az2_cf_small | 172.16.3.109 | 0.00, 0.01, 0.05 | 0.1% | 0.1% | 0.0% | 4% (77.0M) | 0% (0B) | 46% | 1% | n/a |
| loggregator_traffic_az1/0 | running | az1_cf_small | 172.16.3.110 | 0.00, 0.01, 0.05 | 0.1% | 0.2% | 0.0% | 4% (78.7M) | 0% (0B) | 46% | 1% | n/a |
| loggregator_traffic_az2/0 | running | az2_cf_small | 172.16.3.111 | 0.00, 0.01, 0.05 | 0.0% | 0.1% | 0.0% | 4% (72.8M) | 0% (0B) | 46% | 1% | n/a |
| login_az1/0 | running | az1_cf_small | 172.16.3.150 | 0.00, 0.01, 0.05 | 0.1% | 0.0% | 0.1% | 17% (348.5M) | 0% (0B) | 46% | 7% | n/a |
| login_az2/0 | running | az2_cf_small | 172.16.3.151 | 0.00, 0.01, 0.05 | 0.0% | 0.1% | 0.0% | 17% (342.8M) | 0% (0B) | 46% | 7% | n/a |
| nats_az1/0 | running | az1_cf_small | 172.16.3.101 | 0.00, 0.01, 0.05 | 0.3% | 0.1% | 0.0% | 6% (110.3M) | 0% (0B) | 46% | 2% | n/a |
| nats_az2/0 | running | az2_cf_small | 172.16.3.102 | 0.00, 0.01, 0.05 | 0.2% | 0.2% | 0.1% | 5% (99.3M) | 0% (0B) | 46% | 2% | n/a |
| postgres/0 | running | az1_cf_small | 172.16.4.110 | 0.00, 0.01, 0.05 | 0.2% | 0.1% | 0.0% | 5% (90.8M) | 0% (0B) | 46% | 1% | 0% |
| router_az1/0 | running | az1_cf_small | 172.16.3.114 | 0.00, 0.01, 0.05 | 0.2% | 0.2% | 0.0% | 5% (94.1M) | 0% (0B) | 46% | 1% | n/a |
| router_az2/0 | running | az2_cf_small | 172.16.3.115 | 0.00, 0.01, 0.05 | 0.2% | 0.4% | 0.0% | 5% (100.4M) | 0% (0B) | 46% | 1% | n/a |
| uaa_az1/0 | running | az1_cf_small | 172.16.3.107 | 0.00, 0.01, 0.05 | 0.0% | 0.1% | 0.1% | 18% (369.4M) | 0% (0B) | 46% | 7% | n/a |
| uaa_az2/0 | running | az2_cf_small | 172.16.3.130 | 0.00, 0.01, 0.05 | 0.1% | 0.0% | 0.1% | 19% (377.9M) | 0% (0B) | 46% | 7% | n/a |
+---------------------------+---------+---------------+----------------+-----------------------+------+------+------+--------------+-------------+------------+------------+------------+
Luan, the cf-scale-boot app highlights this problem for me - https://github.com/cf-platform-eng/cf-scale-boot. In fact any app I deploy in any buildpack. https://github.com/longnguyen11288/go-web-cf is a go example i tried that also failed.
We tried out a few things with sample apps from cf-acceptance-tests:
Ruby and go apps scaled to 20 instances quickly (though they still threw errors for connection timeout in the logs, they actually started up)
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/872c63c3-c912-4d9a-ad33-65431ef03564%40cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+unsubscribe@cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.