linshare icon indicating copy to clipboard operation
linshare copied to clipboard

The file couldn't be scanned (3007)

Open georgej77 opened this issue 5 years ago • 10 comments

Hi,

When I upload a file to linshare, I'm getting the attached error some time. It is "The file couldn't be scanned (3007) Kindly let me know the root cause of it. Where should I check and resolved it.

Product version is 4.1.2

Thanks george file_upload_error

georgej77 avatar Sep 29 '21 10:09 georgej77

Hi George,

it probably means that you enable the Antivirus functionality in ui-admin but you did not set up the proper parameters in linshare.properties file (antivirus IP and port)

Fred.

fmartin-linagora avatar Oct 04 '21 09:10 fmartin-linagora

Hi Fred,

Thanks for your reply. Yes. I have enabled ClamAV on it. Please find the virus scanner configuration from linshare.properties. Can I add anything more? Please take note that above mentioned error will not come all time.

#******************** VIRUS SCANNER #uncomment those properties if you want to enable clamav virus scanner feature virusscanner.clamav.host=localhost virusscanner.clamav.port=3310 #Every file which size is over than the value below (in bytes) will skip the virus scanner. #virusscanner.limit.filesize=50000000

================== Thanks George

georgej77 avatar Oct 04 '21 10:10 georgej77

So did you install ClamAV ?

fmartin-linagora avatar Oct 04 '21 12:10 fmartin-linagora

Yes. It is there already.

freshclam Mon Oct 4 20:40:52 2021 -> ClamAV update process started at Mon Oct 4 20:40:52 2021 Mon Oct 4 20:40:52 2021 -> daily.cld database is up-to-date (version: 26312, sigs: 1938566, f-level: 90, builder: raynman) Mon Oct 4 20:40:52 2021 -> main.cld database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr) Mon Oct 4 20:40:52 2021 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)

georgej77 avatar Oct 04 '21 12:10 georgej77

freshclam is the daemon responsible to update clamav database. So you need to install clamav daemon.

Then edit the file /etc/clamav/clamd.conf and check the parameters: TCPSocket 3310 TCPAddr localhost StreamMaxLength 50M

fmartin-linagora avatar Oct 04 '21 13:10 fmartin-linagora

Hi Fred,

I have updated it accordingly. Let me monitor it for one more month and close the case later.

Thanks, George.

georgej77 avatar Oct 12 '21 07:10 georgej77

Hi Fred,

The above configuration change didn't resolve the issue. The interesting thing that the error is not showing frequently.

Thanks, Jinju

georgej77 avatar Oct 27 '21 09:10 georgej77

what messages do you have in the server logs ?

fmartin-linagora avatar Oct 27 '21 09:10 fmartin-linagora

Hi, You can also increase a little bit the antivirus max size (StreamMaxLength 51M) and set LinShare to skip the antivirus when size is over 50M (virusscanner.limit.filesize=50000000)

Regards,

fmartin-linagora avatar Nov 05 '21 15:11 fmartin-linagora

Thanks. I have updated the configuration accordingly.

georgej77 avatar Nov 11 '21 05:11 georgej77