Edgewall Software
Modify

Opened 13 years ago

Closed 7 years ago

Last modified 6 years ago

#9903 closed enhancement (fixed)

Trac with cherokee, unmet dependency

Reported by: jevgenij.tsoi@… Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.17
Component: web frontend/tracd Version: 0.12-stable
Severity: normal Keywords: documentation cherokee flup
Cc: Branch:
Release Notes:

Message is emitted when flup package is not installed and using scgi, ajp or fcgi protocol with TracStandalone.

API Changes:
Internal Changes:

Description

Hej!

I was installing trac with cherokee, following instructions on TracFastCgi. I could not get tracd to start. Cherokee was giving me 503 errors.

Running tracd by hand, i got this trace:

Traceback (most recent call last):
  File "/usr/local/bin/tracd", line 9, in <module>
    load_entry_point('Trac==0.12', 'console_scripts', 'tracd')()
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/standalone.py", line 290, in main
    serve()
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/standalone.py", line 272, in serve
    None, None, ['']).WSGIServer
ImportError: No module named flup.server.scgi

Anyway, installing python-flup fixed the problem. But it was in no way obvious.

I don't know, maybe you could add some directions in the scgi section, on this dependency.

Setup: Ubuntu 10.10 server python 2.6 trac 0.12 installed via easy_install cherokee 1.0.12 installed via ubuntu ppa

Thank you for a great app! /JT

Attachments (0)

Change History (10)

comment:1 by Christian Boos, 13 years ago

Keywords: documentation added
Milestone: unscheduled

Yes, the support for scgi and ajp via flup in tracd has somewhat sneaked in without being documented (r3081). Feel free to help improve the documentation, the TracFastCgi page is editable by all.

comment:2 by jevgenij.tsoi@…, 13 years ago

TracFastCgi has been modified to reflect this dependency.

I do not know if this is needed for other protocol types. If so, it might be a good idea to make python-flup an explicit dependency.

comment:3 by figaro, 9 years ago

Type: defectenhancement

Because the installation feature has been documented in TracFastCgi and given the specificity of the issue, marking this as an enhancement.

comment:4 by Ryan J Ollos, 9 years ago

We could wrap the import statement in a try / except and report that python-flup needs to be installed when an ImportError is raised. Other than that, I don't see any actions that needs to be taken for this ticket.

comment:5 by Ryan J Ollos, 7 years ago

Milestone: unscheduled1.0.16
Owner: set to Ryan J Ollos
Release Notes: modified (diff)
Status: newassigned

comment:6 by Ryan J Ollos, 7 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fixed on 1.0-stable in r16276, merged in r16277, r16278.

comment:7 by Jun Omae, 7 years ago

main in trac.web.standalone doesn't call translation.activate(get_console_locale()). The main shouldn't call it. Therefore, the following message never be localized.

            except ImportError:
                printerr(_("Install the flup package to use the '%(protocol)s' "
                           "protocol", protocol=options.protocol))
                sys.exit(1)

comment:8 by Ryan J Ollos, 7 years ago

Thanks for noticing. I'll remove the translation marker.

comment:9 by Ryan J Ollos, 7 years ago

Fixed on 1.0-stable in r16279, merged to 1.2-stable in r16280, merged to trunk in r16281.

comment:10 by Ryan J Ollos, 6 years ago

Milestone: 1.0.161.0.17

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos 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.