List Info

Thread: Can't find /etc/maia.conf




Can't find /etc/maia.conf
country flaguser name
Canada
2007-11-26 16:26:02
Hello all,

This seems like one of those things that probably has a very
obvious
answer. I have an installation that is otherwise working
fine but the
perl scripts don't work. They all return
FATAL EFFOR: Couldn't open /etc/maia.conf
when run, even as root -- and I can open /etc/maia.conf with
an editor

I'm not too well versed in debugging perl. Any clues what's
wrong?

Thanks!

- Evan
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
country flaguser name
United States
2007-11-27 09:23:16
Evan Leibovitch wrote:
> Hello all,
>
> This seems like one of those things that probably has a
very obvious
> answer. I have an installation that is otherwise
working fine but the
> perl scripts don't work. They all return
> FATAL EFFOR: Couldn't open /etc/maia.conf
> when run, even as root -- and I can open /etc/maia.conf
with an editor
>
> I'm not too well versed in debugging perl. Any clues
what's wrong?
>   


Either permissions on that file are wrong, or you are
running in a chroot.
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
country flaguser name
Canada
2007-12-07 16:23:15
David Morton wrote:
>> This seems like one of those things that probably
has a very obvious
>> answer. I have an installation that is otherwise
working fine but the
>> perl scripts don't work. They all return
>> FATAL EFFOR: Couldn't open /etc/maia.conf
>> when run, even as root -- and I can open
/etc/maia.conf with an editor
>>
>> I'm not too well versed in debugging perl. Any
clues what's wrong?  
>>     
>
>
> Either permissions on that file are wrong, or you are
running in a chroot.
>   
I've tried every combination, even setting /etc/maia.conf to
777 
temporarily. No change.
And I'm not doing this from a chroot (of which I'm aware).
I've tried to 
execute it as root and su'd to the amavis user.

The PHP scripts (ie, http://..../admin/co
nfigtest.php) all work fine.

Any suggestions? Is there anything in the script that would
have it 
running in a chroot?

- Evan

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
country flaguser name
Canada
2007-12-07 16:42:11
>> This seems like one of those things that probably
has a very obvious
>> answer. I have an installation that is otherwise
working fine but the
>> perl scripts don't work. They all return
>> FATAL EFFOR: Couldn't open /etc/maia.conf
>> when run, even as root -- and I can open
/etc/maia.conf with an editor
>>
>> I'm not too well versed in debugging perl. Any
clues what's wrong?
>>   

One thing that may help;

If I comment out the single line 93 on configtest.pl:

#        die("Maia: [$script_name] Couldn't open
$config_filen") if 
(!defined($rv) || !$rv);


The script runs, including doing the DB test (which it
couldn't do 
without being able to get the database connection info from

/etc/maia.conf, I presume);

Results below:



rootmocha:/etc# perl
/var/lib/amavis/maia/scripts/configtest.pl

MAIA MAILGUARD CONFIGURATION TEST

This script checks for the presence of applications and Perl
modules
required by amavisd-maia, SpamAssassin, and Maia Mailguard's
maintenance
scripts.  Version numbers are also checked, and if a newer
version of
a component is recommended, you should consider upgrading to
at least
the minimum recommended version.

If you have already configured your Maia Mailguard database,
the script
will also test the connection to that database.

Remember also to run the configtest.php script on your web
server to
perform similar tests of your web, PHP, and PEAR
environment.

Application/Module      Version   Status
============================================================
============
Perl                 :    5.8.7 : OK
file(1)              :     4.16 : OK
Archive::Tar         :     1.26 : OK
Archive::Zip         :     1.16 : OK
BerkeleyDB           :     0.27 : OK
Compress::Zlib       :     1.41 : OK
Convert::TNEF        :     0.17 : OK
Convert::UUlib       :     1.06 : OK
Crypt::Blowfish      :     2.09 : OK
Crypt::CBC           :     2.17 : OK
Crypt::OpenSSL::RSA  :     0.23 : OK
Data::UUID           :   1.0302 : OK
DB_File              :    1.811 : OK
DBD::mysql           :   3.0002 : OK
DBD::Pg              :      N/A : NOT INSTALLED (required if
you use 
PostgreSQL as your Maia Mailguard database)
DBI                  :     1.50 : OK
Digest::MD5          :     2.33 : OK
Digest::SHA1         :     2.10 : OK
File::Spec           :     3.05 : OK
HTML::Parser         :     3.48 : OK
HTTP:ate     
     :     1.46 : OK
