Max wrote:
I'm trying to setup Trac under OS X (10.5.3), and I have followed several "tutorials" on how to do it without much success. The main source I have followed is http://www.sonzea.com/articles/subversion-trac.html following those instructions I managed to get to the point where I "have a functional and secure subversion server operating on port 443 using HTTPs".I do believe Trac (0.11rc2) is properly installed now, as I'm able to create a project under: /usr/local/, with: $ sudo trac-admin /usr/local/trac initenv $ sudo chown -R _www /usr/local/trac But then, when I try to access it with: $ tracd --port 8000 /usr/local/trac I get the following error by accessing http://localhost:8000/trac Traceback (most recent call last): File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ web/api.py", line 339, in send_error 'text/html') File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ web/chrome.py", line 684, in render_template data = self.populate_data(req, data) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ web/chrome.py", line 592, in populate_data d['chrome'].update(req.chrome) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ web/api.py", line 168, in __getattr__ value = self.callbacks[name](self) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ web/chrome.py", line 460, in prepare_request for category, name, text in contributor.get_navigation_items(req): File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ ticket/web_ui.py", line 133, in get_navigation_items if 'TICKET_CREATE' in req.perm: File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ perm.py", line 523, in has_permission return self._has_permission(action, resource) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ perm.py", line 537, in _has_permission check_permission(action, perm.username, resource, perm) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ perm.py", line 424, in check_permission perm) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ perm.py", line 282, in check_permission get_user_permissions(username) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ perm.py", line 357, in get_user_permissions for perm in self.store.get_user_permissions(username): File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ perm.py", line 173, in get_user_permissions db = self.env.get_db_cnx() File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ env.py", line 257, in get_db_cnx return DatabaseManager(self).get_connection() File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ db/api.py", line 76, in get_connection return self._cnx_pool.get_cnx(self.timeout or None) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ db/pool.py", line 101, in get_cnx cnx = self._connector.get_connection(**self._kwargs) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ db/sqlite_backend.py", line 126, in get_connection return SQLiteConnection(path, params) File "/Library/Python/2.5/site-packages/Trac-0.11rc2-py2.5.egg/trac/ db/sqlite_backend.py", line 168, in __init__ % (getuser(), path)) TracError: The user max requires read _and_ write permission to the database file /usr/local/trac/db/trac.db and the directory it is located in. I don't know what could be the problem for this, any help would be much appreciate it.
The user max requires read _and_ write permission to the database file /usr/local/trac/db/trac.db and the directory it is located in.
You are not running tracd as _www, you are running it as your user. --Noah
signature.asc
Description: OpenPGP digital signature