[clamav-users] failed to write to

Micah Snyder (micasnyd) micasnyd at cisco.com
Mon Dec 9 18:01:20 UTC 2019


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" <clamav-users-bounces at lists.clamav.net on behalf of clamav-users at lists.clamav.net> wrote:

    "G.W. Haywood via clamav-users" <clamav-users at lists.clamav.net> 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
    clamav-users at lists.clamav.net
    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
    



More information about the clamav-users mailing list