Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

dbconfig file is not getting created

Arvind Pal January 4, 2021

Hi Team,

I have installed jira on ubuntu and I am unable to find dbconfig file. I have installed jira twice but this file is got getting created.

Can someone help me with this

Thanks,

Arvind

4 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2021

A newly installed Jira will not have this file until you have completed the set up of it.

I have to question why you're looking for this file when you are part way through an installation - there's no possible reason to be messing with it until you've finished the install.

What are you trying to achieve here?  Not "I want to change a file", but the actual reason that has lead you to look for the file?  Is it a backup recovery, creating a test system, an upgrade, a database migration or something else?

Arvind Pal January 4, 2021

Hi Nic,

The installation process has been completed and Jira has been started but when I check log it says  The database is not yet configured. Enqueuing Post database-configuration launchers on post-database-activated queue.

So I was trying to find out dbconfig file and I need to configure the database too, so this file is required 

Thanks,

Arvind

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2021

If it's saying "the database is not yet configured", then you have not finished the installation process.  You need to complete the installation process (i.e. run it, visit it in a browser and do the things like set up a default admin user and configure the database)

Arvind Pal January 6, 2021

Hi Nic,

Thank you for the response but to configure database dbconfig file should be created. 

Thanks,

Arvind

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
January 6, 2021

Hi @Arvind Pal what Nic says is, you need to run DB setup wizard (https://confluence.atlassian.com/adminjiraserver073/running-the-setup-wizard-861253061.html) so this file is created (https://confluence.atlassian.com/jirakb/startup-check-creating-and-editing-the-dbconfig-xml-file-881656915.html).

After you use setup wizard you can switch Jira off and adjust necessary parameters in dbconfig file.

Like Nic Brough -Adaptavist- likes this
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 6, 2021

It will be, when you do the rest of the installation process.

Arvind Pal January 6, 2021

Hi @Nic Brough -Adaptavist-  @Martin Bayer _MoroSystems_ s_r_o__ 

Thank you for the reponse. Sure I will try the advised steps.

Regards,

Arvind

Arvind Pal January 11, 2021

Hi @Nic Brough -Adaptavist- @Martin Bayer _MoroSystems_ s_r_o__ ,

While configuring the database, I am getting an error 

You have specified a database that is not empty, please specify an empty database. If you want to upgrade an existing installation, please follow these instructions instead.

Thanks,

 

Arvind

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
January 11, 2021

Hi @Arvind Pal new Jira instance expects empty database. It looks like the DB scheme for Jira is not empty. can you check it and drop tables or create new scheme and use it, it should work.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 11, 2021

You need to start with a clean (meaning empty) database.  You can't point a half-setup installation at an existing data set, it cannot know what to do with it.

Arvind Pal January 13, 2021

Hi @Martin Bayer _MoroSystems_ s_r_o__  @Nic Brough -Adaptavist-@Nic Brough -Adaptavist- 

Running this script ./config.sh has created dbconfig and I have mentioned all the details which resolved the issue

Thank you for the help

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
January 4, 2021

hi @Arvind Pal did you try to start Jira first? I think it is created when Jira is started first time.

Arvind Pal January 4, 2021

Hi Martin,

Yes, I have started jira but even though it is not getting created.

Thanks,

Arvind

0 votes
Gonchik Tsymzhitov
Community Champion
January 4, 2021

Hi! 

Could you provide the result of command:

ps aux | grep java

 

?

Arvind Pal January 4, 2021

Hi Gonchik,

This is what I am getting..

ps aux | grep java
jira1 7256 0.3 17.1 2798216 350876 pts/0 Sl 06:17 1:00 /opt/atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms384m -Xmx768m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:-OmitStackTraceInFastThrow -Datlassian.plugins.startup.options= -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Xloggc:/opt/atlassian/jira/logs/atlassian-jira-gc-%t.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCCause -Dignore.endorsed.dirs= -classpath /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/jira -Dcatalina.home=/opt/atlassian/jira -Djava.io.tmpdir=/opt/atlassian/jira/temp org.apache.catalina.startup.Bootstrap start
root 7630 0.0 0.0 11740 928 pts/0 S+ 10:51 0:00 grep --color=auto java

Thanks,

Arvind

Like Gonchik Tsymzhitov likes this
Gonchik Tsymzhitov
Community Champion
January 6, 2021

Hi! 

Could you check a problem on that directory? /opt/atlassian/jira/temp

As I understood, you complete a installation wizard, then restart instance. And in UI again the installation wizard. 

And no file in  /var/application-data/jira/dbconfig.xml, is that right ?

If so, as double check, could you clean /var/application-data/jira/database directory. 

And start installation wizard again ?

Maybe something stucked ?

And I hope user jira1 is owner of your jira home directory.

0 votes
Aadesh Kolte
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 4, 2021

Could you please check dbconfig file in home directory. 

Should be comething like this - /var/application-data/jira/

Arvind Pal January 4, 2021

Hi Adeshk,

Thank you for the reply. I have checked in /var ,/opt and unable to find dbconfig file. Even locate command is unable to find it which means that this file didn't create.

Thanks,

Arvind

Suggest an answer

Log in or Sign up to answer