ClamAV Error on Transfer

363 views
Skip to first unread message

Kristiana Weseloh

unread,
Apr 5, 2018, 11:13:13 AM4/5/18
to archivematica

Hello,


We are running version 1.7. Has anyone run into this particular error message with ClamAV?


archivematicaClamscan.py: INFO      2018-02-22 16:13:12,179  archivematica.mcp.client.clamscan:scan_file:339:  Using scanner ClamAV (clamd) (ClamAV 0.99.3 - 24338/Thu Feb 22 04:20:01 2018)

archivematicaClamscan.py: INFO      2018-02-22 16:13:12,179  archivematica.mcp.client.clamscan:pass_by_stream:174:  File contents being streamed to Clamdscan.

archivematicaClamscan.py: ERROR     2018-02-22 16:13:12,690  archivematica.mcp.client.clamscan:clamd_exception_handler:149:  Virus scanning failed: [Errno 104] Connection reset by peer

Traceback (most recent call last):

  File "/usr/lib/archivematica/MCPClient/clientScripts/archivematicaClamscan.py", line 116, in scan

    result = getattr(self, method_name)(path)

  File "/usr/lib/archivematica/MCPClient/clientScripts/archivematicaClamscan.py", line 175, in pass_by_stream

    return self.client.instream(open(path))

  File "/usr/share/python/archivematica-mcp-client/local/lib/python2.7/site-packages/clamd/__init__.py", line 190, in instream

    self.clamd_socket.send(size + chunk)

error: [Errno 104] Connection reset by peer

archivematicaClamscan.py: INFO      2018-02-22 16:13:12,721  archivematica.mcp.client.clamscan:scan_file:352:  File /var/archivematica/sharedDirectory/currentlyProcessing/American_300__Art_In_America_Three_Hundred_Years_Of_Innovation_Exhibition-07183c2d-f171-4829-8e45-f6e1d9b69152/objects/Accessioned_files/America_300/PPT_and_press/Press/MoscowPress1.pdf scanned!

archivematicaClamscan.py: INFO      2018-02-22 16:13:12,721  archivematica.mcp.client.clamscan:record_event:235:  Recording new event for file 874b85e9-03df-4a26-a72e-ee3e9b1b0eec (outcome: Fail)

 

I have tried ingesting this collection (1.99 GB) several times with the same error messages, only they appear on different files. The files are pdfs, docs and tmp files. The sizes range from 82 kb to 42 MB.

 

Any ideas would be greatly appreciated.

 

Thanks,

Kristiana Weseloh

Born Digital Archives Fellow

Solomon R. Guggenheim 

Santiago Rodríguez Collazo

unread,
Apr 5, 2018, 11:29:11 AM4/5/18
to archivematica
Hi Kristiana 

This error is due to clamav refusing to ingest files over a certain size (default install sets the limit in 25M)

This can be changed by updating the /etc/clamav/scan.conf (Ubuntu) or /etc/clamd.d/scan.conf (RedHat/CentOS) file and setting the following options/values:

MaxFileSize  2000M
StreamMaxLength 2000M
MaxScanSize 2000M


Once the file is updated, you'll need to restart clamav with:

systemctl restart clamav-daemon (Ubuntu)
systemclt restart clamd@scan (RedHat/CentOS)

/santi

--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematica+unsubscribe@googlegroups.com.
To post to this group, send email to archiv...@googlegroups.com.
Visit this group at https://groups.google.com/group/archivematica.
For more options, visit https://groups.google.com/d/optout.



--
Santiago Rodríguez
DevOps, Artefactual Systems Inc.

Reply all
Reply to author
Forward
0 new messages