Modify

Opened 5 years ago

Closed 21 months ago

Last modified 21 months ago

#5199 closed defect (worksforme)

Trac fails after installing plugin

Reported by: anonymous Owned by: jeangui
Priority: normal Component: DefaultCcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

This is what I did to install the defaultccplugin:

$ unzip defaultccplugin-r5681.zip
$ cd defaultccplugin/trunk
$ sudo python setup.py bdist_egg

This appeared to create an .egg file successfully in the "dist" sub-directory.
Next:

  1. I navigated to my trac site, logged on, went to ADMIN and clicked on "Plugins"
  2. browsed to Default_CC-0.1-py2.5.egg and selected it
  3. Clicked on "Install"
  4. Trac failed
  5. I fixed Trac by going to trac.ini and disabling the defaultccplugin components.

Trac log file attached.

Attachments (1)

trac.log (61.6 KB) - added by anonymous 5 years ago.
trac log file

Download all attachments as: .zip

Change History (6)

Changed 5 years ago by anonymous

trac log file

comment:1 follow-up: Changed 5 years ago by jeangui

Did you run "trac-admin upgrade" after activating the plugin ?

comment:2 in reply to: ↑ 1 Changed 5 years ago by anonymous

Replying to jeangui:

Did you run "trac-admin upgrade" after activating the plugin ?

No. Should I have? What will it do?

comment:3 Changed 5 years ago by jeangui

It creates the tables needed by DefaultCC. The error message you get after activating the plugin should tell you to run this command.

comment:4 Changed 21 months ago by rjollos

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from new to closed

Egg is loading correctly:

2009-05-07 15:42:05,383 Trac[loader] DEBUG: Loading defaultcc.main from /trac/ElectronicsRefresh/plugins/Default_CC-0.1-py2.5.egg
2009-05-07 15:42:05,383 Trac[loader] DEBUG: Loading defaultcc.admin from /trac/ElectronicsRefresh/plugins/Default_CC-0.1-py2.5.egg
...
2009-05-07 15:43:35,820 Trac[loader] DEBUG: Adding plugin Default-CC 0.1 from /trac/ElectronicsRefresh/plugins/Default_CC-0.1-py2.5.egg
2009-05-07 15:43:35,820 Trac[loader] DEBUG: Adding plugin Default-CC 0.1 from /trac/ElectronicsRefresh/plugins/Default_CC-0.1-py2.5.egg

Upgrade is needed:

2009-05-07 15:42:05,388 Trac[env] WARNING: Component <defaultcc.admin.DefaultCCAdmin object at 0x7f8635db7190> requires environment upgrade

I think the trac failure the reporter is referring to is just a normal request for a plugin upgrade. Please reopen if you continue to have trouble.

comment:5 Changed 21 months ago by rjollos

Here is an example of the upgrade message:

Trac Error

TracError: The Trac Environment needs to be upgraded.

Run "trac-admin /home/user/Workspace/th10156/tracdev upgrade"

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from jeangui. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.