Need help with configuration

23 views
Skip to first unread message

jdun...@gmail.com

unread,
Mar 20, 2013, 10:44:21 AM3/20/13
to yana-d...@googlegroups.com
Per the Getting-Started wiki page, I downloaded yana-0.9-270-20120920.war and made sure my server had Java JRE 1.6+ (1.6.0_26) and Tomcat 5+ (7.0.37).

Per the Tomcat-Deployment wiki page, I uncommented out the section of tomcat-users.xml to allow local authorization (I'll worry about tying into LDAP later).  I skipped the part about generating the keystore and enabling SSL, so perhaps that is the root of my problem.  I copied the only MySQL jar file that I could find being used for RunDeck (mysql-connector-java-5.1.18-bin.jar) into the Tomcat lib directory.  I renamed the war file to yana.war and stuck it under apache-tomcat-7.0.37/webapps.  

Per the Configuration wiki page, I edited the config.properties file (webapps/yana/WEB-INF/classes/config.properties).  Of note was the line containing:
         # The URL Yana will be accessible at:
         grails.serverURL=http://localhost:8080/yana

This originally looked like:
         # The URL Yana will be accessible at:
         grails.serverURL=http://localhost:8080/yana2

I made that change back to "yana", commented out the H2 Configuration section, and uncommented out the MySQL Configuration section (since that is what we are using):
         # MySQL configuration:
         dataSource.driverClassName=com.mysql.jdbc.Driver
         dataSource.url=jdbc:mysql://<MySQL_server>/yana?autoReconnect=true
         dataSource.username=yana
         dataSource.password=yana

I did not uncomment out any of the LDAP section since we are attempting to use local authorization for now.

I started the Tomcat server and was unable to connect.  I pointed a browser to: 
         <Tomcat_server>:8080/yana
It redirected to:
         <Tomcat_server>:8080/yana/login/auth
with an error message saying the page isn't redirecting properly (In Firefox) and that I've encountered a redirect loop (in Chrome) because of too many redirects.

So, any ideas what I'm doing wrong?

Soumyak Bhattacharyya

unread,
Jun 3, 2013, 10:16:50 AM6/3/13
to yana-d...@googlegroups.com
I am getting exactly same issue

Any solution

Regards
Soumyak

Alex-SF

unread,
Jun 5, 2013, 12:47:26 PM6/5/13
to yana-d...@googlegroups.com
Hi Soumyak,

The docs can really stand some improvement. In the mean time, take a look at this vagrant configuration: https://github.com/yana/yana-vagrant
It at least shows how to bring up a working YANA through the script examples.

Thanks
Reply all
Reply to author
Forward
0 new messages