David Abrahams
<[EMAIL PROTECTED]> writes:

> Russell Hind <[EMAIL PROTECTED]> writes:
>
>> David Abrahams wrote:
>>> Which I did.  Now error_log shows no complaints about being unable
>>> to
>>> find the image files, but still I can't see them in the browser.  Yes
>>> I've cleared my browser's cache.  What could be wrong, and/or how can
>>> I debug this?
>>> 
>>
>> Not sure, but perhaps something to do with this the 'ht_docs' location
>> for your trac repository.  I had some trouble with this when I first
>> set trac up.
>>
>> http://projects.edgewall.com/trac/wiki/TracIni
>
> I suppose you mean the htdocs_location, yes?
>
> According to the TracModPython docs, it shouldn't be necessary to mess
> with that in order to get mod_python going.  Wow, interesting.  Now
> that works, except for the trac_banner.  Tweaking trac.ini...  OK,
> there's the banner.  Thanks for the pointer, Russel.

Ah, the fun's not over yet!

Problem 1:  I click the "TestPage" link and get:


  Oops...
  Trac detected an internal error:

  __init__() takes exactly 2 arguments (7 given)

  <snip>

  Traceback (most recent call last):
    File
    
"/usr/local/boost/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
    line 206, in handler 

      dispatch_request(mpr.path_info, mpr, env)
    File
    "/usr/local/boost/lib/python2.4/site-packages/trac/web/main.py",
    line 139, in dispatch_request 

      dispatcher.dispatch(req)
    File
    "/usr/local/boost/lib/python2.4/site-packages/trac/web/main.py",
    line 95, in dispatch 

      if handler.match_request(req) or \
    File
    "/usr/local/boost/lib/python2.4/site-packages/trac/wiki/web_ui.py",
    line 69, in match_request 

      req.args['page'] = match.group(1)
    File
    
"/usr/local/boost/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
    line 173, in __setitem__ 
      {}, None, {}))
  TypeError: __init__() takes exactly 2 arguments (7 given)


Problem 2:  I click the "Timeline" link and get:

  Oops...
  Trac detected an internal error:

  /usr/local/boost/lib/svn-python/libsvn/_fs.so: Undefined symbol "openpty"

So I went and added libutil.so to my LD_PRELOAD -- I had to do the
same thing with libc_r.so earlier because I'm on an old FreeBSD, where
Apache isn't built with threading enabled and otherwise we get nowhere
until pthread_self can be found.  That resulted in a *blank* Timeline
page and the following in my Apache's error_log:

  Fatal Python error: Interpreter not initialized (version mismatch?)
  [Tue Apr 25 05:03:10 2006] [notice] child pid 55904 exit signal
  Abort trap (6), possible coredump in /usr/local/boost

I'm beginning to wonder if mod_python is really such a good idea for
me;  If FastCGI runs python in a separate process it might go better.

> So, AFAICT, someone really needs to factor out the common instructions
> that apply to all Trac Apache setups and list them separately.
> Doesn't everyone have this problem?  It cost me hours.
>
> I'd be happy to do that, but I don't want to tell people something
> like "you *must* create an alias for the directory containing your
> static resources" if it isn't true; other instructions I've found
> also imply that with mod_python this shouldn't be necessary.  If
> someone with more expertise than I would like to explain the real
> facts, I'll edit TracModPython myself.

The offer still stands...

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to