Modify

Opened 18 years ago

Closed 7 years ago

#1332 closed defect (wontfix)

Create project fails to initialize database

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

Attachments (0)

Change History (3)

comment:1 Changed 18 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting

comment:2 Changed 18 years ago by Christopher Kohlhaas

I got the same error. I added the db to the template trac.ini file:

[trac] database = sqlite:db/trac.db to resolve this

This worked for me

comment:3 Changed 7 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

The plugin is deprecated. It needs a rewrite for a more recent version of Trac.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain linetor.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.