SpamAssassin installation failure

Eoin Kim Eoin.Kim at rcst.com.au
Sat Dec 16 00:45:50 UTC 2017


Okay, it looks the same to me. Thanks again for doing that.

Eoin

Shawn Iverson <iversons at rushville.k12.in.us> wrote:



t/sa_check_spamd.t ................ ok
# Failed test 1 in t/sa_compile.t at line 149
        Not found: FOO =  check: tests=FOO  at t/sa_compile.t line 150.
# Failed test 2 in t/SATest.pm at line 755
'/root/.cpan/build/Mail-SpamAssassin-3.4.1-mWwPC3/t/log/d.sa_compile/inst.basic/
foo//local/bin/sa-compile --keep-tmps' failed: DIED, signal 127 (fffffffffffffff
f) at t/SATest.pm line 991.
t/sa_compile.t ....................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/5 subtests
t/sha1.t .......................... ok


On Fri, Dec 15, 2017 at 4:37 PM, Eoin Kim <Eoin.Kim at rcst.com.au<mailto:Eoin.Kim at rcst.com.au>> wrote:

Hi Shawn,

What about the log message? Did it show the same as my case even though the installation was okay with flags? Cheers.

Eoin

Shawn Iverson <iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>> wrote:



Despite that, I am going to add --force to cpanm in install.sh, just to improve the chances of a successful install.

On Fri, Dec 15, 2017 at 4:32 PM, Shawn Iverson <iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>> wrote:
Follow up on this...

I installed on Debian 8 and MailScanner with and without the flags and spamassassin installed successfully.

I did get the two dubious test failures each way, but spamassassin successfully compiled and installed.

My MailScanner --lint test shows good.

SpamAssassin reported no errors.


On Thu, Dec 14, 2017 at 2:06 PM, Shawn Iverson <iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>> wrote:
Not yet, I am going to look into it more this evening.  I am thinking cpanm not doing a force may be the culprit as you suggest.  It is only called when using the flags to automate cpan perl module compilation.  SA tests can fail for stupid reasons that won't actually affect the installation.

On Wed, Dec 13, 2017 at 9:01 PM, Eoin Kim <Eoin.Kim at rcst.com.au<mailto:Eoin.Kim at rcst.com.au>> wrote:
Hi Shawn,

Just wonder if you require further information regarding this. Thanks.

Eoin

From: Eoin Kim
Sent: Thursday, 14 December 2017 7:32 AM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>>
Subject: RE: SpamAssassin installation failure

Hi Shawn,

The installation without flags looks different but I am not sure if this is successful or not. I’ll attach the installation log file. Thanks.

Eoin

From: MailScanner [mailto:mailscanner-bounces+eoin.kim=rcst.com.au at lists.mailscanner.info] On Behalf Of Shawn Iverson
Sent: Wednesday, 13 December 2017 10:05 PM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>>
Subject: Re: SpamAssassin installation failure

Eoin,

If you install without using the flags for install.sh and answer the prompts, does spamassassin install successfully?

On Tue, Dec 12, 2017 at 8:12 PM, Eoin Kim <Eoin.Kim at rcst.com.au<mailto:Eoin.Kim at rcst.com.au>> wrote:
Hi Shawn,

I checked the install.sh script and it looks like --force options is missing.

#Install SpamaAssassin, use standard cpan in normail install, or App::cpanminus in unattended install
    perldoc -l ${MODSA} >/dev/null 2>&1
    if [ $? != 0 ]; then
        clear
        echo "${MODSA} is missing. Installing via CPAN ..."; echo;
        timewait 1
        if [ $AUTOCPAN -eq 0 ]; then
            perl -MCPAN -e "CPAN::Shell->force(qw(install ${MODSA} ));"
        else
            cpanm --no-interactive ${MODSA}
        fi
    fi

Eoin

From: MailScanner [mailto:mailscanner-bounces+eoin.kim<mailto:mailscanner-bounces%2Beoin.kim>=rcst.com.au at lists.mailscanner.info<mailto:rcst.com.au at lists.mailscanner.info>] On Behalf Of Eoin Kim
Sent: Wednesday, 13 December 2017 9:09 AM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>>
Subject: RE: SpamAssassin installation failure

Hi Shawn,

My apologies for messy emails but I’d like to make things clear. So, here’s what I did step by step:

  1.  Installed Debian Jessie and upgraded (sudo apt-get update && sudo apt-get upgrade && sudo reboot).
  2.  Installed few packages: ca-certificates, libgeo-ip-perl, libnet-patricia-perl
  3.  Downloaded the MailScanner installer.
  4.  Ran the command - ./install.sh --MTA=postfix --installClamav=Y --installCPAN=Y --ignoreDeps=N --ramdiskSize=0

During the procedure, I watched the log and this showed up.

--> Working on Digest::SHA1
Fetching http://www.cpan.org/authors/id/G/GA/GAAS/Digest-SHA1-2.13.tar.gz ... OK
Configuring Digest-SHA1-2.13 ... OK
Building and testing Digest-SHA1-2.13 ... OK
Successfully installed Digest-SHA1-2.13
1 distribution installed
Mail::SpamAssassin is missing. Installing via CPAN ...

--> Working on Mail::SpamAssassin
Fetching http://www.cpan.org/authors/id/K/KM/KMCGRAIL/SpamAssassin/Mail-SpamAssassin-3.4.1.tar.gz ... OK
Configuring Mail-SpamAssassin-3.004001 ... OK
Building and testing Mail-SpamAssassin-3.004001 ... ! Installing Mail::SpamAssassin failed. See /root/.cpanm/work/1513044980.46831/build.log for details. Retry with --force to force install it.
FAIL

