Giter Site home page Giter Site logo

admin-ui-boshrelease's Introduction

Bosh release for CloudFoundry NG Admin UI

One of the fastest ways to get admin-ui running on any infrastructure is too deploy this bosh release.

Usage

To use this BOSH release, first upload it to your bosh:

bosh upload release https://bosh.io/d/github.com/cloudfoundry-community/admin-ui-boshrelease

To deploy it you will need the source repository that contains templates:

git clone https://github.com/cloudfoundry-community/admin-ui-boshrelease.git
cd admin-ui-boshrelease
git checkout v11
git submodule update

bosh-lite/warden deployments

Make sure you have deployed Cloud Foundry first. With Cloud Foundry deployed to your bosh-lite run:

./make_manifest warden
bosh deploy
bosh run errand register_admin_ui

Now you can browse to http://admin.bosh-lite.com and login with your cloud foundry admin user.

Errands

When deployed you can register the admin-ui with the uaa by running:

bosh run errand register_admin_ui

To deregister the admin-ui you can run:

bosh run errand deregister_admin_ui

Create new final release

To create a new final release you need to get read/write API credentials to the @cloudfoundry-community s3 account.

Please email Dr Nic Williams and he will create unique API credentials for you.

Create a config/private.yml file with the following contents:

---
blobstore:
  s3:
    access_key_id:     ACCESS
    secret_access_key: PRIVATE

You can now create final releases for everyone to enjoy!

bosh create release
# test this dev release
git commit -m "updated admin-ui"
bosh create release --final
git commit -m "creating vXYZ release"
git tag vXYZ
git push origin master --tags

admin-ui-boshrelease's People

Contributors

allomov avatar drnic avatar fbonelle avatar lnguyen avatar rkoster avatar sklevenz avatar tyyko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

admin-ui-boshrelease's Issues

No license info

I was looking for some information about the license for the project, but couldn't find any.
Are you considering to provide the code under a certain license?

Error pulling events when using MySQL

I'm getting an error while using Admin UI with mysql databases:

