Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7537 closed defect (worksforme)

0.11.x gives 500 - Internal Server Error

Reported by: 2ge@… Owned by:
Priority: high Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords: 500
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hi,

we upgraded Trac from 0.10.x (worked OK) to 0.11.x and after some time we have on website "500 - Internal Server Error" - this happens on 2 of our webservers. Problem is, I cannot reproduce this and I don't know why it happens, after restarting webserver it works for some time. Here is the information:

Trac: 0.11.1 OS: FreeBSD 7.0-STABLE Webserver: lighttpd/1.4.19 Python: Python 2.5.2 DB: database = sqlite:db/trac.db

Setup of Trac is pretty usual, no hacks, no extra plugins. I also view access log, tried last functional URL before 500…I cannot reproduce problem.

Last lines from log:

2008-08-15 19:09:01,503 Trac[main] DEBUG: Dispatching <Request "GET u'/wiki/DevReadFirst'">
2008-08-15 19:09:01,511 Trac[chrome] DEBUG: Prepare chrome data for request
2008-08-15 19:09:01,512 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_CREATE on None
2008-08-15 19:09:01,512 Trac[perm] DEBUG: No policy allowed anonymous performing TRAC_ADMIN on None
2008-08-15 19:09:01,512 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_GRANT on None
2008-08-15 19:09:01,512 Trac[perm] DEBUG: No policy allowed anonymous performing PERMISSION_REVOKE on None
2008-08-15 19:09:01,513 Trac[perm] DEBUG: No policy allowed anonymous performing TICKET_ADMIN on None
2008-08-15 19:09:01,521 Trac[perm] DEBUG: No policy allowed anonymous performing EMAIL_VIEW on None
2008-08-15 19:09:01,630 Trac[perm] DEBUG: No policy allowed anonymous performing WIKI_DELETE on <Resource u'wiki:DevReadFirst@1'>
2008-08-15 19:09:01,678 Trac[main] DEBUG: 453 unreachable objects found.

Lighttpd config

# lighttpd

$HTTP["host"] =~ "^trac.opensubtitles.org" {

   server.errorlog = "/var/log/httpd/trac.opensubtitles.org-error.log"
   accesslog.filename = "/var/log/httpd/trac.opensubtitles.org-access.log"

   url.redirect = ( "^/trac" => "/projects",
         "^/$" => "/projects"
   )

   fastcgi.debug = 1

   fastcgi.server = ("/projects" =>
         ("opensubtitles" =>
          ("socket" => "/tmp/trac-fastcgi.sock",
           "bin-path" => "/usr/local/share/trac/cgi-bin/trac.fcgi",
           "check-local" => "disable",
           "bin-environment" =>
           (
            "TRAC_ENV_PARENT_DIR" => "/data/www/trac.opensubtitles.org/",
            "TRAC_ENV_INDEX_TEMPLATE" => "/data/www/trac.opensubtitles.org/index.html"
           )
          )
         )
    )

   auth.backend = "htpasswd"
   auth.backend.htpasswd.userfile = "/data/www/trac.opensubtitles.org/trac.pass"
   $HTTP["url"] =~ "^/projects/?.*/login$" {
      auth.require = ("/" =>
            (
             "method"  => "basic",
             "realm"   => "trac",
             "require" => "valid-user"
            )
      )
   }
}

Attachments (0)

Change History (6)

comment:1 by Noah Kantrowitz, 16 years ago

The important log would be the lighty error log, not Trac's.

comment:2 by 2ge@…, 16 years ago

lighttpd error log is empty:

-rw-r--r--  1 www   www          0 Jul 24 16:31 trac.opensubtitles.org-error.log

comment:3 by 2ge@…, 16 years ago

Priority: normalhigh

which information you need more, so somebody can help me, please?

comment:4 by 2ge@…, 16 years ago

Resolution: fixed
Status: newclosed

it is _VERY_ important in which order are lighttpd modules loaded. Put modules in right order (lighttpd default). This helps me, so trac works now (it seems so).

server.modules              = (
                              "mod_rewrite",
                              "mod_redirect",
                               "mod_alias",
                                "mod_access",
#                               "mod_cml",
#                               "mod_trigger_b4_dl",
                                "mod_auth",
                               "mod_status",
                               "mod_setenv",
                               "mod_fastcgi",
#                               "mod_proxy",
#                               "mod_simple_vhost",
#                               "mod_evhost",
#                               "mod_userdir",
                               "mod_cgi",
                               "mod_compress",
#                               "mod_ssi",
#                               "mod_usertrack",
                               "mod_expire",
#                               "mod_secdownload",
                               "mod_rrdtool",
                                "mod_accesslog" )

comment:5 by ebray, 16 years ago

Resolution: fixed
Status: closedreopened

This should probably be closed as 'worksforme' as there was no fault of Trac's here.

comment:6 by ebray, 16 years ago

Resolution: worksforme
Status: reopenedclosed

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.