Hi Colin & Thomas.
Thanks for your replies.
Sorry, IO::Select is version 1.21, IO::Socket::INET6 is 2.72.
IO::Socket::INET isn’t listed in the Perl Modules section of the GUI’s Info and
Stats page.
OS is Mac OS X 10.7.5
Only use iPv4 normally. Usually I can restart ASSP from the GUI, but sometimes
I have to kill Perl.
Everything else seems to work fine. Dovecot keeps handling new IMAP
connections, FreshClam can download new virus definitions, etc.
System log does show any non-ASSP errors.
One thing I have just noticed in the Info & Stats page, it has CPU Usage over
the last 384 days as 97.79% average, but for the last five hours it has only
been 0.44% average. Those 5 hours are after-hours times though, but I’m
surprised at the scale of the difference. But that’s unrelated I’d assume.
Looks like I have a few different versions of Perl on my system:
/usr/bin/perl
/usr/bin/perl5.10
/usr/bin/perl5.12
/usr/local/bin/perl
/usr/local/bin/perl5.18.2
/usr/local/bin/perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for
darwin-thread-multi-ld-2level
which is same as /usr/bin/perl
Should I run mod_inst.pl?
Re limits, I’ve increased them way above the defaults for Mac OS X, as
otherwise I get resource unavailable errors. Current limits are:
sudo launchctl limit
cpu unlimited unlimited
filesize unlimited unlimited
data unlimited unlimited
stack 8388608 67104768
core 0 unlimited
rss unlimited unlimited
memlock unlimited unlimited
maxproc 1064 1064
maxfiles 65536 65536
and as far as I can tell never hit these limits.
All I have to do is restart ASSP - never have to restart the whole server.
Thanks again for your help,
James.
> On 7 Oct. 2016, at 7:59 pm, cw <[email protected]> wrote:
>
> Hi James,
>
> You said IO::Socket::INET is 2.72 - are you sure this isn't
> IO::Socket::INET6? The current IO::Socket::INET for me is 1.35
>
> You've an admin connection opening during those logs indicating that in
> fact ASSP is not completely losing its network connection. Can you confirm
> this? Are you just losing IPV4?
>
> Sep-05-16 11:06:51 [Main_Thread] Admin connection from user root on host
> ::1:55453; page:/shutdown;
>
> I'm not sure if you previously posted OS version and whether you're using
> OS bundled perl or something you've installed yourself. For Linux I'd say
> make sure you've run mod_inst.pl recently and also updated perl modules. I
> find the following gets some pre-requisites installed and avoids having to
> re-run things:
>
> cpan -i "YAML" "LWP" "CPAN" "App::cpanoutdated" "Test::Pod"
> "Test::Pod::Coverage" "Email::Outlook::Message" "DateTime"
> "Module::Signature" "File::PathInfo::Ext" "Crypt::CBC" "Crypt::DES"
> "Crypt::Rijndael" "Net::SNMP" "NetSNMP::agent" "PDF::OCR2" "NetSNMP::agent"
> "Date::Manip::Obj" "Date::Manip::TZ_Base" "Mail::SPF::Test"
> "Pod::Text::Termcap"
> ctrl+d/su-
> perl -MCPAN -e shell
> o conf prerequisites_policy follow
> o conf commit
> upgrade
> quit
>
> I also have cpanoutdated and cpanm and they tend to do 2-3 modules that
> cpan doesn't:
>
> cpan-outdated -p|cpanm
>
> Then for current mod_inst.pl:
>
> wget http://assp.cvs.sourceforge.net/viewvc/assp/assp2/mod_inst.pl.1.85.zip
> unzip mod_inst.pl.1.85.zip
> perl mod_inst.pl
>
> I find on Ubuntu I have to answer yes to external tests otherwise the build
> process of one of the ssl modules dies.
>
> If all underlying OS and dependant software packages are up to date as well
> as Perl and the modules I would start looking back further in the logs to
> see what happened immediately before. The only thing I can see from the
> snippet you posted is clam scanning so as well as checking OS logs check
> the clam logs.
>
> Other questions - do other things on the server carry on working fine? Does
> restarting ASSP fix it or do you have to restart the whole server?
>
>
>
> On Fri, Oct 7, 2016 at 9:07 AM, Thomas Eckardt <[email protected]>
> wrote:
>
>> Seems that assp/perl is unable to establish any new outgoing connection
>> using TCP or UDP.
>> Possibly any OS limit is reached.
>>
>> Thomas
>>
>>
>>
>>
>>
>>
>> Von: James Brown <[email protected]>
>> An: ASSP development mailing list <[email protected]>
>> Datum: 07.10.2016 07:33
>> Betreff: [Assp-test] ASSP keeps losing network connections
>>
>>
>>
>> I mentioned this a while ago, and even after upgrading to 16280 the
>> problem still exists.
>>
>> Running Perl 5.018002
>>
>> Can anyone help me? I’m getting desperate as I can’t work out what is
>> causing the problem. Everything else on the box (Postfix, Dovecot, etc)
>> continues to run fine when ASSP has the connection issue.
>>
>> Thanks in advance,
>>
>> James.
>>
>> Original post:
>>
>> I have an annoying problem. I think it started after upgrading to 16236,
>> but can’t be sure. ASSP runs fine for a few days, then can’t connect to
>> anything. For example it can’t connect to ClamAV, the SMTP destination or
>> any of the DNS that I have set.
>>
>> Log looks like this:
>>
>> Sep-05-16 11:06:01 [Worker_1] ClamAV Up
>> Sep-05-16 11:06:01 id-37560-20112 [Worker_1] 192.168.1.2 [OIP:
>> 12.130.153.159] <[email protected]> to: [email protected] ClamAV:
>> scanned 49122 bytes in file
>> /Applications/assp/spam/55_4K_Smart_TV_with_Chromecast_Only_789--83789.eml
>> -
>> Sep-05-16 11:06:01 [Worker_1] ClamAV Temporary Off : Cannot connect to
>> 'localhost:1937': IO::Socket::INET: connect: timeout
>> Sep-05-16 11:06:12 [Worker_1] *** 127.0.0.1:10026 didn't work, trying
>> others...
>> Sep-05-16 11:06:12 [Worker_1] Error: couldn't create server socket to
>> 127.0.0.1:10026 -- aborting connection
>> Sep-05-16 11:06:12 [Worker_1] *** 127.0.0.1:10026 didn't work, trying
>> others...
>> Sep-05-16 11:06:51 [Main_Thread] Admin connection from user root on host
>> ::1:55453; page:/shutdown;
>> Sep-05-16 11:07:00 [Worker_1] *** 127.0.0.1:10026 didn't work, trying
>> others...
>> Error: couldn't create server socket to 127.0.0.1:10026 -- aborting
>> connection (suppressed 3 concurrent equal 'Error' loglines from all
>> Workers)
>> Sep-05-16 11:07:03 [Worker_10000] Warning: Name Server
>> mynameserverlocalIP: does not respond or timed out
>> Sep-05-16 11:07:03 [Worker_10000] Warning: Name Server 208.67.222.222:
>> does not respond or timed out
>> Sep-05-16 11:07:03 [Worker_10000] ERROR: !!!! no answering DNS-SERVER
>> found !!!!
>> Sep-05-16 11:07:06 [Worker_10000] DMARCpol: searching for
>> DMARC-agregate-reports to generate in 9 stored DMARC policy records
>> Sep-05-16 11:07:06 [Worker_10000] Info: saving Stats in file asspstats.sav
>> Sep-05-16 11:07:06 [Worker_10000] Info: saving ScoreStats in file
>> asspscorestats.sav
>> Sep-05-16 11:07:07 [Worker_10000] Info: looking for files to (re)send
>> Sep-05-16 11:07:07 [Worker_10000] (re)send - try to open:
>> /Applications/assp/resendmail/dmarc_a1473037324.51500607.eml
>> Sep-05-16 11:07:07 [Worker_10000] (re)send - process:
>> /Applications/assp/resendmail/dmarc_a1473037324.51500607.eml (try 1
>> Sep-05-16 11:07:07 [Worker_10000] (re)send -
>> /Applications/assp/resendmail/dmarc_a1473037324.51500607.eml - From:
>> [email protected] - To: [email protected]
>> Sep-05-16 11:07:07 [Worker_10000] (re)send
>> /Applications/assp/resendmail/dmarc_a1473037324.51500607.eml to host:
>> 127.0.0.1:10026 (smtpDestination)
>> Sep-05-16 11:07:07 [Worker_10000] Couldn't connect to 127.0.0.1:10026
>> using 'Net::SMTP'
>> Sep-05-16 11:07:07 [Worker_10000] *** send to 127.0.0.1:10026
>> (smtpDestination) didn't work, trying others…
>>
>> Restarting ASSP (from the GUI) gets it to work again.
>>
>> ASSP version 2.5.2(16236)
>>
>> IO::Socket::INET is version 2.72
>>
>> Any ideas?
>>
>> Thanks,
>>
>> James.
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Assp-test mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/assp-test
>>
>>
>>
>>
>> DISCLAIMER:
>> *******************************************************
>> This email and any files transmitted with it may be confidential, legally
>> privileged and protected in law and are intended solely for the use of the
>>
>> individual to whom it is addressed.
>> This email was multiple times scanned for viruses. There should be no
>> known virus in this email!
>> *******************************************************
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Assp-test mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/assp-test
>>
>>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org!
> http://sdm.link/slashdot_______________________________________________
> Assp-test mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/assp-test
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test