I downloaded and built Apache Usergrid on my Ubuntu 14.04 LTS and deployed the ROOT.war on my local tomcat7 server as per instructions given at https://usergrid.incubator.apache.org/docs/deploy-local/. I copied usergrid-deployment.properties file to CATALINA_HOME/lib, restarted Tomcat server and am trying to test it using http://localhost:8080/system/database/setup
as per the instructions.
I get a login screen that has the following text at the top: [ A username and password are being requested by "http://localhost:8080"
. The site says: "Usergrid Authentication". ]. I try to login with the superuser id/pw as given in the usergrid-deployment.properties file but it does not recognize the id/pw and keeping throwing the same login screen. Did anyone encounter this problem? What am I missing? Do I need to add the superuser id/pw info to tomcat-users.xml? The instructions didn't ask for this. Even if I add what "role" would I use? Any help appreciated. BTW my Cassandra deployment works fine independent of Tomcat & Usergrid.
The login screen popping up repeatedly may indicate that it was unable to complete authentication or encountered issues while authenticating.
Ensure:
You may look up the logs for further information in case the issue persists
That login isn't part of Usergrid. Do you perhaps have directory permissions set incorrectly on the directory that serves the install? This sounds like a Tomcat protected directory problem, not a Usergrid login issue.
this works for me.
you need edit a properties file under config package.
usergrid/stack/config/src/main/resources/usergrid-default.properties
rebuild config, rest.
redeploy it.
The properties file name should be renamed as "usergrid-custom.properties" which you going to put in Tomcat/lib directory.
On the other way you can modify "usergrid/stack/config/src/main/resources/usergrid-default.properties" and rebuild config and then put "usergrid-config-1.0.0.jar" which is located "incubator-usergrid-master\stack\config\target" to your web application lib folder "Tomcat-Home\webapps\ROOT\WEB-INF\lib".
I suffered from the same problem and only way I've found so far is to change usergrid-default.properties under stack/config/src/main/resources/usergrid-default.properties from source.
and then run "mvn clean install -DskipTests=true"
This should work.
The ROOT.war (build file of usergrid stack) file also needs to be stored into the CATLINA_BASE i.e (/var/lib/tomcat7/webapps/) also.
Also change the ownership and access rights of tomcat folder(CATLINA_HOME and CATLINA_BASE) from root to complete free access (access level 777).