Can't locate config.pm

After successful installation, I get an error when I try to run /rt/admin-
webrt.cgi.The log error shows:

Can’t locate /usr/local/rt/etc/config.pm in @INC (@INC contains:
/usr/libdata/pe
rl5/5.00503/i386-bsdos /usr/libdata/perl5/5.00503 /usr/libdata/perl5/site_perl/i
386-bsdos /usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/i
nclude /usr/local/rt/lib) at /usr/local/rt/bin/rtmux.pl line 20.

config.pm is located in /usr/local/rt/etc. I’ve played with permissions,
location of the config.pm file, additional paths in @INC, to no avail. We run
BSDI 4.2, Apache, and mysql 3.23.29 if that helps.
David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net

My quick guess is that you don’t have the setuid bit set on admin-webrt.cgiOn Sat, Jun 23, 2001 at 10:14:21AM -0700, dwork@oip.net wrote:

After successful installation, I get an error when I try to run /rt/admin-
webrt.cgi.The log error shows:

Can’t locate /usr/local/rt/etc/config.pm in @INC (@INC contains:
/usr/libdata/pe
rl5/5.00503/i386-bsdos /usr/libdata/perl5/5.00503 /usr/libdata/perl5/site_perl/i
386-bsdos /usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/i
nclude /usr/local/rt/lib) at /usr/local/rt/bin/rtmux.pl line 20.

config.pm is located in /usr/local/rt/etc. I’ve played with permissions,
location of the config.pm file, additional paths in @INC, to no avail. We run
BSDI 4.2, Apache, and mysql 3.23.29 if that helps.
David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

“Bother,” said Pooh, “Eeyore, ready two photon torpedoes and lock
phasers on the Heffalump, Piglet, meet me in transporter room three”

Thanks for pointing me in the right direction, permissions get me every time
… the group settings were wrong. Now I get a different error - “Undefined
subroutine CGI::Vars”. When I installed the program, it checked for CGI 2.71
but couldn’t find it. I’m running Perl 5.005.03 which supposed runs CGI 2.76
(so webmin says), so I took the check for version off & it did find “CGI”. Am I
running an incorrect version?

Date sent: Sun, 24 Jun 2001 01:30:31 -0400From: Jesse jesse@fsck.com
To: dwork@oip.net
Copies to: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate config.pm

My quick guess is that you don’t have the setuid bit set on admin-webrt.cgi

After successful installation, I get an error when I try to run /rt/admin-
webrt.cgi.The log error shows:

Can’t locate /usr/local/rt/etc/config.pm in @INC (@INC contains:
/usr/libdata/pe
rl5/5.00503/i386-bsdos /usr/libdata/perl5/5.00503 /usr/libdata/perl5/site_perl/i
386-bsdos /usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/i
nclude /usr/local/rt/lib) at /usr/local/rt/bin/rtmux.pl line 20.

config.pm is located in /usr/local/rt/etc. I’ve played with permissions,
location of the config.pm file, additional paths in @INC, to no avail. We run
BSDI 4.2, Apache, and mysql 3.23.29 if that helps.
David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

“Bother,” said Pooh, “Eeyore, ready two photon torpedoes and lock
phasers on the Heffalump, Piglet, meet me in transporter room three”


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net

Nevermind - I got beyond this finally. FYI, I installed CGI.pm 3.02 and
received this error:

Function CGI::Object::Vars does not exist at /usr/local/rt/lib/rt/ui/web/support
.pm line 150

I backed up to CGI.pm 2.753 and the system initialized itself and finally
displayed something! On to other errors … Thanks.

Date sent: Sat, 23 Jun 2001 22:58:08 -0700
Priority: normal

Thanks for pointing me in the right direction, permissions get me every time
… the group settings were wrong. Now I get a different error - “Undefined
subroutine CGI::Vars”. When I installed the program, it checked for CGI 2.71
but couldn’t find it. I’m running Perl 5.005.03 which supposed runs CGI 2.76
(so webmin says), so I took the check for version off & it did find “CGI”. Am I
running an incorrect version?

