Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#8937 closed defect (wontfix)

Recent plugin install causes Trac site to be unusable

Reported by: mike@… Owned by:
Priority: high Milestone:
Component: admin/web Version: 0.11.6
Severity: critical Keywords: --port not recognized
Cc: mike@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I have had Trac 0.11.6 running successfully on Windows 2003 for some time and today I attempted to install two plugins (in this order):

accountmanagerplugin (using the "easy_install " command line tool) iniadminplugin (using the plugin UI in the admin page after downloading the .egg)

After the first one installed successfully, I performed the second install and the site became unusable and has stopped our ticketing support group entirely. I received this message by the tracd daemon:

C:\trac>c:\Python26\Scripts\tracd.exe --port 8000 c:\trac
Server starting in PID 3896.
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/
----------------------------------------
Exception happened during processing of request from ('192.168.1.154', 51208)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 558, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python26\lib\SocketServer.py", line 615, in __init__
    self.handle()
  File "C:\Python26\lib\BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\wsgi.
py", line 194, in handle_one_request
    gateway.run(self.server.application)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\wsgi.
py", line 94, in run
    response = application(self.environ, self._start_response)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\stand
alone.py", line 100, in __call__
    return self.application(environ, start_response)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\web\main.
py", line 394, in dispatch_request
    env = open_environment(env_path, use_cache=not run_once)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\env.py",
line 590, in open_environment
    env = env_cache.setdefault(env_path, open_environment(env_path))
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\env.py",
line 594, in open_environment
    env = Environment(env_path)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\env.py",
line 204, in __init__
    load_components(self, plugins_dir and (plugins_dir,))
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\loader.py
", line 112, in load_components
    loadfunc(env, search_path, auto_enable=plugins_dir)
  File "C:\Python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg\trac\loader.py
", line 91, in _load_py_files
    module = imp.load_source(plugin_name, plugin_file)
  File "c:\trac\plugins\setup.py", line 11, in <module>
    package_data={'iniadmin' : ['htdocs/css/*.css', 'templates/*.html', ]})
  File "C:\Python26\lib\distutils\core.py", line 140, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: tracd-script.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_op
ts] ...]
   or: tracd-script.py --help [cmd1 cmd2 ...]
   or: tracd-script.py --help-commands
   or: tracd-script.py cmd --help

error: option --port not recognized
----------------------------------------
^C
C:\trac>

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 14 years ago

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

What is this c:\trac\plugins\setup.py file?

Apparently Trac tries to load it as a single file plugin, and that obviously won't work.

Anyway, this is an InstallationIssue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.