Closed mrdavidlaing closed 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
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
No - visiting http://uaa.davidlaing.net/ displays the same error.
Here is a mega screendump (basically the same content as reported above)
I observed the same thing last night when trying to create a screencast :(
Created ticket at https://github.com/cloudfoundry/cf-release/issues/38
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...
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.
Its possible that the first admin user needs to be created via uaac - as descibed at:
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...
Closing as a v1 bug.
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.