Logging/Debugging doesn't work in CAS 5.0.2

140 views
Skip to first unread message

RJ Guroo

unread,
Feb 16, 2017, 10:17:14 PM2/16/17
to cas-...@apereo.org
Am I the only one with logging/debugging challenges ?

Log config:
http://pastebin.com/irNhfDs8


Errors in catalina.out:
http://pastebin.com/0Efa36ih

Thanks

John Wynstra

unread,
Feb 18, 2017, 3:18:01 AM2/18/17
to cas-...@apereo.org
I have also had issues trying to get logging to work - I posted something earlier but got no response from the list.   

Considering the overlay concept is supposed to be a good starting point, I am finding the learning curve steep and frustrating.  The documentation seems to assume that I have a point of reference that I actually don't have yet.  Some aspects are good, and others leave me flailing.  I will continue to plod along because I need to successfully build and deploy our next CAS server.  Gettting the logs setup is key to troubleshooting.  I have tried multiple configurations and I am getting no success.

I would love to be get past some of the simple configuration things to get to the more complex things like LDAP configuration, clearpass, and SAML.  

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CACNfiM%2BBM-m7bHu%2BS4UZnNaG3%3DLDH%2BSwP8BCjBWirNGg1XVzaQ%40mail.gmail.com.

Ray Bon

unread,
Feb 20, 2017, 11:49:41 AM2/20/17
to cas-...@apereo.org
John,

What is the purpose of the CasAppender tags. I do not have them in my log config, and they are generating errors.
You can change the name of the appender.

<RollingFile name="auditlogfile" fileName="cas_audit.log" append="true" ...

becomes

<RollingFile name="casAudit" fileName="cas_audit.log" append="true" ...

Ray
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CADTFBKougxRQvJ7%2Bipj75w0hYBW%2BXr%2BOk5mFS%2BBNwWDk2fcHXw%40mail.gmail.com.

-- 
Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE C023 | rb...@uvic.ca

Alberto Cabello Sánchez

unread,
Feb 21, 2017, 6:33:12 AM2/21/17
to cas-...@apereo.org, RJ Guroo
On Thu, 16 Feb 2017 22:17:11 -0500
RJ Guroo <ssog...@gmail.com> wrote:

> Am I the only one with logging/debugging challenges ?
>
> Log config:
> http://pastebin.com/irNhfDs8

My config is pretty similar and it is working OK.
No logging-related errors, at least. Maybe I'm doing something wrong, as I
had to change

<Configuration monitorInterval="5" packages="org.apereo.cas.logging">
<Properties>
<Property name="logDir">/opt/tomcat/logs/</Property>
</Properties>
<Appenders>
<RollingFile name="file" fileName="cas.log" append="true"
filePattern="cas-%d{yyyy-MM-dd-HH}-%i.log">


to

<Configuration monitorInterval="5" packages="org.apereo.cas.logging">
<Appenders>
<RollingFile name="file" fileName="/opt/tomcat/logs/cas.log"
append="true" filePattern="cas-%d{yyyy-MM-dd-HH}-%i.log">

to get some logging.

Just in case org.apereo.cas.logging.CasAppender is the missing class, check
for cas-server-core-logging-5.0.2.jar in your build.

--
Alberto Cabello Sánchez
Servicio de Informática
Universidad de Extremadura

Alberto Cabello Sánchez

unread,
Feb 21, 2017, 3:34:01 PM2/21/17
to cas-...@apereo.org, John Wynstra
On Fri, 17 Feb 2017 10:26:28 -0600
John Wynstra <jdwy...@gmail.com> wrote:

> I have also had issues trying to get logging to work - I posted something
> earlier but got no response from the list.
>
> Considering the overlay concept is supposed to be a good starting point,
> I am finding the learning curve steep and frustrating. The documentation
> seems to assume that I have a point of reference that I actually don't
> have yet.

100% agreed. But I think the flashing notice in the docs says CAS 5 is not
yet aimed for widespread deploying.

I'm writing a "getting started" guide with my progress, I will post it
to the list as it improves.

--
Alberto Cabello Sánchez
<alb...@unex.es>
Reply all
Reply to author
Forward
0 new messages