Clamav-daemon systemd unit fails to start, clamd runs fine
What I expect:
- `clamav-
What happens:
- The `clamav-daemon` systemd unit repeatedly fails to run.
- Error message: `ERROR: TCP: getaddrinfo failed: Servname not supported for ai_socktype`
- Running `clamd` manually seems to work while the systemd units for `clamav-daemon` (`clamav-
What I have tried
- Re-install `clamav-daemon`
- Purge and re-install `clamav-daemon`
- First time, the condition for `daily.
- After that, it kept failing in the same way as before
From `journalctl -u clamav-daemon --follow`:
```
Oct 01 13:19:58 Hostname systemd[1]: clamav-
Oct 01 13:19:58 Hostname systemd[1]: clamav-
Oct 01 13:19:58 Hostname systemd[1]: Starting clamav-
Oct 01 13:20:16 Hostname clamd[146971]: ERROR: Tue Oct 1 13:20:16 2024 -> TCP: getaddrinfo failed: Servname not supported for ai_socktype
Oct 01 13:20:16 Hostname systemd[1]: clamav-
Oct 01 13:20:16 Hostname systemd[1]: clamav-
Oct 01 13:20:16 Hostname systemd[1]: Failed to start clamav-
Oct 01 13:20:16 Hostname systemd[1]: clamav-
Oct 01 13:20:16 Hostname systemd[1]: clamav-
Oct 01 13:20:16 Hostname systemd[1]: Starting clamav-
Oct 01 13:20:34 Hostname clamd[147027]: ERROR: Tue Oct 1 13:20:34 2024 -> TCP: getaddrinfo failed: Servname not supported for ai_socktype
Oct 01 13:20:34 Hostname systemd[1]: clamav-
Oct 01 13:20:34 Hostname systemd[1]: clamav-
Oct 01 13:20:34 Hostname systemd[1]: Failed to start clamav-
Oct 01 13:20:34 Hostname systemd[1]: clamav-
Oct 01 13:20:34 Hostname systemd[1]: clamav-
Oct 01 13:20:34 Hostname systemd[1]: Starting clamav-
Oct 01 13:20:51 Hostname clamd[147059]: ERROR: Tue Oct 1 13:20:51 2024 -> TCP: getaddrinfo failed: Servname not supported for ai_socktype
Oct 01 13:20:52 Hostname systemd[1]: clamav-
Oct 01 13:20:52 Hostname systemd[1]: clamav-
Oct 01 13:20:52 Hostname systemd[1]: Failed to start clamav-
Oct 01 13:20:52 Hostname systemd[1]: clamav-
Oct 01 13:20:52 Hostname systemd[1]: clamav-
Oct 01 13:20:52 Hostname systemd[1]: Starting clamav-
Oct 01 13:21:09 Hostname clamd[147078]: ERROR: Tue Oct 1 13:21:09 2024 -> TCP: getaddrinfo failed: Servname not supported for ai_socktype
Oct 01 13:21:09 Hostname systemd[1]: clamav-
Oct 01 13:21:09 Hostname systemd[1]: clamav-
Oct 01 13:21:09 Hostname systemd[1]: Failed to start clamav-
Oct 01 13:21:09 Hostname systemd[1]: clamav-
Oct 01 13:21:09 Hostname systemd[1]: clamav-
Oct 01 13:21:10 Hostname systemd[1]: Starting clamav-
```
From `/var/log/
```
Tue Oct 1 13:02:54 2024 -> Loaded 8698985 signatures.
Tue Oct 1 13:02:57 2024 -> ERROR: TCP: getaddrinfo failed: Servname not supported for ai_socktype
Tue Oct 1 13:02:57 2024 -> +++ Started at Tue Oct 1 13:02:57 2024
Tue Oct 1 13:02:57 2024 -> Received 1 file descriptor(s) from systemd.
Tue Oct 1 13:02:57 2024 -> clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
Tue Oct 1 13:02:57 2024 -> Log file size limited to 4294967295 bytes.
Tue Oct 1 13:02:57 2024 -> Reading databases from /var/lib/clamav
Tue Oct 1 13:02:57 2024 -> Not loading PUA signatures.
Tue Oct 1 13:02:57 2024 -> Bytecode: Security mode set to "TrustSigned".
Tue Oct 1 13:03:12 2024 -> Loaded 8698985 signatures.
Tue Oct 1 13:03:14 2024 -> ERROR: TCP: getaddrinfo failed: Servname not supported for ai_socktype
Tue Oct 1 13:03:15 2024 -> +++ Started at Tue Oct 1 13:03:15 2024
Tue Oct 1 13:03:15 2024 -> Received 1 file descriptor(s) from systemd.
Tue Oct 1 13:03:15 2024 -> clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
Tue Oct 1 13:03:15 2024 -> Log file size limited to 4294967295 bytes.
Tue Oct 1 13:03:15 2024 -> Reading databases from /var/lib/clamav
Tue Oct 1 13:03:15 2024 -> Not loading PUA signatures.
Tue Oct 1 13:03:15 2024 -> Bytecode: Security mode set to "TrustSigned".
Tue Oct 1 13:03:29 2024 -> Loaded 8698985 signatures.
Tue Oct 1 13:03:32 2024 -> ERROR: TCP: getaddrinfo failed: Servname not supported for ai_socktype
Tue Oct 1 13:03:33 2024 -> +++ Started at Tue Oct 1 13:03:33 2024
Tue Oct 1 13:03:33 2024 -> Received 1 file descriptor(s) from systemd.
Tue Oct 1 13:03:33 2024 -> clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
Tue Oct 1 13:03:33 2024 -> Log file size limited to 4294967295 bytes.
Tue Oct 1 13:03:33 2024 -> Reading databases from /var/lib/clamav
Tue Oct 1 13:03:33 2024 -> Not loading PUA signatures.
Tue Oct 1 13:03:33 2024 -> Bytecode: Security mode set to "TrustSigned".
Tue Oct 1 13:03:47 2024 -> Loaded 8698985 signatures.
Tue Oct 1 13:03:50 2024 -> ERROR: TCP: getaddrinfo failed: Servname not supported for ai_socktype
Tue Oct 1 13:03:50 2024 -> +++ Started at Tue Oct 1 13:03:50 2024
Tue Oct 1 13:03:50 2024 -> Received 1 file descriptor(s) from systemd.
Tue Oct 1 13:03:50 2024 -> clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
Tue Oct 1 13:03:50 2024 -> Log file size limited to 4294967295 bytes.
Tue Oct 1 13:03:50 2024 -> Reading databases from /var/lib/clamav
Tue Oct 1 13:03:50 2024 -> Not loading PUA signatures.
Tue Oct 1 13:03:50 2024 -> Bytecode: Security mode set to "TrustSigned".
Tue Oct 1 13:04:05 2024 -> Loaded 8698985 signatures.
Tue Oct 1 13:04:07 2024 -> ERROR: TCP: getaddrinfo failed: Servname not supported for ai_socktype
Tue Oct 1 13:04:08 2024 -> +++ Started at Tue Oct 1 13:04:08 2024
Tue Oct 1 13:04:08 2024 -> Received 1 file descriptor(s) from systemd.
Tue Oct 1 13:04:08 2024 -> clamd daemon 1.0.7 (OS: Linux, ARCH: x86_64, CPU: x86_64)
Tue Oct 1 13:04:08 2024 -> Log file size limited to 4294967295 bytes.
Tue Oct 1 13:04:08 2024 -> Reading databases from /var/lib/clamav
Tue Oct 1 13:04:08 2024 -> Not loading PUA signatures.
Tue Oct 1 13:04:08 2024 -> Bytecode: Security mode set to "TrustSigned".
```
`clamav-daemon` version:
```
1.0.7+dfsg-
```
# System Details Report
---
## Report details
- **Date generated:** 2024-10-01 16:44:39
## Hardware Information:
- **Hardware Model:** Intel Corporation SandyBridge Platform
- **Memory:** 16.0 GiB
- **Processor:** Intel® Xeon® E3-1220 V2 × 4
- **Graphics:** NVD9
- **Disk Capacity:** 3.2 TB
## Software Information:
- **Firmware Version:** S1200BT.
- **OS Name:** Ubuntu 24.04.1 LTS
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 46
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.8.0-45-generic
Question information
- Language:
- English Edit question
- Status:
- Open
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Aaron Li for more information if necessary.