IO::Stringy          :    2.110 : OK
IO::Zlib             :     1.04 : OK
IP::Country          :     2.21 : OK
LWP::UserAgent       :    2.033 : OK
Mail::Address        :     1.62 : OK
Mail:omainKey
s     :     0.86 : OK
Mail::Internet       :     1.62 : OK
Mail::SpamAssassin   :    3.1.3 : OK
Mail::SPF::Query     :    1.997 : OK
MIME::Base64         :     3.05 : OK
MIME::Parser         :    5.420 : OK
MIME::QuotedPrint    :     3.03 : OK
Net::CIDR::Lite      :     0.15 : OK
Net:NS      
      :     0.53 : OK
Net::Server          :     0.94 : OK
Net::SMTP            :     2.29 : OK
Pod::Usage           :      1.3 : OK
Template             :     2.14 : OK
Time::HiRes          :     1.66 : OK
Unix::Syslog         :    0.100 : OK
URI                  :     1.35 : OK

Database DSN test    : PASSED


Thanks!

- Evan

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
country flaguser name
United States
2007-12-07 17:03:23
Hi,

How about look at your logs?  If you access it via http,
check out the 
apache logs.

Jacky

Evan Leibovitch wrote:
> David Morton wrote:
>>> This seems like one of those things that
probably has a very obvious
>>> answer. I have an installation that is
otherwise working fine but the
>>> perl scripts don't work. They all return
>>> FATAL EFFOR: Couldn't open /etc/maia.conf
>>> when run, even as root -- and I can open
/etc/maia.conf with an editor
>>>
>>> I'm not too well versed in debugging perl. Any
clues what's wrong?  
>>>     
>>
>> Either permissions on that file are wrong, or you
are running in a chroot.
>>   
> I've tried every combination, even setting
/etc/maia.conf to 777 
> temporarily. No change.
> And I'm not doing this from a chroot (of which I'm
aware). I've tried to 
> execute it as root and su'd to the amavis user.
> 
> The PHP scripts (ie, http://..../admin/co
nfigtest.php) all work fine.
> 
> Any suggestions? Is there anything in the script that
would have it 
> running in a chroot?
> 
> - Evan
> 
> _______________________________________________
> Maia-users mailing list
> Maia-usersrenaissoft.com
> http://www.renaissoft.com/mailman/listinfo/maia-users

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
user name
2007-12-07 17:35:28
Jacky Li wrote:

> How about look at your logs?  If you access it via
http, check out the
> apache logs.

This part (the perl scripts) are not executed via apache. So
far as I
know they're mainly meant to be run by cron.

- Evan
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
country flaguser name
United States
2007-12-07 18:09:26
Hi,

oops..my bad.  was thinking of configtest.php

Jacky

Evan Leibovitch wrote:
> Jacky Li wrote:
> 
>> How about look at your logs?  If you access it via
http, check out the
>> apache logs.
> 
> This part (the perl scripts) are not executed via
apache. So far as I
> know they're mainly meant to be run by cron.
> 
> - Evan

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Can't find /etc/maia.conf
country flaguser name
United States
2007-12-07 18:53:30
Evan Leibovitch wrote:
> David Morton wrote:
>>> This seems like one of those things that
probably has a very obvious
>>> answer. I have an installation that is
otherwise working fine but the
>>> perl scripts don't work. They all return
>>> FATAL EFFOR: Couldn't open /etc/maia.conf
>>> when run, even as root -- and I can open
/etc/maia.conf with an editor
>>>
>>> I'm not too well versed in debugging perl. Any
clues what's wrong?      
>>
>>
>> Either permissions on that file are wrong, or you
are running in a
>> chroot.
>>   
> I've tried every combination, even setting
/etc/maia.conf to 777
> temporarily. No change.
> And I'm not doing this from a chroot (of which I'm
aware). I've tried
> to execute it as root and su'd to the amavis user.
>
> The PHP scripts (ie, http://..../admin/co
nfigtest.php) all work fine.
>
> Any suggestions? Is there anything in the script that
would have it
> running in a chroot?

Strange.  I wonder if it is actually an error in the file,
but the error
message is wrong.   Does it see it if you place the default
maia.conf in
place?

according to the docs on "do"


               If "do" cannot read the file, it
returns undef and sets
$! to the error.  If "do" can read the file but
cannot compile it, it
               returns undef and sets an error message in
$.  
If the
file is successfully compiled, "do" returns the
value of the last
               expression evaluated.

hmm, so if the last array is empty or something that could
be a
problem.  Make sure the file is valid perl, and maybe add a
line to the
end of the file:

1;


to make sure it evaluates to true.

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-8]

about | contact  Other archives ( Real Estate discussion Medical topics )