cloudfoundry-community-attic / bosh-cloudfoundry

Create, scale and upgrade your company's own Cloud Foundry
https://github.com/cloudfoundry-community/bosh-cloudfoundry#readme
MIT License
90 stars 30 forks source link

bosh cf deploy fails at final vmc register step with CFoundry::BadResponse: 500 #132

Closed mrdavidlaing closed 11 years ago

mrdavidlaing commented 11 years ago

Following the instructions to create a new CF on AWS us-west-2b succeeds (with a little massaging) all the way up to the final vmc register step, when it fails as shown below.

vcap@ip-10-245-25-35:~$ bosh cf prepare system production
CloudFoundry system set to /var/vcap/store/systems/production
Current BOSH is 'http://54.244.240.20:25555'
Checking that DNS api.davidlaing.net resolves to IP address 54.245.229.68... ok
Checking that DNS demoapp.davidlaing.net resolves to IP address 54.245.229.68... ok
Reusing security group cloudfoundry-production
 -> no additional ports opened
Using BOSH release name appcloud-master/latest (latest)
Using stemcell bosh-stemcell 0.7.0
Deployment set to `/var/vcap/store/systems/production/deployments/production-core.yml'
$ bosh cf deploy
..snip...
Updating job core
  core/0 (canary) (00:03:09)                                                                        
Done                    1/1 00:03:09                                                                

Task 27 done
Started     2013-03-05 01:42:36 UTC
Finished    2013-03-05 01:49:09 UTC
Duration    00:06:33

Deployed `production-core.yml' to `microbosh-aws-us-west-2-16'
sudo gem install vmc --no-ri --no-rdoc
Fetching: interact-0.5.2.gem (100%)
Successfully installed interact-0.5.2
Fetching: multipart-post-1.2.0.gem (100%)
Successfully installed multipart-post-1.2.0
Fetching: multi_json-1.4.0.gem (100%)
Successfully installed multi_json-1.4.0
Fetching: rubyzip-0.9.9.gem (100%)
Successfully installed rubyzip-0.9.9
Fetching: cfoundry-0.4.21.gem (100%)
Successfully installed cfoundry-0.4.21
Fetching: clouseau-0.0.2.gem (100%)
Successfully installed clouseau-0.0.2
Fetching: mothership-0.3.5.gem (100%)
Successfully installed mothership-0.3.5
Fetching: manifests-vmc-plugin-0.4.19.gem (100%)
Successfully installed manifests-vmc-plugin-0.4.19
Fetching: tunnel-dummy-vmc-plugin-0.0.2.gem (100%)
Successfully installed tunnel-dummy-vmc-plugin-0.0.2
Fetching: vmc-0.4.7.gem (100%)
Successfully installed vmc-0.4.7
Done installing documentation for interact, multipart-post, multi_json, rubyzip, cfoundry, clouseau, mothership, manifests-vmc-plugin, tunnel-dummy-vmc-plugin, vmc (0 sec).
10 gems installed
vmc target http://api.davidlaing.net
Setting target to http://api.davidlaing.net... OK
vmc register david@davidlaing.com --password 08e90e2xxxx --verify 08e90e215xxxxx
target: http://api.davidlaing.net

Creating user... OK
CFoundry::BadResponse: 500: <html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - Servlet.init() for servlet spring threw exception</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Servlet.init() for servlet spring threw exception</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet.init() for servlet spring threw exception
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
</pre></p><p><b>root cause</b> <pre>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0': Cannot resolve reference to bean 'applicationProperties' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in ServletContext resource [/WEB-INF/spring/env.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.Properties[]' for property 'propertiesArray'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.LinkedHashMap] to required type [java.util.Properties] for property 'propertiesArray[1]': PropertyEditor [org.springframework.beans.propertyeditors.PropertiesEditor] returned inappropriate value of type [java.util.LinkedHashMap]
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:649)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
</pre></p><p><b>root cause</b> <pre>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationProperties' defined in ServletContext resource [/WEB-INF/spring/env.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.Properties[]' for property 'propertiesArray'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.LinkedHashMap] to required type [java.util.Properties] for property 'propertiesArray[1]': PropertyEditor [org.springframework.beans.propertyeditors.PropertiesEditor] returned inappropriate value of type [java.util.LinkedHashMap]
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:649)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
</pre></p><p><b>root cause</b> <pre>org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.util.Properties[]' for property 'propertiesArray'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.util.LinkedHashMap] to required type [java.util.Properties] for property 'propertiesArray[1]': PropertyEditor [org.springframework.beans.propertyeditors.PropertiesEditor] returned inappropriate value of type [java.util.LinkedHashMap]
    org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:490)
    org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
    org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:649)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
