Site Network:

HELP: internal server error 500 after installation

I get internal server error right after installation. Can anyone help me? I am sure it is about a setting in htaccess file but I am a newbie and I don't know what is it and how to fix it

thanx

here is the error text

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@XXXXXXXX.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8m DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at civilitasfoundation.org Port 80
 

Re: HELP: internal server error 500 after installation

Check your Apache error log, or if you're like me and you set up application-specific error logs, check that error log. That should contain a Python traceback with an error message.

If you don't come right with the error message, please paste the entire traceback here.

Re: HELP: internal server error 500 after installation

I also face the same problem.. Please find the trace back while click on administration button.

  • Template
  • Extra Data
  • Traceback
  • There is no source code to display. Click a 'view' link in the Traceback tab to load source code.

    Extra Data

    CGI Variables
    COMSPEC 'C:\\Windows\\system32\\cmd.exe'
    DOCUMENT_ROOT 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'
    GATEWAY_INTERFACE 'CGI/1.1'
    HTTP_ACCEPT 'image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*'
    HTTP_ACCEPT_ENCODING 'gzip, deflate'
    HTTP_ACCEPT_LANGUAGE 'en-us'
    HTTP_CONNECTION 'Keep-Alive'
    HTTP_COOKIE 'projecthq=eeaf925270b2509d9865126f12f232ce19ac595ab5547df6f59e391bb767751ebf8c594d'
    HTTP_HOST 'localhost:8080'
    HTTP_REFERER 'http://localhost:8080/'
    HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; GTB6.4; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)'
    PATH 'C:\\Program Files\\PC Connectivity Solution\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\PROGRA~1\\COMMON~1\\ULEADS~1\\MPEG;C:\\Program Files\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program Files\\QuickTime\\QTSystem\\;C:\\Program Files\\MySQL\\MySQL Server 5.1\\bin;C:\\Python26\\Scripts;C:\\Python26;C:\\Program Files\\Apache Software Foundation\\Apache2.2\\bin'
    PATHEXT '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
    PATH_INFO '/administration/'
    PATH_TRANSLATED 'C:\\ProjectHQ\\index.wsgi\\administration\\'
    REMOTE_ADDR '127.0.0.1'
    REMOTE_PORT '63086'
    REQUEST_METHOD 'GET'
    REQUEST_URI '/administration/'
    SCRIPT_FILENAME 'C:/ProjectHQ/index.wsgi'
    SERVER_ADDR '127.0.0.1'
    SERVER_ADMIN 'saurabha.gupta@nucleussoftware.com'
    SERVER_NAME 'localhost'
    SERVER_PORT '8080'
    SERVER_PROTOCOL 'HTTP/1.1'
    SERVER_SOFTWARE 'Apache/2.2.15 (Win32) mod_wsgi/2.7 Python/2.6.5'
    WINDIR 'C:\\Windows'

    Extra Data

    WSGI Variables
    SystemRoot 'C:\\Windows'
    application <beaker.middleware.CacheMiddleware object at 0x047135D0>
    beaker.cache <beaker.cache.CacheManager object at 0x04713610>
    beaker.get_session <bound method SessionMiddleware._get_session of <beaker.middleware.SessionMiddleware object at 0x047135B0>>
    beaker.session {'project_id': None, '_accessed_time': 1273068651.9879999, 'REMOTE_USER': 1L, '_creation_time': 1273067058.336, 'company_id': 1L}
    mod_wsgi.application_group 'www.projecthq.org:8080|'
    mod_wsgi.callable_object 'application'
    mod_wsgi.process_group ''
    mod_wsgi.reload_mechanism '0'
    mod_wsgi.script_reloading '1'
    mod_wsgi.version (2, 7)
    paste.evalexception <weberror.evalexception.EvalException object at 0x04713630>
    paste.evalexception.debug_count 1273068652
    paste.expected_exceptions [<class 'paste.httpexceptions.HTTPException'>]
    paste.httpexceptions <paste.httpexceptions.HTTPExceptionHandler object at 0x04713570>
    paste.registry <paste.registry.Registry object at 0x0471C190>
    paste.throw_errors True
    pylons.action_method <bound method AdministrationController.index of <projecthq.controllers.administration.AdministrationController object at 0x04870BB0>>
    pylons.controller <projecthq.controllers.administration.AdministrationController object at 0x04870BB0>
    pylons.environ_config {'session': 'beaker.session', 'cache': 'beaker.cache'}
    pylons.pylons <pylons.util.PylonsContext object at 0x04870C70>
    pylons.routes_dict {'action': u'index', 'controller': u'administration', 'id': None}
    routes.route <routes.route.Route object at 0x04661910>
    routes.url <routes.util.URLGenerator object at 0x048CD0F0>
    weberror.evalexception <weberror.evalexception.EvalException object at 0x04713630>
    webob.adhoc_attrs {'language': 'en-us'}
    wsgi process 'Multithreaded'
    wsgi.file_wrapper <built-in method file_wrapper of mod_wsgi.Adapter object at 0x048577B8>
    wsgiorg.routing_args (<routes.util.URLGenerator object at 0x048CD0F0>, {'action': u'index', 'controller': u'administration', 'id': None})

    Error !

    GenerationException: url_for could not generate URL. Called with args: () {'action': 'configuration', 'controller': 'administration'}

    6 <dl>
    7 % if c.current_user.has_access("Configure System"):
    8 <dt><a href="${h.url_for(controller="administration", action="configuration")}" title="Configuration">Configuration</a></dt>
    9 <dd>Set up the theme for the system, the title of the system, and other configuration data.</dd>
    10 % endif
    11 % if c.current_user.has_access("Manage Projects"):
    12 <dt><a href="${h.url_for(controller="project", action="index")}" title="Projects">Projects</a></dt>
    13 <dd>Create, edit and manage projects.</dd>
    14 % endif
    C:\Python26\lib\site-packages\routes-1.12.1-py2.6.egg\routes\util.py, line 269:
    (args, kargs))
    C:\Python26\lib\site-packages\projecthq-0.1.3dev_r149-py2.6.egg\projecthq\templates/administration/index.mako, line 9:
    <dd>Set up the theme for the system, the title of the system, and other configuration data.</dd>
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\runtime.py, line 278:
    return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
    C:\Python26\lib\site-packages\projecthq-0.1.3dev_r149-py2.6.egg\projecthq\templates/base.mako, line 81:
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\runtime.py, line 450:
    callable_(context, *args, **kwargs)
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\runtime.py, line 462:
    result = template.error_handler(context, error)
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\runtime.py, line 452:
    _render_error(template, context, e)
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\runtime.py, line 434:
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\runtime.py, line 403:
    _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
    C:\Python26\lib\site-packages\mako-0.3.2-py2.6.egg\mako\template.py, line 198:
    as_unicode=True)
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\templating.py, line 271:
    return literal(template.render_unicode(**globs))
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\templating.py, line 249:
    return render_func()
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\templating.py, line 274:
    cache_type=cache_type, cache_expire=cache_expire)
    C:\Python26\lib\site-packages\projecthq-0.1.3dev_r149-py2.6.egg\projecthq\controllers\administration.py, line 50:
    return render('/administration/index.mako')
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\controllers\core.py, line 60:
    return func(**args)
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\controllers\core.py, line 107:
    result = self._perform_call(func, args)
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\controllers\core.py, line 172:
    response = self._inspect_call(func)
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\controllers\core.py, line 221:
    response = self._dispatch_call()
    C:\Python26\lib\site-packages\projecthq-0.1.3dev_r149-py2.6.egg\projecthq\lib\base.py, line 81:
    return WSGIController.__call__(self, environ, start_response)
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\wsgiapp.py, line 324:
    return controller(environ, start_response)
    C:\Python26\lib\site-packages\pylons-0.9.7-py2.6.egg\pylons\wsgiapp.py, line 125:
    response = self.dispatch(controller, environ, start_response)
    C:\Python26\lib\site-packages\paste-1.7.3-py2.6.egg\paste\httpexceptions.py, line 633:
    return self.application(environ, start_response)
    C:\Python26\lib\site-packages\routes-1.12.1-py2.6.egg\routes\middleware.py, line 131:
    response = self.app(environ, start_response)
    C:\Python26\lib\site-packages\beaker-1.5.3-py2.6.egg\beaker\middleware.py, line 152:
    return self.wrap_app(environ, session_start_response)
    C:\Python26\lib\site-packages\beaker-1.5.3-py2.6.egg\beaker\middleware.py, line 73:
    return self.app(environ, start_response)
    C:\Python26\lib\site-packages\weberror-0.10.2-py2.6.egg\weberror\evalexception.py, line 431:
    app_iter = self.application(environ, detect_start_response)

    WebError Traceback:

    GenerationException: url_for could not generate URL. Called with args: () {'action': 'configuration', 'controller': 'administration'}
    View as:   Interactive (full)  |  Text (full)  |  XML (full)
    clear this clear this
    Module projecthq.controllers.administration:50 in index         view
    <<          """
                   c.page_title = u'Administration'
                   return render('/administration/index.mako')
          
               @check_access('Configure System')
    >>  return render('/administration/index.mako')
    Module pylons.templating:274 in render_mako         view
    <<     
               return cached_template(template_name, render_template, cache_key=cache_key,
                                      cache_type=cache_type, cache_expire=cache_expire)
    >>  cache_type=cache_type, cache_expire=cache_expire)
    Module pylons.templating:249 in cached_template         view
    <<          return content
               else:
                   return render_func()
    >>  return render_func()
    Module pylons.templating:271 in render_template         view
    <<          template = globs['app_globals'].mako_lookup.get_template(template_name)
                  
                   return literal(template.render_unicode(**globs))
              
               return cached_template(template_name, render_template, cache_key=cache_key,
    >>  return literal(template.render_unicode(**globs))
    Module mako.template:198 in render_unicode         view
    <<                                  args,
                                           data,
                                           as_unicode=True)
                  
               def render_context(self, context, *args, **kwargs):
    >>  as_unicode=True)
    Module mako.runtime:403 in _render         view
    <<      context._with_template = template
              
               _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
               return context._pop_buffer().getvalue()
    >>  _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
    Module mako.runtime:434 in _render_context         view
    <<          # if main render method, call from the base of the inheritance stack
                   (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
                   _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
               else:
                   # otherwise, call the actual rendering method specified
    >>  _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
    Module mako.runtime:452 in _exec_template         view
    <<              callable_(context, *args, **kwargs)
                   except Exception, e:
                       _render_error(template, context, e)
                   except:               
                       e = sys.exc_info()[0]
    >>  _render_error(template, context, e)
    Module mako.runtime:462 in _render_error         view
    <<  def _render_error(template, context, error):
               if template.error_handler:
                   result = template.error_handler(context, error)
                   if not result:
                       raise error
    >>  result = template.error_handler(context, error)
    Module mako.runtime:450 in _exec_template         view
    <<          error = None
                   try:
                       callable_(context, *args, **kwargs)
                   except Exception, e:
                       _render_error(template, context, e)
    >>  callable_(context, *args, **kwargs)
    Module _base_mako:129 in render_body         view
    <<          # SOURCE LINE 80
                   __M_writer(u'      ')
                   __M_writer(escape(next.body()))
                   __M_writer(u'\n\n    </div>\n    <div id="footer">\n        <div class="poweredby"><a href="http://www.pylonshq.com/" title="Pylons Web Framework"><img src="/global/images/pylons-tower-dark1.png" alt="Powered by Pylons" /></a></div>\n        <p>Copyright &copy; 2007-2008 <a href="http://saturnlaboratories.co.za/" title="Saturn Laboratories">Raoul Snyman</a> | <a href="http://projecthq.org/" title="Project HQ on the web">Project HQ Site</a></p>\n    </div>\n  </div>\n</body>\n</html>\n')
                   return ''
    >>  __M_writer(escape(next.body()))
    Module mako.runtime:278 in <lambda>         view
    <<          if self.template and self.template.has_def(key):
                       callable_ = self.template._get_def_callable(key)
                       return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
          
                   if self._module and hasattr(self._module, key):
    >>  return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
    Module _administration_index_mako:40 in render_body         view
    <<              # SOURCE LINE 8
                       __M_writer(u'        <dt><a href="')
                       __M_writer(escape(h.url_for(controller="administration", action="configuration")))
                       __M_writer(u'" title="Configuration">Configuration</a></dt>\n        <dd>Set up the theme for the system, the title of the system, and other configuration data.</dd>\n')
                       pass
    >>  __M_writer(escape(h.url_for(controller="administration", action="configuration")))
    Module routes.util:269 in url_for         view
    <<          raise GenerationException(
                       "url_for could not generate URL. Called with args: %s %s" % \
                       (args, kargs))
               return url
    >>  (args, kargs))
    GenerationException: url_for could not generate URL. Called with args: () {'action': 'configuration', 'controller': 'administration'}