You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Anyone can assist? Is there a query script I can run to fix this? Or possibly change all the CI_AS to the correct in one query? Someone please help!
Hello! How do I find out what version of Mysql I am running? I wasn't the previous person who had initially setup our Jira server and I am just simply 'taking over' everything going forward.
Hello, yes we are using MySQL. Would I really have to create a brand new database to fix this issue? But how did it possibly get changed to begin with? We never ever had this error before. By creating a brand new database to get rid of this error, would we lose all of our data in JIRA?
But I was talking about MS SQL. So what DBMS are you using? Can you look into HOME-DIR/dbconfig.xml and copy-paste here your DB driver?
Hello sorry, yes I meant MS SQL. This is the only dbconfig.xml file I found.
Here is what was inside the file:
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>mssql</database-type>
<schema-name>dbo</schema-name>
<jdbc-datasource>
<url>jdbc:sqlserver://;serverName=localhost;portNumber=1433;databaseName=jira;integratedsecurity=true</url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<!-- <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class> -->
<username>jira</username>
<password>jira</password>
<pool-min-size>20</pool-min-size>
<pool-max-size>20</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<validation-query>select 1</validation-query>
<min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
<pool-max-idle>20</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
<pool-test-on-borrow>false</pool-test-on-borrow>
<pool-test-while-idle>true</pool-test-while-idle>
</jdbc-datasource>
</jira-database-config>
Perfect, then just follow up linked article for MS SQL. You will create new DB, but you will be able to restore data from your instance. Read all of steps really carefull and let me know, but I think you will done it without problem. ;-)
Thanks so much! I am trying to create a new DB based on the guide you provided above. But right now the "Getting the list of objects from 'jira'" is taking a long time. Hopefully it finishes soon so I can restore my data into the new DB and we can be free of that horrible error!
Hello, I am having difficulty exporting my database. When I get to the "Data source" page I am unsure what I'm looking at in the drop down menu. The guide says to make sure my old database is selected..... but I don't think I'm seeing it in this drop down list. So confused. :(
Hi,
sorry for late response. There must be option like SQL Server Native Client - you will use it also for destination source.
Hello Petr, I will try again and see if I see that SQL Server Native Client as I scroll more down in the list.
Hi Petr,
I see this as I scrolled to the bottom. Is this what I select? And I just choose Next? Or do I have to do something else?
Hi,
look at this tutorial - it seems like it can help you. Prabably you will only need insert some SQL server credentials if you don't have access with your Windows (Domain) account.
https://www.sqlshack.com/techniques-to-bulk-copy-import-and-export-in-sql-server/
@Petr VaníčekAfter following all of your steps in the guides you provided us. We stop Jira via the Services window. Located the dbconfig.xml file and change our URL to our new database that we created. But now our Jira front end won't come online after we start the Jira service again. :( Did we miss a step? How do we gain access to our Jira web URL again?
@Petr VaníčekI think we missed this step. But how do we run the script we created against our new database that we created?
Hi,
I'm not so experience with MS SQL so I recommend you to go word by word and step by step again.
Or also you can share part of logs with errors, but if you do not followed steps described in documentation then will be better start from scratch.