Could not create necessary subdirectory 'import/attachments' of jira.home.

I am in the process of migrating from JIRA 4.0 running PostgreSQL on an old server to 5.2 on a new server using MySQL. JIRA starts, but when I go to the website, I receive an error stating: "Could not create necessary subdirectory 'import/attachments' of jira.home."

Per the instructions located here: https://confluence.atlassian.com/display/JIRA/Migrating+JIRA+to+Another+Server

I have copied the old version's home, index, and attachment directories. I have also sourced the hold home directory in the jira-application.properties file.

Not sure where to go from here.

2 answers

1 accepted

0 vote

Check permissions and ownership of the home directory - does it exist? Is it owned by the right user, with full read/write/execute/delete permissions?

Ok, so can you log in as the user who runs Jira and try creating the directory manually?

Hi Nic,

I confirmed that it has the proper permissions and is owned by the right person. However, for the sake of trouble shooting, I have set the permissions to read/write/and execute for ALL. Yet I still receive the same error.

Thanks Nick. Creating the directories manually worked.

0 vote

Could you check that you have copied the attachment directory properly? It should be something like <JIRA_HOME>/data/attachments/<projectkey>/<issuekey>/ where <projectkey> is the respective projectkey, while <issuekey> is the respective issuekey directory.

The attachments directory is a completely seperate directory. For example...the JIRA home is: /opt/jira-home and the attachments directory is: /opt/jira-attach. These were the paths when they resided on the old server.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

79 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you