Re: [clamav-users] Freshclam: Error creating socket

2013-02-25 Thread Shawn Webb
Can you paste the whole log, please?


On Mon, Feb 25, 2013 at 9:02 AM, Massimo Rossi massimo.ro...@sysdat.itwrote:

 Hi to all,


 I'm having an issue updating clamav virus definitions on a CentOS 5
 server. When I launch freshclam I obtain ERROR: Can't create new socket.
  Using clamav or root user doesn't resolve anything, same scenario
 changing permissions to 777 on /var/clamav or /var/run/clamav, same
 scenario changing database mirrors.


 This the complete error:
 ERROR: Can't create new socket
 WARNING: getpatch: Can't download daily-16682.cdiff from
 clamav.mirror.garr.it


 This is the oputput of clamconf:

 Checking configuration files in /etc

 Config file: clamd.conf
 ---
 LogFile disabled
 LogFileUnlock disabled
 LogFileMaxSize = 4294967295
 LogTime = yes
 LogClean disabled
 LogSyslog = yes
 LogFacility = LOG_LOCAL6
 LogVerbose = yes
 ExtendedDetectionInfo = yes
 PidFile = /var/run/clamav/clamd.pid
 TemporaryDirectory = /var/tmp
 DatabaseDirectory = /var/clamav
 OfficialDatabaseOnly disabled
 LocalSocket = /var/run/clamav/clamd.sock
 LocalSocketGroup disabled
 LocalSocketMode disabled
 FixStaleSocket = yes
 TCPSocket = 3310
 TCPAddr = 127.0.0.1
 MaxConnectionQueueLength = 30
 StreamMaxLength = 52428800
 StreamMinPort = 1024
 StreamMaxPort = 2048
 MaxThreads = 50
 ReadTimeout = 300
 CommandReadTimeout = 5
 SendBufTimeout = 500
 MaxQueue = 100
 IdleTimeout = 30
 ExcludePath disabled
 MaxDirectoryRecursion = 20
 FollowDirectorySymlinks disabled
 FollowFileSymlinks disabled
 CrossFilesystems = yes
 SelfCheck = 600
 VirusEvent disabled
 ExitOnOOM disabled
 Foreground disabled
 Debug disabled
 LeaveTemporaryFiles disabled
 User = clamav
 AllowSupplementaryGroups = yes
 Bytecode = yes
 BytecodeSecurity = TrustSigned
 BytecodeTimeout = 5000
 BytecodeUnsigned disabled
 BytecodeMode = Auto
 DetectPUA disabled
 ExcludePUA disabled
 IncludePUA disabled
 AlgorithmicDetection = yes
 ScanPE = yes
 ScanELF = yes
 DetectBrokenExecutables = yes
 ScanMail = yes
 ScanPartialMessages = yes
 PhishingSignatures = yes
 PhishingScanURLs = yes
 PhishingAlwaysBlockCloak disabled
 PhishingAlwaysBlockSSLMismatch disabled
 HeuristicScanPrecedence = yes
 StructuredDataDetection disabled
 StructuredMinCreditCardCount = 3
 StructuredMinSSNCount = 3
 StructuredSSNFormatNormal = yes
 StructuredSSNFormatStripped disabled
 ScanHTML = yes
 ScanOLE2 = yes
 OLE2BlockMacros disabled
 ScanPDF = yes
 ScanArchive = yes
 ArchiveBlockEncrypted disabled
 MaxScanSize = 157286400
 MaxFileSize = 52428800
 MaxRecursion = 16
 MaxFiles = 1
 ClamAuth disabled
 ClamukoScanOnAccess disabled
 ClamukoScannerCount = 3
 ClamukoScanOnOpen disabled
 ClamukoScanOnClose disabled
 ClamukoScanOnExec disabled
 ClamukoIncludePath disabled
 ClamukoExcludePath disabled
 ClamukoExcludeUID disabled
 ClamukoMaxFileSize = 5242880
 DevACOnly disabled
 DevACDepth disabled
 DevLiblog disabled

 Config file: freshclam.conf
 ---
 LogFileMaxSize = 1048576
 LogTime disabled
 LogSyslog = yes
 LogFacility = LOG_LOCAL6
 LogVerbose disabled
 PidFile disabled
 DatabaseDirectory = /var/clamav
 Foreground disabled
 Debug disabled
 AllowSupplementaryGroups disabled
 UpdateLogFile = /var/log/clamav/freshclam.log
 DatabaseOwner = clamav
 Checks = 12
 DNSDatabaseInfo = current.cvd.clamav.net
 DatabaseMirror = clamav.mirror.garr.it, clamav.linux.it
 MaxAttempts = 3
 ScriptedUpdates = yes
 TestDatabases = yes
 CompressLocalDatabase disabled
 ExtraDatabase disabled
 DatabaseCustomURL disabled
 HTTPProxyServer disabled
 HTTPProxyPort disabled
 HTTPProxyUsername disabled
 HTTPProxyPassword disabled
 HTTPUserAgent disabled
 NotifyClamd = /etc/clamd.conf
 OnUpdateExecute disabled
 OnErrorExecute disabled
 OnOutdatedExecute disabled
 LocalIPAddress disabled
 ConnectTimeout = 30
 ReceiveTimeout = 30
 SubmitDetectionStats disabled
 DetectionStatsCountry disabled
 DetectionStatsHostID disabled
 SafeBrowsing disabled
 Bytecode = yes

 clamav-milter.conf not found

 Software settings
 -
 Version: 0.97.6
 Optional features supported: MEMPOOL IPv6 CLAMUKO AUTOIT_EA06 BZIP2 RAR

 Database information
 
 Database directory: /var/clamav
 bytecode.cld: version 214, sigs: 41, built on Wed Feb 13 16:29:15 2013
 daily.cvd: version 16681, sigs: 766001, built on Thu Feb 14 13:55:37 2013
 daily.cvd: WARNING: This database requires f-level 73 (current f-level:
 67)
 main.cvd: version 54, sigs: 1044387, built on Tue Oct 11 16:34:20 2011
 Total number of signatures: 1810429

 Platform information
 
 uname: Linux 2.6.18-348.1.1.el5 #1 SMP Tue Jan 22 16:24:03 EST 2013 i686
 OS: linux-gnu, ARCH: i386, CPU: i386
 Full OS version: CentOS release 5.9 (Final)
 zlib version: 1.2.3 (1.2.3), compile flags: 55
 platform id: 0x0a11434304040102

 Build information
 -
 GNU C: 4.1.2 20080704 (Red Hat 4.1.2-51) (4.1.2)
 CPPFLAGS:
 CFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
 

Re: [clamav-users] Freshclam: Error creating socket

2013-02-25 Thread Massimo Rossi
[root@relay01 ~]# freshclam --debug
ClamAV update process started at Mon Feb 25 15:21:15 2013
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: 
sven)
LibClamAV debug: in cli_untgz()
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/COPYING
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.info
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.cfg
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ign
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ign2
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ftm
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.db
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.hdb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.hdu
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.mdb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.mdu
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ndb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ndu
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ldb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.ldu
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.zmd
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.idb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.fp
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.pdb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.wdb
LibClamAV debug: cli_untgz: Unpacking 
/var/clamav/clamav-fd74978ee43150acf161bb889f833ec1/clamav-ce91721efd4d1c2a529836b9add3c7ed/daily.crtdb
ERROR: Can't create new socket
WARNING: getpatch: Can't download daily-16682.cdiff from 
clamav.mirror.garr.it
ERROR: Can't create new socket
WARNING: getpatch: Can't download daily-16682.cdiff from 
clamav.mirror.garr.it
ERROR: Can't create new socket
WARNING: getpatch: Can't download daily-16682.cdiff from 
clamav.mirror.garr.it
WARNING: Incremental update failed, trying to download daily.cvd
ERROR: Can't create new socket
WARNING: Can't download daily.cvd from clamav.mirror.garr.it
Trying again in 5 secs...


 Dott. Massimo Rossi

 Via Meucci 22 – Fraz. Ospedaletto - 56121 Pisa
 tel. + 39 050 975178   mob. + 39 335 6675699 
 www.sysdat.it



From:   Shawn Webb sw...@sourcefire.com
To: ClamAV users ML clamav-users@lists.clamav.net, 
Date:   25/02/2013 15.20
Subject:Re: [clamav-users] Freshclam: Error creating socket
Sent by:clamav-users-boun...@lists.clamav.net



Can you paste the whole log, please?


On Mon, Feb 25, 2013 at 9:02 AM, Massimo Rossi 
massimo.ro...@sysdat.itwrote:

 Hi to all,


 I'm having an issue updating clamav virus definitions on a CentOS 5
 server. When I launch freshclam I obtain ERROR: Can't create new 
socket.
  Using clamav or root user doesn't resolve anything, same scenario
 changing permissions to 777 on /var/clamav or /var/run/clamav, same
 scenario changing database mirrors.


 This the complete error:
 ERROR: Can't create new socket
 WARNING: getpatch: Can't download daily-16682.cdiff from
 clamav.mirror.garr.it


 This is the oputput of clamconf:

 Checking configuration files in /etc

 Config file: clamd.conf
 ---
 LogFile disabled
 LogFileUnlock disabled
 LogFileMaxSize = 4294967295
 LogTime = yes
 LogClean disabled
 LogSyslog = yes
 LogFacility = LOG_LOCAL6
 LogVerbose = yes
 ExtendedDetectionInfo = yes
 PidFile = /var/run

Re: [clamav-users] Freshclam: Error creating socket

2013-02-25 Thread Shawn Webb
On Mon, Feb 25, 2013 at 9:22 AM, Massimo Rossi massimo.ro...@sysdat.itwrote:

 ERROR: Can't create new socket
 WARNING: getpatch: Can't download daily-16682.cdiff from
 clamav.mirror.garr.it
 ERROR: Can't create new socket
 WARNING: getpatch: Can't download daily-16682.cdiff from
 clamav.mirror.garr.it
 ERROR: Can't create new socket
 WARNING: getpatch: Can't download daily-16682.cdiff from
 clamav.mirror.garr.it
 WARNING: Incremental update failed, trying to download daily.cvd
 ERROR: Can't create new socket
 WARNING: Can't download daily.cvd from clamav.mirror.garr.it
 Trying again in 5 secs...


There is only one place in all of the freshclam code where this error
message occurs. The call to socket() is failing. One of two things is
happening:
1) Your machine has either run out of available sockets or available file
descriptors.
2) Something is wrong with the IPv6 setup on your machine, and it is trying
IPv6 and failing.
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [clamav-users] Freshclam: Error creating socket

2013-02-25 Thread Benny Pedersen

Shawn Webb skrev den 25-02-2013 15:19:

Can you paste the whole log, please?


if its even in GigaByte sizes ?, hoppefully it will be done on pastebin 
with a link here, if thats make a diff for some

___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml