Page 1 of 1

error 005013 uploading file

PostPosted:Mon Apr 08, 2013 3:04 pm
by Superpan
Hi all,
I am using OpenKM 6.2.2 with MySQL and have the following problem:
When I try to upload certain files I am getting the error: c:\fakepath\the_name_of_the_file.doc OKM-005013. This happens to relatively large files (about 10-12MB) but I have also tried to make the files smaller, or change the path and name to have no spaces, or even tried this with another OpenKM version (6.2.1) in another machine again with MySQL. The files are not corrupted and I have tried .doc files and .zip files. The only way I managed to add the document was when almost erased every page of it and became about 160kB. The max file size was the default but I also tried to put the value of 100 to that long.

So this is NOT a problem of the file, the path, MySQL. Can you suggest me anything on this? Do you need any logs? Am I doing something wrong?

Thank you in advance.
Panos.

Re: error 005013 uploading file

PostPosted:Tue Apr 09, 2013 12:07 pm
by pavila
Yes, attach the log file zipped (please).

The problem is related to a IO problem. Maybe the disk has a bad sector or has little free space.

Re: error 005013 uploading file

PostPosted:Tue Apr 09, 2013 2:49 pm
by Superpan
I saw the error codes but this is not my case. I have tried uploading files to 2 machines. I have OpenKM installed in 2 different machines (2 different MySQL) and the same files have problems. I tried pdf files. Under 4MB was Ok. Above 4MB I had problem. I tried zip files.. same problems. It is not very clear to me yet what is the condition to popup this error. Maybe file size... I have also tried the default max.file.size (which is 0) and also 100 and 1000 (long). So in my case it is not bad sector or size on disk. Attached are the logs. Hope to find a solution to this.. I was just started copying my files to OpenKM... : /
Thank you in advance guys.

Re: error 005013 uploading file

PostPosted:Wed Apr 10, 2013 8:48 am
by pavila
I see several problem in the log:
Code: Select all
Packet for query is too large (2237453 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.
Code: Select all
Could not delete file 'C:\openkm-6.2.1-community\tomcat\repository\datastore\20\b1\26\d7/20b126d7-f277-4778-b03c-a4d90bfb8734'
java.io.IOException: Could not delete file 'C:\openkm-6.2.1-community\tomcat\repository\datastore\20\b1\26\d7/20b126d7-f277-4778-b03c-a4d90bfb8734'

Re: error 005013 uploading file

PostPosted:Wed Apr 10, 2013 1:28 pm
by Superpan
I really appreciate this help pavila! Increasing the max_allowed_packet solved the issue! Thank you very much...

Re: error 005013 uploading file

PostPosted:Thu Apr 11, 2013 8:15 am
by pavila
You only have to read the error message :)