I'm trying to use OwnCloud's files_antivirus plugin with ClamAV-daemon to scan for windows virus.
Warning files_antivirus File could not be scanned. Clamscan reported: 2014-04-25T16:16:43+00:00 Error PHP Undefined offset: 1 at /var/www/BBLabCloud/apps/files_antivirus/lib/clamav.php#152 2014-04-25T16:16:43+00:00 Debug files_antivirus Response :: INSTREAM size limit exceeded. ERROR 2014-04-25T16:16:43+00:00 Error PHP fwrite(): send of 4 bytes failed with errno=32 Broken pipe at /var/www/BBLabCloud/apps/files_antivirus/lib/clamav.php#130 2014-04-25T16:16:43+00:00 Error PHP fwrite(): send of 8192 bytes failed with errno=32 Broken pipe at /var/www/BBLabCloud/apps/files_antivirus/lib/clamav.php#128 2014-04-25T16:16:43+00:00 Error PHP fwrite(): send of 8192 bytes failed with errno=32 Broken pipe at /var/www/BBLabCloud/apps/files_antivirus/lib/clamav.php#128 2014-04-25T16:16:43+00:00 Error PHP fwrite(): send of 8192 bytes failed with errno=32 Broken pipe at /var/www/BBLabCloud/apps/files_antivirus/lib/clamav.php#128 2014-04-25T16:16:43+00:00 But it gave me an INSTREAM size limit exceed error message while I set streamlength to 10485760 bytes. Following the tutorials here: http://doc.owncloud.org/server/6.0/admin_manual/apps/files_antivirus/index.html Then I notice this post: http://www.clamav.net/doc/latest/html/node28.html *Note: do not exceed StreamMaxLength as defined in clamd.conf, otherwise clamd will reply with INSTREAM size limit exceeded and close the connection* Does it mean the maximum file size shouldn't exceed streamlength? The message comes from the php file here: https://github.com/owncloud/apps/blob/master/files_antivirus/lib/clamav.phpat line 132 Or should I directly setup StreamMaxLength from clamd.conf? Thanks! _______________________________________________ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/support/ml