<html><body><br />On 12:31 am, jml@mumak.net wrote:<br />&gt;Hello,<br />&gt;<br />&gt;The reliability of our trac instance is ludicrous. &#160;It is becoming<br />&gt;extremely difficult to do any work on Twisted, particularly during the<br />&gt;hours when America is asleep.<br />&gt;<br />&gt;I'm very grateful for Jp's tireless efforts in making trac work as<br />&gt;much as it has. &#160;I have some idea of how busy he is, and can imagine<br />&gt;how frustrating the task must be. &#160;However, we can't continue running<br />&gt;our issue tracker like this.<br />&gt;<br />&gt;First question is, what is causing the outages? People on #twisted<br />&gt;have commented that they haven't seen similar behaviour on their own<br />&gt;tracs. The outages are so frequent that this is becoming an FAQ.<br /><br />There are several problems:<br /><br />&#160; Segfaults in the svn bindings - in correspondence with the trac team, I have been told (almost in so many words) that bdb-backed svn repositories are unsupported and we should switch to fsfs.<br /><br />&#160; Segfaults in the SQLite bindings - likewise, in correspondence with the trac team, I have more or less been told that SQLite is not a supported database engine and that we should switch to PostgreSQL.<br /><br />&#160; Deadlocks in... who knows where.<br /><br />&gt;<br />&gt;The second question is, how can I help trac to work better? Would it<br />&gt;help to throw more hardware at the problem? Should we switch to<br />&gt;another tracker? (blech) Are there open tickets on trac itself that I<br />&gt;could submit patches for?<br /><br />It might be possible to resolve the above mentioned problems.<br /><br />If we convert the repository to fsfs, we might find the segfaults from the svn bindings disappear (of course, we might not - I think we can all recognize the quality of this sort of bug stomping). &#160;In addition to the actual task of converting, involved in this would be some level of investigation into the level of stability of the fsfs backend available in the version of debian used on wolfwood, an effort to package or have packaged a newer version, or an upgrade of wolfwood (however, since even edgy lacks svn 1.4, this probably isn't a useful endeavour). &#160;This may also involve recompiling several packages on pyramid to add fsfs support or remove bdb support.<br /><br />If we convert the trac database to use PostgreSQL, the SQLite segfaults will hopefully go away. ;) &#160;This involves setting up a PostgreSQL server which we can use for trac (one is running on pyramid now, for the benefit of buildbot, beyond that, what state it is in is not clear to me). &#160;There is a tool available from edgewall which is supposed to be capable of moving data from a SQLite database to a PostgreSQL database. &#160;The various scripts and utilities which we have (eg, the weekly bug summary) may also need to be adjusted (I forget to what extent they are tied to SQLite). &#160;Then, as an ongoing task, someone will need to maintain the PostgreSQL server.<br /><br />As for the random deadlocks which occur... I see no realistic course of action which is likely to resolve these. &#160;Perhaps, if the above changes are enacted, we will be lucky they will just go away by themselves. &#160;That seems to be the attitude of the trac developers, anyway.<br /><br />&gt;<br />&gt;Finally, assuming Twisted's trac isn't going to get much better any<br />&gt;time soon, I would greatly appreciate being given the permissions and<br />&gt;training to restore trac. I think it would also be a good idea to<br />&gt;share the responsibility with someone in a European timezone.<br /><br />Before I left last week I set up a cron job to take care of this. &#160;When I returned it was still doing its job, so the level of availability seen over the past week or so may be the highest we can expect until we do something else fundamental to fix the issue. &#160;However, the SSH key you gave me long ago is still in place and you should still have access to restart the server (just connecting should do it).<br /><br />Personally, I am in favor of switching away from trac, as I have been since<br />shortly before we adopted it. ;) &#160;The only open question is when the replacement will be ready.<br /><br />Jean-Paul<br /></body></html>