JIRA Deployment Fails with MySQL 4.1.x on Ubuntu
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
JIRA fails to create MySQL tables on Ubuntu. The following appears in the atlassian-jira.log
:
1
org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:OSPropertyEntry][propertyKey,jira.i18n.language.index][type,5][id,10000][entityName,jira.properties][entityId,1] (SQL Exception while executing the following:INSERT INTO propertyentry (ID, ENTITY_NAME, ENTITY_ID, PROPERTY_KEY, propertytype) VALUES (?, ?, ?, ?, ?) (Incorrect arguments to mysql_stmt_execute))
Cause
This is due to an Ubuntu/Debian packaging problem. It's also discussed on Atlassian's forums.
Resolution
Edit the following section in your server.xml:
1 2
<Context docBase="${catalina.home}/atlassian-jira" path="" reloadable="false"> <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" name="jdbc/JiraDS" password="Eet4Vape" type="javax.sql.DataSource" url="jdbc:mysql://localhost/jiradb?useUnicode=true&characterEncoding=UTF8" username="jirauser"/>
Edit the section that starts with "url=" and append 'useServerPrepStmts=false' So that the JDBC URL looks like the following:
1
url"jdbc:mysql://localhost/jiradb?useServerPrepStmts=false"
Restart of JIRA for the changes to take effect.
Was this helpful?