</pre></p><p><b>root cause</b> <pre>java.lang.IllegalArgumentException: Cannot convert value of type [java.util.LinkedHashMap] to required type [java.util.Properties] for property 'propertiesArray[1]': PropertyEditor [org.springframework.beans.propertyeditors.PropertiesEditor] returned inappropriate value of type [java.util.LinkedHashMap]
    org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:237)
    org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:110)
    org.springframework.beans.TypeConverterDelegate.convertToTypedArray(TypeConverterDelegate.java:445)
    org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:175)
    org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
    org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
    org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:649)
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
    org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)
    org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)
    org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)
    org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)
    org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)
    javax.servlet.GenericServlet.init(GenericServlet.java:160)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/7.0.32 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.32</h3></body></html>
For more information, see ~/.vmc/crash
/usr/local/lib/ruby/1.9.1/rake/file_utils.rb:53:in `block in create_shell_runner': Command failed with status (1): [vmc register david@davidlaing.com --passwo...] (RuntimeError)
    from /usr/local/lib/ruby/1.9.1/rake/file_utils.rb:45:in `call'
    from /usr/local/lib/ruby/1.9.1/rake/file_utils.rb:45:in `sh'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh-cloudfoundry-0.6.0/lib/bosh/cli/commands/cf.rb:165:in `deploy'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/command_handler.rb:57:in `run'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/runner.rb:61:in `run'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/lib/cli/runner.rb:18:in `run'
    from /usr/local/lib/ruby/gems/1.9.1/gems/bosh_cli-1.0.3/bin/bosh:16:in `<top (required)>'
    from /usr/local/bin/bosh:23:in `load'
    from /usr/local/bin/bosh:23:in `<main>'
mrdavidlaing commented 11 years ago

Not sure if this is relevant, but here are the contents of /var/vcap/store/systems/production/deployments/production-core.yml

vcap@ip-10-245-25-35:~$ cat /var/vcap/store/systems/production/deployments/production-core.yml
--- 
name: production-core
director_uuid: 833140c3-d739-49bd-94bb-3d84d6d46466
release: 
  name: appcloud-master
  version: latest
compilation: 
  workers: 10
  network: default
  reuse_compilation_vms: true
  cloud_properties: 
    instance_type: m1.medium
update: 
  canaries: 1
  canary_watch_time: 30000-150000
  update_watch_time: 30000-150000
  max_in_flight: 4
  max_errors: 1
networks: 
- name: default
  type: dynamic
  cloud_properties: 
    security_groups: 
    - cloudfoundry-production
- name: vip_network
  type: vip
  cloud_properties: 
    security_groups: 
    - cloudfoundry-production
resource_pools: 
- name: core
  network: default
  size: 1
  stemcell: 
    name: bosh-stemcell
    version: 0.7.0
  cloud_properties: 
    instance_type: m1.large
  persistent_disk: 16192
jobs: 
- name: core
  template: 
  - postgres
  - nats
  - router
  - health_manager_next
  - cloud_controller
  - stager
  - uaa
  - vcap_redis
  - dea
  instances: 1
  resource_pool: core
  networks: 
  - name: default
    default: 
    - dns
    - gateway
  - name: vip_network
    static_ips: 
    - 54.245.229.68
  persistent_disk: 16192
properties: 
  domain: davidlaing.net
  env: 
  networks: 
    apps: default
    management: default
  router: 
    client_inactivity_timeout: 600
    app_inactivity_timeout: 600
    local_route: 54.245.229.68
    status: 
      port: 8080
      user: router
      password: 08e90e215a31efe8
  nats: 
    user: nats
    password: 08e90e215a31efe8
    address: 54.245.229.68
    port: 4222
  db: ccdb
  ccdb: 
    template: postgres
    address: 54.245.229.68
    port: 2544
    databases: 
    - tag: cc
      name: appcloud
    - tag: uaa
      name: uaa
    roles: 
    - name: root
      password: 08e90e215a31efe8
      tag: admin
    - name: uaa
      password: 08e90e215a31efe8
      tag: uaa
  cc: 
    description: Cloud Foundry
    srv_api_uri: http://api.davidlaing.net
    password: 08e90e215a31efe8
    token: TOKEN
    allow_debug: true
    allow_registration: true
    admins: 
    - david@davidlaing.com
    admin_account_capacity: 
      memory: 2048
      app_uris: 32
      services: 16
      apps: 16
    default_account_capacity: 
      memory: 2048
      app_uris: 32
      services: 16
      apps: 16
    new_stager_percent: 100
    staging_upload_user: vcap
    staging_upload_password: 08e90e215a31efe8
    uaa: 
      enabled: true
      resource_id: cloud_controller
      token_creation_email_filter: 
      - ""
    service_extension: 
      service_lifecycle: 
        max_upload_size: 5
    use_nginx: false
  postgresql_server: 
    max_connections: 30
    listen_address: 0.0.0.0
  service_lifecycle: 
    download_url: 54.245.229.68
    mount_point: /var/vcap/service_lifecycle
    tmp_dir: /var/vcap/service_lifecycle/tmp_dir
    resque: 
      host: 54.245.229.68
      port: 3456
      password: 08e90e215a31efe8
  stager: 
    max_staging_duration: 120
    max_active_tasks: 20
    queues: 
    - staging
  uaa: 
    cc: 
      token_secret: TOKEN_SECRET
      client_secret: CLIENT_SECRET
    admin: 
      client_secret: CLIENT_SECRET
    login: 
      client_secret: CLIENT_SECRET
    batch: 
      username: uaa
      password: 08e90e215a31efe8
    port: 8100
    catalina_opts: -Xmx128m -Xms30m -XX:MaxPermSize=128m
    no_ssl: true
    client: 
      autoapprove: []

    scim: {}

  uaadb: 
    address: 54.245.229.68
    port: 2544
    roles: 
    - tag: admin
      name: uaa
      password: 08e90e215a31efe8
    databases: 
    - tag: uaa
      name: uaa
  vcap_redis: 
    address: 54.245.229.68
    port: 3456
    password: 08e90e215a31efe8
    maxmemory: 500000000
  service_plans: {}

  dea: 
    max_memory: 7380
drnic commented 11 years ago

The stack trace looks like UAA (java). Can you visit http://uaa.davidlaing.net successfully and login?

On Mon, Mar 4, 2013 at 6:13 PM, David Laing notifications@github.com wrote:

Not sure if this is relevant, but here are the contents of /var/vcap/store/systems/production/deployments/production-core.yml

vcap@ip-10-245-25-35:~$ cat /var/vcap/store/systems/production/deployments/production-core.yml
--- 
name: production-core
director_uuid: 833140c3-d739-49bd-94bb-3d84d6d46466
release: 
  name: appcloud-master
  version: latest
compilation: 
  workers: 10
  network: default
  reuse_compilation_vms: true
  cloud_properties: 
    instance_type: m1.medium
update: 
  canaries: 1
  canary_watch_time: 30000-150000
  update_watch_time: 30000-150000
  max_in_flight: 4
  max_errors: 1
networks: 
- name: default
  type: dynamic
  cloud_properties: 
    security_groups: 
    - cloudfoundry-production
- name: vip_network
  type: vip
  cloud_properties: 
    security_groups: 
    - cloudfoundry-production
resource_pools: 
- name: core
  network: default
  size: 1
  stemcell: 
    name: bosh-stemcell
    version: 0.7.0
  cloud_properties: 
    instance_type: m1.large
  persistent_disk: 16192
jobs: 
- name: core
  template: 
  - postgres
  - nats
  - router
  - health_manager_next
  - cloud_controller
  - stager
  - uaa
  - vcap_redis
  - dea
  instances: 1
  resource_pool: core
  networks: 
  - name: default
    default: 
    - dns
    - gateway
  - name: vip_network
    static_ips: 
    - 54.245.229.68
  persistent_disk: 16192
properties: 
  domain: davidlaing.net
  env: 
  networks: 
    apps: default
    management: default
  router: 
    client_inactivity_timeout: 600
    app_inactivity_timeout: 600
    local_route: 54.245.229.68
    status: 
      port: 8080
      user: router
      password: 08e90e215a31efe8
  nats: 
    user: nats
    password: 08e90e215a31efe8
    address: 54.245.229.68
    port: 4222
  db: ccdb
  ccdb: 
    template: postgres
    address: 54.245.229.68
    port: 2544
    databases: 
    - tag: cc
      name: appcloud
    - tag: uaa
      name: uaa
    roles: 
    - name: root
      password: 08e90e215a31efe8
      tag: admin
    - name: uaa
      password: 08e90e215a31efe8
      tag: uaa
  cc: 
    description: Cloud Foundry
    srv_api_uri: http://api.davidlaing.net
    password: 08e90e215a31efe8
    token: TOKEN
    allow_debug: true
    allow_registration: true
    admins: 
    - david@davidlaing.com
    admin_account_capacity: 
      memory: 2048
      app_uris: 32
      services: 16
      apps: 16
    default_account_capacity: 
      memory: 2048
      app_uris: 32
      services: 16
      apps: 16
    new_stager_percent: 100
    staging_upload_user: vcap
    staging_upload_password: 08e90e215a31efe8
    uaa: 
      enabled: true
      resource_id: cloud_controller
      token_creation_email_filter: 
      - ""
    service_extension: 
      service_lifecycle: 
        max_upload_size: 5
    use_nginx: false
  postgresql_server: 
    max_connections: 30
    listen_address: 0.0.0.0
  service_lifecycle: 
    download_url: 54.245.229.68
    mount_point: /var/vcap/service_lifecycle
    tmp_dir: /var/vcap/service_lifecycle/tmp_dir
    resque: 
      host: 54.245.229.68
      port: 3456
      password: 08e90e215a31efe8
  stager: 
    max_staging_duration: 120
    max_active_tasks: 20
    queues: 
    - staging
  uaa: 
    cc: 
      token_secret: TOKEN_SECRET
      client_secret: CLIENT_SECRET
    admin: 
      client_secret: CLIENT_SECRET
    login: 
      client_secret: CLIENT_SECRET
    batch: 
      username: uaa
      password: 08e90e215a31efe8
    port: 8100
    catalina_opts: -Xmx128m -Xms30m -XX:MaxPermSize=128m
    no_ssl: true
    client: 
      autoapprove: []
    scim: {}
  uaadb: 
    address: 54.245.229.68
    port: 2544
    roles: 
    - tag: admin
      name: uaa
      password: 08e90e215a31efe8
    databases: 
    - tag: uaa
      name: uaa
  vcap_redis: 
    address: 54.245.229.68
    port: 3456
    password: 08e90e215a31efe8
    maxmemory: 500000000
  service_plans: {}
  dea: 
    max_memory: 7380

Reply to this email directly or view it on GitHub: https://github.com/StarkAndWayne/bosh-cloudfoundry/issues/132#issuecomment-14419664

mrdavidlaing commented 11 years ago

No - visiting http://uaa.davidlaing.net/ displays the same error.

Here is a mega screendump (basically the same content as reported above)

error screenshot

drnic commented 11 years ago

I observed the same thing last night when trying to create a screencast :(

Created ticket at https://github.com/cloudfoundry/cf-release/issues/38

mrdavidlaing commented 11 years ago

Aha! Misery loves company :grimacing:

It seems pretty clear to me that one needs to be very careful selecting which cf-release one attempts to use...

drnic commented 11 years ago

I've been begging for a v130 release which will include the AWS patches. Their response was "perhaps you could freeze against a known working sha1". I'm just so annoyed by that response. Its another hack we have to maintain.

mrdavidlaing commented 11 years ago

Its possible that the first admin user needs to be created via uaac - as descibed at:

http://cloudfoundry.github.com/docs/running/managing-users/

mrdavidlaing commented 11 years ago

Nope. Scrap that idea:

vcap@ip-10-245-16-20:~$ uaac target uaa.davidlaing.net
failed to access http://uaa.davidlaing.net: invalid status response: 500
vcap@ip-10-245-16-20:~$ uaac target uaa.davidlaing.net -t
--->
request: get https://uaa.davidlaing.net/login
headers: {"accept"=>"application/json;charset=utf-8"}
<---- no response due to exception: #<CF::UAA::BadTarget: error: Connection timed out - connect(2)>
--->
request: get http://uaa.davidlaing.net/login
headers: {"accept"=>"application/json;charset=utf-8"}
<---
response: 500
headers: {"server"=>"nginx", "date"=>"Tue, 12 Mar 2013 01:26:03 GMT", "content-type"=>"text/html;charset=utf-8", "transfer-encoding"=>"chunked", "connection"=>"close"}
body: 
...snip...
<h1>HTTP Status 500 - Servlet.init() for servlet spring threw exception</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>Servlet.init() for servlet spring threw exception</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet.init() for servlet spring threw exception
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:680)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)
</pre></p><p><b>root cause</b> <pre>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientAdminBootstrap' defined in ServletContext resource [/WEB-INF/spring/oauth-clients.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException

...snip...
drnic commented 11 years ago

Closing as a v1 bug.