Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

Last modified 10 years ago

#8370 closed defect (wontfix)

Trac No Longer Operational After Trying To Install A Plugin With Webadmin

Reported by: anonymous Owned by:
Priority: high Milestone:
Component: web frontend/mod_python Version: 0.11.4
Severity: critical Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

I am running trac on an Apache 2.2 based Joomla 1.5x site.

I attempted to install the TracTicketDelete-2.0-py2.5 plugin using the Web-admin interface. The installation failed, and since then any attempt to access the trac system results in the following error in the browser: Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster. Error 500

The traceback that is generated is as follows:

[[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] mod_python (pid=5856, interpreter='main_interpreter', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] ServerName: 'localhost'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] DocumentRoot: 'C:/Server/htdocs/Spuriousemu.com'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] URI: '/projects/trac'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] Location: '/projects/trac'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] Directory: None
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] Filename: 'C:/Server/htdocs/Spuriousemu.com/projects'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] PathInfo: '/trac'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] Traceback (most recent call last):
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "C:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "C:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n    result = _execute_target(config, req, object, arg)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "C:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n    result = object(arg)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\web\\modpython_frontend.py", line 149, in handler\n    gateway.run(dispatch_request)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\web\\wsgi.py", line 87, in run\n    response = application(self.environ, self._start_response)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\web\\main.py", line 365, in dispatch_request\n    env_paths)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\web\\main.py", line 549, in send_project_index\n    use_cache=not environ['wsgi.run_once'])
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\env.py", line 584, in open_environment\n    env = env_cache.setdefault(env_path, open_environment(env_path))
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\env.py", line 588, in open_environment\n    env = Environment(env_path)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\env.py", line 201, in __init__\n    load_components(self, plugins_dir and (plugins_dir,))
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\loader.py", line 111, in load_components\n    loadfunc(env, search_path, auto_enable=plugins_dir)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\python25\\lib\\site-packages\\Trac-0.11.4-py2.5.egg\\trac\\loader.py", line 91, in _load_py_files\n    module = imp.load_source(plugin_name, plugin_file)
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "c:\\projects\\trac\\spuriousemu\\plugins\\setup.py", line 25, in <module>\n    'ticketdelete.web_ui = ticketdelete.web_ui'
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242]   File "C:\\Python25\\lib\\distutils\\core.py", line 139, in setup\n    raise SystemExit, gen_usage(dist.script_name) + "\\nerror: %s" % msg
[Tue Jun 09 23:56:56 2009] [error] [client 24.150.9.242] SystemExit: usage: mod_python [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\n   or: mod_python --help [cmd1 cmd2 ...]\n   or: mod_python --help-commands\n   or: mod_python cmd --help\n\nerror: no commands supplied

I really don't have any idea how to resolve this, and I now have a completely non-functional Trac system. I have seen some closed tickets that have something similar, but I don't think that they resulted in a non-functional system, and in any case, none of the user suggested fixes have any effect. I need to get this resolved ASAP, as our project is on hold until I can get this resolved.

Attachments (0)

Change History (5)

comment:1 by anonymous, 16 years ago

Attempts to run a standalone server using tracd results in a blank page in the browser, and the following errors in the shell used to start tracd:

C:\Python25\Scripts>tracd --port 8000 /projects/trac/spuriousemu
Server starting in PID 2168.
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 4725)
Traceback (most recent call last):
  File "C:\Python25\lib\SocketServer.py", line 464, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python25\lib\SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python25\lib\SocketServer.py", line 522, in __init__
    self.handle()
  File "C:\Python25\lib\BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\wsgi.py", line 175, in handle_one_request
    gateway.run(self.server.application)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\wsgi.py", line 87, in run
    response = application(self.environ, self._start_response)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\standalone.py", line 100, in __call__
    return self.application(environ, start_response)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\main.py", line 365, in dispatch_request
    env_paths)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\web\main.py", line 549, in send_project_index
    use_cache=not environ['wsgi.run_once'])
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\env.py", line 84, in open_environment
    env = env_cache.setdefault(env_path, open_environment(env_path))
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\env.py", line 88, in open_environment
    env = Environment(env_path)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\env.py", line 01, in __init__
    load_components(self, plugins_dir and (plugins_dir,))
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\loader.py", line 111, in load_components
    loadfunc(env, search_path, auto_enable=plugins_dir)
  File "c:\python25\lib\site-packages\Trac-0.11.4-py2.5.egg\trac\loader.py", line 91, in _load_py_files
    module = imp.load_source(plugin_name, plugin_file)
  File "c:\projects\trac\spuriousemu\plugins\setup.py", line 25, in <module>
    'ticketdelete.web_ui = ticketdelete.web_ui'
  File "C:\Python25\lib\distutils\core.py", line 139, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: tracd-script.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: tracd-script.py --help [cmd1 cmd2 ...]
   or: tracd-script.py --help-commands
   or: tracd-script.py cmd --help

error: option --port not recognized
Last edited 10 years ago by Jun Omae (previous) (diff)

comment:2 by Christian Boos, 16 years ago

Description: modified (diff)

Looks like the plugin you had was wrongly packaged… that setup.py file got extracted directly in the $TRAC_ENV/plugins folder and later got interpreted as a self-contained plugin in a .py file…

Btw, was that an .egg file or directly the source .zip you downloaded from TracHacks?

Uploading such a .zip file won't work, I'm afraid. See TracPlugins for information about how to build plugins (usually simply a matter of doing python setup.py bdist_egg).

comment:3 by Christian Boos, 15 years ago

Keywords: needinfo added

comment:4 by Christian Boos, 15 years ago

Resolution: wontfix
Status: newclosed

No feedback, and anyway was most likely an InstallationIssue.

comment:5 by anonymous, 14 years ago

I had a similar issue. I had tried to install account manager plugin. Just delete the setup.py and the compiled setup fle from the plugins folder of bitnami trak stak projects/project/plugins

Bilal Awan.

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.