Date sent: Sun, 24 Jun 2001 01:30:31 -0400
From: Jesse jesse@fsck.com
To: dwork@oip.net
Copies to: rt-users@lists.fsck.com
Subject: Re: [rt-users] Can’t locate config.pm

My quick guess is that you don’t have the setuid bit set on admin-webrt.cgi

After successful installation, I get an error when I try to run /rt/admin-
webrt.cgi.The log error shows:

Can’t locate /usr/local/rt/etc/config.pm in @INC (@INC contains:
/usr/libdata/pe
rl5/5.00503/i386-bsdos /usr/libdata/perl5/5.00503 /usr/libdata/perl5/site_perl/i
386-bsdos /usr/libdata/perl5/site_perl /usr/libdata/perl5/site_perl/i386-bsdos/i
nclude /usr/local/rt/lib) at /usr/local/rt/bin/rtmux.pl line 20.

config.pm is located in /usr/local/rt/etc. I’ve played with permissions,
location of the config.pm file, additional paths in @INC, to no avail. We run
BSDI 4.2, Apache, and mysql 3.23.29 if that helps.
David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users


jesse reed vincent – root@eruditorum.orgjesse@fsck.com
70EBAC90: 2A07 FC22 7DB4 42C1 9D71 0108 41A3 3FB3 70EB AC90

“Bother,” said Pooh, “Eeyore, ready two photon torpedoes and lock
phasers on the Heffalump, Piglet, meet me in transporter room three”


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net

Sorry to bug you about a problem that’s not specifically rt’s fault, but after
installing an email alias “rt” in /etc/mail/aliases per instructions in the rt
README, when I send email to the rt email alias I get this error:

Can’t locate /usr/local/rt/etc/config.pm in @INC (@INC contains:
/usr/libdata/perl5/5.00503/i386-bsdos /usr/libdata/perl5/5.00503
/usr/libdata/perl5/site_perl/i386-bsdos /usr/libdata/perl5/site_perl
/usr/libdata/perl5/site_perl/i386-bsdos/include /usr/local/rt/lib) at
/usr/local/rt/bin/rtmux.pl line 20. 554 5.3.0 “|/usr/local/rt/bin/rt-mailgate
general
correspond”… unknown mailer error 13

I got the same error (can’t locate …) from the admin-webrt.cgi until I
changed ownership to nobody.nogroup, then the web interface worked fine.

This may be incorrect anyway, but can you tell me what the permissions
or ownership need to be so sendmail can find config.pm and the web
interface will still work?
David Work (541) 942-7088
Oregon Internet Properties,LLC fax (541) 942-1892
PO Box 188, Cottage Grove OR 97424
Lane and Douglas County Real Estate : http://www.oip.net

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

Thanks.

Aliases:
rt: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
rt-comment: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
comment”

Here’s the error:

----- The following addresses had permanent fatal errors -----
|“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
(reason: 2)
(expanded from: rt@babylon.ee.washington.edu)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /home/rt2/etc /home/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /home/rt2/lib/RT/Interface/Email.pm
line 81.
BEGIN failed–compilation aborted at /home/rt2/lib/RT/Interface/Email.pm
line 81.
Compilation failed in require at /home/rt2/bin/rt-mailgate line 18.
BEGIN failed–compilation aborted at /home/rt2/bin/rt-mailgate line 18.
554 5.3.0 |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
correspond”… unknown mailer error 2

Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.edu

marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

How did you check?

What does

ls -la /home/rt2/bin /home/rt2/etc `which suidperl`

say?

Is config.pm setgid?

-rwxr-sr-x 1 root rt 15825 Jul 16 16:32 rt-mailgate

Does your mail server have access to /home/rt2/etc where you have installed
the RT stuff and the config.pm file?

-Robert

SEPPSTAFF ALL = (sepp) NOPASSWD: /usr/sepp/sbin/seppadm, /usr/sepp/sbin/wandiff, /usr/sepp/sbin/wanmoveOn Wed, Jul 18, 2001 at 05:13:43PM -0700, marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

Thanks.

Aliases:
rt: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
rt-comment: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
comment”

Here’s the error:

