Hi Stefan, The portal may not be working because no organizations have been created. You can check to see if any organizations are available by using the following API request:
curl -X GET http://localhost:8080/management/organizations -u superuser:test If you see an empty array there, then no organizations have been created. You can register a new organization and admin user with the following example API request: curl -X -i POST "https://api.usergrid.com/management/orgs" -d '{"password":"test12345","email":"[email protected] ","name":"test","username":"test123","organization":"testorg"}' You may also see a 'Register' link on the portal's long in page which will execute the same API request. By default, with the example props in the docs, Usergrid will require sysadmin approval for new organizations and admin users (email confirmation links). If you haven't set up valid email inboxes, then you change the following stack properties and use these values to bypass the approval requirement: usergrid.sysadmin.approve.users=false usergrid.sysadmin.approve.organizations=false Be sure to restart tomcat after any property file changes. Lastly, if you've set the following test account properties (maybe with different values), a test organization should have been auto created when running the /system/database/boostrap API request for database initialization: usergrid.setup-test-account=true usergrid.test-account.app=test-app usergrid.test-account.organization=test-organization usergrid.test-account.admin-user.username=test usergrid.test-account.admin-user.name="Test User" [email protected] usergrid.test-account.admin-user.password=test Thanks! -Michael On Tue, Mar 15, 2016 at 10:10 AM, Stefan < [email protected]> wrote: > Hello, > > I did a fresh installation of the usergrid stack and usergrid: > - Ubuntu 14.04.4-server x64 > - Oracle Java 1.8 > - Cassandra 2.1 > - elasticsearch 1.4.4 > - Tomcat 7 > - deployed ROOT.war and portal to tomcat webapps > > I used the Example Usergrid Stack Properties File from > https://usergrid.apache.org/docs/installation/deployment-guide.html and > initialized the usergrid database (using the 3 http requests). I also > configured Usergrid.overrideUrl in portal/config.js. > > When I navigate to the portal and try to login with superuser and test, > the login button caption changes to "Loading..." and nothing else happens. > Looking at the browsers JavaScript console I see: > > "calling: POST http://192.168.1.8:8080/management/token" > usergrid-libs.min.js:29:1067 > "curl -X POST http://192.168.1.8:8080/management/token -d > '{"username":"superuser","password":"test","grant_type":"password"}'" > usergrid-libs.min.js:29:12393 > "success (time: 0.67): POST http://192.168.1.8:8080/management/token" > usergrid-libs.min.js:29:46 > error selecting org usergrid-libs.min.js:29:8252 > TypeError: org is undefined > Usergrid.Client.prototype.parseApplicationsArray() > usergrid-libs.min.js:29 > Usergrid.Client.prototype.orgLogin/<() > usergrid-libs.min.js:29 > Usergrid.Client.prototype.request/xhr.onload() > usergrid-libs.min.js:29 > usergrid-libs.min.js:29:8631 > > I don't know what could be wrong - what should I check? Thank you! > Stefan > > > /status output: > > { > "timestamp" : 1458061765614, > "duration" : 12, > "status" : { > "started" : 1458059034891, > "uptime" : 2730723, > "version" : "2.1.0", > "cassandraAvailable" : true, > "cassandraStatus" : "GREEN", > "managementAppIndexStatus" : "YELLOW", > "queueDepth" : 0, > "org.apache.usergrid.count.AbstractBatcher" : { > "add_invocation" : { > "type" : "timer", > "unit" : "microseconds", > "duration" : { > "min" : 2.022, > "max" : 32440.979, > "mean" : 115.04364942528736, > "std_dev" : 1757.6133632947297, > "median" : 2.5745, > "p75" : 2.95225, > "p95" : 10.506650000000004, > "p98" : 30.34381999999998, > "p99" : 902.2850899999848, > "p999" : 32440.979 > }, > "rate" : { > "unit" : "seconds", > "count" : 348, > "mean" : 0.12736142107248197, > "m1" : 9.269412452391846E-15, > "m5" : 5.126986278142087E-4, > "m15" : 0.026237930398259893 > } > }, > "batch_add_invocations" : { > "type" : "counter", > "count" : 348 > } > }, > "org.apache.usergrid.count.CassandraSubmitter" : { > "submit_invocation" : { > "type" : "timer", > "unit" : "microseconds", > "duration" : { > "min" : 50.602, > "max" : 131162.351, > "mean" : 3095.7013563218393, > "std_dev" : 15919.949921107334, > "median" : 124.295, > "p75" : 179.856, > "p95" : 20486.532199999812, > "p98" : 69580.06323999958, > "p99" : 131162.351, > "p999" : 131162.351 > }, > "rate" : { > "unit" : "seconds", > "count" : 87, > "mean" : 0.031840675425252915, > "m1" : 0.026792415617091846, > "m5" : 0.03195414958987104, > "m15" : 0.031002055611353895 > } > } > }, > "org.apache.usergrid.rest.filters.MeteringFilter" : { > "activeRequests" : { > "type" : "counter", > "count" : 1 > }, > "requests" : { > "type" : "timer", > "unit" : "milliseconds", > "duration" : { > "min" : 1.649005, > "max" : 11439.517513, > "mean" : 1464.7383055384614, > "std_dev" : 3181.820577068684, > "median" : 162.6484, > "p75" : 1577.8334985, > "p95" : 11439.517513, > "p98" : 11439.517513, > "p99" : 11439.517513, > "p999" : 11439.517513 > }, > "rate" : { > "unit" : "seconds", > "count" : 13, > "mean" : 0.004760561962762948, > "m1" : 1.0565160122809732E-13, > "m5" : 4.974022286098866E-5, > "m15" : 0.00129481793015449 > } > } > } > } > } > > >
