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 = "10000" 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: 0x0a1143430400000000040102 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 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables CXXFLAGS: -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables LDFLAGS: Configure: '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--program-prefix=' '--disable-clamav' '--disable-llvm' '--disable-static' '--disable-zlib-vcheck' '--enable-check' '--enable-clamdtop' '--enable-dns' '--enable-id-check' '--enable-milter' '--with-dbdir=/var/clamav' '--with-group=clamav' '--with-libcurl' '--with-user=clamav' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' --enable-ltdl-convenience sizeof(void*) = 4 Engine flevel: 67, dconf: 67 Any suggestions? Thanks. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml