Page 1 of 1

Cron errors

Posted: Sun May 01, 2016 6:58 pm
by leisegang
I get some errors and mail like 20 times a day. i have tried to fix them myself but its not working.

Code: Select all

ERROR: Can't create temporary directory /var/lib/clamav/clamav-f3a4f7a87c46a7950462f2cdacb141af.tmp

Code: Select all

/etc/cron.hourly/0yum-hourly.cron:

Could not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64 error was
12: Timeout on https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64: (28, 'timed out before SSL handshake')

Code: Select all

error: gpg required but not found!  It is not recommended, but you can use "sa-update" with the --no-gpg to skip the verification.
29-Apr-2016 05:52:26: SpamAssassin: Problem applying update - pre files failed lint check

How do i fix these?

Re: Cron errors

Posted: Mon May 02, 2016 8:10 pm
by Falzo
for the last one probably just install gnugpg ?

the first one probably is related to freshclam (the updater of clamav) try running freshclam via cli to gather more info if possible or see if this works at least. check the ownership and permissions on /var/lib/clamav

the second I can't tell much, as I am not into centos/fedora, but as the url seems to work I suggest running yum update by hand to see the output and wwhat may be the matter. try wget the url to gather more infos.

Re: Cron errors

Posted: Mon May 02, 2016 8:14 pm
by leisegang
Package gnupg2-2.0.22-3.el7.x86_64 already installed and latest version

Re: Cron errors

Posted: Mon May 02, 2016 8:26 pm
by Falzo
hmm, just try running gpg from console, what do you get as result? may be some libraries are missing? also try running sa-update --verbose manually...

Re: Cron errors

Posted: Mon May 02, 2016 8:29 pm
by leisegang

Code: Select all

error: gpg required but not found!  It is not recommended, but you can use "sa-update" with the --no-gpg to skip the verification. 

Re: Cron errors

Posted: Mon May 02, 2016 9:03 pm
by Falzo
that's not much :( and to run gpg from console does work? could you run 'which gpg' to see where it is located? maybe the path isn't included for spamassassin...

Re: Cron errors

Posted: Sun May 08, 2016 6:35 am
by leisegang
I fixed this one:

Code: Select all

ERROR: Can't create temporary directory /var/lib/clamav/clamav-f3a4f7a87c46a7950462f2cdacb141af.tmp
using:
chown 1001:1001 /var/lib/clamav & chmod 755 /var/lib/clamav

---------------------

I fixed this one:

Code: Select all

error: gpg required but not found!  It is not recommended, but you can use "sa-update" with the --no-gpg to skip the verification.
29-Apr-2016 05:52:26: SpamAssassin: Problem applying update - pre files failed lint check
using:

Code: Select all

ln -sf /usr/bin/gpg /usr/sbin/gpg