Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 11 years ago

#3878 closed defect (worksforme)

Upgrade the database failed

Reported by: anonymous Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: 0.10
Severity: blocker Keywords: upgrade database needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When I run the commande trac-admin . upgrade in my environment, I get this error:

Command failed: 'NoneType' object has no attribute 'split'

Attachments (0)

Change History (9)

comment:1 by anonymous, 18 years ago

I was upgrading from a 0.9 version. I have also the problem when I run a trac-admin initenv

Creating and Initializing Project
Failed to create environment. 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 611, in do_initenv
    options=options)
  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 228, in create
    DatabaseManager(self).init_db()
  File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 64, in init_db
    connector, args = self._get_connector()
  File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 80, in _get_connector
    scheme, args = _parse_db_str(self.connection_uri)
  File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 106, in _parse_db_str
    scheme, rest = db_str.split(':', 1)
AttributeError: 'NoneType' object has no attribute 'split'
Failed to initialize environment. 1
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 615, in do_initenv
    sys.exit(1)

comment:2 by Christian Boos, 18 years ago

Keywords: needinfo added

You somehow managed to have a non-initialized db connection string.

What's the value for your [trac] database configuration option?

comment:3 by anonymous, 18 years ago

> more trac.ini | grep database
database = sqlite:db/trac.db
Last edited 11 years ago by Ryan J Ollos (previous) (diff)

comment:4 by Christian Boos, 18 years ago

But probably

[trac]
database = 

in your global trac.ini, then.

comment:5 by anonymous, 18 years ago

I have no trac.ini in my /usr/share/trac/conf.

comment:6 by anonymous, 18 years ago

I tried to update to the trac 0.11 dev version but I have the same problem. Should I have a trac.ini in /usr/share/trac/conf?

comment:7 by anonymous, 18 years ago

Resolution: fixed
Status: newclosed

I fixed it by reinstalling from scratch trac.

comment:8 by Christian Boos, 18 years ago

Resolution: fixed
Status: closedreopened

changing resolution

comment:9 by Christian Boos, 18 years ago

Resolution: worksforme
Status: reopenedclosed

we use fixed exclusively for tickets requiring code changes

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.