Modify

Opened 15 years ago

Closed 12 years ago

Last modified 12 years 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 Ryan J Ollos)

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 15 years ago.
trac log file

Download all attachments as: .zip

Change History (6)

Changed 15 years ago by anonymous

Attachment: trac.log added

trac log file

comment:1 Changed 15 years ago by jeangui

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

comment:2 in reply to:  1 Changed 15 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 15 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 12 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: worksforme
Status: newclosed

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 12 years ago by Ryan J Ollos

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"

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain jeangui.
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.