On April 24, 2010, Michael Tautschnig wrote: > > On April 24, 2010, Stephen Gran wrote: > > > This one time, at band camp, Gordon Haverland said: > > > > with the dfsg-2 update that came out, I seen > > > > LocalSocketGroup 20 thing with my computer. I set it to > > > > 125 (which is the group clamav is on this computer). > > > > Clamav started, but I started getting messages from > > > > freshclam (cron jobs) about some missing argument. > > > > Trying to fix things, I then got a message about > > > > freshclam not being able to contact clamd via > > > > /var/run/clamav/clamd.ctl. > > > > > > > > So, this morning, I purged all of clamav and reinstalled > > > > it. This message about clamd.ctl persists. > > > > > > Can you set LocalSocketGroup to clamav in the config file, > > > run dpkg-reconfigure and see what it is in the file > > > afterwards? > > > > LocalSocketGroup was already set to clamav, and the mode is > > 666. > > > > dpkg-reconfigure for clamav didn't appear to do anything, no > > files altered in /etc/clamav > > > > dpkg-reconfigure clamav-base asked questions, no files > > changed. > > > > dpkg-reconfigure clamav-daemon asked questions, no files > > changed. > > > > dpkg-reconfigure clamav-freshclam asked questions, no files > > changed. It appears that freshclam updated properly, and was > > able to contact the daemon as part of how dpkg-reconfigure > > finished for freshclam. It would seem that the reconfigures > > did something, but none of the changed were in /etc/clamav. > > > > Want me to purge, reinstall and check something else? > > Could you attach your (broken) config files? It should then be > pretty easy for us to reproduce the problem. My problem, > however, is that I'm not all that sure anymore what your > actual problem is. Is it just that freshclam cannot use the > socket? Which user are you running freshclam as? Is it the > same user that is used for clamd?
After the 4 dpkg-reconfigure runs, things seem to be working. That was the end result mentioned above. That nothing in /etc/clamav changed after the fresh re-install (after purging) was interesting. It is hard to see the config files as being broken, if they weren't changed by any of the dpkg-reconfigure runs. As I asked, I could easily purge them all again, and reinstall again, to check other things (/var/run ?). Something must have changed, in order for things to be working now, but not after the initial install. Gord
#Automatically Generated by clamav-base postinst #To reconfigure clamd run #dpkg-reconfigure clamav-base #Please read /usr/share/doc/clamav-base/README.Debian.gz for details LocalSocket /var/run/clamav/clamd.ctl FixStaleSocket true LocalSocketGroup clamav LocalSocketMode 666 # TemporaryDirectory is not set to its default /tmp here to make overriding # the default with environment variables TMPDIR/TMP/TEMP possible User clamav AllowSupplementaryGroups true ScanMail true ScanArchive true ArchiveBlockEncrypted false MaxDirectoryRecursion 15 FollowDirectorySymlinks false FollowFileSymlinks false ReadTimeout 180 MaxThreads 12 MaxConnectionQueueLength 15 StreamMaxLength 10M LogSyslog false LogFacility LOG_LOCAL6 LogClean false LogVerbose false PidFile /var/run/clamav/clamd.pid DatabaseDirectory /var/lib/clamav SelfCheck 3600 Foreground false Debug false ScanPE true ScanOLE2 true ScanHTML true DetectBrokenExecutables false ExitOnOOM false LeaveTemporaryFiles false AlgorithmicDetection true ScanELF true IdleTimeout 30 PhishingSignatures true PhishingScanURLs true PhishingAlwaysBlockSSLMismatch false PhishingAlwaysBlockCloak false DetectPUA false ScanPartialMessages false HeuristicScanPrecedence false StructuredDataDetection false CommandReadTimeout 5 SendBufTimeout 200 MaxQueue 100 LogFile /var/log/clamav/clamav.log LogTime true LogFileUnlock false LogFileMaxSize 0 Bytecode true BytecodeSecurity TrustSigned BytecodeTimeout 60000 OfficialDatabaseOnly false CrossFilesystems true
# Automatically created by the clamav-freshclam postinst # Comments will get lost when you reconfigure the clamav-freshclam package DatabaseOwner clamav UpdateLogFile /var/log/clamav/freshclam.log LogVerbose false LogSyslog false LogFacility LOG_LOCAL6 LogFileMaxSize 0 LogTime true Foreground false Debug false MaxAttempts 5 DatabaseDirectory /var/lib/clamav/ DNSDatabaseInfo current.cvd.clamav.net AllowSupplementaryGroups false PidFile /var/run/clamav/freshclam.pid ConnectTimeout 30 ReceiveTimeout 30 ScriptedUpdates yes CompressLocalDatabase no Bytecode true NotifyClamd /etc/clamav/clamd.conf DatabaseMirror db.ca.clamav.net DatabaseMirror database.clamav.net