Search the JIRA 5.0.x Beta and RCs Documentation:

Index
Downloads (PDF, HTML & XML formats)
Other versions

This documentation relates to JIRA 5.0.x Beta and RCs only.
The latest official version is JIRA 4.4.x
If you are using JIRA 4.4.x either view this page in the JIRA 4.4.x documentation or visit the JIRA 4.4.x documentation home page.
Skip to end of metadata
Go to start of metadata

A user reports getting errors like these every time JIRA starts up:

JIRA functions correctly otherwise.

A solution is suggested in this jira-user post:

Hi Jason,

I have had the same errors when at startup that you are seeing.

The problem on my server was that when the user in my database ('JIRA')
created tables they were created as dbo.<tablename> and not
JIRA.<tablename>
so when JIRA attempts to verify a table JIRA.<tablename> exists it fails.
Then it tries to create <tablename>, but it already exists. All the
created
tables are owned by 'dbo' and not 'JIRA'.

I am running on Microsoft SQL Server so my fix may not fit exactly but this
is what I had to do:
Create the 'JIRA' user as a regular user of the JIRA database. Add the
JIRA user to the db_owner (database owner) role. (DO NOT change the database
owner to 'JIRA', just add the role!)

Of course, you will have to drop your existing database first.

Cheers,
Bradley.

We have also had reports from other users that there are also alternatives to this solution. The ddl_admin, db_datareader and db_datawriter roles could be used instead of db_owner role for the jirauser account.

Labels:
  1. Feb 02, 2009

    I just dealt with the same problem, but with SQL Server 2005, when I was trying to upgrade from Jira version 3.6.5 to 3.13.1

    However, instead of just having unhelpful information in the log file, it would not upgrade. I figure the reason was that it tried to find the table, did not find it and therefore tried to create it (ultimately, failing). As such, it did not add the new columns in and when it came time to export, it just didn't work.

    In order to get around it, I changed did two things.

    1. changed the login properties of the Jira User, to have a default Schema of the Jira User (in my case, JiraUser), and role membership of db_owner
    2. changed all the tables so that the object owner was the Jira user.  The way to do this for the jiraaction table is:

    Note: I tried setting the db_datareader, db_datawriter and db_ddladmin roles instead of db_owner, but that did not work.