OpenBSD 3.8 & Bugzilla - does anyone have this running ok?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenBSD 3.8 & Bugzilla - does anyone have this running ok?

Trystan Negus
Hi. Have a really annoying problem with running Bugzilla (2.18.4 or the
latest 2.20) on OpenBSD 3.8 - I've already posted to the Mozilla
webtools group, and the response I received was along the lines of "not
a bug - never get this with other OSs - probably an OpenBSD problem -
never tested on that" and replies have now dried up...so I'm hoping
another OpenBSD user has had the same problems as me: Does anyone have
Bugzilla working ok on OpenBSD 3.8? Did you get the following error at
some point, and how did you fix it? Any help gratefully received.

Summary of the problem:

System: 500MHz generic Dell, 320MB, lots of disk space, ethernet,
OpenBSD 3.8, Bugzilla 2.20 (or 2.18.4 - both exhibit same issue) running
under non-chrooted Apache + all the required and optional Perl modules
(a few weren't in the OBSD packages, so had to use the perl package
system). The system is otherwise as first installed, except for samba &
mysql packages.

Symptom: Using a browser, configuration pages occasionally (1 in 5
refreshes, more or less) return an error 500 page, coupled with
'Premature end of script headers' error in Apache's error log. No errors
in /var/log/messages. Refresh the page, and all works fine....until a
number of refreshes (or config page links) later.

Other stuff: Not using mod_perl; LogLevel Warn is already in httpd.conf.
Problem only seems to happen if a user is logged in. I briefly thought
I'd accidentally fixed it - and it does seem to reduce the frequency -
by inserting syslog calls in prudent places: maybe there's a timing
issue or maybe it's a red herring. Since reproduction of the error is
somewhat inconsistent, and my perl knowledge is 0.1 (I can work some
stuff out, but there's the obvious learning curve), it's a bit difficult
to find the error.

My next step would be to get a Perl book and throw in a billion trace
calls, but I was hoping to avoid that!

Cheers,

Trystan

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 3.8 & Bugzilla - does anyone have this running ok?

Alexander Farber
IMHO when you get situations like this:

On 11/16/05, Trystan Negus <[hidden email]> wrote:
> Symptom: Using a browser, configuration pages occasionally (1 in 5
> refreshes, more or less) return an error 500 page, coupled with
> 'Premature end of script headers' error in Apache's error log. No errors
> in /var/log/messages. Refresh the page, and all works fine....until a
> number of refreshes (or config page links) later.

then you have to ensure that you have just 1 Apache child running
(httpd -X) before you start further debugging/troubleshooting:
http://perl.apache.org/docs/1.0/guide/debug.html

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 3.8 & Bugzilla - does anyone have this running ok?

Trystan Negus
Thanks - that page looks like a good place to start. It'll be useful
stuff to know about anyway - I'll start reading.

Much appreciated

Trystan

Alexander Farber wrote:

> IMHO when you get situations like this:
>
> On 11/16/05, Trystan Negus <[hidden email]> wrote:
>  
>> Symptom: Using a browser, configuration pages occasionally (1 in 5
>> refreshes, more or less) return an error 500 page, coupled with
>> 'Premature end of script headers' error in Apache's error log. No errors
>> in /var/log/messages. Refresh the page, and all works fine....until a
>> number of refreshes (or config page links) later.
>>    
>
> then you have to ensure that you have just 1 Apache child running
> (httpd -X) before you start further debugging/troubleshooting:
> http://perl.apache.org/docs/1.0/guide/debug.html

Reply | Threaded
Open this post in threaded view
|

Re: OpenBSD 3.8 & Bugzilla - does anyone have this running ok?

Trystan Negus-3
In reply to this post by Trystan Negus
Hi. This is just an update to the thread I started re running  
Bugzilla on OpenBSD 3.8: Possibly not directly OpenBSD related, but  
it might help anyone searching the archives of this list for the same  
problem.

(as posted to  netscape.public.mozilla.webtools)
"An update on this problem that I had - posted here in case anyone has
the same problem and finds this thread. (Recap: OpenBSD 3.8 + MySQL +
Bugzilla 2.20 or 2.18 - Premature end of server headers error every so
often (not reliably reproduced) with no other error information
anywhere at all)

I traced through the bugzilla code with syslog calls until I hit the
offending line of code that caused everything to fail -
Bugzilla/Auth/Login/WWW/CGI/Cookie.pm:        $dbh->do("UPDATE
logincookies SET lastused=NOW() WHERE cookie=?" (etc.)

MySQL didn't complain about the statement - I set all the appropriate
error and tracing flags - but it still silently barfed, so I tried
switching the backend to Postgresql, and everything now works."

Why? No idea - it works now so I'm going to the pub. Hope this helps  
someone.

Cheers,

Trystan

##############################
Re:
List:       openbsd-misc
Subject:    Re: OpenBSD 3.8 & Bugzilla - does anyone have this  
running ok?
From:       Trystan Negus <trystan.negus () pellenys ! org ! uk>
Date:       2005-11-16 15:56:49
Message-ID: 437B56C1.7080106 () pellenys ! org ! uk
[Download message RAW]

Thanks - that page looks like a good place to start. It'll be useful
stuff to know about anyway - I'll start reading.

Much appreciated

Trystan

Alexander Farber wrote:
 > IMHO when you get situations like this:
 >
 > On 11/16/05, Trystan Negus <[hidden email]> wrote:
 >
 >> Symptom: Using a browser, configuration pages occasionally (1 in 5
 >> refreshes, more or less) return an error 500 page, coupled with
 >> 'Premature end of script headers' error in Apache's error log. No  
errors
 >> in /var/log/messages. Refresh the page, and all works  
fine....until a
 >> number of refreshes (or config page links) later.
 >>
 >
 > then you have to ensure that you have just 1 Apache child running
 > (httpd -X) before you start further debugging/troubleshooting:
 > http://perl.apache.org/docs/1.0/guide/debug.html