----- The following addresses had permanent fatal errors -----
|“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
(reason: 2)
(expanded from: rt@babylon.ee.washington.edu)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /home/rt2/etc /home/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /home/rt2/lib/RT/Interface/Email.pm
line 81.

[root@babylon bin]# ls -la /home/rt2/bin /home/rt2/etc which suidperl
-rws–x–x 2 root root 531612 Aug 10 2000 /usr/bin/suidperl

/home/rt2/bin:
total 112
drwxr-xr-x 2 root rt 4096 Jul 18 16:03 .
drwxr-xr-x 7 root root 4096 Jul 18 10:23 …
-rwxr-sr-x 1 root rt 4948 Jul 18 10:24 mason_handler.fcgi
-rwxr-sr-x 1 root rt 4644 Jul 18 10:24 mason_handler.scgi
-rwxr-sr-x 1 root rt 28777 Jul 18 10:24 rt
-rwxr-sr-x 1 root rt 15771 Jul 18 10:24 rt-mailgate
-rwxr-sr-x 1 root rt 23779 Jul 18 10:24 rtadmin
-rwxr-xr-x 1 root rt 4228 Jul 18 16:03 webmux.pl
-rwxr-xr-x 1 root root 4228 Jul 18 14:34 webmux.pl.org

/home/rt2/etc:
total 36
dr-xr-xr-x 2 root rt 4096 Jul 18 17:06 .
drwxr-xr-x 7 root root 4096 Jul 18 10:23 …
-r-x------ 1 root rt 173 Jul 18 10:24 acl.mysql
-r-xr-x— 1 root rt 10870 Jul 18 17:06 config.pm
-rwxr-xr-x 1 temp temp 12111 Jul 18 10:24 insertdata
[root@babylon bin]#

Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.eduOn Thu, 19 Jul 2001, Phil Homewood wrote:

marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

How did you check?

What does

ls -la /home/rt2/bin /home/rt2/etc which suidperl

say?

-r-xr-x— 1 root rt 10870 Jul 18 17:06 config.pm

-rwxr-sr-x 1 root rt 15771 Jul 18 10:24 rt-mailgate

All permissions were set by the default make install.

Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.eduOn Wed, 18 Jul 2001, Robert Shaw wrote:

Is config.pm setgid?

-rwxr-sr-x 1 root rt 15825 Jul 16 16:32 rt-mailgate

Does your mail server have access to /home/rt2/etc where you have installed
the RT stuff and the config.pm file?

-Robert

SEPPSTAFF ALL = (sepp) NOPASSWD: /usr/sepp/sbin/seppadm, /usr/sepp/sbin/wandiff, /usr/sepp/sbin/wanmove
On Wed, Jul 18, 2001 at 05:13:43PM -0700, marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

Thanks.

Aliases:
rt: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
rt-comment: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
comment”

Here’s the error:

----- The following addresses had permanent fatal errors -----
|“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
(reason: 2)
(expanded from: rt@babylon.ee.washington.edu)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /home/rt2/etc /home/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /home/rt2/lib/RT/Interface/Email.pm
line 81.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

rt-mailgate works if root executes and passes the email through a
pipe. rt-mailgate does not seem to work through sendmail therefore I
think it must be some kind of a user permission access problem.

I think sendmail executes a script as user ‘mail’ so maybe ‘mail’ should
be in the rt group?

Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.eduOn Wed, 18 Jul 2001, Robert Shaw wrote:

Is config.pm setgid?

-rwxr-sr-x 1 root rt 15825 Jul 16 16:32 rt-mailgate

Does your mail server have access to /home/rt2/etc where you have installed
the RT stuff and the config.pm file?

-Robert

SEPPSTAFF ALL = (sepp) NOPASSWD: /usr/sepp/sbin/seppadm, /usr/sepp/sbin/wandiff, /usr/sepp/sbin/wanmove
On Wed, Jul 18, 2001 at 05:13:43PM -0700, marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

Thanks.

Aliases:
rt: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
rt-comment: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
comment”

Here’s the error:

----- The following addresses had permanent fatal errors -----
|“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
(reason: 2)
(expanded from: rt@babylon.ee.washington.edu)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /home/rt2/etc /home/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /home/rt2/lib/RT/Interface/Email.pm
line 81.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

