On Sun, 2016-08-07 at 17:02 +0200, Tobi wrote: > Hi Chris > > sorry I was not clear enough. I did not mean to start the service via > systemd but to call like > > sudo /usr/sbin/clamd -c /path/to/config > > and see then if the socket has been created in expected location. > > Cheers > > tobi >
Thanks Tobi, however that didn't work either: chris@localhost:~$ sudo /usr/sbin/clamd -c /etc/clamav/clamd.conf [sudo] password for chris: ERROR: LOCAL: Socket file /run/clamd.socket could not be bound: Permission denied Closing the main socket. ERROR: Can't unlink the socket file /run/clamd.socket > ----- Originale Nachricht ----- > Von: Chris <[email protected]> > Gesendet: 07.08.16 - 15:51 > An: [email protected] > Betreff: Re: [clamav-users] Error (Cannot connect to unix socket > '/var/lib/clamav/clamd.socket': connect: No such file or directory) > > > > > On Sun, 2016-08-07 at 10:49 +0200, Tobi wrote: > > > > > > It might a systemd issue. Have you tried to start clamd by > > > calling it > > > directly on cli? Does it create the socket then? > > > > > > Cheers > > > > > > tobi > > I've tried that lots of times Tobi, however, it still doesn't > > create > > it: > > > > chris@localhost:~$ sudo service clamav-daemon stop [ - ] clamav- > > daemon > > > > chris@localhost:~$ sudo service clamav-daemon start [ + ] clamav- > > daemon > > > > The 'clamd.socket' file should be between these two but it's not: > > > > -rw-r--r-- 1 clamav clamav 446464 Jun 23 11:40 bytecode.cld > > -rw-r--r-- 1 clamav clamav 82 Jul 13 14:44 > > crdfam.clamav.hdb > > > > > > > > > > > > ----- Originale Nachricht ----- > > > Von: Chris <[email protected]> > > > Gesendet: 07.08.16 - 04:49 > > > An: [email protected] > > > Betreff: [clamav-users] Error (Cannot connect to unix socket > > > '/var/lib/clamav/clamd.socket': connect: No such file or > > > directory) > > > > > > > > > > > > > > > I upgraded to Ubuntu 16.04LTS earlier this week and it > > > > installed > > > > ClamAV > > > > 0.99. I previously had 98.7 installed and running perfectly. I > > > > have > > > > it > > > > being called by Spamassassin. When an incoming message is > > > > checked > > > > the > > > > line in the subject appears. Permissions for the directory > > > > /var/lib/clamav: > > > > > > > > drwxr-xr-x 3 clamav clamav 4096 Aug 6 20:36 > > > > clamav > > > > > > > > Owner and group of each file in /var/lib/clamav is clamav > > > > clamav. > > > > > > > > The clamd.ctl file exist as shown in my /etc/clamav/clamd.conf: > > > > > > > > # This option allows you to save a process identifier of the > > > > listening > > > > # daemon (main thread). > > > > # Default: disabled > > > > PidFile /var/run/clamav/clamd.pid > > > > > > > > I have the /tmp location set: > > > > > > > > # Optional path to the global temporary directory. > > > > # Default: system specific (usually /tmp or /var/tmp). > > > > TemporaryDirectory /var/tmp > > > > > > > > I have this set for the socket file: > > > > > > > > # Path to a local socket file the daemon will listen on. > > > > # Default: disabled (must be specified by a user) > > > > LocalSocket /var/lib/clamav/clamd.socket > > > > > > > > It's not getting created no matter what I do. It used to be > > > > created > > > > in > > > > fact it was there before I did the system upgrade. > > > > > > > > Any assistance would be appreciated. > > > > > > > > Chris > > > > -- Chris KeyID 0xE372A7DA98E6705C 31.11972; -97.90167 (Elev. 1092 ft) 12:12:00 up 15:36, 1 user, load average: 0.60, 0.48, 0.36 Ubuntu 16.04.1 LTS, kernel 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 _______________________________________________ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml
