Hi Tom,please start by omitting logging.conf and use version 2.5.
Kind regards Cornelius
Cornelius KölbelCornelius.koelbel@netknights.it+49 151 2960 1417
NetKnights GmbHhttp://netknights.itLandgraf-Karl-Str. 19, 34131 Kassel, GermanyTel: +49 561 3166797, Fax: +49 561 3166798
Amtsgericht Kassel, HRB 16405Geschäftsführer: Cornelius Kölbel-------- Ursprüngliche Nachricht --------
Von: rtcw2002 rtcw2002@gmail.com
Datum: 04.08.2015 15:10 (GMT+01:00)
An: privacyidea privacyidea@googlegroups.com
Betreff: Privacy IDEA don’t write log’s
Hi
I installded Privacyidea on Ubuntu 14.04 LTS.
Installation was easy,
The First Config of Freeradius was a.p.i.t.a, yo know.
After a Weekfull of frustration i reinstall Ubuntu and PI ( 4 times)
Evertime the same two Issue.
Smtptosms not work and first, i’ts not possible to troubleshoot without any logs
I’ver checked :
/privacyidea/config.py
class Config:
PI_LOGFILE = "privacyidea.log"
PI_LOGLEVEL = logging.DEBUG
PI_LOGCONFIG = "/etc/privacyidea/logging.cfg"
/etc/privacyidea/pi.cfg
PI_AUDIT_KEY_PRIVATE = '/etc/privacyidea/private.pem’
PI_AUDIT_KEY_PUBLIC = '/etc/privacyidea/public.pem’
PI_LOGFILE = '/var/log/privacyidea/privacyidea.log’
PI_LOGCONFIG = “/etc/privacyidea/logging.cfg”
#PI_LOGLEVEL = logging.INFO
PI_LOGLEVEL = 10
and
/etc/privacyidea/logging.cfg
[frmatters]
keys=detail
[handlers]
keys=file,mail
[formatter_detail]
class=privacyidea.lib.log.SecureFormatter
format=[%(asctime)s][%(process)d][%(thread)d][%(levelname)s][%(name)s:%(lineno)d] %(message)s
[handler_mail]
class=logging.handlers.SMTPHandler
level=ERROR
formatter=detail
args=(‘mail.company.com’, myname@company.com’, ‘PI Error’)
[handler_file]
Rollover the logfile at midnight
class=logging.handlers.RotatingFileHandler
backupCount=14
maxBytes=10000000
formatter=detail
level=DEBUG
args=(’/var/log/privacyidea/privacyidea.log’,)
[loggers]
keys=root,privacyidea
[logger_privacyidea]
handlers=file,mail
qualname=privacyidea
level=DEBUG
[logger_root]
level=NOTSET
handlers=file
Any Ideas ?
Tom
–
You received this message because you are subscribed to the Google Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send an email to privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/privacyidea/405f2a4b-7b4b-4759-804c-9826541a9553%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.