Modify

Opened 8 years ago

Last modified 8 years ago

#1332 new defect

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 coderanger)

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 (2)

comment:1 Changed 8 years ago by coderanger

  • Description modified (diff)

Fixing formatting

comment:2 Changed 8 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

Add Comment

Modify Ticket

Action
as new The owner will remain linetor.
Author


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

 
Note: See TracTickets for help on using tickets.