linagora / linshare

LinShare
https://www.linshare.org/
GNU Affero General Public License v3.0
449 stars 84 forks source link

An error ocurred during upload with ClamAV 1.0.3 #291

Open Flopil opened 9 months ago

Flopil commented 9 months ago

Hi, I have an issue with ClamAV remote scan since he was upgraded from 0.103 to 1.0.3 version. I've tested and the remote scan works perfectly with clamdscan command on the linshare server. But on Linshare, when I upload a file, there is an error : An error ocurred during upload

How can I fix that ? Thanks for help.

When I check the log, we can see that:

` [2023-10-05 16:44:59] [info] Démarrage du gestionnaire de protocole ["http-nio-8080"] [2023-10-05 16:44:59] [info] Le démarrage du serveur a pris [25090] millisecondes [2023-10-05 16:45:35] [info] [INFO]:http-nio-8080-exec-2:20231005.164535:org.linagora.linshare.webservice.userv2.FlowDocumentUploaderRestService:testChunk:GET: .../webservice/rest/user/v2/flow.json:59792320-78c8-4b29-9a96-0f6ce43b642c: chunkNumber:1/1 [2023-10-05 16:45:35] [info] [INFO]:http-nio-8080-exec-2:20231005.164535:org.linagora.linshare.webservice.userv2.FlowDocumentUploaderRestService:testChunk:GET: .../webservice/rest/user/v2/flow.json:59792320-78c8-4b29-9a96-0f6ce43b642c: chunkNumber:1/1 [2023-10-05 16:45:35] [info] [INFO]:http-nio-8080-exec-4:20231005.164535:org.linagora.linshare.webservice.userv2.FlowDocumentUploaderRestService:getTransfertDuration:statistics:upload time:23ms. [2023-10-05 16:45:35] [info] [INFO]:http-nio-8080-exec-4:20231005.164535:org.linagora.linshare.webservice.userv2.FlowDocumentUploaderRestService:getTransfertDuration:statistics:upload time:23ms. [2023-10-05 16:45:35] [info] [INFO]:taskExecutor-1:20231005.164535:org.linagora.linshare.webservice.userv1.task.DocumentUploadAsyncTask:run:Begin processing async task : 7c2f2644-1a22-4308-83e4-335ea9ab0703 [2023-10-05 16:45:35] [info] [INFO]:taskExecutor-1:20231005.164535:org.linagora.linshare.webservice.userv1.task.DocumentUploadAsyncTask:run:Begin processing async task : 7c2f2644-1a22-4308-83e4-335ea9ab0703 [2023-10-05 16:45:36] [warning] org.xerial's sqlite-jdbc is not loaded. [2023-10-05 16:45:36] [info] Please provide the jar on your classpath to parse sqlite files. [2023-10-05 16:45:36] [info] See tika-parsers/pom.xml for the correct version.

[2023-10-05 16:45:36] [info] [ERROR]:taskExecutor-1:20231005.164536:org.linagora.linshare.webservice.userv1.task.DocumentUploadAsyncTask:run:Async task '7c2f2644-1a22-4308-83e4-335ea9ab0703' processed with final status : FAILED [2023-10-05 16:45:36] [info] [ERROR]:taskExecutor-1:20231005.164536:org.linagora.linshare.webservice.userv1.task.DocumentUploadAsyncTask:run:Async task '7c2f2644-1a22-4308-83e4-335ea9ab0703' processed with final status : FAILED

`

wboudiche commented 9 months ago

Hi Did you tried the upload without enabling the antivirus ? If it's the same result, enable the trace log level in log4j and send us logs.

wboudiche commented 9 months ago

Hi Did you tried the upload without enabling the antivirus ? If it's the same result, enable the trace log level in log4j and send us logs.