Gunnar Thielebein wrote:
Hi all,

i did get trac running with fcgid on apache in gentoo without thread and
mpm_prefork which works but was pretty slow on an pIII. same was with
mod_pyton. So I tested with compiling apache with mpm_worker and get
this message when trying fcgid again (mod_python works here too but also
slow):

  
Oops...

Trac detected an internal error:

(22, 'Invalid argument')

Traceback (most recent call last):
  File "/var/www/localhost/cgi-bin/trac.fcgi", line 23, in <module>
    fcgi_frontend.run()
  File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg/trac/web/fcgi_frontend.py", line 26, in run
    _fcgi.WSGIServer(dispatch_request).run()
  File "/usr/lib/python2.5/site-packages/Trac-0.11dev_r6306-py2.5.egg/trac/web/_fcgi.py", line 1077, in run
    clientSock, addr = sock.accept()
error: (22, 'Invalid argument')
    

To run this configuration theres a script delivered in tracs svn:

---

import os
os.environ['TRAC_ENV']="/var/trac/master"
os.environ['PYTHON_EGG_CACHE']="var/tmp"

try:
    from trac.web import fcgi_frontend
    fcgi_frontend.run()
except SystemExit:
    raise
except Exception, e:
    print 'Content-Type: text/plain\r\n\r\n',
    print 'Oops...'
    print
    print 'Trac detected an internal error:'
    print
    print e
    print
    import traceback
    import StringIO
    tb = StringIO.StringIO()
    traceback.print_exc(file=tb)
    print tb.getvalue()
---


Has it something to do with threads?
I don't know if iam right here on this list. Perhaps better on trac's ?

my config:

fcgi-2.2
apache-2.2.6-r2
Trac-0.11dev_r6306-py2.5.egg
Python-2.5.1-r4


Regards, Gunnar


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

  
My set up, suexec compatible. I do not edit trac.fcgi.
ScriptAlias /trac /var/www/weedy.1.vg/cgi-bin/tracwrap.fcg

# cat /var/www/weedy.1.vg/cgi-bin/tracwrap.fcg
#!/bin/sh
export TRAC_ENV_PARENT_DIR="/var/lib/trac"
exec /var/www/weedy.1.vg/cgi-bin/trac.fcgi

[ebuild   R   ] www-servers/apache-2.2.6-r4  USE="ssl suexec threads -debug -doc -ldap (-selinux) -static" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -authn_alias -cern_meta -charset_lite -dumpio -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -version" APACHE2_MPMS="worker -event -itk -peruser -prefork" 0 kB
[ebuild   R   ] dev-lang/python-2.5.1-r4  USE="berkdb ipv6 ncurses readline sqlite ssl -bootstrap -build -doc -examples -gdbm -nothreads -tk -ucs2" 0 kB
[ebuild   R   ] www-apache/mod_fcgid-2.2  0 kB
[ebuild   R   ] www-apps/trac-0.10.4  USE="cgi fastcgi mysql silvercity sqlite vhosts -enscript -postgres" 0 kB
-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to