Unable to login to CMS after deploying to Tomcat on Linux

66 views
Skip to first unread message

ldriver

unread,
Apr 26, 2016, 3:03:49 PM4/26/16
to Hippo Community
I have followed the instructions here to setup a standalone environment on Linux.  After deploying the application and restarting Tomcat the CMS login page is giving me problems, whenever I try to login the page refreshes and shows a 'username'/'password' is required message.  There are no errors in catalina.out or hippo-cms.log.

hippo-audit.log shows successive messages, one for action=login and right after that logout:

#hippo-audit.log
26.04.2016 14:46:44 INFO  pool-1-thread-1 [AuditLogger.logHippoEvent:45] {"application":"cms","success":true,"action":"login","category":"security","message":"login successful","user":"admin","remoteAddress":"10.5.1.254","timestamp":1461700004420}

26.04.2016 14:46:44 INFO  pool-1-thread-1 [AuditLogger.logHippoEvent:45] {"application":"cms","success":true,"action":"logout","category":"security","message":"logout","user":"admin","remoteAddress":"10.5.1.254","timestamp":1461700004425}

localhost_access_log shows this below:

# localhost_access_log
10.5.1.254 - - [26/Apr/2016:14:46:44 -0500] "POST /cms/?0-3.IFormSubmitListener-root-login~panel-login~form HTTP/1.1" 302 -
10.5.1.254 - - [26/Apr/2016:14:46:44 -0500] "GET /cms/?0-3.IFormSubmitListener-root-login~panel-login~form HTTP/1.1" 302 -
10.5.1.254 - - [26/Apr/2016:14:46:44 -0500] "GET /cms/?0 HTTP/1.1" 200 6181

I thought this was a redirect issue, but this issue happens with httpd both started and stopped.  I've turned both org.hippoecm.frontend.plugins.login.LoginPanel and
org.hippoecm.frontend.plugins.login.BrowserCheckBehavior to DEBUG.  Not sure what other classes I can change the level that would help.

Thanks,
leland

Niels van Kampenhout

unread,
Apr 26, 2016, 3:54:49 PM4/26/16
to Hippo Community
I'm not 100% sure but this sounds like https://issues.onehippo.com/browse/CMS-9760.

See section "Relative Redirects" at http://www.onehippo.org/about/upgrade/using-tomcat-8.html for workaround & fix.

Hope this helps.

Niels


ldriver

unread,
Apr 26, 2016, 4:50:33 PM4/26/16
to Hippo Community
Ok that fixed it, adding these attributes to context.xml:

<Context useHttpOnly="true" useRelativeRedirects="false">

Thanks!

Reply all
Reply to author
Forward
0 new messages