Date
1 - 11 of 11
404 Not Found: Requested route ('firedetect.bosh-lite.com') does not exist.
Deepak Arn <arn.deepak1@...>
I have deployed the java web application on local cloud foundry. While running the application, getting 404 not found
I have checked the recent logs: cf logs FireDetect --recent Connected, dumping recent logs for app FireDetect in org system / space Inter-PC as admin... 2017-04-03T22:18:59.35-0400 [API/0] OUT Created app with guid 829bbb00-93ea-4205-bd54-6d877cb9336c 2017-04-03T22:18:59.88-0400 [API/0] OUT Updated app with guid 829bbb00-93ea-4205-bd54-6d877cb9336c ({"route"=>"27ee5901-3836-4f1c-9b3a-38c43f5b4997", :verb=>"add", :relation=>"routes", :related_guid=>"27ee5901-3836-4f1c-9b3a-38c43f5b4997"}) 2017-04-03T22:19:12.63-0400 [API/0] OUT Updated app with guid 829bbb00-93ea-4205-bd54-6d877cb9336c ({"state"=>"STARTED"}) 2017-04-03T22:19:12.75-0400 [STG/0] OUT Downloading dotnet_core_buildpack... 2017-04-03T22:19:12.95-0400 [STG/0] OUT Downloading nodejs_buildpack... 2017-04-03T22:19:12.95-0400 [STG/0] OUT Downloading python_buildpack... 2017-04-03T22:19:12.95-0400 [STG/0] OUT Downloading go_buildpack... 2017-04-03T22:19:14.85-0400 [STG/0] OUT Downloading php_buildpack... 2017-04-03T22:19:53.18-0400 [STG/0] OUT Downloaded staticfile_buildpack (2.6M) 2017-04-03T22:19:53.18-0400 [STG/0] OUT Downloading ruby_buildpack... 2017-04-03T22:24:08.41-0400 [STG/0] OUT Downloaded python_buildpack (296.8M) 2017-04-03T22:24:08.41-0400 [STG/0] OUT Downloading binary_buildpack... 2017-04-03T22:24:47.28-0400 [STG/0] OUT Downloaded go_buildpack (340.7M) 2017-04-03T22:24:59.45-0400 [STG/0] OUT Downloaded ruby_buildpack (280.2M) 2017-04-03T22:25:12.93-0400 [STG/0] OUT Downloaded php_buildpack (332.7M) 2017-04-03T22:25:34.85-0400 [STG/0] OUT Downloaded dotnet_core_buildpack (437.4M) 2017-04-03T22:25:35.05-0400 [STG/0] OUT Downloaded binary_buildpack (49.1K) 2017-04-03T22:25:35.09-0400 [STG/0] OUT Creating container 2017-04-03T22:25:42.51-0400 [STG/0] OUT Successfully created container 2017-04-03T22:25:43.01-0400 [STG/0] OUT Downloading app package... 2017-04-03T22:25:43.41-0400 [STG/0] OUT Downloaded app package (310.5K) 2017-04-03T22:25:43.41-0400 [STG/0] OUT Staging... 2017-04-03T22:26:45.84-0400 [STG/0] OUT -----> Java Buildpack Version: v3.14 | https://github.com/cloudfoundry/java-buildpack.git#d5d58c6 2017-04-03T22:26:52.12-0400 [STG/0] OUT -----> Downloading Open Jdk JRE 1.8.0_121 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_121.tar.gz (5.9s) 2017-04-03T22:26:53.67-0400 [STG/0] OUT Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.5s) 2017-04-03T22:26:59.87-0400 [STG/0] OUT -----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz (6.1s) 2017-04-03T22:26:59.90-0400 [STG/0] OUT Memory Settings: -Xms681574K -XX:MetaspaceSize=104857K -Xss349K -Xmx681574K -XX:MaxMetaspaceSize=104857K 2017-04-03T22:27:00.15-0400 [STG/0] OUT -----> Downloading Container Certificate Trust Store 2.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-2.0.0_RELEASE.jar (0.2s) 2017-04-03T22:27:00.91-0400 [STG/0] OUT Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.7s) 2017-04-03T22:27:07.23-0400 [STG/0] OUT -----> Downloading Tomcat Instance 8.0.43 from https://java-buildpack.cloudfoundry.org/tomcat/tomcat-8.0.43.tar.gz (6.3s) 2017-04-03T22:27:07.45-0400 [STG/0] OUT Expanding Tomcat Instance to .java-buildpack/tomcat (0.2s) 2017-04-03T22:27:07.56-0400 [STG/0] OUT -----> Downloading Tomcat Lifecycle Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-lifecycle-support/tomcat-lifecycle-support-2.5.0_RELEASE.jar (0.1s) 2017-04-03T22:27:12.67-0400 [STG/0] OUT -----> Downloading Tomcat Logging Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-logging-support/tomcat-logging-support-2.5.0_RELEASE.jar (5.1s) 2017-04-03T22:27:12.79-0400 [STG/0] OUT -----> Downloading Tomcat Access Logging Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-access-logging-support/tomcat-access-logging-support-2.5.0_RELEASE.jar (0.1s) 2017-04-03T22:27:51.62-0400 [STG/0] OUT Exit status 0 2017-04-03T22:27:51.62-0400 [STG/0] OUT Staging complete 2017-04-03T22:27:51.62-0400 [STG/0] OUT Uploading droplet, build artifacts cache... 2017-04-03T22:27:51.62-0400 [STG/0] OUT Uploading build artifacts cache... 2017-04-03T22:27:51.62-0400 [STG/0] OUT Uploading droplet... 2017-04-03T22:27:57.11-0400 [STG/0] OUT Uploaded build artifacts cache (52.7M) 2017-04-03T22:28:06.15-0400 [STG/0] OUT Uploaded droplet (52.1M) 2017-04-03T22:28:06.17-0400 [STG/0] OUT Uploading complete 2017-04-03T22:28:06.40-0400 [STG/0] OUT Destroying container 2017-04-03T22:28:09.78-0400 [STG/0] OUT Successfully destroyed container 2017-04-03T22:28:15.00-0400 [CELL/0] OUT Creating container 2017-04-03T22:28:15.73-0400 [CELL/0] OUT Successfully created container 2017-04-03T22:28:22.72-0400 [CELL/0] OUT Starting health monitoring of container 2017-04-03T22:28:36.65-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Initializing ProtocolHandler ["http-nio-8080"] 2017-04-03T22:28:36.66-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Initialization processed in 1663 ms 2017-04-03T22:28:36.71-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Starting service Catalina 2017-04-03T22:28:36.72-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardEngine INFO Starting Servlet Engine: Apache Tomcat/8.0.43 2017-04-03T22:28:36.75-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.HostConfig INFO Deploying web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT 2017-04-03T22:28:37.53-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.jasper.servlet.TldScanner INFO At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2017-04-03T22:28:37.65-0400 [APP/PROC/WEB/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 900 ms 2017-04-03T22:28:37.65-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Starting ProtocolHandler ["http-nio-8080"] 2017-04-03T22:28:37.67-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.tomcat.util.net.NioSelectorPool INFO Using a shared selector for servlet write/read 2017-04-03T22:28:37.69-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Server startup in 1028 ms 2017-04-03T22:28:39.42-0400 [CELL/0] OUT Container became healthy 2017-04-03T22:30:46.29-0400 [APP/PROC/WEB/0]OUT hey i m here 2017-04-03T22:30:46.30-0400 [APP/PROC/WEB/0]OUT Thread1 running 2017-04-03T22:30:46.30-0400 [APP/PROC/WEB/0]OUT Exception caught 2017-04-03T22:30:46.30-0400 [APP/PROC/WEB/0]OUT selected source = sf(a)192.168.188.131:9003 2017-04-03T22:30:46.49-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-04T02:30:46.229+0000] "GET / HTTP/1.1" 200 0 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36" "10.244.0.34:33632" "10.244.16.4:61000" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"d5ac0346-2133-47ba-5aee-e4485154f298" response_time:0.136038798 app_id:"829bbb00-93ea-4205-bd54-6d877cb9336c" app_index:"0" 2017-04-03T22:30:47.38-0400 [APP/PROC/WEB/0]ERR sf(a)192.168.188.131:9003 died - exiting (java.net.ConnectException: Connection refused (Connection refused)) 2017-04-03T22:30:47.38-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Pausing ProtocolHandler ["http-nio-8080"] 2017-04-03T22:30:47.59-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Stopping service Catalina 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.loader.WebappClassLoaderBase WARNING The web application [ROOT] appears to have started a thread named [Thread-4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Object.wait(Native Method) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Object.wait(Object.java:502) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.packet.PhoenixSource.awaitStartup(Unknown Source) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.message.MoteIF.init(Unknown Source) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.message.MoteIF.<init>(Unknown Source) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT com.srk.pkg.MsgReader.<init>(MsgReader.java:73) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT com.srk.pkg.MsgReader$Deepak.run(MsgReader.java:43) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Thread.run(Thread.java:745) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.loader.WebappClassLoaderBase WARNING The web application [ROOT] appears to have started a thread named [Thread-5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Object.wait(Native Method) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Thread.join(Thread.java:1249) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Thread.join(Thread.java:1323) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.ApplicationShutdownHooks.runHooks(ApplicationShutdownHooks.java:106) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.ApplicationShutdownHooks$1.run(ApplicationShutdownHooks.java:46) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Shutdown.runHooks(Shutdown.java:123) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Shutdown.sequence(Shutdown.java:167) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Shutdown.exit(Shutdown.java:212) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.Runtime.exit(Runtime.java:109) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT java.lang.System.exit(System.java:971) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.packet.PhoenixSource.error(Unknown Source) 2017-04-03T22:30:47.64-0400 [APP/PROC/WEB/0]OUT net.tinyos.packet.PhoenixSource.run(Unknown Source) 2017-04-03T22:30:47.66-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Stopping ProtocolHandler ["http-nio-8080"] 2017-04-03T22:30:47.67-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Destroying ProtocolHandler ["http-nio-8080"] 2017-04-03T22:30:47.69-0400 [APP/PROC/WEB/0]OUT Exit status 2 2017-04-03T22:30:47.82-0400 [CELL/0] OUT Exit status 0 2017-04-03T22:30:47.85-0400 [CELL/0] OUT Destroying container 2017-04-03T22:30:49.58-0400 [API/0] OUT Process has crashed with type: "web" 2017-04-03T22:30:49.88-0400 [API/0] OUT App instance exited with guid 829bbb00-93ea-4205-bd54-6d877cb9336c payload: {"instance"=>"", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 2 error(s) occurred:\n\n* Exited with status 2\n* cancelled\n* cancelled", "crash_count"=>1, "crash_timestamp"=>1491273047827277685, "version"=>"a6d981d9-72eb-4169-8808-5925218cf408"} 2017-04-03T22:30:49.96-0400 [CELL/0] OUT Successfully destroyed container 2017-04-03T22:30:50.04-0400 [CELL/0] OUT Creating container 2017-04-03T22:30:50.89-0400 [CELL/0] OUT Successfully created container 2017-04-03T22:30:53.04-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-04T02:30:47.829+0000] "GET /favicon.ico HTTP/1.1" 502 0 67 "http://firedetect.bosh-lite.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.110 Safari/537.36" "10.244.0.34:33632" "10.244.16.4:61000" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"29e17fac-ef03-4e5e-693c-a24052fd3046" response_time:5.216576128 app_id:"829bbb00-93ea-4205-bd54-6d877cb9336c" app_index:"0" 2017-04-03T22:30:56.68-0400 [CELL/0] OUT Starting health monitoring of container Anyone please suggest
|
|
Sze Siong Teo <szesiong@...>
Hi,
The log shows that your app crashed hence 404. But why do you spawn thread in a web app? You should let the app server handle that. Regards, Teo
|
|
Deepak Arn <arn.deepak1@...>
Hi Teo,
Thanks for the reply. I have changed the code, Now application code is not handling any thread by itself Now getting the error 502 Bad Gateway: Registered endpoint failed to handle the request. As per my understanding, it's some networking issue, which is giving Connection Refused every time when application on cloud foundry trying to make connection from outside cloud foundry. As cf_release is running locally on virtual box and other application also running on same system. So it won't give any network error. I also tried with sample application(code snippet is below), still giving Connection refused error. It may be the case, cloud foundry requires some configuration to allow egress or ingress. Could you please suggest 2017-04-05T16:14:01.08-0400 [APP/PROC/WEB/0]ERR sf(a)192.168.188.131:8080 died - exiting (java.net.ConnectException: Connection refused (Connection refused)) String url = "http://192.168.144.39:8081/Servlet2/?Temp=1"; URL siteURL = new URL(url); HttpURLConnection connection = (HttpURLConnection) siteURL.openConnection(); connection.setRequestMethod("GET"); connection.connect(); int code = connection.getResponseCode(); if (code == 200) { result = "Green"; out.println(output); } Thanks,
|
|
Sze Siong Teo <szesiong@...>
AFAIK, all *.bosh-lite.com resolves to 10.244.0.34
Did you setup via vagrant or manually? There scripts within the VM itself that will add iptables rules to route traffic to proper interface for 10.244.0.x if I remember correctly. My bosh-lite.com setup is a bit different due to some reasons that I can't use vagrant on my machine but I would suggest vagrant for simplicity. I don't remember what's the subnet created by vagrant for the VM, but you might need to use 10.244.0.34 if it's not using the 192.168.x.x network. Also, make sure you are able to ping the containers in bosh-lite. In the VM itself, perform a 'bosh vms' to check all status of warden containers, if some not responding use 'bosh cck' to repair them (usually happens after your VM restart).
|
|
Deepak Arn <arn.deepak1@...>
I have installed the vagrant and didn't make any change in the network configuration by myself.
$./bin/add-route + old_ips=10.244.0.0/19 + ips=10.244.0.0/16 + gw=192.168.50.4 + echo 'Adding the following route entry to your local route table to enable direct container access: 10.244.0.0/16 via 192.168.50.4. Your sudo password may be required.' ++ uname + '[' Linux = Darwin ']' ++ uname + '[' Linux = Linux ']' + type route + sudo route del -net 10.244.0.0/19 gw 192.168.50.4 SIOCDELRT: No such process + sudo route add -net 10.244.0.0/16 gw 192.168.50.4 SIOCADDRT: File exists I tried to ping the host machine and virtual box(where bosh-lite is running) from inside the application container(cf ssh [App_Name]), the destination port is unreachable vcap(a)6e223f67-0574-4c32-7d14-615707291a59:~$ ping 192.168.50.1 PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data. From 10.255.47.1 icmp_seq=1 Destination Port Unreachable From 10.255.47.1 icmp_seq=2 Destination Port Unreachable From 10.255.47.1 icmp_seq=3 Destination Port Unreachable So far, all vms' are running(bosh vms). If there is a need to config network config from vagrant or virtual box, Please suggest, what changes I need to do to fix this. Thanks,
|
|
Sze Siong Teo <szesiong@...>
By default, bosh-lite is configured to use ASG if I'm not wrong as I couldn't get "cf allow-access ..." as a registered command.
You will need to configure the network to allow proper egress to your host machine or virtualbox IP range through https://docs.cloudfoundry.org/adminguide/app-sec-groups.html
|
|
Deepak Arn <arn.deepak1@...>
Hi, I have changed the range of security group for public_networks in cf-release/bosh-lite/deployments/cf.yml
- name: public_networks rules: - destination: 0.0.0.0-9.255.255.255 protocol: all - destination: 10.0.0.0-169.253.255.255 protocol: all - destination: 169.255.0.0-172.15.255.255 protocol: all - destination: 172.32.0.0-192.168.255.255 protocol: all - destination: 192.169.0.0-255.255.255.255 protocol: all Then to reflect the changes in the deployment, follow the below steps: cf-release$ bosh deployment ~/workspace/cf-release/bosh-lite/deployments/cf.yml Deployment set to '/home/deepak/workspace/cf-release/bosh-lite/deployments/cf.yml' deepak(a)deepak-OptiPlex-7010:~/workspace/cf-release$ bosh deploy but when I am checking the security group of public_networks using cf_cli, the changes are not refected cf-release$ cf security-group public_networks Getting info for security group public_networks as admin OK Name public_networks Rules [ { "destination": "0.0.0.0-9.255.255.255", "protocol": "all" }, { "destination": "11.0.0.0-169.253.255.255", "protocol": "all" }, { "destination": "169.255.0.0-172.15.255.255", "protocol": "all" }, { "destination": "172.32.0.0-192.167.255.255", "protocol": "all" }, { "destination": "192.169.0.0-255.255.255.255", "protocol": "all" } ] Organization Space #0 system Inter-PC Please correct, if I am doing anything wrong Thanks
|
|
Sze Siong Teo <szesiong@...>
For updating ASG, you don't need to run 'bosh deploy'
https://docs.cloudfoundry.org/adminguide/app-sec-groups.html#updating-groups You can use this tool to generate the rules from yaml https://github.com/cloudfoundry-incubator/asg-creator
|
|
Deepak Arn <arn.deepak1@...>
I have created the new security group
cf security-group private-network Getting info for security group private-network as admin OK Name private-network Rules [ { "destination": "10.0.0.0-10.255.255.255", "ports": "443", "protocol": "tcp" }, { "destination": "172.16.0.0-172.31.255.255", "ports": "9003", "protocol": "tcp" }, { "destination": "192.168.0.0-192.168.255.255", "ports": "443", "protocol": "tcp" } ] Organization Space #0 system Inter-PC Still in the logs its not giving Connection Refused error, but still 502 response code, please see the logs below: 2017-04-07T10:02:01.85-0400 [CELL/0] OUT Container became healthy 2017-04-07T10:03:38.63-0400 [CELL/0] ERR Failed to destroy container 2017-04-07T10:05:56.79-0400 [API/0] OUT Updated app with guid 804c0c7c-3d3a-4e91-b0bc-0bced8a7d907 ({"state"=>"STOPPED"}) 2017-04-07T10:05:56.80-0400 [CELL/0] OUT Exit status 0 2017-04-07T10:05:56.80-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Pausing ProtocolHandler ["http-nio-8080"] 2017-04-07T10:05:56.86-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Stopping service Catalina 2017-04-07T10:05:56.91-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Stopping ProtocolHandler ["http-nio-8080"] 2017-04-07T10:05:56.92-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Destroying ProtocolHandler ["http-nio-8080"] 2017-04-07T10:05:56.93-0400 [APP/PROC/WEB/0]OUT Exit status 143 2017-04-07T10:05:56.93-0400 [CELL/0] OUT Destroying container 2017-04-07T10:05:57.20-0400 [CELL/0] OUT Successfully destroyed container 2017-04-07T10:06:12.10-0400 [API/0] OUT Updated app with guid 804c0c7c-3d3a-4e91-b0bc-0bced8a7d907 ({"state"=>"STARTED"}) 2017-04-07T10:06:12.13-0400 [CELL/0] OUT Creating container 2017-04-07T10:06:12.45-0400 [CELL/0] OUT Successfully created container 2017-04-07T10:06:14.67-0400 [CELL/0] OUT Starting health monitoring of container 2017-04-07T10:06:15.52-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Initializing ProtocolHandler ["http-nio-8080"] 2017-04-07T10:06:15.53-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Initialization processed in 498 ms 2017-04-07T10:06:15.54-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardService INFO Starting service Catalina 2017-04-07T10:06:15.54-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.core.StandardEngine INFO Starting Servlet Engine: Apache Tomcat/8.0.43 2017-04-07T10:06:15.56-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.HostConfig INFO Deploying web application directory /home/vcap/app/.java-buildpack/tomcat/webapps/ROOT 2017-04-07T10:06:16.03-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.jasper.servlet.TldScanner INFO At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. 2017-04-07T10:06:16.13-0400 [APP/PROC/WEB/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 568 ms 2017-04-07T10:06:16.13-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Starting ProtocolHandler ["http-nio-8080"] 2017-04-07T10:06:16.15-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.tomcat.util.net.NioSelectorPool INFO Using a shared selector for servlet write/read 2017-04-07T10:06:16.16-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.catalina.startup.Catalina INFO Server startup in 632 ms 2017-04-07T10:06:16.76-0400 [CELL/0] OUT Container became healthy 2017-04-07T10:07:57.36-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-07T14:07:42.366+0000] "GET / HTTP/1.1" 502 0 67 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" "10.244.0.34:60202" "10.244.16.5:60024" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"419c5248-9c18-4c4f-4f55-96533d32c5c3" response_time:15.002796164 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-07T10:08:23.84-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-07T14:08:08.837+0000] "GET / HTTP/1.1" 502 0 67 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" "10.244.0.34:60202" "10.244.16.5:60024" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"43e42e24-f2db-487a-62f4-b9fc3b4524d0" response_time:15.00634438 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-07T10:09:57.06-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-07T14:09:42.060+0000] "GET / HTTP/1.1" 502 0 67 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" "10.244.0.34:60202" "10.244.16.5:60024" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"97396a4d-7dff-461e-7cc8-515a43e7ed2a" response_time:15.003535923 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0"
|
|
Sze Siong Teo <szesiong@...>
What is the hostname you are trying to access from outside? And are you getting connection refused or 502 bad gateway?
If connection refused then it is network routing issue if 502 it is very likely due to some of the containers running your app stucked or need to restart because nginx couldn't connect to it. Also, ensure the hostname you are hitting is the same as listed the your app listed in 'cf apps' URLs column.
|
|
Deepak Arn <arn.deepak1@...>
I am trying to receive packets from outside to the application deployed on CF. Below is the code link, which I deployed on the CF
https://github.com/aerondeepak/FireDetect/blob/master/workspace123/Web2210_1/src/com/srk/pkg/MsgReader.java Now the problem is that, sometime it works and sometimes it start giving 502 error code. Logs as follow 2017-04-10T07:42:26.10-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:26.099+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35102" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"60e48bc9-79b9-4ee0-6d4b-8c4e51e374e4" response_time:0.004780496 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:42:26.89-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:26.891+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35112" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"5201afed-8a50-4f3e-59e6-d2bb4a6bf946" response_time:0.002842261 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:42:27.56-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:27.555+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35120" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"1a999304-4674-4421-7667-bf72b8d673e8" response_time:0.00615609 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:42:28.14-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:28.137+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35128" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"2c2297a7-a21d-4000-55b6-e3df98c7a837" response_time:0.002684419 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:42:28.99-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:28.994+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35146" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"6ce25e45-31c0-4c0e-4389-4f2a8237db59" response_time:0.004043811 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:42:29.79-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:29.796+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35158" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"b88470fd-388c-46aa-63aa-86f22d7f1ac2" response_time:0.001441524 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:42:30.64-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:42:30.644+0000] "GET / HTTP/1.1" 200 0 108 "-" "curl/7.47.0" "10.244.0.34:35170" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"a591f0c4-b80e-48a6-4599-c6763f746e02" response_time:0.004055264 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:44:38.30-0400 [RTR/0] OUT firedetect.bosh-lite.com - [2017-04-10T11:44:23.301+0000] "GET / HTTP/1.1" 502 0 67 "-" "curl/7.47.0" "10.244.0.34:36668" "10.244.16.5:60036" x_forwarded_for:"192.168.50.1, 10.244.0.34" x_forwarded_proto:"http" vcap_request_id:"a9cf41d3-46ca-4af4-7e5f-3be0bd004ea2" response_time:15.004394412 app_id:"804c0c7c-3d3a-4e91-b0bc-0bced8a7d907" app_index:"0" 2017-04-10T07:44:55.71-0400 [API/0] OUT Updated app with guid 804c0c7c-3d3a-4e91-b0bc-0bced8a7d907 ({"state"=>"STOPPED"}) 2017-04-10T07:44:55.71-0400 [APP/PROC/WEB/0]OUT [CONTAINER] org.apache.coyote.http11.Http11NioProtocol INFO Pausing ProtocolHandler ["http-nio-8080"] 2017-04-10T07:44:55.72-0400 [CELL/0] OUT Exit status 0 Thanks
|
|