Having followed the instructions to fix this problem on:

http://trac.edgewall.org/wiki/TracSubversion#instance-dict-restricted-mode

We are still getting this problem.

We are using mod_wsgi.

trac.ini attached, and the error message in the logs attached as 
trac-error.txt

*Contents of /etc/httpd/conf.d/wsgi.conf*

####################################################################
LoadModule wsgi_module modules/mod_wsgi.so

WSGIDaemonProcess apache user=apache group=root threads=25
# WSGIDaemonProcess wsgi-demo user=www-data group=www-data threads=25

<Directory /srv/wsgi-scripts>
Order allow,deny
Allow from all
</Directory>

# WSGIScriptAlias /myapp /srv/wsgi-scripts/myapp.wsgi

# WSGIScriptAlias /trac /srv/wsgi-scripts/trac.wsgi
WSGIScriptAlias / /srv/wsgi-scripts/trac.wsgi
######################################################################

Contents of  */etc/httpd/conf.d/subversion.conf* 

###################################################################### 
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /svn>
PythonInterpreter main_interpreter
DAV svn
SVNParentPath /srv/svn
SVNListParentPath on
# AuthzSVNAccessFile /srv/trac/svn.authz
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /srv/trac/users.passwd
Require valid-user
</Location>

Alias /chrome /var/www/agilo_static/htdocs/

<LocationMatch /[\w]+/chrome/>
Order deny,allow
Allow from all
</LocationMatch>
###################################################################### 

Contents of  */etc/httpd/conf.d/* 
*
*
###################################################################### *
*
LoadModule python_module modules/mod_python.so

# Override type-map handler for /var/www/manual
<Directory "/var/www/manual/mod/mod_python">
<Files *.html>
SetHandler default-handler
</Files>
</Directory>
###################################################################### 

Our environment is:

O/S: CentOS release 6.4 (Final)

Kernel:  Linux **** 2.6.32-358.6.1.el6.i686 #1 SMP Tue Apr 23 18:13:20 UTC 2013 
i686 i686 i386 GNU/Linux

httpd -v
Server version: Apache/2.2.15 (Unix)
Server built:   Feb 22 2013 11:17:44

python -V
Python 2.6.6

rpm -qa|grep -i postgres
postgresql91-server-9.1.9-1PGDG.rhel6.i686
postgresql-libs-8.4.13-1.el6_3.i686
postgresql-8.4.13-1.el6_3.i686
postgresql91-libs-9.1.9-1PGDG.rhel6.i686
postgresql91-9.1.9-1PGDG.rhel6.i686


rpm -qa|grep -i subversion
subversion-1.6.11-9.el6_4.i686

Subversion command-line client, version 1.6.11

I hope the above is sufficient info to help provide a solution.


/end

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.
2013-10-04 10:41:31,991 Trac[chrome] ERROR: Error with navigation contributor 
BrowserModule: RuntimeError: instance.__dict__ not accessible in restricted mode
2013-10-04 10:41:32,067 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 525, in 
_dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 211, in 
dispatch
    chosen_handler)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 353, in 
_pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.6/site-packages/trac/versioncontrol/api.py", line 330, 
in pre_process_request
    repo = self.get_repository(reponame)
  File "/usr/lib/python2.6/site-packages/trac/versioncontrol/api.py", line 538, 
in get_repository
    repos = connector.get_repository(rtype, rdir, repoinfo.copy())
  File "/usr/lib/python2.6/site-packages/trac/versioncontrol/svn_fs.py", line 
304, in get_repository
    fs_repos = SubversionRepository(dir, params, self.log)
  File "/usr/lib/python2.6/site-packages/trac/versioncontrol/svn_fs.py", line 
318, in __init__
    self.pool = Pool()
  File "/usr/lib/python2.6/site-packages/trac/versioncontrol/svn_fs.py", line 
153, in __init__
    self._pool = core.svn_pool_create(self._parent_pool())
  File "/usr/lib/python2.6/site-packages/svn/core.py", line 241, in 
svn_pool_create
    return Pool(parent_pool)
  File "/usr/lib/python2.6/site-packages/libsvn/core.py", line 1555, in 
svn_pool_create
    return apply(_core.svn_pool_create, args)
  File "/usr/lib/python2.6/site-packages/libsvn/core.py", line 5738, in _wrap
    obj.set_parent_pool(self)
  File "/usr/lib/python2.6/site-packages/libsvn/core.py", line 5651, in 
set_parent_pool
    self._parent_pool = parent_pool or application_pool
  File "/usr/lib/python2.6/site-packages/libsvn/core.py", line 5639, in <lambda>
    __setattr__ = lambda self, name, value: _swig_setattr(self, apr_pool_t, 
name, value)
  File "/usr/lib/python2.6/site-packages/libsvn/core.py", line 24, in 
_swig_setattr
    return _swig_setattr_nondynamic(self,class_type,name,value,0)
  File "/usr/lib/python2.6/site-packages/libsvn/core.py", line 19, in 
_swig_setattr_nondynamic
    self.__dict__[name] = value
RuntimeError: instance.__dict__ not accessible in restricted mode

Attachment: trac_SANITISED.ini
Description: Binary data

Reply via email to