Opened 17 years ago

Last modified 7 years ago

#1332 closed defect

Create project fails to initialize database — at Version 1

Reported by: leon.mlakar@… Owned by: linetor
Priority: normal Component: CreateProjectPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.10

Description (last modified by Noah Kantrowitz)

When trying to create a new project through WebAdmin, the CreateProject plugin fails with the below error. The project creation through trac-admin works ok.

sqlite is used for a database.

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request
    path_info)
  File "build/bdist.linux-i686/egg/createproj/api.py", line 62, in process_admin_request
  File "build/bdist.linux-i686/egg/createproj/api.py", line 96, in _do_create_proj
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 124, in __init__
    self.create(options)
  File "/usr/lib/python2.4/site-packages/trac/env.py", line 229, in create
    DatabaseManager(self).init_db()
  File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 68, in init_db
    connector, args = self._get_connector()
  File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 84, in _get_connector
    scheme, args = _parse_db_str(self.connection_uri)
  File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 110, in _parse_db_str
    scheme, rest = db_str.split(':', 1)
ValueError: need more than 1 value to unpack

Change History (1)

comment:1 Changed 17 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting

Note: See TracTickets for help on using tickets.