permissions – ClamAV not creating sock file

Problem: ClamAV not creating sock file

Info:
Server Info AWS Micro
RAM 1GiB
SWAP 4GiB
Linux Ubuntu 20.04 Server

ls: cannot access '/var/run/clamav/clamd.sock': No such file or directory```

```free -h
              total        used        free      shared  buff/cache   available
Mem:          976Mi        88Mi       774Mi       0.0Ki       113Mi       760Mi
Swap:         4.0Gi       192Mi       3.8Gi```

```systemctl status clamav-daemon
● clamav-daemon.service - Clam AntiVirus userspace daemon
     Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/clamav-daemon.service.d
             └─extend.conf
     Active: active (running) since Sat 2021-04-03 19:38:09 IST; 5s ago
       Docs: man:clamd(8)
             man:clamd.conf(5)
             https://www.clamav.net/documents/
    Process: 1144 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
    Process: 1155 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
   Main PID: 1156 (clamd)
      Tasks: 1 (limit: 1119)
     Memory: 364.0M
     CGroup: /system.slice/clamav-daemon.service
             └─1156 /usr/sbin/clamd --foreground=true

Apr 03 19:38:09 alt systemd(1): Starting Clam AntiVirus userspace daemon...
Apr 03 19:38:09 alt systemd(1): Started Clam AntiVirus userspace daemon.
Apr 03 19:38:09 alt clamd(1156): Received 0 file descriptor(s) from systemd.
Apr 03 19:38:09 alt clamd(1156): clamd daemon 0.102.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Apr 03 19:38:09 alt clamd(1156): Running as user clamav (UID 113, GID 116)
Apr 03 19:38:09 alt clamd(1156): Log file size limited to 4294967295 bytes.
Apr 03 19:38:09 alt clamd(1156): Reading databases from /var/lib/clamav
Apr 03 19:38:09 alt clamd(1156): Not loading PUA signatures.
Apr 03 19:38:09 alt clamd(1156): Bytecode: Security mode set to "TrustSigned".```


```clamscan -r --bell -i /home

----------- SCAN SUMMARY -----------
Known viruses: 8517591
Engine version: 0.102.4
Scanned directories: 7
Scanned files: 12
Infected files: 0
Data scanned: 2.49 MB
Data read: 1.18 MB (ratio 2.11:1)
Time: 269.254 sec (4 m 29 s)```

```head /etc/clamav/clamd.conf
#Automatically Generated by clamav-daemon postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.sock
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 0666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
User clamav```

```tail /var/log/clamav/clamd.log

Sat Apr  3 19:58:45 2021 -> +++ Started at Sat Apr  3 19:58:45 2021
Sat Apr  3 19:58:45 2021 -> Received 0 file descriptor(s) from systemd.
Sat Apr  3 19:58:45 2021 -> clamd daemon 0.102.4 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Sat Apr  3 19:58:45 2021 -> Running as user clamav (UID 113, GID 116)
Sat Apr  3 19:58:45 2021 -> Log file size limited to 4294967295 bytes.
Sat Apr  3 19:58:45 2021 -> Reading databases from /var/lib/clamav
Sat Apr  3 19:58:45 2021 -> Not loading PUA signatures.
Sat Apr  3 19:58:45 2021 -> Bytecode: Security mode set to "TrustSigned".```

```ls /var/run/
drwxr-xr-x  2 clamav clamav clamav ?   40 Apr  3 19:30 clamav/```


Any help, hint, suggestion, reference most welcome.

-Hens