wiki:shunfa/2010/0107-2

Version 3 (modified by shunfa, 13 years ago) (diff)

--

trac安裝 error log

Creating and Initializing Project
Initenv for '/home/trac/nvda-taiwan' failed.
 Failed to create environment.
need more than 1 value to unpack
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/admin/console.py", line 568, in do_initenv options=options)
  File "/usr/lib/python2.5/site-packages/trac/env.py", line 188, in __init__ self.create(options)
  File "/usr/lib/python2.5/site-packages/trac/env.py", line 311, in create DatabaseManager(self).init_db()
  File "/usr/lib/python2.5/site-packages/trac/db/api.py", line 69, in init_db connector, args = self._get_connector()
  File "/usr/lib/python2.5/site-packages/trac/db/api.py", line 85, in _get_connector scheme, args = parse_db_str(self.connection_uri)
  File "/usr/lib/python2.5/site-packages/trac/db/api.py", line 111, in _parse_db_str scheme, rest = db_str.split(':', 1)
ValueError: need more than 1 value to unpack

啟動trac

  • sudo -u www-data tracd --port 8000 /home/trac/PROJECT_NAME

網頁開啟結果:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 339, in send_error 'text/html')
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 684, in render_template data = self.populate_data(req, data)
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 592, in populate_data d['chrome'].update(req.chrome)
  File "/usr/lib/python2.5/site-packages/trac/web/api.py", line 169, in __getattr__ value = self.callbacks[name](self)
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 460, in prepare_request for category, name, text in contributor.get_navigation_items(req):
  File "/usr/lib/python2.5/site-packages/trac/ticket/web_ui.py", line 151, in get_navigation_items if 'TICKET_CREATE' in req.perm:
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 523, in has_permission return self._has_permission(action, resource)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 537, in _has_permission check_permission(action, perm.username, resource, perm)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 424, in check_permission perm)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 282, in check_permission get_user_permissions(username)
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 357, in get_user_permissions for perm in self.store.get_user_permissions(username):
  File "/usr/lib/python2.5/site-packages/trac/perm.py", line 173, in get_user_permissions db = self.env.get_db_cnx()
  File "/usr/lib/python2.5/site-packages/trac/env.py", line 257, in get_db_cnx return DatabaseManager(self).get_connection()
  File "/usr/lib/python2.5/site-packages/trac/db/api.py", line 74, in get_connection connector, args = self._get_connector()
  File "/usr/lib/python2.5/site-packages/trac/db/api.py", line 85, in _get_connector scheme, args = _parse_db_str(self.connection_uri)
  File "/usr/lib/python2.5/site-packages/trac/db/api.py", line 111, in _parse_db_str scheme, rest = db_str.split(':', 1)
ValueError: need more than 1 value to unpack