trac.ini problem

27 views
Skip to first unread message

aca...@gmail.com

unread,
May 26, 2021, 10:44:27 AM5/26/21
to Trac Users
I probably got a recent automatic update trac and just got the following message:

Internal Server Error

TracError: DuplicateOptionError: While reading from '/home/me/trac/conf/trac.ini' [line 49]: option 'log_level' in section 'logging' already exists

I had two lines in trac.ini:
log_level = DEBUG
log_level = CRITICAL

The trac.ini file had a modification date of 2020 on it, so I didn't change it yet Trac failed to run.  I removed the CRITICAL line and it ran fine.

Given that I didn't change the .ini file and both lines have been there for a while, does that indicate a potential bug in a new version of Trac?

Markus Rosjat

unread,
May 26, 2021, 10:48:38 AM5/26/21
to trac-...@googlegroups.com
Hi,

My guess is you added that line a while ago but never restarted the trac process so you might ever got the problem till now.

Cheers

Markus

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/7fb1d98b-1bd5-4ed8-a740-94a5de6ad2acn%40googlegroups.com.

Aca Guy

unread,
May 26, 2021, 11:22:56 AM5/26/21
to Trac Users
This machine is regularly restarted and I log into trac, so it's not that.  I don't have any scripts that could have run and modified the .ini file themselves.

RjOllos

unread,
May 26, 2021, 12:55:40 PM5/26/21
to Trac Users
Duplicate options are not allowed in Trac 1.5.3 and later.

Ryan 

Aca Guy

unread,
May 26, 2021, 4:11:40 PM5/26/21
to Trac Users
Thanks Ryan, all is explained.
Reply all
Reply to author
Forward
0 new messages