Modify ↓
#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 , 19 years ago
comment:2 by , 19 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:6 by , 19 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 , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
I fixed it by reinstalling from scratch trac.
comment:9 by , 19 years ago
| Resolution: | → worksforme |
|---|---|
| Status: | reopened → closed |
we use fixed exclusively for tickets requiring code changes
Note:
See TracTickets
for help on using tickets.



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)