This website uses cookies to ensure you get the best experience. Learn More.
How to I trace user login issues in Liferay Portal 6.0 and 6.1?
If you are facing Liferay Portal login issues (eg. unexpected user session timeouts, unexpected double login prompts), you can perform high level tracing by enabling logging in the primary request dispatcher (the Main Servlet).
For the following trace steps, we will use a Liferay Portal 6.1 + Tomcat bundle.
2013-06-19 11:44:16,392 DEBUG [http-bio-8080-exec-5][MainServlet:381] Process service request 2013-06-19 11:44:16,393 DEBUG [http-bio-8080-exec-5][MainServlet:401] Get company id 2013-06-19 11:44:16,393 DEBUG [http-bio-8080-exec-5][MainServlet:428] Set portal port 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:434] Check variables 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:443] Handle non-serializable request 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:447] Encrypt request 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:457] Protect request 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:463] Set principal 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:472] Authenticate user id 10196 and remote user 10196 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:480] Authenticated user id 10196 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:488] Set session thread local 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:494] Process service pre events 2013-06-19 11:44:16,408 DEBUG [http-bio-8080-exec-5][MainServlet:530] Call parent service 2013-06-19 11:44:16,803 DEBUG [http-bio-8080-exec-5][MainServlet:537] Process service post events
NOTE: The user id exists in this user session.
2013-06-19 11:44:16,392 DEBUG [http-bio-8080-exec-5][MainServlet:381] Process service request 2013-06-19 11:44:16,393 DEBUG [http-bio-8080-exec-5][MainServlet:401] Get company id 2013-06-19 11:44:16,393 DEBUG [http-bio-8080-exec-5][MainServlet:428] Set portal port 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:434] Check variables 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:443] Handle non-serializable request 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:447] Encrypt request 2013-06-19 11:44:16,394 DEBUG [http-bio-8080-exec-5][MainServlet:457] Protect request 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:463] Set principal 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:472] Authenticate user id 0 and remote user null 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:480] Authenticated user id 0 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:488] Set session thread local 2013-06-19 11:44:16,395 DEBUG [http-bio-8080-exec-5][MainServlet:494] Process service pre events 2013-06-19 11:44:16,408 DEBUG [http-bio-8080-exec-5][MainServlet:530] Call parent service 2013-06-19 11:44:16,803 DEBUG [http-bio-8080-exec-5][MainServlet:537] Process service post events
NOTE: The user id is missing in this user session.
After reviewing the logs, disable logging.