I haven't tried to replicate this issue, but I have an idea of what might be 
going on.

freshclam creates the /usr/local/share/clamav/tmp directory on startup, and 
then deletes it again when it is complete.  This behavior holds for freshclam 
run in daemon mode as well.  Of course, in daemon mode, it expects the /tmp 
directory to exist the entire time that freshclam is up. 

I'm guessing that you're running freshclam --daemon in the background, which 
creates the /usr/local/share/clamav/tmp directory.
Then you're running freshclam without daemon mode, which creates and deletes 
the directory.
Finally, the daemon freshclam performs an update but fails to write to the 
/usr/local/share/clamav/tmp directory because the previous invocation deleted 
it upon completion. 

Is this guess accurate?

-Micah

On 12/8/19, 10:03 AM, "clamav-users on behalf of ratatouille via clamav-users" 
<[email protected] on behalf of 
[email protected]> wrote:

    "G.W. Haywood via clamav-users" <[email protected]> schrieb am 
08.12.19 um 14:02:46 Uhr:
    
    > On Sat, 7 Dec 2019, ratatouille via clamav-users wrote:
    > 
    > > It fails to create the tmp-folder. No problem when I call freshclam
    > > from a terminal.  
    > 
    > When you run freshclam from the terminal, what user is running freshclam?
    > 
    > If it is root, have you tried starting freshclam as root to see if the
    > problem goes away?
    
    I stop freshclam systemctl stop freshclam.
    clamd is also stoped then. So I start it with systemctl start clamd
    and then fresclam is also startet.
    
    I kill freshclam and clamd is still running.
    Then I start freshclam -d as root and it is running as vscan, as always.
    
    What else could I do?
    
      Andreas
    
    _______________________________________________
    
    clamav-users mailing list
    [email protected]
    https://lists.clamav.net/mailman/listinfo/clamav-users
    
    
    Help us build a comprehensive ClamAV guide:
    https://github.com/vrtadmin/clamav-faq
    
    http://www.clamav.net/contact.html#ml
    


_______________________________________________

clamav-users mailing list
[email protected]
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to