Hi all,

I have a puzzling error.

I am running on CentOS Linux release 7.4.1708. I installed 
trac-1.0.13-1.el7.noarch through yum. I'm trying to get an initial trac 
setup going. In my httpd.conf I have :

WSGIScriptAlias /trac /var/www/trac/trac.wsgi

<Directory /var/www/trac>
    WSGIApplicationGroup %{GLOBAL}
    # For Apache 2.2
    # <IfModule !mod_authz_core.c>
    #    Order deny,allow
    #    Allow from all
    # </IfModule>
    # For Apache 2.4
    <IfModule mod_authz_core.c>
        Require all granted

I did an initenv and deploy with trac-admin.

If I pull up the trac web page, it comes up in a browser, but I get this 
message :

Error with navigation contributor "BrowserModule"
Can't synchronize with repository "(default)" (The user <tt>apache</tt> 
requires read _and_ write permissions to the database file 
/var/www/trac/db/trac.db and the directory it is located in.). Look in the 
Trac log for more information.
The user apache requires read _and_ write permissions to the database file 
/var/www/trac/db/trac.db and the directory it is located in.

And if I turn logging on so I can look at the log, I get this in the 
browser :
TracError: IOError: [Errno 13] Permission denied: 

So, basically, both errors would sem to be traceable to nothing under 
/var/www/trac/ being 'apache' read-writeable.

But I've done this :
chown -R apache:apache /var/www/trac

I can su -m apache and create and delete files under /var/www/trac as 
apache. I can run sqlite3 like so : sqlite3 db/trac.db --- and then I can 
do updates on tables in the database, and reverse them. I've tried this 
simple WSGI script to test the apache/mod_wsgi/python setup :

def application(environ, start_response):
        start_response('200 OK',[('Content-type','text/html')])
        return ['<html><body>Hello World!</body></html>']

And it seems to work (I get "Hello world" in the browser).

I don't see anything in the apache error logs, and nothing unremarkable in 
the access logs. The apache setup is utterly vanilla, nothing at all non 
standard, it certainly seems to be running as user apache.

Please help, it's quite baffling - all the error messages I'm getting 
suggest that it's a permissions issue for user apache under /var/www/trac/ 
and I am absolutely not seeing that.


Niles Oien National SOlar Observatory Boulder CO

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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to