Modify

Ticket #2580 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

failed to exec /etc/cron.hourly/freshclam: Exec format error

Reported by: Josep <josep.spam@…> Owned by: jamor@…
Milestone: Component: antivirus
Severity: normal Keywords:
Cc: josep.spam@…

Description

After installing Mailfilter with Antivirus enabled,I keep receiving mails with the following lines:

/etc/cron.hourly/freshclam:
run-parts: failed to exec /etc/cron.hourly/freshclam: Exec format error
run-parts: /etc/cron.hourly/freshclam exited with return code 1

Indeed, that file is an empty executable file:

root@zenbox:~# ls -al /etc/cron.hourly/freshclam
-rwxr-xr-x 1 root root 0 2010-12-03 08:11 /etc/cron.hourly/freshclam

Attachments

Change History

comment:1 Changed 2 years ago by jacalvo@…

  • Owner changed from javier.amor.garcia@… to jamor@…

comment:2 follow-up: ↓ 3 Changed 2 years ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to fixed

That file is no longer used in recent versions, the correct file now is:

/etc/cron.d/clamav-freshclam

You can upgrade to the latest packages in case you haven't done yet and remove the old /etc/cron.hourly/freshclam without problem.

comment:3 in reply to: ↑ 2 Changed 2 years ago by Josep <josep.spam@…>

  • Cc josep.spam@… added
  • Status changed from closed to reopened
  • Resolution fixed deleted

Replying to jacalvo@…:

That file is no longer used in recent versions, the correct file now is:

/etc/cron.d/clamav-freshclam

You can upgrade to the latest packages in case you haven't done yet and remove the old /etc/cron.hourly/freshclam without problem.

Relevant lines in my /etc/apt/sources.list:

deb http://ppa.launchpad.net/zentyal/2.0/ubuntu lucid main
deb http://archive.canonical.com/ubuntu lucid partner

I have done "aptitude update; aptitude purge ebox-antivirus". This still leaves related files in /etc/cron.hourly. I have removed by hand all files related to this package.

I have reinstalled ebox-antivirus

root@zenbox:~# apt-cache show ebox-antivirus
Package: ebox-antivirus
Source: ebox-antivirus
Priority: optional
Section: web
Installed-Size: 556
Maintainer: José Antonio Calvo <jacalvo@zentyal.org>
Architecture: all
Version: 2.0.4
Depends: ebox (>= 2.0), ebox (<< 2.0.100), ebox-network (>= 2.0.2), ebox-firewall, clamav (>= 0.90), clamav-daemon (>= 0.90), clamav-freshclam (>= 0.90)
Filename: pool/main/e/ebox-antivirus/ebox-antivirus_2.0.4_all.deb
Size: 22354
MD5sum: 4baf8d5c32bc5eaa2dcbcd2b1fc81fe6
SHA1: 87621f0536c5463622dad81fcd8dd0df534d86e2
Description: Zentyal - Antivirus
 Zentyal is a Linux small business server that can act as
 a Gateway, Unified Threat Manager, Office Server, Infrastructure
 Manager, Unified Communications Server or a combination of them. One
 single, easy-to-use platform to manage all your network services.
 .
 This module adds an antivirus scanner server to your Zentyal installation, allowingits use by other eBox services that needs to scan for viruses.

I assume this must be the latest package available, right? Now, checking folder /etc/cron.hourly ...

root@zenbox:~# ls -al /etc/cron.hourly/freshclam
-rwxr-xr-x 1 root root 0 2010-12-08 18:44 /etc/cron.hourly/freshclam

While in folder /etc/cron.d ...

root@zenbox:~# ls -al /etc/cron.d
total 40
drwxr-xr-x   2 root root  4096 2010-12-08 18:43 .
drwxr-xr-x 137 root root 12288 2010-12-08 18:44 ..
-rw-r--r--   1 root root   288 2010-03-05 02:31 anacron
-rw-r--r--   1 root root   249 2010-12-07 07:46 ebox-ebackup
-rw-r--r--   1 root root    57 2010-12-02 11:46 ebox-software
-rw-r--r--   1 root root   191 2010-11-07 18:12 ebox-usersandgroups
-rw-r--r--   1 root root   499 2010-09-17 15:03 php5
-rw-r--r--   1 root root   102 2010-04-15 07:51 .placeholder

So, unless you have just made the changes to the package and it is not yet available to the public, the solution you refer is not right. I still have an invalid executable in /etc/cron.hourly, and the file /etc/cron.d/clamav-freshclam does not really exist.

comment:4 Changed 2 years ago by jacalvo@…

Sorry, you are right, the old /etc/cron.hourly/freshclam that is no longer used, is still created (empty) in the postinst of the package. I'll remove that asap.

But if you really have ebox-antivirus 2.0.4 (double check it with apt-cache policy), I don't understand how your /etc/cron.d/clamav-freshclam file doesn't exist... is the Antivirus module enabled?

comment:5 Changed 2 years ago by jacalvo@…

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [19718]) NN: Removed creation of empty /etc/cron.hourly/freshclam script (closes #2580)

comment:6 Changed 2 years ago by Josep <josep.spam@…>

You'r right. File /etc/cron.d/clamav-freshclam is created when the Antivirus module is actually enabled.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.