Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

How to fix Jira Docker Container Permission denied for dbconfig.xml?

I use vagrant to setup a docker container with the following lines

    d.run "jira",

      image: "atlassian/jira-software",

      args: " -p 8084:8080 -m 2GiB" +

      " --network jiranet" +

      " -e ATL_PROXY_NAME=192.168.50.4" +

      " -e ATL_PROXY_PORT=8084" +

      " -e ATL_TOMCAT_CONTEXTPATH=jira" 

 

During setup I get the following RuntimeIOException.

com.atlassian.jira.util.RuntimeIOException: Error writing database configuration file.
	at com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader.saveDatabaseConfiguration(AbstractJiraHomeDatabaseConfigurationLoader.java:74) [classes/:?]
	at
.
.
.
.
Caused by: java.io.FileNotFoundException: /var/atlassian/application-data/jira/dbconfig.xml (Permission denied) at java.io.FileOutputStream.open0(Native Method) [?:1.8.0_232] at java.io.FileOutputStream.open(Unknown Source) [?:1.8.0_232] at java.io.FileOutputStream.<init>(Unknown Source) [?:1.8.0_232] at java.io.FileOutputStream.<init>(Unknown Source) [?:1.8.0_232] at java.io.FileWriter.<init>(Unknown Source) [?:1.8.0_232] at com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader.getWriter(AbstractJiraHomeDatabaseConfigurationLoader.java:89) [classes/:?] at com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader.saveDatabaseConfiguration(AbstractJiraHomeDatabaseConfigurationLoader.java:70) [classes/:?] ... 150 more

Here the ls for the dir

docker exec jira ls -al /var/atlassian/application-data/jira

total 48

drwxr-xr-x 11 jira jira 4096 Nov 25 18:47 .

drwxr-xr-x  1 root root 4096 Nov 20 21:16 ..

drwxr-x---  3 jira jira 4096 Nov 25 18:45 caches

drwxr-x---  3 jira jira 4096 Nov 25 18:45 data

drwxr-x---  2 jira jira 4096 Nov 25 18:47 database

-rw-r--r--  1 root root  999 Nov 25 18:45 dbconfig.xml

drwxr-x---  2 jira jira 4096 Nov 25 18:45 export

drwxr-x---  4 jira jira 4096 Nov 25 18:45 import

-rw-r-----  1 jira jira    0 Nov 25 18:45 .jira-home.lock

drwxr-x---  2 jira jira 4096 Nov 25 18:47 log

drwxr-x---  5 jira jira 4096 Nov 25 18:45 plugins

drwxr-xr-x  2 root root 4096 Nov 25 18:45 __pycache__

drwxr-x---  3 jira jira 4096 Nov 25 18:45 tmp

 

0 comments

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you