Skip to content

Error restarting application: Start app timeout #10

@srinat999

Description

@srinat999

Hi,

I have been trying to set this up in my CF installation and my startup just times out with this error Error restarting application: Start app timeout. Here is the full startup log:

2016-07-05T14:39:38.97+0000 [API/0]      OUT Updated app with guid 75313400-0178-484b-b610-dbfd13a25039 ({"name"=>"cf-webui", "memory"=>512, "environment_json"=>"PRIVATE DATA HIDDEN"})
2016-07-05T14:39:44.43+0000 [API/0]      OUT Updated app with guid 75313400-0178-484b-b610-dbfd13a25039 ({"state"=>"STOPPED"})
2016-07-05T14:39:46.16+0000 [API/0]      OUT Updated app with guid 75313400-0178-484b-b610-dbfd13a25039 ({"state"=>"STARTED"})
2016-07-05T14:40:09.84+0000 [DEA/0]      OUT Got staging request for app with id 75313400-0178-484b-b610-dbfd13a25039
2016-07-05T14:40:11.36+0000 [STG/0]      OUT -----> Downloaded app package (592K)
2016-07-05T14:40:11.43+0000 [STG/0]      OUT -----> Downloaded app buildpack cache (4.0K)
2016-07-05T14:40:11.58+0000 [STG/0]      ERR Cloning into '/tmp/buildpacks/staticfile-buildpack'...
2016-07-05T14:40:19.63+0000 [STG/0]      OUT Submodule 'compile-extensions' (https://github.com/cloudfoundry/compile-extensions.git) registered for path 'compile-extensions'
2016-07-05T14:40:19.65+0000 [STG/0]      ERR Cloning into 'compile-extensions'...
2016-07-05T14:40:24.25+0000 [STG/0]      OUT Submodule path 'compile-extensions': checked out '4a0e48afc46c1d467b7c75a8ae5e6f3a044d3d64'
2016-07-05T14:40:24.34+0000 [STG/0]      OUT -------> Buildpack version 1.3.9
2016-07-05T14:40:46.33+0000 [STG/0]      OUT Downloaded [https://pivotal-buildpacks.s3.amazonaws.com/concourse-binaries/nginx/nginx-1.11.1-linux-x64.tgz]
2016-07-05T14:40:46.33+0000 [STG/0]      OUT -----> Using root folder
2016-07-05T14:40:46.33+0000 [STG/0]      OUT -----> Copying project files into public/
2016-07-05T14:40:46.34+0000 [STG/0]      OUT -----> Setting up nginx
2016-07-05T14:40:47.41+0000 [STG/0]      OUT -----> Uploading droplet (3.2M)
2016-07-05T14:40:49.90+0000 [DEA/0]      OUT Starting app instance (index 0) with guid 75313400-0178-484b-b610-dbfd13a25039
2016-07-05T14:41:02.49+0000 [API/0]      OUT App instance exited with guid 75313400-0178-484b-b610-dbfd13a25039 payload: {"cc_partition"=>"default", "droplet"=>"75313400-0178-484b-b610-dbfd13a25039", "version"=>"9c1cc740-af3f-455b-97c2-7466676c9d54", "instance"=>"d9f759ad8f454a34a2bfb2401d22e5d1", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1467729687}
2016-07-05T14:41:02.49+0000 [API/0]      OUT App instance exited with guid 75313400-0178-484b-b610-dbfd13a25039 payload: {"cc_partition"=>"default", "droplet"=>"75313400-0178-484b-b610-dbfd13a25039", "version"=>"9c1cc740-af3f-455b-97c2-7466676c9d54", "instance"=>"d9f759ad8f454a34a2bfb2401d22e5d1", "index"=>0, "reason"=>"CRASHED", "exit_status"=>1, "exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1467729687}
2016-07-05T14:41:27.54+0000 [App/0]      ERR 2016/07/05 14:40:51 [emerg] 29#0: host not found in upstream "api.sys-cfisbtest.it-platforms.net" in /home/vcap/app/nginx/conf/nginx.conf:41
2016-07-05T14:41:27.54+0000 [App/0]      OUT
2016-07-05T14:41:27.57+0000 [DEA/0]      ERR Instance (index 0) failed to start accepting connections
2016-07-05T14:41:29.38+0000 [DEA/0]      OUT Removing crash for app with id 75313400-0178-484b-b610-dbfd13a25039
2016-07-05T14:41:29.38+0000 [DEA/0]      OUT Stopping app instance (index 0) with guid 75313400-0178-484b-b610-dbfd13a25039
2016-07-05T14:41:29.38+0000 [DEA/0]      OUT Stopped app instance (index 0) with guid 75313400-0178-484b-b610-dbfd13a25039

My YAML file looks like this:


---
applications:
- name: cf-webui
  memory: 512M
  host: cf-webui
  path: ./build
  env:
    API_ENDPOINT: http://api.sys-cfisbtest.it-platforms.net
    # Use Google DNS by default
    NGINX_RESOLVER: 30.0.0.3
    #Enforce https is used (using x_forwarded_proto check) .Default: enabled
    FORCE_HTTPS: 0

As you can see my DNS server is different from the normal Google DNS. But the resolution seems to go through fine.

$ nslookup api.sys-cfisbtest.it-platforms.net
Server:         30.0.0.3
Address:        30.0.0.3#53

Name:   api.sys-cfisbtest.it-platforms.net
Address: 30.0.0.125

Not sure what I am missing here. Any help is appreciated.

PS: I am in a corporate network and am under a proxy

Thanks
Sreenath

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions