Bugs


#1

Hi!

I’ve managed to find a fairly large propertion of bugs in rt-1.0.2. I’m
running Solaris version 7 using gcc, sendmail, mysql 3.23 and apache
1.3.29

1.) The standard Makefile doesn’t want to execute unless (at the
beginning)

ifdef DBADMIN_MYSQL_PASS
DBADMIN_MYSQL_PASS_STRING = -p$(DBADMIN_MYSQL_PASS)
else
DBADMIN_MYSQL_PASS_STRING =
endif

Is changed to:

#ifdef DBADMIN_MYSQL_PASS
DBADMIN_MYSQL_PASS_STRING = -p$(DBADMIN_MYSQL_PASS)
#else
#DBADMIN_MYSQL_PASS_STRING =
#endif

With it giving unexpected end of line errors unless this is done.

2.) Your script (after installation) gives a large number of Internal
Server errors with the message: Premature end of script headers

In every case but 1 (see below) the transaction is still completed,
despite its error

3.) The one case it doesn’t work is reply, according to the logs is
’Tries’ to execute the command usr/lib/sendmail -oi -t -ODeliveryMode=b
-OErro… and then it gives a premature end of script error. Everything
in the interface is updated (last contact, the reply etc.) but the email
is not sent out.

Also, mailing the script no longer seems to work. I get a 'User Unknown’
email back, with the information:

The original message was received at Sat, 4 Mar 2000 20:18:19 GMT
from mystara@localhost

----- The following addresses had permanent fatal errors -----
"|/home/rt/test2/bin/rt-mailgate general correspond"
(expanded from: rt@sirius.s-s.org.uk)

----- Transcript of session follows -----
Could not send mail :frowning:

Mailing to rt-action gives:

There has been an error:
There has been an error with your request:

Even though it actually answers any commands.

Any ideas?

4.) There are gaps in the Makefile which cause it to stop (blank lines)

Cheers


#2

ifdef DBADMIN_MYSQL_PASS
DBADMIN_MYSQL_PASS_STRING = -p$(DBADMIN_MYSQL_PASS)
else
DBADMIN_MYSQL_PASS_STRING =
endif

Is changed to:

#ifdef DBADMIN_MYSQL_PASS

Which is a no-op, and works only by chance. The real problem is that
it assumes GNU make (then again, Sun’s make has enough pathological
behavior that you should install GNU make anyway).

2.) Your script (after installation) gives a large number of Internal
Server errors with the message: Premature end of script headers

Check the web server’s error log and you’ll probably find that you are
missing one or more Perl modules. Or you have the wrong version of
CGI.pm (symptom being an error with CGI::Vars).

Also, mailing the script no longer seems to work. I get a 'User Unknown’
email back, with the information:

----- The following addresses had permanent fatal errors -----
"|/home/rt/test2/bin/rt-mailgate general correspond"
(expanded from: rt@sirius.s-s.org.uk)

----- Transcript of session follows -----
Could not send mail :frowning:

Nice useful error message your mail server has. Yet another bizarro MTA?

Likely problems:
(1) the rt wrapper isn’t setuid;
(2) the mailer is paranoid and won’t run arbitrary binaries
(i.e. sendmail with smrsh);
(3) rt-mailgate failed with some other error, likely related to
missing
Perl modules.

brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
electrical and computer engineering KF8NH
carnegie mellon university [“better check the oblivious first” -ke6sls]


#3

ifdef DBADMIN_MYSQL_PASS
DBADMIN_MYSQL_PASS_STRING = -p$(DBADMIN_MYSQL_PASS)
else
DBADMIN_MYSQL_PASS_STRING =
endif

Is changed to:

#ifdef DBADMIN_MYSQL_PASS

Which is a no-op, and works only by chance. The real problem is that
it assumes GNU make (then again, Sun’s make has enough pathological
behavior that you should install GNU make anyway).

I realise that, but I’ve now tried it on 4 servers, and none of them have
appreciated your ifdef statements. That was the only way I could get it
to work.

2.) Your script (after installation) gives a large number of Internal
Server errors with the message: Premature end of script headers

Check the web server’s error log and you’ll probably find that you are
missing one or more Perl modules. Or you have the wrong version of
CGI.pm (symptom being an error with CGI::Vars).

I did, the premature end of script header errors were the ones in the
error log file. CGI.pm is installed - version 2.56

Also, mailing the script no longer seems to work. I get a 'User Unknown’
email back, with the information:

----- The following addresses had permanent fatal errors -----
"|/home/rt/test2/bin/rt-mailgate general correspond"
(expanded from: rt@sirius.s-s.org.uk)

----- Transcript of session follows -----
Could not send mail :frowning:

Nice useful error message your mail server has. Yet another bizarro MTA?

Likely problems:
(1) the rt wrapper isn’t setuid;
(2) the mailer is paranoid and won’t run arbitrary binaries
(i.e. sendmail with smrsh);
(3) rt-mailgate failed with some other error, likely related to
missing
Perl modules.

Well, I seem to remember seeing the ‘Could not send mail :(’ line in one
of your scripts, after which came $!

The rt wrapper is setuid (after I deleted the blank lines and forced the
decision at the top, the makefile ran fine - so if it was in there chances
are it’s worked - I didn’t get any errors)

I don’t think there are any missing perl modules. Perl is very heavily
used here, as is MySQL and we haven’t had any errors like this one as yet.

I’ve also just mucked up my databases…I used the same username and
changed the password in the Makefile, which MySQL is none too happy about.
Even though they are different databases :frowning:

Cheers!


#4

I did, the premature end of script header errors were the ones in the
error log file. CGI.pm is installed - version 2.56

I assume you’re using apache? It should give more than just ‘prem end of
script headers’ in the error log. Can you paste that into email?

I don’t think there are any missing perl modules. Perl is very heavily
used here, as is MySQL and we haven’t had any errors like this one as yet.

Maybe not missing, but put in some place that rt is having issues with. :slight_smile:

Good luck,

    Blue Lang                              Unix Systems Admin
    QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604
    Home: 919 835 1540  Work: 919 875 6994  Fax: 919 872 4015

#5

----- The following addresses had permanent fatal errors -----
"|/home/rt/test2/bin/rt-mailgate general correspond"
(expanded from: rt@sirius.s-s.org.uk)

----- Transcript of session follows -----
Could not send mail :frowning:

Nice useful error message your mail server has. Yet another bizarro MTA?

No, no … that line is actually written by me, it means RT can’t send
mail. Maybe I should have added some information about what the
probably causes might be … it’s just that I hadn’t expected anybody to
get this error message in a bounce :slight_smile:

The standard configuration should work fine as long as sendmail is
installed, if using anything else the makefile might need updating.

Tobias Brox (alias TobiX) - +4722925871 - urgent emails to
sms@tobiasb.funcom.com. Check our upcoming MMORPG at
http://www.anarchy-online.com/ (Qt) and play multiplayer Spades,
Backgammon, Poker etc for free at http://www.funcom.com/ (Java)