Long timeout when modifying a ticket

19 views
Skip to first unread message

Jean-Marc Lasgouttes

unread,
Mar 3, 2026, 10:39:07 AMMar 3
to Trac Users
Daer Trac users,

We have a trac installation that worked well until fairly recently. Now,
every time one tries to modify a ticket, nothing happens for a minute or
so, and then the modification is done.

This is not a matter of load on the server, it looks more like a timeout
somewhere.

I see nothing of interest in trac.log. Have you already experienced such
a situation? Where should I look?

Any idea welcome.

JMarc

Jun Omae

unread,
Mar 3, 2026, 6:26:19 PMMar 3
to trac-...@googlegroups.com
Hi,
Hmm, I have not encountered similar issues.

Please describe your environment which Trac is running with:

* Trac version
* Python version
* Database and the version
* Version control (svn, git, hg)
* Installed plugins and enabled plugins

Please share entire of trac.ini and trac.log after enabling logging
with DEBUG and reproducing it, if possible.

--
Jun Omae <jun...@gmail.com> (大前 潤)

Jean-Marc Lasgouttes

unread,
Mar 8, 2026, 5:37:06 PMMar 8
to trac-...@googlegroups.com
Le 04/03/2026 à 00:25, Jun Omae a écrit :
> Hmm, I have not encountered similar issues.
>
> Please describe your environment which Trac is running with:
>
> * Trac version
> * Python version
> * Database and the version
> * Version control (svn, git, hg)
> * Installed plugins and enabled plugins
>
> Please share entire of trac.ini and trac.log after enabling logging
> with DEBUG and reproducing it, if possible.

Hello,

Thanks for your answer, and sorry for my own timeout. Here is some
information

Server is: Ubuntu 24.04.4 LTS (GNU/Linux 6.8.0-101-generic x86_64)

trac version 1.6

Python 3.12.3

root@www:/home/lyx/www# file trac/db/trac.db
trac/db/trac.db: SQLite 3.x database, last written using SQLite version
3045001, page size 1024, file counter 6603671, database pages 478423,
1st free page 351893, free pages 4643, cookie 0x3d, schema 1, UTF-8,
version-valid-for 6603671

version control is git

Enabled plugins are indicated here if I am not mistaken. I am not sure
what the correct information is
[components]
acct_mgr.admin.* = enabled
acct_mgr.api.* = enabled
acct_mgr.db.sessionstore = disabled
acct_mgr.guard.accountguard = enabled
acct_mgr.htfile.htdigeststore = disabled
acct_mgr.htfile.htpasswdstore = enabled
acct_mgr.http.* = disabled
acct_mgr.notification.* = enabled
acct_mgr.pwhash.* = disabled
acct_mgr.register.* = disabled
acct_mgr.register.basiccheck = enabled
acct_mgr.register.bottrapcheck = enabled
acct_mgr.register.emailcheck = enabled
acct_mgr.register.emailverificationmodule = enabled
acct_mgr.register.regexpcheck = enabled
acct_mgr.register.registrationmodule = disabled
acct_mgr.register.usernamepermcheck = enabled
acct_mgr.web_ui.* = enabled
acct_mgr.web_ui.resetpwstore = disabled
trac.web.auth.loginmodule = disabled
trackeywords.web_ui.* = enabled
tracopt.ticket.deleter = enabled
tracopt.versioncontrol.git.* = enabled


trac.ini is in attachment and trac.log (which is quite large) is at
https://who.paris.inria.fr/Jean-Marc.Lasgouttes/trac.log.xz

This has been obtained by adding a single comment to a ticket. It looks
like trac restarted >100K times!

I hope that this information makes sense to you.

Regards,
JMarc

trac.ini

Jun Omae

unread,
Mar 8, 2026, 6:31:09 PMMar 8
to trac-...@googlegroups.com
Thanks for the sharing trac.ini and trac.log. Investigating the
trac.log, I found many "OperationalError: database is locked" in the
log.

First, I consider that "PRAGMA journal_mode WAL" and "PRAGMA
synchronous NORMAL" might help it. The parameters can be set in [trac]
database option like the following:

[trac]
database = sqlite:db/trac.db?journal_mode=wal&synchronous=normal

I recommend to use PostgreSQL rather than SQLite for internet-facing Trac.
Reply all
Reply to author
Forward
0 new messages