MySQL Data Access Exception - Errcode - 17 occurs with JIRA
Symptoms
JIRA was not able to come up after restart, and the following appears in the atlassian-jira.log
:
com.atlassian.jira.exception.DataAccessException: java.sql.SQLException: Can't create/write to file 'C:\temp2#sql_eb4_0.MYI' (Errcode: 17)
at com.atlassian.jira.upgrade.util.UpgradeUtils.getExactColumnName(UpgradeUtils.java:222)
at com.atlassian.jira.appconsistency.db.Build178SchemaCheck.isColumnInTable(Build178SchemaCheck.java:81)
at com.atlassian.jira.appconsistency.db.Build178SchemaCheck.check(Build178SchemaCheck.java:71)
at com.atlassian.jira.appconsistency.db.Build178SchemaCheck.isOk(Build178SchemaCheck.java:38)
at com.atlassian.jira.appconsistency.db.DatabaseChecker.checkDatabase(DatabaseChecker.java:108)
at com.atlassian.jira.appconsistency.db.DatabaseCompatibilityEnforcer.contextInitialized(DatabaseCompatibilityEnforcer.java:32)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
Diagnosis
error code means:
C:\>perror 17
OS error code 17: File exists
Cause
This error was caused by a MySQL Bug which is described in detail on the following link MySQL Bug Forum.
Workaround
Disable anti-virus from checking JIRA folders. "On-access" checking on JIRA servers should not be enabled.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.