/var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/adapters/mysql.rb:6:in rescue in <top (required)>' /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/adapters/mysql.rb:3:in <top (required)>'
/var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/database/connecting.rb:98:in require' /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/database/connecting.rb:98:in load_adapter'
/var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/database/connecting.rb:28:in adapter_class' /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/database/connecting.rb:47:in connect'
/var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/core.rb:108:in connect' /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/lib/admin/cc.rb:688:in select'
/var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/lib/admin/cc.rb:627:in discover' /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/lib/admin/cc.rb:656:in block in schedule'
/var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/lib/admin/scheduled_thread_pool.rb:27:in call' /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/lib/admin/scheduled_thread_pool.rb:27:in block (2 levels) in initialize'
D, [2018-02-07T10:21:21.916672 #9630] DEBUG -- : [ -- ] : [ -- ] : Caching CC spaces_managers data. Count: 0. Retrieval time: 0.010503128 seconds
E, [2018-02-07T10:21:21.917572 #9630] ERROR -- : [ -- ] : [ -- ] : Error during discovery of stacks: #<Sequel::AdapterNotFound: LoadError: cannot load such file -- mysql>
E, [2018-02-07T10:21:21.919062 #9630] ERROR -- : [ -- ] : [ -- ] : /var/vcap/data/packages/admin_ui/1f823191bc8afcfa1264fd34429be94afe2e19d7/admin_ui/vendor/bundle/ruby/2.2.0/gems/sequel-4.33.0/lib/sequel/adapters/mysql.rb:6:in `require

Is there any known fix for this?

Page not found admin ui while accessing from browser

My app is running as bosh vm and have opened a route in haproxy. I am trying to access https://myappexample.com/adminui. I am getting** page not found error** in browser.

I tried curl command

curl https://myappexample.com/adminui

curl -vvv -k https://myappexample.com/adminui
* Hostname was NOT found in DNS cache
*   Trying 135.107.34.123...
* Connected to myappexample.com (135.107.34.123) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES256-GCM-SHA384
* Server certificate:
*        subject: C=US; ST=California; L=Sanfrancisco Bay Area; O=Anonymous; OU=Anonymous; CN=myfall-ubuntu-ds.com; emailAddress=Anonymous
*        start date: 2015-10-22 21:15:06 GMT
*        expire date: 2016-10-21 21:15:06 GMT
*        issuer: C=US; ST=California; L=Sanfrancisco Bay Area; O=Anonymous; OU=Anonymous; CN=myfall-ubuntu-ds.com; emailAddress=Anonymous
*        SSL certificate verify result: self signed certificate (18), continuing anyway.
> GET /adminui HTTP/1.1
> User-Agent: curl/7.35.0
> Host: myappexample.com
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Length: 14
< Content-Type: text/html;charset=utf-8
< Date: Wed, 10 Feb 2016 13:47:04 GMT
* Server WEBrick/1.3.1 (Ruby/1.9.3/2013-06-27) OpenSSL/1.0.1f is not blacklisted
< Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-06-27) OpenSSL/1.0.1f
< Set-Cookie: rack.session=BAh7CEkiD3Nlc3Npb25faWQGOgZFRiJFYzYxOTRhN2VkMjkwMDgzZmY5NmQz%0AMGQzNDkxNDIxNTBhNTMxMmM0ZDE0OTk5YTMxMjRiZWY2MGExNzBhN2I3OUki%0ACWNzcmYGOwBGIiU3ZDlkN2VkMjY5Y2U0ZmUyNDJiNTRjODY4MDQ1OWRjZEki%0ADXRyYWNraW5nBjsARnsHSSIUSFRUUF9VU0VSX0FHRU5UBjsARiItZWYxOGFl%0AZDI4NGFiNzVlNzBhMDFiMjJlMzFiOTBlN2JhNDQ3MGM3NkkiGUhUVFBfQUND%0ARVBUX0xBTkdVQUdFBjsARiItZGEzOWEzZWU1ZTZiNGIwZDMyNTViZmVmOTU2%0AMDE4OTBhZmQ4MDcwOQ%3D%3D%0A--5b3c97fc3a3f250671f5e9e2ee7ad323844ba65e; path=/; HttpOnly
< X-Cf-Requestid: 51e8f91e-f190-4731-6f5e-c370e2546c36
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
<
* Connection #0 to host myappexample.com left intact

when I use private url i am getting 303

curl admin.devtest3.io

curl -vvv -k http://api.devtest3.io
* Rebuilt URL to: http://api.devtest3.io/
* Hostname was NOT found in DNS cache
*   Trying 10.20.0.25...
* Connected to api.devtest3.io (10.20.0.25) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: api.devtest3.io
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Content-Length: 86
< Content-Type: application/json;charset=utf-8
< Date: Wed, 10 Feb 2016 13:46:15 GMT
* Server nginx is not blacklisted
< Server: nginx
< X-Cascade: pass
< X-Cf-Requestid: 5d3b6034-6044-42d2-401a-5c330d735d00
< X-Content-Type-Options: nosniff
< X-Vcap-Request-Id: cebf122d-678d-4e24-7ad5-8c7db0068b16::cf1f1b90-5eb6-4586-b0aa-7fd8a05e04a7
<
{
  "code": 10000,
  "description": "Unknown request",
  "error_code": "CF-NotFound"
* Connection #0 to host api.devtest3.io left intact

haproxy.config

  `frontend http-in
   acl adminui path_beg /adminui

  frontend https-in
      acl adminui path_beg /adminui

  backend bk_adminui
  mode http
  http-request set-header Host admin.devtest3.io
  reqirep ^([^\ :]*)\ /(.*)$       \1\ /\2
  balance roundrobin
      server node0 0.router.ccc-bosh-net.cf-devtest3.microbosh:80 check inter 1000

      server node1 1.router.ccc-bosh-net.cf-devtest3.microbosh:80 check inter 1000`

Fix encryption key issue

When trying to upload the v4 release I get:

Cannot initialize blobstore: can't use read-only with an encryption key

monit restart in race conditon

Monit is confgured to restart admin_ui after a memory limit is hit. Since the limit has increased to 1G the stop need more time to kill the app. Due to the asynchronous behavior of monit the start script runs while stop is not finished and lead to an admin instance which is no longer under control of monit while monit tries to restart the app and fails because of blocked port.

--> fix restart behavior of monit
--> make limit configurable

Errand `register_admin_ui' doesn't exist

I'm getting an error stating that this errand doesn't exist. I manually ran the uaac steps from https://github.com/cloudfoundry-incubator/admin-ui, and it seems to have given access to DEA, apps, and a couple other things. But I'm still getting "This page requires data from services that are currently unavailable" on the orgs page, and a could others. Any idea why the errand doesn't exist? Maybe I used an outdated bosh release? I used the one from the README at https://admin-ui-boshrelease.s3.amazonaws.com/boshrelease-admin-ui-3.tgz.

secret for admin-ui client not updated

Hi,

after I changed the secret for the admin-ui client and running the register errand, I have seen that teh secret of the admin-ui client was not updated.
logfile of the bosh task:
D, [2015-09-18 12:43:24 #31553] [] DEBUG -- DirectorJobRunner: RECEIVED: director.a0e68aaf-269c-468c-863f-5ea48d453dbd.a08e3a1f-8b3a-493a-9884-f7c311fda5bb {"value":{"stdout":"$PATH /var/vcap/packages/uaac/bin:/var/vcap/packages/ruby/bin:/usr/sbin:/usr/bin:/sbin:/bin\nGetting admin client token\nUpdating admin-ui client\n scope: admin_ui.admin openid admin_ui.user\n client_id: admin-ui\n resource_ids: \n authorized_grant_types: refresh_token client_credentials authorization_code\n autoapprove: true\n action: none\n authorities: cloud_controller.write openid scim.read cloud_controller.read cloud_controller.admin\n\nAdding members: admin to group: admin_ui.admin\n\nRuntimeError: no new users given\n\nDone\n","stderr":"sh: 1: Syntax error: Unterminated quoted string\n","exit_code":0}}

After updating the secret via uaac manually, everything worked well.
My assumption is that the line
puts `uaac secret set....
in the register which sets the secret is not executed. The client update call returns with the error "unterminated quoted string....

Any idea?

Many Thanks,
Martin

can not access admin-ui url after registering successfully

Hi,

I followed the guide and could successfully register admin-ui to CF. However I could not access url when locating on browser, it said: "404 Not Found: Requested route ('admin-ui.mycitus.com') does not exist."

"bosh vms" show all jobs are running. And I could reach nats & postgresql from admin-ui vm.

However, I found this issue on admin-ui.log:
D, [2014-12-08T06:25:23.059197 #1533] DEBUG -- : [ -- ] : [ -- ] : [300 second interval] Starting CC routes discovery...
D, [2014-12-08T06:25:23.060536 #1533] DEBUG -- : [ -- ] : [ -- ] : Error during discovery of routes: #<Sequel::AdapterNotFound: LoadError: cannot load such file -- sequel/adapters/postgresql>
D, [2014-12-08T06:25:23.060618 #1533] DEBUG -- : [ -- ] : [ -- ] : [300 second interval] Starting CC organizations discovery...
D, [2014-12-08T06:25:23.061578 #1533] DEBUG -- : [ -- ] : [ -- ] : Error during discovery of organizations: #<Sequel::AdapterNotFound: LoadError: cannot load such file -- sequel/adapters/postgresql>
D, [2014-12-08T06:25:23.061642 #1533] DEBUG -- : [ -- ] : [ -- ] : /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.14.0/lib/sequel/database/connecting.rb:97:in require' /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.14.0/lib/sequel/database/connecting.rb:97:inload_adapter'
/var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.14.0/lib/sequel/database/connecting.rb:26:in adapter_class' /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.14.0/lib/sequel/database/connecting.rb:46:inconnect'
/var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.14.0/lib/sequel/core.rb:95:in connect' /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/cc.rb:402:inselect'
/var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/cc.rb:346:in discover' /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/cc.rb:370:inblock in schedule'
/var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/scheduled_thread_pool.rb:23:in call' /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/scheduled_thread_pool.rb:23:inblock (3 levels) in initialize'
/var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/scheduled_thread_pool.rb:13:in loop' /var/vcap/data/packages/admin_ui/d8d5adcd22b78b9ec17637414e48b372a910420a.1-1489a94d1f224300c4d328da7baddaf9247e1fa9/admin_ui/lib/admin/scheduled_thread_pool.rb:13:inblock (2 levels) in initialize'

Any idea?

bosh release is failing

I have followed the steps given in the page
bosh create release --force --final --with-tarball
i am getting this error
libyaml/yaml-0.1.4.tgz downloading 460.7K (0%)
/var/lib/gems/1.9.1/gems/blobstore_client-1.3181.0/lib/blobstore_client/local_client.rb:36:in rescue in get_file': Blobstore object '720a650d-0b1c-4918-92de-7be57b679fe7' not found (Bosh::Blobstore::NotFound) from /var/lib/gems/1.9.1/gems/blobstore_client-1.3181.0/lib/blobstore_client/local_client.rb:28:inget_file'

Error 400007: `admin_ui/0' is not running after update

I am trying to install admin ui on my linux machine and i getting following error

Started updating job admin_ui > admin_ui/0. Failed: `admin_ui/0' is not running after update (00:10:41)

Error 400007: `admin_ui/0' is not running after update

admin-ui-deployment.yml

<%
load '/opt/cf-settings.rb'
%>
name: <%= $deployment_name %>

director_uuid: d8b4f779-087d-4962-8361-aafa9cd21b8d

releases:
- {name: admin-ui, version: 6}

networks:
- name: ccc-bosh-net1
  type: dynamic
  cloud_properties:
    net_id: <%= $bosh_net_id %>
    security_groups:
    - cfoundry

resource_pools:
  - name: small
    network: ccc-bosh-net1
    stemcell:
      name: bosh-openstack-kvm-ubuntu-trusty-go_agent-raw
      version: <%= $stemcell_version %>
    cloud_properties:
  instance_type: Micro-Small

compilation:
  workers: 2
  network: ccc-bosh-net1
  cloud_properties:
    instance_type: Micro-Small

update:
  canaries: 0
  canary_watch_time: 30000-600000
  update_watch_time: 30000-600000
  max_in_flight: 4
  serial: true

jobs:
- name: admin_ui
  template: admin_ui
  instances: 1
  resource_pool: small
  persistent_disk: 5120
  networks:
    - name: ccc-bosh-net1

- name: register_admin_ui
  template: register_admin_ui
  instances: 1
  resource_pool: small
  lifecycle: errand
  networks:
    - name: ccc-bosh-net1

- name: deregister_admin_ui
  template: deregister_admin_ui
  instances: 1
  resource_pool: small
 lifecycle: errand
  networks:
    - name: ccc-bosh-net1

properties:
  cc:
    srv_api_uri: <%= $protocol %>://api.<%= $root_domain %>
  system_domain: <%= $root_domain %>
  uaa:
    url: <%= $protocol %>://uaa.<%= $root_domain %>
    admin:
      client_secret: <%= $common_password %>
  admin_ui:
    cloud_controller_uri: (( properties.cc.srv_api_uri ))
    cloud_controller_ssl_verify_none: (( properties.ssl.skip_cert_verify ))
    uri: (( admin "." properties.system_domain ))
    users: ~
    admins: (( merge ))
    uaa:
      url: (( properties.uaa.url ))
      admin_client_secret: (( properties.uaa.admin.client_secret ))
      client:
        id: admin_ui_client
        secret: c1oudc0w
      scopes:
        admin: ~
        user: ~

ccdb:
  scheme: postgres
  address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh
  port: 5524
  username: ccadmin
  password: <%= $common_password %>
  database: ccdb
uaadb:
  scheme: postgresql
  address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh
  port: 5524
  username: uaaadmin
  password: <%= $common_password %>
  database: uaadb

  ssl:
    skip_cert_verify: (( true ))
  networks:
    apps: ccc-bosh-net1

  nats:
    user: nats
    password: <%= $common_password %>
    address: 0.cloud-controller.ccc-bosh-net.<%= $deployment_name %>.microbosh
    port: 4222

How to pass https to the regexp from the property cloud_controller_uri

Hi,

I am getting a very odd error about missing https in my cf api url. But the thing is that it is present in my bosh deployment manifest so I am not so sure why it is not kept the way it is.

My bosh deployment manifest:
{code}
properties:
[..]
admin_ui:
# admin_ui.cloud_controller_uri:
# description: "Full url of the Cloud Controller api"
cloud_controller_uri: "https://api.mycf.com/"
[..]
{code}

While I am getting this error in

{code}
==> /var/vcap/sys/log/admin_ui/admin_ui.stderr.log <==
from bin/admin:45:in <main>' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/vendor/bundle/ruby/1.9.1/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:81:infail!': { cloud_controller_uri => Value api.mycf.com doesn't match regexp /(http[s]?://[^\r\n\t]+)/ } (Membrane::SchemaValidationError)
from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/vendor/bundle/ruby/1.9.1/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:60:in validate' from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/vendor/bundle/ruby/1.9.1/gems/membrane-1.1.0/lib/membrane/schemas/record.rb:23:invalidate'
from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/lib/admin/config.rb:126:in validate' from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/lib/admin/config.rb:116:intap'
from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/lib/admin/config.rb:116:in load' from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/lib/admin.rb:49:insetup_config'
from /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-5e0de4828e32823539adc00197817e0f800583a8/admin_ui/lib/admin.rb:32:in start' from bin/admin:45:in

'

==> /var/vcap/sys/log/admin_ui/admin_ui.stdout.log <==
{code}

I have tried many variations to define the value of cloud_controller_uri: with or without quotes, single, double, http, https, etc. But all without success and generating that error every time.

I understand the error but don't understand why the error is happening! If somebody can help, this will be great.

Thx

nats.address VS nats.machines in CF 228

Good day,

I believe there is an issue to create while in CF 228 release, the property nats "address" is mentioned as "machines" instead. If I add the address, the admin-ui deployment is going without any issues. But if I am not adding the "address", then it is complaining. I also tried to convert the admin-ui deployment to respond to "machines" for that property but at the end, it never let me do the deployment successfully.

From the final CF manifest:

{code}
[..]
nats:
debug: false
machines:
- 10.244.0.6
address: 10.244.0.6
[..]
{code}

Thx

Cloud Foundry V211 & Application tab empty

Hi,

Since we updated Cloud Foundry to version V211, application tab in admin-ui is empty (This page requires data from services that are currently unavailable).

The logs I extracted:
D, [2015-06-09T10:42:27.255222 #1368] DEBUG -- : [ -- ] : [ -- ] : Error within AdminUI::ApplicationsViewModel: #<NoMethodError: undefined method length' for nil:NilClass> D, [2015-06-09T10:42:27.255390 #1368] DEBUG -- : [ -- ] : [ -- ] : /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:205:in block (3 levels) in do_items'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:107:ineach_value' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:107:in block (2 levels) in do_items'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:106:ineach_value' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:106:in block in do_items'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:102:ineach' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/applications_view_model.rb:102:in do_items'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models/base.rb:8:initems' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models.rb:366:in discover_applications'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models.rb:328:indiscover' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/view_models.rb:317:in block in schedule'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/scheduled_thread_pool.rb:23:incall' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/scheduled_thread_pool.rb:23:in block (3 levels) in initialize'
/var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/scheduled_thread_pool.rb:13:inloop' /var/vcap/data/packages/admin_ui/f2cf62d93b6c3e2a056852414b214ff2aa7d8b17.1-b149d56d08958856a1aa5c2f336612092dccef40/admin_ui/lib/admin/scheduled_thread_pool.rb:13:in block (2 levels) in initialize'
D, [2015-06-09T10:42:27.255443 #1368] DEBUG -- : [ -- ] : [ -- ] : Caching view model applications data. Compilation time: 0.003847214 seconds

Regards

related source code https://github.com/cloudfoundry-incubator/admin-ui/blob/2f8eae1ca9371921e7fb8dbd9664d4017ca380d8/lib/admin/view_models/applications_view_model.rb complaining about empty services

spec property nats.machines is ignored

the spec file defines property nats.machines

in case you have multiple NATS nodes but it seems "nats.adress" (for one NATS node)

is always used instead for registering the admin-ui route

- nats://<%= p("nats.user") %>:<%= p("nats.password") %>@<%= p("nats.address") %>:<%= p("nats.port") %>

this means the route will be lost if you have multiple NATS nodes and only the one configured NATS node goes down. That means although you have an HA NATS setup, it's not used by admin ui.

Example templates are not up to date

The example manifests are not up to date as of this commit: 2203778

Also the new spiff templates are difficult to parse because there is little information about the format. For example the admins sections is undocumented.

Updating these examples and templates to the latest format would be helpful.

Location of UAAC client

Admin UI errand job runs UAAC command.Where this UAAC is installed? I searched in it in cloud controller and admin ui vm i didn't find it.

After running errand job i am getting Insufficient scope error.I want to manually run some uaac. I can install uaac client but curious know how errand job is running uaac command.

missing line in admin_ui.yml.erb

I found following line missing in admin_ui.yml.erb.

log_file_sftp_keys: [ ]
log_files: [/var/vcap/sys/log/cloud_controller_ng/*.log, admin_ui.log]
doppler_data_file: data/doppler_data.json
doppler_reconnect_delay: 300
doppler_rollup_interval: 30

I use admin ui by doing following steps
git clone https://github.com/cloudfoundry-community/admin-ui-boshrelease.git
cd admin-ui-boshrelease
git checkout v7
git submodule init
git submodule update
Then create bosh release for this and deploy it. I found admin_ui.yml generated from admin_ui.yml.erb doesn't contain those line.

Please tell me the reason for this.
Normally I manually add those line in admin_ui.yml.erb and create bosh release.
bosh create release --force

This page requires data from services that are currently unavailable

I have deployed admin-ui-boshrelease v6 along with cf-release v225 on OpenStack. I also setup the admin-ui group and user using uaac as described here: https://github.com/cloudfoundry-incubator/admin-ui#setup-administration-ui-group-and-user-using-uaac.
The admin-ui/0 VM has deployed successfully and I can connect with the admin credentials and can see tabs like DEA, Components, etc. However, most every other tab (Organizations, Spaces, Routes. etc. are shwoing "This page requires data from services that are currently unavailable."

After having ssh'd into the admin_ui VM and tailed /var/vcap/sys/log/admin_ui/admin_ui.log, I am seeing the following log output:

E, [2016-01-15T17:10:55.644274 #4133] ERROR -- : [ -- ] : [ -- ] : Error during discovery of organizations_private_domains: #<Sequel::AdapterNotFound: LoadError: cannot load such file -- sequel/adapters/postrgres>
E, [2016-01-15T17:10:55.652298 #4133] ERROR -- : [ -- ] : [ -- ] : /var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.26.0/lib/sequel/database/connecting.rb:96:in `require'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.26.0/lib/sequel/database/connecting.rb:96:in `load_adapter'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.26.0/lib/sequel/database/connecting.rb:26:in `adapter_class'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.26.0/lib/sequel/database/connecting.rb:45:in `connect'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/vendor/bundle/ruby/1.9.1/gems/sequel-4.26.0/lib/sequel/core.rb:106:in `connect'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/lib/admin/cc.rb:643:in `select'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/lib/admin/cc.rb:583:in `discover'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/lib/admin/cc.rb:611:in `block in schedule'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/lib/admin/scheduled_thread_pool.rb:27:in `call'
/var/vcap/data/packages/admin_ui/dc07544c951469dffe507dc85d6c8f6a773b60a0.1-b0285c530cbc8a04b783297e8a872ae7bedbc622/admin_ui/lib/admin/scheduled_thread_pool.rb:27:in `block (2 levels) in initialize'
D, [2016-01-15T17:10:55.652360 #4133] DEBUG -- : [ -- ] : [ -- ] : Caching CC organizations_private_domains data.  Count: 0.  Retrieval time: 0.029995722 seconds

The following snippet from the log output above has me thinking this is a gem issue but I dont know enough to know for sure: <Sequel::AdapterNotFound: LoadError: cannot load such file -- sequel/adapters/postrgres>.

I don't see anything else from the admin_ui.log that would make me think that I have misconfigured my deployment manifest.

Any help would be greatly appreciated!

admin-ui v6 not working

I have CF v 214 and admin-ui v6 installed.

I ran the bosh errand to register with uaa, but when i try to login to admin ui I get the below error:

"Insufficient scope for user "

What am i missing?

any help is appreciated.

Unable to run bosh upload

I am getting the following error

**
RSA 1024 bit CA certificates are loaded due to old openssl compatibility
Acting as user 'admin' on 'Bosh Lite Director'
Using remote release 'https://bosh.io/d/github.com/cloudfoundry-community/admin-ui-boshrelease'

Started downloading remote release > Downloading remote release. Failed: Downloading remote release failed. Check task debug log for details. (00:00:01)

Error 100001: Downloading remote release failed. Check task debug log for details.

**

Could anyone help me in resolving this.

I am getting Downloading remote release from https://bosh.io/d/github.com/cloudfoundry-community/admin-ui-boshrelease failed: Forbidden in debug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.