I guess I keep answering my own questions… but by putting all the rt
aliases in rt user .forward worked.

Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.eduOn Thu, 19 Jul 2001 marchuk@ee.washington.edu wrote:

Actually sendmail executes a script as user ‘daemon’ if the alias is in
/etc/aliases. So either make daemon part of rt group or put the aliases
in the .forward of rt user.


Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.edu


On Thu, 19 Jul 2001 marchuk@ee.washington.edu wrote:

rt-mailgate works if root executes and passes the email through a
pipe. rt-mailgate does not seem to work through sendmail therefore I
think it must be some kind of a user permission access problem.

I think sendmail executes a script as user ‘mail’ so maybe ‘mail’ should
be in the rt group?


Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.edu


On Wed, 18 Jul 2001, Robert Shaw wrote:

Is config.pm setgid?

-rwxr-sr-x 1 root rt 15825 Jul 16 16:32 rt-mailgate

Does your mail server have access to /home/rt2/etc where you have installed
the RT stuff and the config.pm file?

-Robert

SEPPSTAFF ALL = (sepp) NOPASSWD: /usr/sepp/sbin/seppadm, /usr/sepp/sbin/wandiff, /usr/sepp/sbin/wanmove
On Wed, Jul 18, 2001 at 05:13:43PM -0700, marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

Thanks.

Aliases:
rt: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
rt-comment: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
comment”

Here’s the error:

----- The following addresses had permanent fatal errors -----
|“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
(reason: 2)
(expanded from: rt@babylon.ee.washington.edu)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /home/rt2/etc /home/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /home/rt2/lib/RT/Interface/Email.pm
line 81.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Actually sendmail executes a script as user ‘daemon’ if the alias is in
/etc/aliases. So either make daemon part of rt group or put the aliases
in the .forward of rt user.

Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.eduOn Thu, 19 Jul 2001 marchuk@ee.washington.edu wrote:

rt-mailgate works if root executes and passes the email through a
pipe. rt-mailgate does not seem to work through sendmail therefore I
think it must be some kind of a user permission access problem.

I think sendmail executes a script as user ‘mail’ so maybe ‘mail’ should
be in the rt group?


Walter Marchuk
Senior Computer Specialist
University of Washington
Electrical Engineering
Room: 307g
206-221-5421
marchuk@ee.washington.edu


On Wed, 18 Jul 2001, Robert Shaw wrote:

Is config.pm setgid?

-rwxr-sr-x 1 root rt 15825 Jul 16 16:32 rt-mailgate

Does your mail server have access to /home/rt2/etc where you have installed
the RT stuff and the config.pm file?

-Robert

SEPPSTAFF ALL = (sepp) NOPASSWD: /usr/sepp/sbin/seppadm, /usr/sepp/sbin/wandiff, /usr/sepp/sbin/wanmove
On Wed, Jul 18, 2001 at 05:13:43PM -0700, marchuk@ee.washington.edu wrote:

I am now getting an error when trying to send to rt.
It does not look like a permission problem nor a sendmail problem, I
checked both.

Thanks.

Aliases:
rt: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
rt-comment: |“/home/rt2/bin/rt-mailgate --queue helpdesk --action
comment”

Here’s the error:

----- The following addresses had permanent fatal errors -----
|“/home/rt2/bin/rt-mailgate --queue helpdesk --action correspond”
(reason: 2)
(expanded from: rt@babylon.ee.washington.edu)

----- Transcript of session follows -----
Can’t locate config.pm in @INC (@INC contains: /home/rt2/etc /home/rt2/lib
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl .) at /home/rt2/lib/RT/Interface/Email.pm
line 81.


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

“m” == marchuk marchuk@ee.washington.edu writes:

m> Actually sendmail executes a script as user ‘daemon’ if the alias is in
m> /etc/aliases. So either make daemon part of rt group or put the aliases
m> in the .forward of rt user.

-rwxr-sr-x 1 root rt 15825 Jul 16 16:32 rt-mailgate

The setgid bit on rt-mailgate should take care of that. Just make
sure your suidperl is setuid root, like it should be. You don’t
need to add special system accounts to your rt group.