mysql error Can't create/write to file

Support questions relating to Alfresco repository services

mysql error Can't create/write to file

Postby senthil.chinnaiyan on 23 Feb 2007, 08:58

Hi All:

Please help, I am getting these errors suddenly. I am using MySql on Windows.

Caused by: java.sql.SQLException: Can't create/write to file 'D:\Work\MySql\Data Files\#sql_149c_0.MYD' (Errcode: 17)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3118)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3047)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1166)
at com.mysql.jdbc.DatabaseMetaData$2.forEach(DatabaseMetaData.java:2046)
at com.mysql.jdbc.DatabaseMetaData$IterateBlock.doForAll(DatabaseMetaData.java:76)
at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:1920)
at org.hibernate.tool.hbm2ddl.TableMetadata.initColumns(TableMetadata.java:185)
at org.hibernate.tool.hbm2ddl.TableMetadata.<init>(TableMetadata.java:33)
at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:85)
... 35 more
senthil.chinnaiyan
Community Contributor
Community Contributor
 
Posts: 37
Joined: 25 Jan 2007, 08:40

0 Points (What's this)

Postby kevinr on 23 Feb 2007, 16:24

This looks like a MySQL issue rather than an Alfresco one:

System error: 17 = File exists

For some reason your system is trying to create a tmp file that already exists. I'd try cleaning out your tmp and any mysql tmp directories.

When i googled for the issue it seems to be one other people have had using MySQL (but not Alfresco related).

Thanks,

Kevin
Alfresco Applications Team Leader
http://twitter.com/kevinroast - Find me on Twitter
http://www.alfresco.com/community/register - Alfresco Manuals
http://wiki.alfresco.com - Alfresco Wiki docs
http://wiki.alfresco.com/wiki/Developer_Guide - Alfresco Developer Guide
kevinr
Alfresco Engineer
Alfresco Engineer
 
Posts: 2539
Joined: 27 Jun 2005, 15:56
Location: London
Alfresco Version: 3.2

14 Points (What's this)

Postby Andy on 23 Feb 2007, 17:01

Hi

I would check you are using InnoDB - my memory - I think that file extension indicates you are using myISAM tables.

Regards

Andy
Andy Hind
Alfresco Development
Andy
Alfresco Engineer
Alfresco Engineer
 
Posts: 1138
Joined: 27 Jun 2005, 12:46
Location: London

5 Points (What's this)

Postby senthil.chinnaiyan on 24 Feb 2007, 01:24

Thanks Andy & Kevin. The problem is fixed now. Newer version of McAfee was protecting MySql temporary folder. I have added the temporary folder into McAfee's exclude list and it worked.

Thanks for very much for your valuable suggestions.

Senthil.
senthil.chinnaiyan
Community Contributor
Community Contributor
 
Posts: 37
Joined: 25 Jan 2007, 08:40

0 Points (What's this)

Re: mysql error Can't create/write to file

Postby mialfresco on 15 Oct 2009, 09:17

Hi senthil,
I'm also facing the same problem.... from a long time..
Can you provide the complete solution for this.
I'm using Alfresco labs 3.0 stable version and mysql 5.0.18
Even I tried to disable Mcafee "On Access Scan" but still facing the problem.
IS there any other solution for this? if yes please post it.

Thanks in advance.
mialfresco
Community Contributor Pro
Community Contributor Pro
 
Posts: 100
Joined: 22 May 2009, 08:34
Alfresco Version: 3.0

0 Points (What's this)

Re: mysql error Can't create/write to file

Postby MikeH on 15 Oct 2009, 09:44

It's McAfee - disable the service and the problem will go away. You just need to exclude the MySQL filetypes. There's more info on the MySQL forums.

Thanks,
Mike
Mike Hatfield
Senior Software Engineer
http://twitter.com/mikehatfield - Find me on Twitter
http://share.alfresco.com/ - Alfresco Content Community
http://wiki.alfresco.com/ - Alfresco Wiki docs
http://issues.alfresco.com/ - JIRA bug reporting site

** If this post was helpful, please click Yes on the Post Rating --> **
MikeH
Alfresco Engineer
Alfresco Engineer
 
Posts: 2571
Joined: 19 Aug 2005, 09:24
Location: Alfresco HQ

253 Points (What's this)

Re: mysql error Can't create/write to file

Postby HayleyManor on 11 Jan 2010, 13:11

So we either disable McAfee or add the temp folder to McAfee's exclude list. Only thing is I can't find where the exclude list is. I don't really want to disable McAfee.
HayleyManor
 
Posts: 2
Joined: 11 Jan 2010, 13:05
Alfresco Version: 3.1

0 Points (What's this)


Return to Repository Services

Who is online

Users browsing this forum: No registered users and 1 guest