Coder Social home page Coder Social logo

Comments (3)

Lusitaniae avatar Lusitaniae commented on September 15, 2024

Possibly related, I've been getting the error below since 3rd September (13 days ago)

    amazon-ebs: TASK [geerlingguy.clamav : Ensure ClamAV daemon is running (if configured).] ***
    amazon-ebs: Thursday 16 September 2021  05:27:36 +0000 (0:00:00.195)       0:02:58.185 ****
    amazon-ebs: fatal: [hostname]: FAILED! => {"changed": false, "msg": "Unable to start service clamd@scan: Job for [email protected] failed because the control process exited with error code. See \"systemctl status [email protected]\" and \"journalctl -xe\" for details.
"}

the whole log for the role section

amazon-ebs: TASK [geerlingguy.clamav : Include OS-Specific variables] **********************
amazon-ebs: Thursday 16 September 2021  05:27:04 +0000 (0:00:00.124)       0:02:26.703 ****
amazon-ebs: ok: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : include_tasks] **************************************
amazon-ebs: Thursday 16 September 2021  05:27:04 +0000 (0:00:00.092)       0:02:26.795 ****
amazon-ebs: included: /root/.ansible/roles/geerlingguy.clamav/tasks/setup-vars.yml for hostname
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Define clamav_daemon.] ******************************
amazon-ebs: Thursday 16 September 2021  05:27:04 +0000 (0:00:00.099)       0:02:26.894 ****
amazon-ebs: ok: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Define clamav_freshclam_daemon.] ********************
amazon-ebs: Thursday 16 September 2021  05:27:05 +0000 (0:00:00.118)       0:02:27.013 ****
amazon-ebs: ok: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Define clamav_packages.] ****************************
amazon-ebs: Thursday 16 September 2021  05:27:05 +0000 (0:00:00.093)       0:02:27.107 ****
amazon-ebs: ok: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Ensure ClamAV packages are installed.] **************
amazon-ebs: Thursday 16 September 2021  05:27:05 +0000 (0:00:00.086)       0:02:27.193 ****
amazon-ebs: changed: [hostname] => (item=clamav)
amazon-ebs: ok: [hostname] => (item=clamav-update)
amazon-ebs: changed: [hostname] => (item=clamav-scanner-systemd)
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Run freshclam after ClamAV packages change.] ********
am
am
am
am
am
am
am
am
amazon-ebs: Thursday 16 September 2021  05:27:14 +0000 (0:00:09.465)       0:02:36.659 ****
amazon-ebs: changed: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : include_tasks] **************************************
amazon-ebs: Thursday 16 September 2021  05:27:35 +0000 (0:00:20.893)       0:02:57.552 ****
amazon-ebs: included: /root/.ansible/roles/geerlingguy.clamav/tasks/setup-RedHat.yml for hostname
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Ensure Freshclam service is available.] *************
amazon-ebs: Thursday 16 September 2021  05:27:35 +0000 (0:00:00.162)       0:02:57.715 ****
amazon-ebs: changed: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Reload systemd after adding service.] ***************
amazon-ebs: Thursday 16 September 2021  05:27:35 +0000 (0:00:00.109)       0:02:57.825 ****
amazon-ebs: ok: [hostname]
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Change configuration for the ClamAV daemon.] ********
amazon-ebs: Thursday 16 September 2021  05:27:36 +0000 (0:00:00.164)       0:02:57.989 ****
amazon-ebs: changed: [hostname] => (item={'regexp': '^.*Example$', 'state': 'absent'})
amazon-ebs: changed: [hostname] => (item={'regexp': '^.*LocalSocket .*$', 'line': 'LocalSocket /var/run/clamd.scan/clamd.sock'})
amazon-ebs:
amazon-ebs: TASK [geerlingguy.clamav : Ensure ClamAV daemon is running (if configured).] ***
amazon-ebs: Thursday 16 September 2021  05:27:36 +0000 (0:00:00.195)       0:02:58.185 ****
amazon-ebs: fatal: [hostname]: FAILED! => {"changed": false, "msg": "Unable to start service clamd@scan: Job for [email protected] failed because the control process exited with error code. See \"systemctl status [email protected]\" and \"journalctl -xe\" for details.
"}
cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)

/var/log/messages

Sep 16 14:54:52 ip-172-31-42-25 systemd: Starting clamd scanner (scan) daemon...
Sep 16 14:54:52 ip-172-31-42-25 clamd[25456]: Received 0 file descriptor(s) from systemd.
Sep 16 14:54:52 ip-172-31-42-25 clamd[25456]: clamd daemon 0.103.3 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Sep 16 14:54:52 ip-172-31-42-25 clamd[25456]: Log file size limited to 1048576 bytes.
Sep 16 14:54:52 ip-172-31-42-25 clamd[25456]: Reading databases from /var/lib/clamav
Sep 16 14:54:52 ip-172-31-42-25 clamd[25456]: Not loading PUA signatures.
Sep 16 14:54:52 ip-172-31-42-25 clamd[25456]: Bytecode: Security mode set to "TrustSigned".
Sep 16 14:55:07 ip-172-31-42-25 clamd[25456]: Loaded 8565181 signatures.
Sep 16 14:55:10 ip-172-31-42-25 clamd[25456]: LOCAL: Could not create socket directory: /var/run/clamd.scan: Permission denied
Sep 16 14:55:10 ip-172-31-42-25 clamd: ERROR: LOCAL: Could not create socket directory: /var/run/clamd.scan: Permission denied
Sep 16 14:55:10 ip-172-31-42-25 clamd: ERROR: LOCAL: Socket file /var/run/clamd.scan/clamd.sock could not be bound: No such file or directory
Sep 16 14:55:10 ip-172-31-42-25 clamd[25456]: LOCAL: Socket file /var/run/clamd.scan/clamd.sock could not be bound: No such file or directory
Sep 16 14:55:10 ip-172-31-42-25 systemd: [email protected]: control process exited, code=exited status=1
Sep 16 14:55:10 ip-172-31-42-25 systemd: Failed to start clamd scanner (scan) daemon.
Sep 16 14:55:10 ip-172-31-42-25 systemd: Unit [email protected] entered failed state.
Sep 16 14:55:10 ip-172-31-42-25 systemd: [email protected] failed.
Sep 16 14:55:10 ip-172-31-42-25 systemd: [email protected] holdoff time over, scheduling restart.
ls -la /var/run
lrwxrwxrwx. 1 root root 6 Oct 30  2020 /var/run -> ../run

Now, I'm thinking if the package in remi repository has changed and it stopped working.

(In this case I'm building image from base centos 7 image) Simply using one of the last working images I've built works fine


The CI is also broke, yours failed for a unrelated reason (ubuntu failed first and canceled the build on centos7)

I've forked the repo to my account, which shows the same errors https://github.com/Lusitaniae/ansible-role-clamav/runs/3623755748?check_suite_focus=true


Creating the directory in advance seems to solve it for Centos (may require different user/group for Ubuntu)

https://github.com/Lusitaniae/ansible-role-clamav/runs/3623866884

--
One of the last changes from remi repo
https://koji.fedoraproject.org/koji/buildinfo?buildID=1825029

from ansible-role-clamav.

stale avatar stale commented on September 15, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

from ansible-role-clamav.

stale avatar stale commented on September 15, 2024

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

from ansible-role-clamav.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.