It kept going and installation finished. And when I looked the /root/.cpanm/work/1513044980.46831/build.log file, at the end this shows.

Test Summary Report
-------------------
t/sa_compile.t                  (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 5 tests but ran 2.
Files=168, Tests=3014, 333 wallclock secs ( 0.69 usr  0.09 sys + 67.79 cusr  5.12 csys = 73.69 CPU)
Result: FAIL
Failed 1/168 test programs. 2/3014 subtests failed.
Makefile:1582: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
-> FAIL Installing Mail::SpamAssassin failed. See /root/.cpanm/work/1513044980.46831/build.log for details. Retry with --force to force install it.

Eoin

From: MailScanner [mailto:mailscanner-bounces+eoin.kim=rcst.com.au at lists.mailscanner.info] On Behalf Of Eoin Kim
Sent: Wednesday, 13 December 2017 8:23 AM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>>
Subject: RE: SpamAssassin installation failure

Sorry for flying emails but I used this file - https://s3.amazonaws.com/msv5/release/MailScanner-5.0.6-5.deb.tar.gz

I didn’t clone Github. Thanks.

Eoin

From: MailScanner [mailto:mailscanner-bounces+eoin.kim=rcst.com.au at lists.mailscanner.info] On Behalf Of Eoin Kim
Sent: Wednesday, 13 December 2017 8:18 AM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>>
Subject: RE: SpamAssassin installation failure

Thanks Shawn,

I am using the latest kernel for your information (I did sudo apt-get update && sudo apt-get upgrade && sudo reboot).

sysadmin at mx1.bne.lab.boof.com:/usr/local/src/MailScanner-5.0.6-5$<mailto:sysadmin at mx1.bne.lab.boof.com:/usr/local/src/MailScanner-5.0.6-5$> uname -a
Linux mx1.bne.lab.boof.com<http://mx1.bne.lab.boof.com> 3.16.0-4-amd64 #1 SMP Debian 3.16.51-2 (2017-12-03) x86_64 GNU/Linux

Thanks again.

Eoin

From: MailScanner [mailto:mailscanner-bounces+eoin.kim=rcst.com.au at lists.mailscanner.info] On Behalf Of Shawn Iverson
Sent: Wednesday, 13 December 2017 8:15 AM
To: MailScanner Discussion <mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>>
Subject: Re: SpamAssassin installation failure

Eoin,

I am spinning up a Jessie instance to see if i can reproduce the issue.

On Tue, Dec 12, 2017 at 5:01 PM, Eoin Kim <Eoin.Kim at rcst.com.au<mailto:Eoin.Kim at rcst.com.au>> wrote:
Hi all,

I am trying to install MailScanner (v.5.0.6-5) on my Debian Jessie and it looks like installing SpamAssassin is failed. Below is the end of log message.

Test Summary Report
-------------------
t/sa_compile.t                  (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 5 tests but ran 2.
Files=168, Tests=3014, 333 wallclock secs ( 0.69 usr  0.09 sys + 67.79 cusr  5.12 csys = 73.69 CPU)
Result: FAIL
Failed 1/168 test programs. 2/3014 subtests failed.
Makefile:1582: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
-> FAIL Installing Mail::SpamAssassin failed. See /root/.cpanm/work/1513044980.46831/build.log for details. Retry with --force to force install it.

I used this command - ./install.sh --MTA=postfix --installClamav=Y --installCPAN=Y --ignoreDeps=N --ramdiskSize=0

What is the possible cause of this error and how can I rectify this? Thanks a lot.

Eoin Kim
Systems Administrator

RCS Telecommunications
Level 1 – The Annexe
133 Mary Street
Brisbane, QLD, 4000
Office:   07 3228 0843
Mobile: 0419 726 231

[RCST logo drop shadow]




--
MailScanner mailing list
mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner



--
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171<tel:(765)%20932-3901>
iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>

[Image removed by sender.][Image removed by sender.]



--
MailScanner mailing list
mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner



--
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171<tel:(765)%20932-3901>
iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>

[Image removed by sender.][Image removed by sender.]



--
MailScanner mailing list
mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner





--
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171<tel:(765)%20932-3901>
iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>

[https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ][https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ]



--
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171<tel:(765)%20932-3901>
iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>

[https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ][https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ]



--
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171<tel:(765)%20932-3901>
iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>

[https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ][https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ]



--
MailScanner mailing list
mailscanner at lists.mailscanner.info<mailto:mailscanner at lists.mailscanner.info>
http://lists.mailscanner.info/mailman/listinfo/mailscanner





--
Shawn Iverson, CETL
Director of Technology
Rush County Schools
765-932-3901 x1171
iversons at rushville.k12.in.us<mailto:iversons at rushville.k12.in.us>

[https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_cy1OZFNIZ0drYVU&revid=0Bw5iD0ToYvs_UitIcHVIWkJVVTl2VGpxVUE0d0FQcHBIRXk4PQ][https://docs.google.com/uc?export=download&id=0Bw5iD0ToYvs_Zkh4eEs3R01yWXc&revid=0Bw5iD0ToYvs_QWpBK2Y2ajJtYjhOMDRFekZwK2xOamk5Q3Y0PQ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20171216/0f6fbab8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 823 bytes
Desc: image002.jpg
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20171216/0f6fbab8/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3384 bytes
Desc: image001.jpg
URL: <http://lists.mailscanner.info/pipermail/mailscanner/attachments/20171216/0f6fbab8/attachment-0001.jpg>


More information about the MailScanner mailing list