The Artima Developer Community
Sponsored Link

Python Buzz Forum
Kludging with Supervisor

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Ian Bicking

Posts: 900
Nickname: ianb
Registered: Apr, 2003

Ian Bicking is a freelance programmer
Kludging with Supervisor Posted: Feb 21, 2006 8:23 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Ian Bicking.
Original Post: Kludging with Supervisor
Feed Title: Ian Bicking
Feed URL: http://www.ianbicking.org/feeds/atom.xml
Feed Description: Thoughts on Python and Programming.
Latest Python Buzz Posts
Latest Python Buzz Posts by Ian Bicking
Latest Posts From Ian Bicking

Advertisement

For some reason the Trac instance I have running under TracPaste crashes regularly. I suspect it's some problem with SQLite (3.2.8?), or Subversion, or something that leaks file descriptors.

My lame workaround is now in place using supervisor from Chris McDonough, a monitor (similar to daemontools) that will restart a process when it dies. (I could also have used daemontools itself, or zdaemon I suppose, I'm not sure what the best system will be.)

Here's the config I use:

<program trac>
  command /home/trac/bin/paster serve /home/trac/data/apps.ini
  auto-start true
  logfile /home/trac/var/paste-trac.log
</program>

I was able to install it locally to the user, but had to tweak things a little. Anyway, seems to work okay.

I still have to tweak the login screens, but the new installations of Trac now support (and require) Open ID authentication, using the support in Paste. You can get free Open ID signups, (videntity looks like the nicest) so the plan is to use those and not worry about any user database in the Trac installs themselves. You end up being identified as a URL as a result -- a more refined system would let you associate a real name and email address with the URL. But simple integration with Trac is much easier when there's no extra data. I'm also interested in videntity's hCard support, and maybe just relying on that.

Once I feel a little more comfortable with the system (and maybe even keep it from crashing constantly) I'll try to move to the instances I set up in trac.sqlobject.org and trac.formencode.org.

Read: Kludging with Supervisor

Topic: Claiming my blog on edgeio Previous Topic   Next Topic Topic: A few rules to keep in mind when using Ajax

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use